translations.txt 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  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. All three of the above projects check in their respective .po files into the following subversion urls:
  7. https://tor-svn.freehaven.net/svn/translation/trunk/projects/torbutton
  8. https://tor-svn.freehaven.net/svn/translation/trunk/projects/torcheck
  9. https://tor-svn.freehaven.net/svn/translation/trunk/projects/vidalia
  10. The current pootle configuration is checked into subversion as well:
  11. https://tor-svn.freehaven.net/svn/translation/trunk/pootle
  12. TorCheck uses our translation portal to accept translations. Users use the portal to check in their changes.
  13. To make use of the translations that users have commited to the translations/
  14. subversion module, you'll need to ensure that you have a current checked out
  15. copy of TorCheck:
  16. cd check/trunk/i18n/
  17. check/trunk/i18n$ svn up
  18. You should see something like the following:
  19. Fetching external item into 'pootle'
  20. External at revision 15300.
  21. At revision 15300.
  22. Now if you had changes, you'd simply want to move the newly updated .po files
  23. into the current stable directory. Moving the .po files from
  24. 'check/trunk/i18n/pootle/' into 'check/trunk/i18n' properly naming the files
  25. for their respective locale.
  26. Here's an example of how to move all of the current pootle translations into
  27. the svn trunk area of TorCheck:
  28. cd check/trunk/i18n/
  29. for locale in `ls -1 pootle/|grep -v template`;
  30. do
  31. mv -v pootle/$locale/TorCheck_$locale.po TorCheck_$locale.po;
  32. done
  33. Now check the differences (ensure the output looks reasonable):
  34. svn diff
  35. Ensure that msgfmt has no errors:
  36. msgfmt -C *.po
  37. And finally check in the changes:
  38. svn commit
  39. Torbutton uses our translation portal to accept translations. Users use the portal to check in their changes.
  40. To make use of the translations that users have commited to the translations/
  41. subversion module, you'll need to ensure that you have a current checked out
  42. copy of Torbutton:
  43. cd torbutton/trans_tools
  44. torbutton/trans_tools$ svn up
  45. You should see something like the following:
  46. Fetching external item into 'pootle'
  47. External at revision 15300.
  48. At revision 15300.
  49. Now if you had changes, you need to convert from .po and move the newly updated mozilla files
  50. into the current stable locale directory. First convert them with the
  51. 'mkmoz.sh' script and then moving the proper mozilla files from
  52. 'torbutton/trans_tools/moz/' into 'torbutton/src/chrome/locale/' directory
  53. while properly naming the files for their respective locale.
  54. Here's an example of how to move all of the current pootle translations into
  55. the svn trunk area of Torbutton:
  56. cd torbutton/trans_tools
  57. ./mkmoz.sh
  58. for locale in `ls -1 moz/`;
  59. do
  60. mv -v moz/$locale/*.{rdf,dtd,properties} ../src/chrome/locale/$locale/;
  61. done
  62. Now check the differences (ensure the output looks reasonable):
  63. svn diff
  64. And finally check in the changes:
  65. svn commit
  66. XXX: Update this to make it correct :XXX
  67. Vidalia uses our translation portal to accept translations. Users use the
  68. portal to check in their changes. To make use of the translations that users
  69. have commited to the translations/
  70. subversion module, you'll need to ensure that you have a current checked out
  71. copy of Vidalia:
  72. cd vidalia/src/vidalia/i18n/
  73. vidalia/src/vidalia/i18n/$ svn up
  74. You should see something like the following:
  75. Fetching external item into 'pootle'
  76. Updated external to revision 15319.
  77. Updated to revision 2744.
  78. Now if you had changes, you need to convert from .po and move the newly updated .ts files
  79. into the current stable locale directory. First convert them with the
  80. 'mkts.sh' script and then moving the proper .ts files from
  81. 'vidalia/src/vidalia/i18n/ts/' into 'vidalia/src/vidalia/i18n/' directory
  82. while properly naming the files for their respective locale.
  83. Here's an example of how to move all of the current pootle translations into
  84. the svn trunk area of Torbutton:
  85. cd vidalia/src/vidalia/i18n/
  86. ./mkts.sh
  87. for locale in `ls -1 ts/`;
  88. do
  89. mv -v ts/$locale/vidalia_$locale.ts vidalia_$locale.ts;
  90. done
  91. Now check the differences (ensure the output looks reasonable):
  92. svn diff
  93. And finally check in the changes:
  94. svn commit