translations.txt 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. ## Instructions for helping translate text for Vidalia, TorButton and TorCheck
  2. ## ( More translation information for Tor related apps will accumulate here )
  3. Our translations are handled in one of two places. The Tor Translation Portal
  4. handles all of the translations for Vidalia, Torbutton and TorCheck. The Tor
  5. website itself is currently handled by hand translations using subversion.
  6. You'll need a Tor SVN account.
  7. If you do not have one and you need one, please run this command with your
  8. desired username in place of 'USERNAME':
  9. htdigest -c passwd.tmp "Tor subversion repository" USERNAME
  10. All three of the above projects check in their respective .po files into the following subversion urls:
  11. https://tor-svn.freehaven.net/svn/translation/trunk/projects/torbutton
  12. https://tor-svn.freehaven.net/svn/translation/trunk/projects/torcheck
  13. https://svn.vidalia-project.net/svn/vidalia/trunk/src/vidalia/i18n/
  14. The current pootle configuration is checked into subversion as well:
  15. https://tor-svn.freehaven.net/svn/translation/trunk/pootle
  16. TorCheck uses our translation portal to accept translations. Users use the portal to check in their changes.
  17. To make use of the translations that users have commited to the translations/
  18. subversion module, you'll need to ensure that you have a current checked out
  19. copy of TorCheck:
  20. cd check/trunk/i18n/
  21. check/trunk/i18n$ svn up
  22. You should see something like the following:
  23. Fetching external item into 'pootle'
  24. External at revision 15300.
  25. At revision 15300.
  26. Now if you had changes, you'd simply want to move the newly updated .po files
  27. into the current stable directory. Moving the .po files from
  28. 'check/trunk/i18n/pootle/' into 'check/trunk/i18n' properly naming the files
  29. for their respective locale.
  30. Here's an example of how to move all of the current pootle translations into
  31. the svn trunk area of TorCheck:
  32. cd check/trunk/i18n/
  33. for locale in `ls -1 pootle/|grep -v template`;
  34. do
  35. mv -v pootle/$locale/TorCheck_$locale.po TorCheck_$locale.po;
  36. done
  37. Now check the differences (ensure the output looks reasonable):
  38. svn diff
  39. Ensure that msgfmt has no errors:
  40. msgfmt -C *.po
  41. And finally check in the changes:
  42. svn commit
  43. Torbutton uses our translation portal to accept translations. Users use the portal to check in their changes.
  44. To make use of the translations that users have commited to the translations/
  45. subversion module, you'll need to ensure that you have a current checked out
  46. copy of Torbutton:
  47. cd torbutton/trans_tools
  48. torbutton/trans_tools$ svn up
  49. You should see something like the following:
  50. Fetching external item into 'pootle'
  51. External at revision 15300.
  52. At revision 15300.
  53. Now if you had changes, you need to convert from .po and move the newly updated mozilla files
  54. into the current stable locale directory. First convert them with the
  55. 'mkmoz.sh' script and then moving the proper mozilla files from
  56. 'torbutton/trans_tools/moz/' into 'torbutton/src/chrome/locale/' directory
  57. while properly naming the files for their respective locale.
  58. Here's an example of how to move all of the current pootle translations into
  59. the svn trunk area of Torbutton:
  60. cd torbutton/trans_tools
  61. ./mkmoz.sh
  62. for locale in `ls -1 moz/`;
  63. do
  64. mv -v moz/$locale/*.{rdf,dtd,properties} ../src/chrome/locale/$locale/;
  65. done
  66. Now check the differences (ensure the output looks reasonable):
  67. svn diff
  68. And finally check in the changes:
  69. svn commit
  70. Vidalia uses our translation portal to accept translations. Users use the
  71. portal to check in their changes. No conversion or moving is required other
  72. than normal pootle usage.