Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Translating PPSSPP
08-18-2013, 06:50 PM (This post was last modified: 08-18-2013 07:04 PM by Apology11.)
Post: #1
Translating PPSSPP
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
Find all posts by this user
Quote this message in a reply
08-18-2013, 07:04 PM (This post was last modified: 08-18-2013 07:16 PM by TheDax.)
Post: #2
RE: Translating PPSSPP
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.
Find all posts by this user
Quote this message in a reply
08-18-2013, 07:20 PM
Post: #3
RE: Translating PPSSPP
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 ?
Find all posts by this user
Quote this message in a reply
08-18-2013, 07:38 PM (This post was last modified: 08-18-2013 08:30 PM by TheDax.)
Post: #4
RE: Translating PPSSPP
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.
Find all posts by this user
Quote this message in a reply
08-19-2013, 04:35 PM
Post: #5
RE: Translating PPSSPP
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.
Find all posts by this user
Quote this message in a reply
08-19-2013, 04:49 PM
Post: #6
RE: Translating PPSSPP
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.
Find all posts by this user
Quote this message in a reply
08-19-2013, 05:21 PM
Post: #7
RE: Translating PPSSPP
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!
Visit this user's website Find all posts by this user
Quote this message in a reply
08-19-2013, 05:23 PM
Post: #8
RE: Translating PPSSPP
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.
Find all posts by this user
Quote this message in a reply
08-19-2013, 07:48 PM
Post: #9
RE: Translating PPSSPP
(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.
Find all posts by this user
Quote this message in a reply
08-19-2013, 07:58 PM
Post: #10
RE: Translating PPSSPP
(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
Find all posts by this user
Quote this message in a reply
08-19-2013, 08:28 PM
Post: #11
RE: Translating PPSSPP
I' m alao fine with that, but searching the code or various other languagefiles doesnt seem the right way to me.
Find all posts by this user
Quote this message in a reply
08-19-2013, 08:32 PM
Post: #12
RE: Translating PPSSPP
(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
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump: