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
a7b08834
Commit
a7b08834
authored
Jul 10, 2012
by
Michal Čihař
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Document isblank usage
parent
6c8b4563
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
weblate/settings.py
weblate/settings.py
+2
-2
weblate/trans/models.py
weblate/trans/models.py
+3
-0
No files found.
weblate/settings.py
View file @
a7b08834
...
...
@@ -15,8 +15,8 @@ MANAGERS = ADMINS
DATABASES
=
{
'default'
:
{
'ENGINE'
:
'django.db.backends.
mysql
'
,
# Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
'NAME'
:
'weblate'
,
# Or path to database file if using sqlite3.
'ENGINE'
:
'django.db.backends.
sqlite3
'
,
# Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
'NAME'
:
'weblate
.db
'
,
# Or path to database file if using sqlite3.
'USER'
:
'weblate'
,
# Not used with sqlite3.
'PASSWORD'
:
'weblate'
,
# Not used with sqlite3.
'HOST'
:
'127.0.0.1'
,
# Set to empty string for localhost. Not used with sqlite3.
...
...
weblate/trans/models.py
View file @
a7b08834
...
...
@@ -798,6 +798,9 @@ class Translation(models.Model):
# Load po file
store
=
self
.
get_store
()
for
pos
,
unit
in
enumerate
(
store
.
units
):
# We care only about translatable strings
# For some reason, blank string does not mean non translatable
# unit in some formats (XLIFF), so let's skip those as well
if
not
unit
.
istranslatable
()
or
unit
.
isblank
():
continue
newunit
=
Unit
.
objects
.
update_from_unit
(
self
,
unit
,
pos
)
...
...
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