Confirmed users
120
edits
Willyaranda (talk | contribs) |
Willyaranda (talk | contribs) No edit summary |
||
| Line 213: | Line 213: | ||
When you are done, File > Save Glossary and then Export > Export CVS translation. Click Ok to the next two windows, and... it's done!! You have your local repository updated!! But it's not the final, you need to upload the changes to the l10n-central repository. | When you are done, File > Save Glossary and then Export > Export CVS translation. Click Ok to the next two windows, and... it's done!! You have your local repository updated!! But it's not the final, you need to upload the changes to the l10n-central repository. | ||
Before updating your changes, you need to edit hg files to use your ssh key required by Mozilla to allow commiting in their repositories. I copy-paste the code that is [http://developer.mozilla.org/en/L10n_on_Mercurial#Sending_your_changes_to_mozilla here]: | |||
[begin] | |||
With mercurial you work in your own repository. After finishing a change or set of changes you should commit: | |||
hg commit -m "message identifying the change (bug 555)" | |||
Unlike CVS this won't send your changes to Mozilla's repository. First you need to push the changes. To push to l10n-central and other mozilla-hosted repositories you have to have committer access, and you must edit the file (your-local-hg-root)/.hg/hgrc (note, this is NOT your ~/.hgrc) to add this line (replacing email@host with your username at mozilla): | |||
[paths] | |||
default = http://hg.mozilla.org/l10n-central/ab-CD | |||
default-push = ssh://hg.mozilla.org/l10n-central/ab-CD | |||
You'll need to tell ssh which account to use for your pushes, too, by editing ~/.ssh/config and adding the lines | |||
Host hg.mozilla.org | |||
User user@host.domain | |||
user@domain is your account, with a real @ instead of the % that you used for CVS. Afterwards you can push your work to the repository (and check the result on the dashboard) | |||
hg push | |||
[end] | |||
== Steps to update your locale when en-US changes == | |||
It's simple to update your translation. First of all you need to know if the en-US locale has changed. This is soooo easy to check. Visit the [http://hg.frenchmozilla.fr/ en-US repository] and add it to your favourite RSS reader. If there is a update in the feed, it means that there is a update in the en-US files. And now, you need to update your local en-US files. Open a terminal and type: | |||
update-repo-hg.sh | |||
Wait until the end. That's it! You have the latest en-US changes in your own computer. | |||
Now, open Mozilla Translator with the command we use in the above step: | |||
run-mt.sh [product] [version] | |||
Maybe, | |||
run-mt.sh firefox 3.1 | |||
When MT opens, click on File > Update product. A new window containing all the new strings will be shown. Translate it, save the Glossary (use the menu File, do you remember?) and Export CVS translation in the Export menu. | |||
Now, open a new terminal and go to your translation's folder: | |||
cd ~/[product][version]/[locale] | |||
Like that: | |||
cd ~/firefox31/es-ES | |||
See what are you going to update with | |||
hg diff | |||
If it's all correct, type: | |||
hg commit -m "Some weird message explaining the change" | |||
And, please, NOT FORGET TO DO THIS: | |||
hg push | |||
Done, your updated translation should be commited, and you can check this on: http://hg.mozilla.org/l10n-central/[locale] , changing your [locale] obviously. | |||
Happy localization! | |||
[[Category:L10n]] | [[Category:L10n]] | ||