From 92f35d24ebcfbafac6d92c77c02d52670295f6b7 Mon Sep 17 00:00:00 2001 From: Jason Herskowitz Date: Wed, 2 Dec 2015 14:55:32 -0500 Subject: [PATCH] Created Localization Guidelines (markdown) --- Localization-Guidelines.md | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 Localization-Guidelines.md diff --git a/Localization-Guidelines.md b/Localization-Guidelines.md new file mode 100644 index 0000000..0c49435 --- /dev/null +++ b/Localization-Guidelines.md @@ -0,0 +1,33 @@ +# Transifex +Simply translate online using Transifex (recommended for most users): https://web.archive.org/web/20121213024605/https://www.transifex.net/projects/p/tomahawk/. + +# Qt Linguist + + git clone https://github.com/tomahawk-player/tomahawk.git + cd tomahawk + lupdate src/ -ts lang/tomahawk_XX.ts + +Now it's time to get our your language skills and translate quite a few of our strings. Do this by starting Qt's Linguist tool: + + linguist lang/tomahawk_XX.ts + +# Testing your translation +When you're done translating your first draft, go ahead edit lang/tomahawk_i18n.qrc and add your new translation to it. Now you need to build your own Tomahawk binary. This isn't too hard! See Building Tomahawk for detailed instructions. + + cd tomahawk + mkdir build && cd build + cmake .. + make + export LANG=XX + ./tomahawk + +Tomahawk should now start up with your localized strings. Congratulations! Now you only need to send us your translation via eMail or, preferably, fork Tomahawk on GitHub and send us a pull request. Thank you! + +# Updating your translation +Run those little commands to keep up-to-date with the latest progress of Tomahawk: + + cd tomahawk + git pull + lupdate src/ -ts lang/tomahawk_XX.ts + +This will merge and integrate the latest strings into your existing translation file. Your previous translations won't get lost, so don't worry. Now proceed as usual, start Linguist, edit some strings and recompile Tomahawk to test your new translations. Just don't forget to run cmake every time, to make sure your latest changes got compiled in. \ No newline at end of file