translations.txt 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  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 uses our translation portal to accept translations. Users use
  22. the portal to check in their changes. To make use of the translations
  23. that users have commited to the translations/ subversion module, you'll
  24. need to ensure that you have a current checked out copy of TorCheck:
  25. cd check/trunk/i18n/
  26. check/trunk/i18n$ svn up
  27. You should see something like the following:
  28. Fetching external item into 'pootle'
  29. External at revision 15300.
  30. At revision 15300.
  31. Now if you had changes, you'd simply want to move the newly updated .po files
  32. into the current stable directory. Moving the .po files from
  33. 'check/trunk/i18n/pootle/' into 'check/trunk/i18n' properly naming the files
  34. for their respective locale.
  35. Here's an example of how to move all of the current pootle translations into
  36. the svn trunk area of TorCheck:
  37. cd check/trunk/i18n/
  38. for locale in `ls -1 pootle/|grep -v template`;
  39. do
  40. mv -v pootle/$locale/TorCheck_$locale.po TorCheck_$locale.po;
  41. done
  42. Now check the differences (ensure the output looks reasonable):
  43. svn diff
  44. Ensure that msgfmt has no errors:
  45. msgfmt -C *.po
  46. And finally check in the changes:
  47. svn commit
  48. Torbutton uses our translation portal to accept translations. Users use
  49. the portal to check in their changes.
  50. To make use of the translations that users have commited to the translations/
  51. subversion module, you'll need to ensure that you have a current checked out
  52. copy of Torbutton:
  53. cd torbutton/trans_tools
  54. torbutton/trans_tools$ svn up
  55. You should see something like the following:
  56. Fetching external item into 'pootle'
  57. External at revision 15300.
  58. At revision 15300.
  59. Now if you had changes, you need to convert from .po and move
  60. the newly updated mozilla files into the current stable locale
  61. directory. First convert them with the 'mkmoz.sh' script and then
  62. moving the proper mozilla files from 'torbutton/trans_tools/moz/' into
  63. 'torbutton/src/chrome/locale/' directory while properly naming the files
  64. for their respective locale.
  65. Here's an example of how to move all of the current pootle translations into
  66. the svn trunk area of Torbutton:
  67. cd torbutton/trans_tools
  68. ./mkmoz.sh
  69. for locale in `ls -1 moz/`;
  70. do
  71. mv -v moz/$locale/*.{rdf,dtd,properties} ../src/chrome/locale/$locale/;
  72. done
  73. Now check the differences (ensure the output looks reasonable):
  74. svn diff
  75. And finally check in the changes:
  76. svn commit
  77. Vidalia uses our translation portal to accept translations. Users use the
  78. portal to check in their changes. No conversion or moving is required other
  79. than normal pootle usage.