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
d44f8f21
Commit
d44f8f21
authored
Sep 19, 2012
by
Michal Čihař
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fallback to builtin aresource support
parent
e60cc744
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
weblate/trans/models.py
weblate/trans/models.py
+9
-2
No files found.
weblate/trans/models.py
View file @
d44f8f21
...
...
@@ -107,7 +107,11 @@ try:
'monolingual'
:
True
,
}
except
ImportError
:
pass
FILE_FORMATS
[
'aresource'
]
=
{
'name'
:
ugettext_lazy
(
'Android String Resource'
),
'loader'
:
(
'ttkit.aresource'
,
'AndroidResourceFile'
),
'monolingual'
:
True
,
}
FILE_FORMAT_CHOICES
=
[(
fmt
,
FILE_FORMATS
[
fmt
][
'name'
])
for
fmt
in
FILE_FORMATS
]
...
...
@@ -137,7 +141,10 @@ def ttkit(storefile, file_format = 'auto'):
# Tuple style loader, import from translate toolkit
module_name
,
class_name
=
loader
module
=
importlib
.
import_module
(
'translate.storage.%s'
%
module_name
)
if
'.'
in
module_name
:
module
=
importlib
.
import_module
(
module_name
)
else
:
module
=
importlib
.
import_module
(
'translate.storage.%s'
%
module_name
)
storeclass
=
getattr
(
module
,
class_name
)
return
storeclass
.
parsefile
(
storefile
)
...
...
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