change language po

Asked by Barlos

How can I change Task Coach's language mo file?

I edit mine and put into TaskCoach\locale\country_code\LC_MESSAGES\wxstd.mo

Restart Taskcoach, but, nothing happened.

Can anyone help?

Best Regards
Paul Lee

Question information

Language:
English Edit question
Status:
Solved
For:
Task Coach Edit question
Assignee:
No assignee Edit question
Solved by:
Frank Niessink
Solved:
Last query:
Last reply:
Revision history for this message
Jérôme Laheurte (fraca7) said :
#1

Task Coach does not actually use the .mo file; it uses a Python dictionnary generated at release time. So basically you can't unless you're using the source distribution. If you have a more complete translation for you language you may consider contributing (see the "Translations" link above.

Revision history for this message
Frank Niessink (frank-niessink) said :
#2

The wxstd.mo is the message file of wxWidgets/wxPython. It contains translations for standard texts such as OK and Cancel.

Like Jérôme said, we would very much like you to contribute your translation via Launchpad.

If you want to test your own translation and you have a .po file, you can start Task Coach with the --po command line option to let Task Coach use a specific .po file (not .mo), like this:

taskcoach --po=<pofile>

Revision history for this message
Barlos (barlos-lee) said :
#3

Dear Jerome & Frank,

I did some programs' translation before. It is better for a translator can upload his/her translated files (such as po, mo, or php) to the program and see the result right away. Because we have to make sure the translation is correct.

For example, One English vocabulary can have couple Chinese vocabularies to express the same meaning. And some words sound better than the other.

Best Regards
Paul Lee

Revision history for this message
Frank Niessink (frank-niessink) said :
#4

Hi Paul,

You are right about testing your translation. That's exactly why Task Coach has the --po command line option I mentioned. That command line option makes it possible to test your translation before uploading it to Launchpad.

Cheers, Frank

Revision history for this message
Barlos (barlos-lee) said :
#5

Dear Frank,

What should I put for the profile?

Best Regards
Paul Lee

Revision history for this message
Frank Niessink (frank-niessink) said :
#6

Hi Paul,

I don't understand your question. What do you mean with "profile"?

Thanks, Frank

Revision history for this message
Barlos (barlos-lee) said :
#7

Dear Frank,

As you mentioned at the 2nd post.
taskcoach --po=<pofile>

What should I put for <profile>.

Best Regards

Revision history for this message
Best Frank Niessink (frank-niessink) said :
#8

Ah, instead of <pofile> (not profile) you enter the filename of the .po file you want to test. If the .po file is called translation.po you would type something like this:

C:\Program Files\TaskCoach\taskcoach.exe --po="C:\Documents and Settings\Paul\My documents\translation.po"

Of course, this assumes you are on Windows.

Revision history for this message
Barlos (barlos-lee) said :
#9

Thankx Frank, it worked.

Sincerely,
Paul Lee