dborth / snes9xgx

Snes9x GX - Port of Snes9x for Wii
http://wiibrew.org/wiki/Snes9x_GX
Other
432 stars 63 forks source link

Create Swedish translation #1080

Closed IsakTheHacker closed 5 months ago

dborth commented 5 months ago

This won't work just on its own - some minor code changes need to be made to add Swedish as an option.

IsakTheHacker commented 5 months ago

Okay, I understand. Can you tell me what I need to add in the source code and in which file? I think I will need to add "Swedish" as a translatable string in all language files too, right?

IsakTheHacker commented 5 months ago

One more question, are the language files for your other emulator (fceugx) exactly the same? They seem very similar

dborth commented 5 months ago

I can make the changes to add Swedish.

Both vbagx and fceugx share the same project structure and so what a number of the other translators have done is create one translation file to be shared by all three, since additional translation strings that aren't used are harmless. A lot of the language used is the same in all 3 as possible so it's mostly only emulator-specific translations that differ.

dborth commented 5 months ago

Try the pre-release and see if everything works!

https://github.com/dborth/snes9xgx/releases

IsakTheHacker commented 5 months ago

Great! I have opened pull requests in vbagx and fceugx now to add Swedish translations. The file that I initially based my translations on (fr.lang) already included nes and gameboy advance translations. I can't really test that everything works at the moment though, but all translations should be correct. Is there any way to assert at compile time that all language resources are present?

dborth commented 5 months ago

Thanks for the contributions! No there's no way to know that all strings are accounted for except by reviewing the source code and comparing to the translation file.