aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--locale/lang_list.example3
-rw-r--r--translating.md18
3 files changed, 22 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index f7d4dff..2eb15ac 100644
--- a/.gitignore
+++ b/.gitignore
@@ -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