Opened 14 years ago

Closed 14 years ago

Last modified 5 years ago

#9116 closed patch

Updated Translation Prototype

Reported by: SF/abevi Owned by: sev-
Priority: normal Component: GUI: Translations
Version: Keywords:
Cc: Game:


This is based on Jordi's work from patch #1739965.

I originally submitted this to devel, but I'm not sure if it was accepted as I got a message saying the content of the message exceeded 40K. Here's what I wrote:

"I was looking into Jordi's message translation patch ( and how it hadn't been updated for a while. I'm not really a scummvm pro, so this isn't 100%, but it's functional in-so-far as compiling.

I'm hoping someone can take it from here and actually get it working. I had a problem getting po2c running from the common/ directly as part of the build process, but if you run it manually, it works.

Basically, the scummvm.pot file can be created successfully, and you can generate localizations using msginit, but I haven't been able to actually utilize any of the .po files in the GUI (I updated the themes to include the necessary label/dropdown though so it's there for testing).

Hopefully someone can finish this off, as I'm not sure when to dump the po files as part of installation so that the TranslationManager can pick up and enumerate them."

This was built against the scummvm1-0 branch.

Ticket imported from: #2903830. Ticket imported from: patches/1221.

Attachments (2)

translations.patch (29.1 KB ) - added by SF/abevi 14 years ago.
translation-missing-files.tar.bz2 (7.7 KB ) - added by SF/abevi 14 years ago.
Missing from the patch

Download all attachments as: .zip

Change History (8)

by SF/abevi, 14 years ago

Attachment: translations.patch added


comment:1 by SF/abevi, 14 years ago

Ok, as requested on -devel, i'll keep the comments here for now (so that anyone who wants to help with this has the whole "story" :P)

Comments: * As per Jordi's feedback, removing the spaces in common/ and replacing them with a tab fixes the po2c problem


Here's what I'm having trouble with:

1) When you build multiple po's, the languages are available under Options->Misc->Language, but the <default> value isn't selected (by default), and changing the language doesn't "save" (so the next time you start scummvm it's reverted back to the default of no selection)

2) When I try to create a po (hungarian in this case), msgmerge bitches about "invalid multibyte sequence" whenever it tries to generate (from make)

That's the first 2 issues I'm having :P

comment:2 by sev-, 14 years ago

The files translation.cpp, translation.h, po/*, and tools/po2c are missing. Is this intended?

comment:3 by SF/abevi, 14 years ago

Sev ... sorry, forgot to add those when patching i guess ... adding now

by SF/abevi, 14 years ago

Missing from the patch

comment:4 by sev-, 14 years ago

Thanks. I used this as a basis for my work on GUI translation support which now is in SVN.

comment:5 by sev-, 14 years ago

Owner: set to sev-
Status: newclosed

comment:6 by digitall, 5 years ago

Component: GUI: Translations
Note: See TracTickets for help on using tickets.