Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Translating PPSSPP
#1
I just wanted to translate PPSSPP with the new strings for the new UI.
And I realised that some strings are not accepted dependign on where they are located in the .ini file.

For example:

I wanted to add a translation for "enable cheats" what I did was
adding this line "Enable Cheats = Cheats aktivieren" under "[System]" and also tried it under "[MainMenu]" for example:

Code:
[MainMenu] Enable Cheats = Cheats aktivieren


but when I load up this language file it still says "enable cheats".


Now when I add "Enable Cheats = Cheats aktivieren" under "[Graphics]":

Code:
[Graphics] Enable Cheats = Cheats aktivieren


Then it works.

Can anybody expain this behaviour to me?



---------------------Edit----------------------------

I also found out that when deleting all language files and Saving the language file in Developer tools menu you will only get this:
Code:
[Audio] [Developer] Enable Logging = Enable Logging Load language ini = Load language ini Run CPU Tests = Run CPU Tests Save language ini = Save language ini [General] Back = Back Change Nickname = Change Nickname General = General System Information = System Information [Graphics] Developer Tools = Developer Tools Enable Cheats = Enable Cheats Enable Compatibility Server Reports = Enable Compatibility Server Reports Screenshots as PNG = Screenshots as PNG Software Rendering = Software Rendering (experimental) System Language = System Language [MainMenu] Credits = Credits Exit = Exit Game Settings = Game Settings Games = Games Homebrew & Demos = Homebrew & Demos How to get games = How to get games Load = Load... Recent = Recent Settings = Settings Support PPSSPP = Support PPSSPP [PSPCredits] created = Created by license = Free Software under GPL 2.0
Reply
#2
It's because Henrik made a typo in the code:

Code:
#ifndef ANDROID // Need to move the cheat config dir somewhere where it can be read/written on android list->Add(new CheckBox(&g_Config.bEnableCheats, gs->T("Enable Cheats"))); #endif

gs->T is for the graphics section, heh..

Should be fixed now.
4GHz AMD 3900X, 32GB DDR4 RAM, 6GB Nvidia RTX 2060, Asus Crosshair 7 Hero (Wifi), Linux
How to ask useful questions: https://web.archive.org/web/20110214010944/http://support.microsoft.com/kb/555375
I'm not Dark_Alex, nor do I claim to be. Our nicknames are merely coincidence.
Reply
#3
I will check again when I'm back on my pc.
But why do the strings from the game settings section don't get saved ?
Reply
#4
Game settings stuff is under MainMenu for some reason.

en_US.ini on the latest lang should help.
4GHz AMD 3900X, 32GB DDR4 RAM, 6GB Nvidia RTX 2060, Asus Crosshair 7 Hero (Wifi), Linux
How to ask useful questions: https://web.archive.org/web/20110214010944/http://support.microsoft.com/kb/555375
I'm not Dark_Alex, nor do I claim to be. Our nicknames are merely coincidence.
Reply
#5
I searched the strings myself now, as not all were in the en_US.ini , but maybe we could make this clearer by addin categories depending on the menu (like "game settings","main settings" and "main menu"). For example now its very confusing, as
date format is in [graphics], but
day light saving time is in [system]

Also it would be a lot easier if every dev, who updates the strings adds the new strings at least in the en_US file so all other languages have a reference.
Reply
#6
The translation system needs a bit of an overhaul to keep a definitive list of strings to be translated. I'm hoping Henrik has a good idea for it since my initial idea wasn't received very well.

That said, I agree, it's a huge hassle having to sift through the source code to find new strings that need to be translated(I don't think Save language INI saves them all...).
4GHz AMD 3900X, 32GB DDR4 RAM, 6GB Nvidia RTX 2060, Asus Crosshair 7 Hero (Wifi), Linux
How to ask useful questions: https://web.archive.org/web/20110214010944/http://support.microsoft.com/kb/555375
I'm not Dark_Alex, nor do I claim to be. Our nicknames are merely coincidence.
Reply
#7
So I tried to catch them all, if you could deal with Russian you could check what you missed.

https://github.com/hrydgard/ppsspp-lang/.../ru_RU.ini
I'm Яussian matreshka
Deal with it!
Reply
#8
Sounds like en_US might need another update.
4GHz AMD 3900X, 32GB DDR4 RAM, 6GB Nvidia RTX 2060, Asus Crosshair 7 Hero (Wifi), Linux
How to ask useful questions: https://web.archive.org/web/20110214010944/http://support.microsoft.com/kb/555375
I'm not Dark_Alex, nor do I claim to be. Our nicknames are merely coincidence.
Reply
#9
(08-19-2013, 05:23 PM)daxtsu Wrote: Sounds like en_US might need another update.

Yeah thanks, but it´s not so much a problem with getting them, but a problem that how you have to get them. There should be a way to always write all translatable strings to every language file and if there is a translation already use it and if not just write the english translation there so the translators only need to replace the second part.



for example if you have this options:

"game, menu, settings"

write the following to every language file:

Code:
game = game menu = menu settings = settings

So everytime there is a new string everybody can see what needs to be translated.
Reply
#10
(08-19-2013, 07:48 PM)Apology11 Wrote:
(08-19-2013, 05:23 PM)daxtsu Wrote: Sounds like en_US might need another update.

Yeah thanks, but it´s not so much a problem with getting them, but a problem that how you have to get them. There should be a way to always write all translatable strings to every language file and if there is a translation already use it and if not just write the english translation there so the translators only need to replace the second part.



for example if you have this options:

"game, menu, settings"

write the following to every language file:

Code:
game = game menu = menu settings = settings

So everytime there is a new string everybody can see what needs to be translated.

I think this is better to write the new things only in the en_US.ini Undecided

This is more clear, we should keep the en_US.ini as an example Smile
♦ Intel Core i7-6700HQ | 16 GB RAM | NVIDIA GeForce GTX 960M | Debian Testing
♦ Intel Core i7-2630QM | 4 GB RAM | NVIDIA GeForce GT 540M | Debian Testing
♦ PSP-3004 | 6.60 PRO-C2
Reply
#11
I' m alao fine with that, but searching the code or various other languagefiles doesnt seem the right way to me.
Reply
#12
(08-19-2013, 08:28 PM)Apology11 Wrote: I' m alao fine with that, but searching the code or various other languagefiles doesnt seem the right way to me.

I think it's better to add the new entries to the en_US.ini and then everyone who wants to modify the other languages can go ahead Smile

It's easier for everyone Wink
♦ Intel Core i7-6700HQ | 16 GB RAM | NVIDIA GeForce GTX 960M | Debian Testing
♦ Intel Core i7-2630QM | 4 GB RAM | NVIDIA GeForce GT 540M | Debian Testing
♦ PSP-3004 | 6.60 PRO-C2
Reply


Forum Jump: