Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
converse.js
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
converse.js
Commits
3206f775
Commit
3206f775
authored
Apr 11, 2013
by
Michal Čihař
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Drop no longer used data module
parent
ca4e99c1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
80 deletions
+0
-80
trans/data.py
trans/data.py
+0
-78
trans/models/unit.py
trans/models/unit.py
+0
-2
No files found.
trans/data.py
deleted
100644 → 0
View file @
ca4e99c1
# -*- coding: utf-8 -*-
#
# Copyright © 2012 - 2013 Michal Čihař <michal@cihar.com>
#
# This file is part of Weblate <http://weblate.org/>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# Set of ignored words
IGNORE_WORDS
=
frozenset
([
'a'
,
'an'
,
'and'
,
'are'
,
'as'
,
'at'
,
'be'
,
'but'
,
'by'
,
'for'
,
'if'
,
'in'
,
'into'
,
'is'
,
'it'
,
'no'
,
'not'
,
'of'
,
'on'
,
'or'
,
's'
,
'such'
,
't'
,
'that'
,
'the'
,
'their'
,
'then'
,
'there'
,
'these'
,
'they'
,
'this'
,
'to'
,
'was'
,
'will'
,
'with'
,
])
# Set of words to ignore in similar lookup
IGNORE_SIMILAR
=
frozenset
([
'also'
,
'class'
,
'href'
,
'http'
,
'me'
,
'most'
,
'net'
,
'per'
,
'span'
,
'their'
,
'theirs'
,
'you'
,
'your'
,
'yours'
,
'www'
,
])
|
IGNORE_WORDS
trans/models/unit.py
View file @
3206f775
...
@@ -26,12 +26,10 @@ from django.utils.safestring import mark_safe
...
@@ -26,12 +26,10 @@ from django.utils.safestring import mark_safe
from
django.contrib
import
messages
from
django.contrib
import
messages
from
django.core.cache
import
cache
from
django.core.cache
import
cache
from
whoosh
import
qparser
from
whoosh
import
qparser
import
itertools
import
traceback
import
traceback
from
trans.checks
import
CHECKS
from
trans.checks
import
CHECKS
from
trans.models.translation
import
Translation
from
trans.models.translation
import
Translation
from
trans.search
import
FULLTEXT_INDEX
,
SOURCE_SCHEMA
,
TARGET_SCHEMA
from
trans.search
import
FULLTEXT_INDEX
,
SOURCE_SCHEMA
,
TARGET_SCHEMA
from
trans.data
import
IGNORE_SIMILAR
from
trans.filelock
import
FileLockException
from
trans.filelock
import
FileLockException
from
trans.util
import
is_plural
,
split_plural
from
trans.util
import
is_plural
,
split_plural
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment