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
07cc3e63
Commit
07cc3e63
authored
Feb 28, 2012
by
Michal Čihař
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add command for loading po files
parent
79f865b3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
0 deletions
+11
-0
trans/management/__init__.py
trans/management/__init__.py
+0
-0
trans/management/commands/__init__.py
trans/management/commands/__init__.py
+0
-0
trans/management/commands/loadpo.py
trans/management/commands/loadpo.py
+11
-0
No files found.
trans/management/__init__.py
0 → 100644
View file @
07cc3e63
trans/management/commands/__init__.py
0 → 100644
View file @
07cc3e63
trans/management/commands/loadpo.py
0 → 100644
View file @
07cc3e63
from
django.core.management.base
import
BaseCommand
,
CommandError
from
trans.models
import
SubProject
class
Command
(
BaseCommand
):
help
=
'(re)loads translations from disk'
args
=
'<project/subproject>'
def
handle
(
self
,
*
args
,
**
options
):
for
arg
in
args
:
prj
,
subprj
=
arg
.
split
(
'/'
)
SubProject
.
objects
.
get
(
slug
=
subprj
,
project__slug
=
prj
).
create_translations
()
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