translations.txt 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  1. ## Instructions for helping translate text for Vidalia, TorButton
  2. ## and TorCheck
  3. ## ( More translation information for Tor related apps will accumulate here )
  4. Our translations are handled in one of two places. The Tor Translation Portal
  5. handles all of the translations for Vidalia, Torbutton and TorCheck. The Tor
  6. website itself is currently handled by hand translations using subversion.
  7. -------------------------------------------------------------------------
  8. For the Tor website, you'll need a Tor SVN account.
  9. If you do not have one and you need one, please run this command with your
  10. desired username in place of 'USERNAME':
  11. htdigest -c passwd.tmp "Tor subversion repository" USERNAME
  12. and send us the contents of passwd.tmp.
  13. -------------------------------------------------------------------------
  14. For the Portal-based projects, all three check in their respective .po
  15. files into the following subversion urls:
  16. https://tor-svn.freehaven.net/svn/translation/trunk/projects/torbutton
  17. https://tor-svn.freehaven.net/svn/translation/trunk/projects/torcheck
  18. https://svn.vidalia-project.net/svn/vidalia/trunk/src/vidalia/i18n/
  19. The current pootle configuration is checked into subversion as well:
  20. https://tor-svn.freehaven.net/svn/translation/trunk/pootle
  21. ---------------------------- TorCheck -------------------------------
  22. TorCheck uses our translation portal to accept translations. Users use
  23. the portal to check in their changes. To make use of the translations
  24. that users have committed to the translations/ subversion module, you'll
  25. need to ensure that you have a current checked out copy of TorCheck:
  26. cd check/trunk/i18n/
  27. check/trunk/i18n$ svn up
  28. You should see something like the following:
  29. Fetching external item into 'pootle'
  30. External at revision 15300.
  31. At revision 15300.
  32. Now if you had changes, you'd simply want to move the newly updated .po files
  33. into the current stable directory. Moving the .po files from
  34. 'check/trunk/i18n/pootle/' into 'check/trunk/i18n' properly naming the files
  35. for their respective locale.
  36. Here's an example of how to move all of the current pootle translations into
  37. the svn trunk area of TorCheck:
  38. cd check/trunk/i18n/
  39. for locale in `ls -1 pootle/|grep -v template`;
  40. do
  41. mv -v pootle/$locale/TorCheck_$locale.po TorCheck_$locale.po;
  42. done
  43. Now check the differences (ensure the output looks reasonable):
  44. svn diff
  45. Ensure that msgfmt has no errors:
  46. msgfmt -C *.po
  47. And finally check in the changes:
  48. svn commit
  49. ---------------------------- Torbutton -------------------------------
  50. Torbutton uses our translation portal to accept translations. Users use
  51. the portal to check in their changes.
  52. To make use of the translations that users have committed to the translations/
  53. subversion module, you'll need to ensure that you have a current checked out
  54. copy of them in your torbutton git checkout:
  55. cd torbutton.git/trans_tools
  56. torbutton.git/trans_tools$ svn co https://tor-svn.freehaven.net/svn/translation/trunk/projects/torbutton pootle
  57. You should see something like the following:
  58. Checked out revision 21092.
  59. If you made changes to strings in Torbutton, you need to rebuild the
  60. templates in torbutton.git/trans_tools/pootle/templates. This is done with
  61. the following command from within the torbutton.git checkout directory:
  62. moz2po -P -i src/chrome/locale/en/ -o trans_tools/pootle/templates/
  63. You now have two options:
  64. Option 1 (The [shitty] Pootle Web UI Way):
  65. View then commit the changes to the template with:
  66. cd trans_tools/pootle
  67. svn diff templates
  68. svn commit templates
  69. Then poke Jake to 'svn up' on the Pootle side. If you do this enough
  70. times, he may give you a button to click to update templates in Pootle,
  71. or maybe even an account on the Pootle server. Persistence is a virtue.
  72. You then need to go to the Pootle website and click the checkbox next to
  73. every language on:
  74. https://translation.torproject.org/projects/torbutton/admin.html
  75. and then click "Update Languages" at the bottom.
  76. You then need to go to each language and go to "Editing Options" and click
  77. "Commit" for each one.
  78. You then need to 'svn up' locally, and follow the procedure above for
  79. rebuilding your .dtd and .properties files.
  80. Yes, this sucks. :/
  81. Option 2 (Use your own msgmerge: YMMV, may change .po flags and formatting):
  82. Run msgmerge yourself for each language:
  83. cd trans_tools
  84. for i in `ls -1 pootle`
  85. do
  86. msgmerge -U ./pootle/$i/torbutton.dtd.po ./pootle/templates/torbutton.dtd.pot
  87. msgmerge -U ./pootle/$i/torbutton.properties.po ./pootle/templates/torbutton.properties.pot
  88. done
  89. svn diff pootle
  90. svn commit pootle
  91. Then poke Jake to 'svn up' on the Pootle side. If you do this enough times,
  92. he may give you a button on Pootle, or maybe even an account on the Pootle
  93. server. Persistence is a virtue.
  94. You may notice that some .po file flags and string formatting have changed
  95. with this method, depending on your gettext version. It is unclear if this
  96. is a problem. Please update this doc if you hit a landmine and everything
  97. breaks :)
  98. After this process is done, you then need to regenerate the mozilla
  99. .dtd and .properties files as specified above.
  100. Regardless of whether or not you had changes in the torbutton strings, if there
  101. were updated strings in pootle that you checked out from svn you now need to
  102. convert from .po and move the newly updated mozilla files into the current
  103. stable locale directory. First convert them with the 'mkmoz.sh' script and
  104. then move the proper mozilla files from 'torbutton.git/trans_tools/moz/' into
  105. 'torbutton.git/src/chrome/locale/' directory while properly naming the files
  106. for their respective locale.
  107. Here's an example of how to move all of the current pootle translations into
  108. the svn trunk area of Torbutton:
  109. cd trans_tools
  110. ./mkmoz.sh
  111. for locale in `ls -1 moz/`;
  112. do
  113. mv -v moz/$locale/*.{dtd,properties} ../src/chrome/locale/$locale/
  114. done
  115. Now check the differences to your git branch to ensure the output looks
  116. reasonable:
  117. cd ..
  118. git diff
  119. And finally check in the changes:
  120. cd src/chrome/locale
  121. git commit .
  122. ---------------------------- Vidalia -------------------------------
  123. Vidalia uses our translation portal to accept translations. Users use the
  124. portal to check in their changes. No conversion or moving is required other
  125. than normal pootle usage.