2008-07-02 23:10:13 +02:00
|
|
|
## Instructions for helping translate text for Vidalia, TorButton
|
|
|
|
## and TorCheck
|
2008-04-29 05:41:28 +02:00
|
|
|
## ( More translation information for Tor related apps will accumulate here )
|
|
|
|
|
2008-06-17 07:47:49 +02:00
|
|
|
Our translations are handled in one of two places. The Tor Translation Portal
|
|
|
|
handles all of the translations for Vidalia, Torbutton and TorCheck. The Tor
|
|
|
|
website itself is currently handled by hand translations using subversion.
|
2008-04-29 05:41:28 +02:00
|
|
|
|
2008-07-02 23:49:58 +02:00
|
|
|
-------------------------------------------------------------------------
|
|
|
|
|
|
|
|
For the Tor website, you'll need a Tor SVN account.
|
2008-06-21 01:15:48 +02:00
|
|
|
If you do not have one and you need one, please run this command with your
|
|
|
|
desired username in place of 'USERNAME':
|
|
|
|
htdigest -c passwd.tmp "Tor subversion repository" USERNAME
|
2008-07-02 23:49:58 +02:00
|
|
|
and send us the contents of passwd.tmp.
|
2008-06-21 01:15:48 +02:00
|
|
|
|
2008-07-02 23:49:58 +02:00
|
|
|
-------------------------------------------------------------------------
|
2008-06-21 01:15:48 +02:00
|
|
|
|
2008-07-02 23:49:58 +02:00
|
|
|
For the Portal-based projects, all three check in their respective .po
|
|
|
|
files into the following subversion urls:
|
2008-04-29 05:41:28 +02:00
|
|
|
|
2008-06-17 07:47:49 +02:00
|
|
|
https://tor-svn.freehaven.net/svn/translation/trunk/projects/torbutton
|
|
|
|
https://tor-svn.freehaven.net/svn/translation/trunk/projects/torcheck
|
2008-07-02 12:33:11 +02:00
|
|
|
https://svn.vidalia-project.net/svn/vidalia/trunk/src/vidalia/i18n/
|
2008-04-29 05:41:28 +02:00
|
|
|
|
2008-06-17 07:47:49 +02:00
|
|
|
The current pootle configuration is checked into subversion as well:
|
2008-06-03 13:01:16 +02:00
|
|
|
|
2008-06-17 07:47:49 +02:00
|
|
|
https://tor-svn.freehaven.net/svn/translation/trunk/pootle
|
2008-07-02 23:10:13 +02:00
|
|
|
|
|
|
|
TorCheck uses our translation portal to accept translations. Users use
|
|
|
|
the portal to check in their changes. To make use of the translations
|
|
|
|
that users have commited to the translations/ subversion module, you'll
|
|
|
|
need to ensure that you have a current checked out copy of TorCheck:
|
|
|
|
|
2008-06-17 07:47:49 +02:00
|
|
|
cd check/trunk/i18n/
|
|
|
|
check/trunk/i18n$ svn up
|
2008-04-29 05:41:28 +02:00
|
|
|
|
2008-06-17 07:47:49 +02:00
|
|
|
You should see something like the following:
|
2008-04-29 05:41:28 +02:00
|
|
|
|
2008-06-17 07:47:49 +02:00
|
|
|
Fetching external item into 'pootle'
|
|
|
|
External at revision 15300.
|
2008-04-29 05:41:28 +02:00
|
|
|
|
2008-06-17 07:47:49 +02:00
|
|
|
At revision 15300.
|
2008-07-02 23:10:13 +02:00
|
|
|
|
2008-06-17 07:47:49 +02:00
|
|
|
Now if you had changes, you'd simply want to move the newly updated .po files
|
|
|
|
into the current stable directory. Moving the .po files from
|
|
|
|
'check/trunk/i18n/pootle/' into 'check/trunk/i18n' properly naming the files
|
|
|
|
for their respective locale.
|
2008-04-29 05:41:28 +02:00
|
|
|
|
2008-06-17 07:47:49 +02:00
|
|
|
Here's an example of how to move all of the current pootle translations into
|
|
|
|
the svn trunk area of TorCheck:
|
2008-04-29 05:41:28 +02:00
|
|
|
|
2008-06-17 07:47:49 +02:00
|
|
|
cd check/trunk/i18n/
|
|
|
|
for locale in `ls -1 pootle/|grep -v template`;
|
2008-07-02 23:10:13 +02:00
|
|
|
do
|
2008-06-17 07:47:49 +02:00
|
|
|
mv -v pootle/$locale/TorCheck_$locale.po TorCheck_$locale.po;
|
|
|
|
done
|
2008-04-29 05:41:28 +02:00
|
|
|
|
2008-06-17 07:47:49 +02:00
|
|
|
Now check the differences (ensure the output looks reasonable):
|
2008-07-02 23:10:13 +02:00
|
|
|
|
2008-06-17 07:47:49 +02:00
|
|
|
svn diff
|
2008-04-29 05:41:28 +02:00
|
|
|
|
2008-06-17 07:47:49 +02:00
|
|
|
Ensure that msgfmt has no errors:
|
2008-04-29 05:41:28 +02:00
|
|
|
|
2008-06-17 07:47:49 +02:00
|
|
|
msgfmt -C *.po
|
2008-04-29 05:41:28 +02:00
|
|
|
|
2008-06-17 07:47:49 +02:00
|
|
|
And finally check in the changes:
|
2008-04-29 05:41:28 +02:00
|
|
|
|
2008-06-17 07:47:49 +02:00
|
|
|
svn commit
|
2008-04-29 05:41:28 +02:00
|
|
|
|
2008-07-02 23:10:13 +02:00
|
|
|
Torbutton uses our translation portal to accept translations. Users use
|
|
|
|
the portal to check in their changes.
|
2008-06-17 07:47:49 +02:00
|
|
|
To make use of the translations that users have commited to the translations/
|
|
|
|
subversion module, you'll need to ensure that you have a current checked out
|
|
|
|
copy of Torbutton:
|
2008-07-02 23:10:13 +02:00
|
|
|
|
|
|
|
cd torbutton/trans_tools
|
2008-06-17 07:47:49 +02:00
|
|
|
torbutton/trans_tools$ svn up
|
|
|
|
|
|
|
|
You should see something like the following:
|
|
|
|
|
|
|
|
Fetching external item into 'pootle'
|
|
|
|
External at revision 15300.
|
|
|
|
|
|
|
|
At revision 15300.
|
2008-07-02 23:10:13 +02:00
|
|
|
|
|
|
|
Now if you had changes, you need to convert from .po and move
|
|
|
|
the newly updated mozilla files into the current stable locale
|
|
|
|
directory. First convert them with the 'mkmoz.sh' script and then
|
|
|
|
moving the proper mozilla files from 'torbutton/trans_tools/moz/' into
|
|
|
|
'torbutton/src/chrome/locale/' directory while properly naming the files
|
|
|
|
for their respective locale.
|
2008-06-17 07:47:49 +02:00
|
|
|
|
|
|
|
Here's an example of how to move all of the current pootle translations into
|
|
|
|
the svn trunk area of Torbutton:
|
|
|
|
|
2008-07-02 23:10:13 +02:00
|
|
|
cd torbutton/trans_tools
|
2008-06-17 07:47:49 +02:00
|
|
|
./mkmoz.sh
|
|
|
|
for locale in `ls -1 moz/`;
|
2008-07-02 23:10:13 +02:00
|
|
|
do
|
2008-06-17 07:47:49 +02:00
|
|
|
mv -v moz/$locale/*.{rdf,dtd,properties} ../src/chrome/locale/$locale/;
|
|
|
|
done
|
2008-04-29 05:41:28 +02:00
|
|
|
|
2008-06-17 07:47:49 +02:00
|
|
|
Now check the differences (ensure the output looks reasonable):
|
2008-07-02 23:10:13 +02:00
|
|
|
|
2008-06-17 07:47:49 +02:00
|
|
|
svn diff
|
2008-04-29 05:41:28 +02:00
|
|
|
|
2008-06-17 07:47:49 +02:00
|
|
|
And finally check in the changes:
|
2008-04-29 05:41:28 +02:00
|
|
|
|
2008-06-17 07:47:49 +02:00
|
|
|
svn commit
|
2008-04-29 05:41:28 +02:00
|
|
|
|
2008-06-17 07:47:49 +02:00
|
|
|
Vidalia uses our translation portal to accept translations. Users use the
|
2008-06-19 20:44:15 +02:00
|
|
|
portal to check in their changes. No conversion or moving is required other
|
|
|
|
than normal pootle usage.
|
2008-05-28 06:31:16 +02:00
|
|
|
|