PCSX2 Documentation/Using Poedit: Difference between revisions

From PCSX2 Wiki
Jump to navigation Jump to search
No edit summary
(Update "Submitting Your Translated Work" section to use GitHub link instead of the now defunct googlecode hosting)
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{DocTabs|Section=2}}
''This wiki page is a work-in-progress. Information presented here may be partial or incomplete.''
This wiki page is a work-in-progress. Information presented here may be partial or incomplete.


When working with PCSX2 translations, Poedit is not only recommended, but is nearly a necessity. You will need to reference the PCSX2 source code frequently if you want to make accurate translations, and Poedit is the only PO editor I could find that has such a feature built-in (and actually works as expected).
When working with PCSX2 translations, Poedit is not only recommended, but is nearly a necessity. You will need to reference the PCSX2 source code frequently if you want to make accurate translations, and Poedit is the only PO editor I could find that has such a feature built-in (and actually works as expected).
Line 6: Line 5:
Important!! Make sure that you check out the right version/revision of PCSX2 that corresponds to the PO file you've downloaded.
Important!! Make sure that you check out the right version/revision of PCSX2 that corresponds to the PO file you've downloaded.


Step 1: Download and Install Poedit
==Download and Install Poedit==
http://www.poedit.net/download.php
http://www.poedit.net/download.php


Step 2: Download the latest POT files provided by us.
==Download the latest POT files provided by us.==
The latest stable release POT file pack can be found here: https://code.google.com/p/pcsx2/downloads/list
Our GIT repository stores the POT files, and its latest stable release (1.4.0) can be found in: https://github.com/PCSX2/pcsx2/tree/1.4.x/locales/templates


(look for the one labeled PCSX2_POT with some extra version information)
You may also get the latest templates for the active master branch of PCSX2 in https://github.com/PCSX2/pcsx2/tree/master/locales/templates. Note that working from the POTs from master branch is not recommended, except in cases where it has been quite a while since the latest stable or beta releases, or when the PCSX2 developers have entered Release Candidate stages for an upcoming stable release. In most other cases you will want to check out a stable release branch instead, and use the templates from that.


You may also download the POT files individually from our SVN server. POT files are housed in the /locales/templates/ folder. The latest templates for the active trunk/devel branch of PCSX2 can be found here: https://pcsx2.googlecode.com/svn/trunk/locales/templates/. Note that working from the trunk POTs is not recommended, except in cases where it has been quite a while since the latest stable or beta releases, or when the PCSX2 developers have entered Release Candidate stages for an upcoming stable release. In most other cases you will want to check out a stable release branch instead, and use the templates from that.
==Check out PCSX2 sources==
 
As of the last update to this wiki, the latest POT file pack is the 0.9.8 release translation POT.
 
Step 3: Check out PCSX2 sources
Make sure to check out the exact revision indicated by the POT archive! This is important since the source code associations listed in the POT file may not match newer revisions of PCSX2, making it difficult to resolve iconized identifiers. The PCSX2 revision can be gleaned from the comment section at the top of the POT files included in the archive.
Make sure to check out the exact revision indicated by the POT archive! This is important since the source code associations listed in the POT file may not match newer revisions of PCSX2, making it difficult to resolve iconized identifiers. The PCSX2 revision can be gleaned from the comment section at the top of the POT files included in the archive.


Note that Poedit does have the ability to update the translation table to match a newer revision of PCSX2. As a translator, you are welcome to update the translation table and get a head start on translating for an upcoming version of PCSX2. However, translations for public/stable releases of PCSX2 should be based on the POT files provided by the PCSX2 Team.
Note that Poedit does have the ability to update the translation table to match a newer revision of PCSX2. As a translator, you are welcome to update the translation table and get a head start on translating for an upcoming version of PCSX2. However, translations for public/stable releases of PCSX2 should be based on the POT files provided by the PCSX2 Team.


Step 4: Configure Poedit
==Configure Poedit==
Go to File->New Catalog from POT file..., and select one of the POT files provided in the package you downloaded in Step 2. You will see the following dialog:
Go to File->New Catalog from POT file..., and select one of the POT files provided in the package you downloaded in Step 2. You will see the following dialog:


Line 34: Line 29:
Make sure that the filename matches the original filename in the archive (see above for a list of PO files that PCSX2 looks for). Poedit will then create both PO and MO files for you. The PO file is the one you will later submit to the PCSX2 team.
Make sure that the filename matches the original filename in the archive (see above for a list of PO files that PCSX2 looks for). Poedit will then create both PO and MO files for you. The PO file is the one you will later submit to the PCSX2 team.


Step 5: Testing your translation!
==Testing your translation!==
Poedit will have saved a MO file in your PCSX2 Langs folder in Step 4, and if the MO file is in the right place and has the right filename, PCSX2 will automatically detect it and offer your language as an option. Run PCSX2 and change the current language to the one you've just created. You may have to restart PCSX2 for the new changes to take effect in all areas of the program.
Poedit will have saved a MO file in your PCSX2 Langs folder in Step 4, and if the MO file is in the right place and has the right filename, PCSX2 will automatically detect it and offer your language as an option. Run PCSX2 and change the current language to the one you've just created. You may have to restart PCSX2 for the new changes to take effect in all areas of the program.


Submitting Your Translated Work
==Submitting Your Translated Work==
Before starting a translation, please apply for it in this thread (if there has been no other applicant before you): http://forums.pcsx2.net/Thread-Program-and-Guide-translation-applications
Before starting a translation, please apply for it in this thread (if there has been no other applicant before you): http://forums.pcsx2.net/Thread-Program-and-Guide-translation-applications


When you're done, you will be given the rights to post in the specific forum for the language you translated into in our board. There you can attach either the actual PO file archive you have created, or a patchfile that can be applied against the current svn copy of the translation.
When you're done, you will be given the rights to post in the specific forum for the language you translated into in our board. There you can attach either the actual PO file archive you have created, or a patchfile that can be applied against the current svn copy of the translation.


For those of you who are familiar and comfortable with Subversion (SVN): The PCSX2 Team hosts all available translations from our googlecode repository. Available translations and their submission history can be viewed online at https://pcsx2.googlecode.com/svn/trunk/locales/. You can also use an Svn tool such as TortoiseSvn to perform more detailed commit history analysis.
For those of you who are familiar and comfortable with Git, The PCSX2 Team hosts all available translations inside our Git repository. Available translations and their submission history can be viewed online at https://github.com/PCSX2/pcsx2/tree/master/locales/.  


Translations are branched according to the releases of PCSX2 that they conform to.
Translations are branched according to the releases of PCSX2 that they conform to.


{{PCSX2 Main Documentation Navbox}}
{{PCSX2 Main Documentation Navbox}}

Latest revision as of 00:07, 9 October 2018

This wiki page is a work-in-progress. Information presented here may be partial or incomplete.

When working with PCSX2 translations, Poedit is not only recommended, but is nearly a necessity. You will need to reference the PCSX2 source code frequently if you want to make accurate translations, and Poedit is the only PO editor I could find that has such a feature built-in (and actually works as expected).

Important!! Make sure that you check out the right version/revision of PCSX2 that corresponds to the PO file you've downloaded.

Download and Install Poedit

http://www.poedit.net/download.php

Download the latest POT files provided by us.

Our GIT repository stores the POT files, and its latest stable release (1.4.0) can be found in: https://github.com/PCSX2/pcsx2/tree/1.4.x/locales/templates

You may also get the latest templates for the active master branch of PCSX2 in https://github.com/PCSX2/pcsx2/tree/master/locales/templates. Note that working from the POTs from master branch is not recommended, except in cases where it has been quite a while since the latest stable or beta releases, or when the PCSX2 developers have entered Release Candidate stages for an upcoming stable release. In most other cases you will want to check out a stable release branch instead, and use the templates from that.

Check out PCSX2 sources

Make sure to check out the exact revision indicated by the POT archive! This is important since the source code associations listed in the POT file may not match newer revisions of PCSX2, making it difficult to resolve iconized identifiers. The PCSX2 revision can be gleaned from the comment section at the top of the POT files included in the archive.

Note that Poedit does have the ability to update the translation table to match a newer revision of PCSX2. As a translator, you are welcome to update the translation table and get a head start on translating for an upcoming version of PCSX2. However, translations for public/stable releases of PCSX2 should be based on the POT files provided by the PCSX2 Team.

Configure Poedit

Go to File->New Catalog from POT file..., and select one of the POT files provided in the package you downloaded in Step 2. You will see the following dialog:

The project name and version info will be provided by the POT files. Do not modify it! All other blanks can be filled out accordingly, as indicated above. For the Language option, be sure to select the name of the language you're translating to.

Supported languages are hard-coded into wxWidgets, and PCSX2 cannot support anything else at this time. (so no Klingon... yet!) When you click OK you will be prompted for a save location for your new .PO file. Save it into your installed PCSX2 location, under Langs/canonical_code/ (create the Langs folder if it does not already exist). You can determine your language's canonical code using our SupportedLanguagesChart.

Make sure that the filename matches the original filename in the archive (see above for a list of PO files that PCSX2 looks for). Poedit will then create both PO and MO files for you. The PO file is the one you will later submit to the PCSX2 team.

Testing your translation!

Poedit will have saved a MO file in your PCSX2 Langs folder in Step 4, and if the MO file is in the right place and has the right filename, PCSX2 will automatically detect it and offer your language as an option. Run PCSX2 and change the current language to the one you've just created. You may have to restart PCSX2 for the new changes to take effect in all areas of the program.

Submitting Your Translated Work

Before starting a translation, please apply for it in this thread (if there has been no other applicant before you): http://forums.pcsx2.net/Thread-Program-and-Guide-translation-applications

When you're done, you will be given the rights to post in the specific forum for the language you translated into in our board. There you can attach either the actual PO file archive you have created, or a patchfile that can be applied against the current svn copy of the translation.

For those of you who are familiar and comfortable with Git, The PCSX2 Team hosts all available translations inside our Git repository. Available translations and their submission history can be viewed online at https://github.com/PCSX2/pcsx2/tree/master/locales/.

Translations are branched according to the releases of PCSX2 that they conform to.