Difference between revisions of "Translations/HowToTest"
(Created page with "Yay! Someone has submitted a translation to your OpenStack project and you've merged the commit from the translation bot! Now what? How do you actually see that the translatio...") |
|||
Line 2: | Line 2: | ||
== Testing a Translation == | == Testing a Translation == | ||
+ | |||
+ | (This example is take from Swift. Run these commands on your Swift server.) | ||
+ | |||
+ | # sudo apt-get install gettext | ||
+ | # msgfmt ./swift/locale/zh_CN/LC_MESSAGES/swift.po # this is run from the Swift source dir | ||
+ | # sudo cp messages.mo /usr/share/locale/zh_CN/LC_MESSAGES/swift.mo | ||
+ | # LANG=zh_CN swift-init all start |
Latest revision as of 00:49, 21 November 2014
Yay! Someone has submitted a translation to your OpenStack project and you've merged the commit from the translation bot! Now what? How do you actually see that the translation did anything?
Testing a Translation
(This example is take from Swift. Run these commands on your Swift server.)
- sudo apt-get install gettext
- msgfmt ./swift/locale/zh_CN/LC_MESSAGES/swift.po # this is run from the Swift source dir
- sudo cp messages.mo /usr/share/locale/zh_CN/LC_MESSAGES/swift.mo
- LANG=zh_CN swift-init all start