summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2011-03-14 20:56:52 (GMT)
committerRemko Tronçon <git@el-tramo.be>2011-03-14 20:56:52 (GMT)
commitee595c6ce62ee8c904132f72d9da01b53563531d (patch)
tree351cac841a478f6236c6934cffa65f965d7ab139 /Documentation
parent5319fd7388a0603acfe8174cd2d558effff6af4b (diff)
downloadswift-contrib-ee595c6ce62ee8c904132f72d9da01b53563531d.zip
swift-contrib-ee595c6ce62ee8c904132f72d9da01b53563531d.tar.bz2
Added some extra documentation on translating Swift.
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/TranslatingSwift.txt28
1 files changed, 22 insertions, 6 deletions
diff --git a/Documentation/TranslatingSwift.txt b/Documentation/TranslatingSwift.txt
index f6d89e1..178f1e2 100644
--- a/Documentation/TranslatingSwift.txt
+++ b/Documentation/TranslatingSwift.txt
@@ -32,9 +32,25 @@ language.
Testing your translation
------------------------
-- Ensure your translation file is in Swift/Translations/swift_<YOURLANGUAGE>.ts
-- Build Swift (for more details, see the building documentation):
- scons Swift
- This will build translation modules (.qm) for your translation sources, and
- put them in the right place.
-- Run Swift
+You can choose to manually test your translation (doesn't require a
+development environment for Swift), or automatically:
+- Manually:
+ - In Linguist, select "File->Release". This will create a file called
+ <YOURLANGUAGE>.qm.
+ - Put <YOURLANGUAGE>.qm in the translations dir
+ - On Windows, in the 'translations/' subdir of the installed package
+ - On Mac OS X, use "Show Package Contents" on Swift.app, and put the
+ translation file in Contents/Resources/translations
+ - On Linux, in /usr/share/swift/translations
+- Automatically:
+ - Ensure your translation file is in Swift/Translations/swift_<YOURLANGUAGE>.ts
+ - Build Swift (for more details, see the building documentation):
+ scons Swift
+ This will build translation modules (.qm) for your translation sources, and
+ put them in the right place.
+
+Finally, run Swift. If your system isn't set up to use your language, set the
+LANG environment variable to the name of your language before running Swift.
+For example:
+ set LANG=nl (on Windows)
+ export LANG=nl (on Linux or Mac OS X, in Bash)