RPCS3 Forums

Full Version: Translating to different languages?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

lolman555PL

Hi! I'd like to help the development of rpcs3, but i don't know much about coding(just some basic C++, Java and VB), and i've noticed that there are different languages to choose, and my language(Polish) is not translated yet. So i was thinking if i could help translating it. I started looking in the source code for files related to translating, but i couldn't find anything. So, my question is: is there anything i could translate? If yes, what are the files? Thanks in advance Smile

flashmozzg

Probably not. 1) A lot of stuff changes frequently and not stable, so that would mean invalidating translation a lot. 2) AFAIK GUI stuff and other translatable strings are not marked properly so you couldn't easily start translating even if you wanted.

tambre

Also another reason to not translate currently is, that we are most likely going to switch GUI backends in the near future (from wxWidgets to Qt, but not set in stone, yet).
AFAIK this setting wasn't meant to change GUI language. It's "game" setting which may allow the game to apply different language or regional settings.

lolman555PL

Ok, thanks for the help Smile

vlj

If you want to translate strings you may need to mark them sometime as translatable.
This mean that every in-line string (ie one between " I source code) need to be wrapped with _(...) macro.
For instance " draw count %d" in source code need to be transformed into _("draw count %d&quotWink
It's already done in some place but some strings in gui weren't properly marked last time I looked. And I think no error message are marked.

Then you need to run some gnu tool that will generate translation file that you can fill to get translated strings. You can open a project on Rosetta too if you want to make collaborative translation.

flashmozzg

(09-01-2015, 05:57 PM)vlj Wrote: [ -> ]If you want to translate strings you may need to mark them sometime as translatable.
This mean that every in-line string (ie one between " I source code) need to be wrapped with _(...) macro.
For instance " draw count %d" in source code need to be transformed into _("draw count %d&quotWink
It's already done in some place but some strings in gui weren't properly marked last time I looked. And I think no error message are marked.

Then you need to run some gnu tool that will generate translation file that you can fill to get translated strings. You can open a project on Rosetta too if you want to make collaborative translation.
Well, one problem is - it's only applicable for GUI. Since the rest of rpcs3 is tried to keep as much separated from wx/other frameworks as possible.