diff options
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | locale/lang_list.example | 3 | ||||
-rw-r--r-- | translating.md | 18 |
3 files changed, 22 insertions, 0 deletions
@@ -15,3 +15,4 @@ iPhone/CordovaLib/CordovaLib.xcodeproj/project.xcworkspace/xcuserdata iPhone/CordovaLib/CordovaLib.xcodeproj/xcuserdata Android/gen/ compiled +locale/lang_list diff --git a/locale/lang_list.example b/locale/lang_list.example new file mode 100644 index 0000000..f7db895 --- /dev/null +++ b/locale/lang_list.example @@ -0,0 +1,3 @@ +de-ch,German,de_CH +en-gb,English,en_GB +fr-fr,French,fr_FR diff --git a/translating.md b/translating.md new file mode 100644 index 0000000..a4b0527 --- /dev/null +++ b/translating.md @@ -0,0 +1,18 @@ +Translating +----------- +The translation code here currently relies on you having the main +FixMyStreet codebase checked out in the same directory as the +FixMyStreet mobile code. + +Quickstart +---------- +./bin/gettext-extract +./bin/gettext-merge +../fixmystreet/commonlib/bin/gettext-makemo FixMyStreetMobileApp +perl -I../fixmystreet/commonlib/perllib -I../fixmystreet/local bin/localise_templates + +copy compiled/$lang/*.html to www/$lang/templates +copy compiled/lang/*.js to www/js + +The list of languages to generate templates for should be included in +locale/lang_list and should look like locale/lang_list.example |