10 changed files with 88 additions and 27 deletions
@ -0,0 +1,13 @@ |
|||||||
|
Rebuild pot file from source (only do that on template or JavaScript changes) |
||||||
|
``make extract`` |
||||||
|
|
||||||
|
Merge po files with pot file (always do this before translating) |
||||||
|
``make update`` |
||||||
|
|
||||||
|
Create JavaScript translation fiels from po files (do this when finished translating) |
||||||
|
``make build`` |
||||||
|
|
||||||
|
Create a new translation (obvious) |
||||||
|
``cp messages.pot messages-$(ISO-639-1).po`` |
||||||
|
Add new ISO-639-1 line to helpers/languages.py including translated language name. |
||||||
|
``make build`` |
||||||
@ -0,0 +1,18 @@ |
|||||||
|
#!/usr/bin/python |
||||||
|
# -*- coding: UTF-8 -*- |
||||||
|
# Generate simple languages JSON module. |
||||||
|
|
||||||
|
LANGUAGES = { |
||||||
|
"en": "English", |
||||||
|
"de": "Deutsch", |
||||||
|
} |
||||||
|
|
||||||
|
def main(): |
||||||
|
|
||||||
|
print """// This file is auto generated, do not modify. |
||||||
|
define([], function() { |
||||||
|
return %r; |
||||||
|
});""" % LANGUAGES |
||||||
|
|
||||||
|
if __name__ == "__main__": |
||||||
|
main() |
||||||
Loading…
Reference in new issue