Both sides previous revisionPrevious revisionNext revision | Previous revision |
help_translations_of_bitcomet [2024/09/03 09:54] – [Supported Languages: 53 Languages] wxhere | help_translations_of_bitcomet [2024/09/04 01:06] (current) – [Help Translations of BitComet] wxhere |
---|
=== Translate BitComet online (v1.35 and later) === | === Translate BitComet online (v1.35 and later) === |
| |
Please visit http://www.bbcomet.com/projects/bitcomet/ to do the translation. | <html><span style=color:red;font-weight:bold>Abandoned.</span></html> Visit http://www.bbcomet.com/projects/bitcomet/ to do the translation online. |
| |
=== Translate BitComet online in Launchpad (v1.34 and earlier, abandoned) === | ---- |
| |
**This section is abandoned.** Lanuchpad is a third-party website-hosting service, for open source/free software projects. We, therefore, use Launchpad so that users from all over the world, may help translate online BitComet. | === Translate BitComet online (v1.34 and earlier) === |
| |
| <html><span style=color:red;font-weight:bold>Abandoned.</span></html> Lanuchpad is a third-party website-hosting service, for open source/free software projects. We, therefore, use Launchpad so that users from all over the world, may help translate online BitComet. |
| |
The next instructions pertain to translating online using the web interface of the Launchpad site. Please refer to the [[help_translations_of_bitcomet#translate_bitcomet_offline_from_launchpad|next section]] for off-line translation, instead. | The next instructions pertain to translating online using the web interface of the Launchpad site. Please refer to the [[help_translations_of_bitcomet#translate_bitcomet_offline_from_launchpad|next section]] for off-line translation, instead. |
| |
- Open [[https://translations.launchpad.net/bitcomet/|BitComet translation project]] on Launchpad. | - Open [[https://translations.launchpad.net/bitcomet/|BitComet translation project]] on Launchpad. |
- Register/login your account at first and then continue.\\ {{:trans_03.png|}}\\ <html><br /></html> | - Register/login your account at first and then continue.\\ {{:trans_03.png|}}\\ |
- After signing in, click "Choose Preferred Languages..." to go forward.\\ {{:trans_04.png|}}\\ <html><br /></html> | - After signing in, click "Choose Preferred Languages..." to go forward.\\ {{:trans_04.png|}}\\ |
- Select the language you want to translate from the list (support multiple choices), and click Save.\\ {{:trans_05a.png|}}\\ <html><br /></html> | - Select the language you want to translate from the list (support multiple choices), and click Save.\\ {{:trans_05a.png|}}\\ |
- Click on the language name you selected in the previous step and you will be redirected to a new page.\\ {{:trans_06.png|}}\\ <html><br /></html> | - Click on the language name you selected in the previous step and you will be redirected to a new page.\\ {{:trans_06.png|}}\\ |
- Select "License all my translations in Lauchpad under the BSD license" to continue.\\ {{:trans_08b.png|}}\\ <html><br /></html> | - Select "License all my translations in Lauchpad under the BSD license" to continue.\\ {{:trans_08b.png|}}\\ |
- For those sentences which need translating, enter your new translation in the form and then click the "Save&Continue" button after you finished. All your translations will be saved in Launchpad and will be merged automatically in the next version of BitComet.\\ {{:trans_09.png|}} | - For those sentences which need translating, enter your new translation in the form and then click the "Save&Continue" button after you finished. All your translations will be saved in Launchpad and will be merged automatically in the next version of BitComet.\\ {{:trans_09.png|}} |
| |
---- | ---- |
| |
==== Translate BitComet offline from Launchpad ==== | === Translate BitComet offline === |
| |
This is a brief tutorial for offline translating of BitComet from Launchpad. | This is a brief tutorial for offline translating BitComet. |
| |
If you want to translate BitComet directly on Launchpad online, please refer to the previous section [[help_translations_of_bitcomet#help_translations_of_bitcomet1|Translate BitComet from Launchpad]]. | |
| |
**1)** Download and install Poedit: | **1)** Download and install Poedit: |
* Original version (www.poedit.net) | * The latest official version (https://www.poedit.net) |
* Modified version ([[http://download.bitcomet.com/tools/poedit/achive/poEdit1.4.2.zip|download]]) with the following improvements: | * Or the modified version ([[http://download.bitcomet.com/tools/poedit/achive/poEdit1.4.2.zip|download from here]]) with the following improvements: |
* Displays "Message Context" for each message, besides "Original String" and "Translation". | - Displays "Message Context" for each message, besides "Original String" and "Translation". |
* Sorts messages by "Message Context" by default. | - Sorts messages by "Message Context" by default. |
* Sorts messages by "Translation" if it opens a PO file while pressing Ctrl key. | - Sorts messages by "Translation" if it opens a PO file while pressing Ctrl key. |
* Supports update of all PO files in a project using POT file. | - Supports update of all PO files in a project using POT file. |
| |
**2)** Download the BitComet language file for a particular language from [[https://translations.launchpad.net/bitcomet|Launchpad]]:\\ a) Select a language; | |
| |
{{:trans_07.png|}} | |
| |
| |
b) Click the "Download" button;\\ {{:trans_10a.png|}} | |
| |
| |
c) Select "PO format" and click "Confirm Download" button;\\ {{:trans_11.png|}} | |
| |
| |
d) An e-mail will arrive (in a few minutes or up to one hour) with the address of the PO file that contains the strings used in BitComet's interface.\\ <html><br /></html> | |
| |
| |
**3)** Open the downloaded PO file in Poedit and translate the non-translated strings (and also verify the fuzzy strings, if they are correctly translated).\\ {{:trans_12.png|}} | |
| |
**4)** The translation may be verified by copying the bitcomet-xx.mo file in the "lang" subfolder of BitComet, and switching to that language with Tools>Language, from inside the software. After verification, the PO file can be uploaded to Launchpad. | **2)** Download the BitComet language file for a particular language from https://github.com/bitcometdev/translation |
| |
**5)** Go to the Launchpad page that contains the translated language, and upload the PO file:\\ | **3)** Open the downloaded PO file with Poedit and translate the non-translated strings (and also check the fuzzy strings, which may be not translated correctly).\\ {{:trans_12.png|}} |
a) Click the "Upload a file" button (near the leaderboard).\\ {{:trans_13.png|}} | |
| |
b) Browse to the local BitComet PO file and then click "Upload".\\ {{:trans_14.png|}} | **4)** The translation file can be tested by copying the bitcomet-xx.mo file in the "**lang**" subfolder of BitComet, and switching to that language from BitComet Tools menu -> Language. |
| |
The translation will be loaded inside Launchpad and will be included, automatically, in the next version of BitComet. | **5)** After verification, the PO file can be sent back to github with Pull-Request. |
| |
(Thanks to [[https://launchpad.net/~muntealb|Alexandru Bogdan Munteanu]] for this tutorial.) | The updated translation will be included in the next version of BitComet. |
| |
---- | ---- |
===Converting a PO file to MO file=== | ===Converting a PO file to MO file=== |
| |
Open the .po file with Poedit. Pressing 'Ctrl + s' will automatically generate the saving of the po and mo files. | Open the .po file with Poedit. Pressing 'Ctrl + S' to generate the .mo file. |
| |
===Convert MO file to PO file=== | ===Convert MO file to PO file=== |
| |
Use command "msgunfmt" to convert an MO file into a PO file. First, move the .mo file to Poedit's bin directory. Secondly, run the command prompt, open Poedit's bin directory and enter the command: " msgunfmt xxx.mo > xxx.po".\\ {{:trans_15.png|}} | Use **msgunfmt.exe** to convert an MO file into a PO file, which can be find in Poedit's bin directory. Just run the command prompt, and launch the command: "msgunfmt xxx.mo > xxx.po".\\ {{:trans_15.png|}} |
| |
---- | ---- |