Advertising (This ad goes away for registered users. You can Login or Register)

Localizer™: Translate your XMB![Now GogleCode!][6.60]

Submit your entry for the competition here.
check http://wololo.net/genesis for detailed rules
Locked
Draan
Posts: 72
Joined: Tue Dec 21, 2010 9:49 pm

Localizer™: Translate your XMB![Now GogleCode!][6.60]

Post by Draan » Tue Feb 15, 2011 7:35 pm

Image
First public relase!


Edit: Sadly, I've already found uploads with authors removed from strings.txt. That's why README, strings_eng.txt and strings_pl.txt contains now additional lines. Nothing has changed in the plugin itself.

Is your language officially supported by PSP?
If not, and you really wanted to have XMB translated, you had to choose: themes from the community, or rare, translated themes (or just orginal RCOs with replaced texts) from your local PSP forums, etc.

You're not alone!
I had the same problem. In fact I saw some translated community themes (like "ClearXMB"), but the themes I really wanted to have weren't.
That's the reason why I've created this plugin.

What my stuff does is really simple:
Paxor3 allows you to build "language pack", with all strings you want to replace from XMB.
Plugin uses it then to replace strings on-the-fly in memory, without touching RCO files or .ctf themes at all.

That means you can use theoretically EVERY theme you want, switch between them (as cxmb allows you to), download new, remove old... and XMB will always be translated!

For proof, here are some screenshots. First one is always from orginal PSP's theme, the second is from Flower.
The Polish text database was done especially for my plugin by krzychuuu and Erokesha. I want to say thank you guyz! :)
Translating ~700kb of English text is not a really easy task...

Image
Image

Image
Image


Why the competition logo is not in the archive? Because I've included it in XMB. Check "About PSP" >:D

Let's look how we can build that "language pack".
[spoiler]The whole idea is to put strings.txt file where you have Paxor.exe, and run the program. If strings.txt is correct (if not, Paxor will tell you on which line it found the error, and will try to describe it), it will create a new file, localizer.dat. You need to copy it to ms0:/seplugins/, or ef0:/seplugins/ if you have GO!

Let's look now how strings.txt is formatted.
First thing, it must be "UCS-2 Little Endian" (I suggest using Notepad++ to edit stuff).

Second, golden rule:
Paxor is a little finicky on data it wants. Before trying to "compile" the database, open your strings.txt in Notepad. If everything is IN ONE LINE, that means it won't work! You must open your file in WordPad, and save it. That will fix the file, and Paxor won't hang on load.

The contents of the file looks like that:

Code: Select all

#comment
@rconame
'label' = 'string'
#again comment
'label2' = 'string2'
...
Quite simple, eh?

Just like in example above, every entry must be in a new line. RCO name must start with @, then go entries for that RCO in new lines, then next @rco_name, etc etc.

Don't forget about a newline on the end of your file!! Paxor doesn't like files without it too.

You can comment whole line by #.


label is...a label. It's a "name", if you dump an RCO with RCOMage and look into xml with texts from RCO:

Code: Select all

 
<?xml version="1.0" encoding="utf-8"?>

<!-- This XML was generated by Rcomage v1.1.1 -->

<TextLang>
	
<Text name="msgshare_pspname">Nickname</Text>
	
<Text name="msgshare_opt_del">Delete</Text>
...
string is the actual string which will show instead of orginal one.

WARRING! In prepared strings.txt, which you can use to make the translation, you'll meet bushes in english strings. DON'T REMOVE THEM! They're characters used by Sony as images of PSP's buttons (triangle, start, select, etc), or other symbols.
Also don't remove "%1", "%2", "%3", etc. because XMB replaces that stuff with eg. battery life, your PS3's name when you bind your PSP to it, etc.
Something like sprintf function :)

Example RCO entry:

Code: Select all

#it's auth_plugin, yea!
@auth_plugin
'msgshare_error_internal' = 'An internal error has occurred.'
'msgauth_pswd_enter' = 'Enter your 4-digit password.'
'msgauth_wrong_pswd' = 'The password is incorrect.'
Whole string must be in one line, so if you need to place new line somewhere, use "\n". This is the only supported code, though.

But Localizer has one more feature!

There is a special "RCO entry", which is just settings for the plugin. It actually have only one setting which you can set.

Code: Select all

@localizer_internal
'custom_site' = 'http://wololo.net/talk/viewforum.php?f=25'
With "custom_site" you can replace link to "Online Manual" in XMB. Usefull when you want to host translated manuals somewhere.

That's all for now, I hope you enjoyed reading.[/spoiler]

In the archive you have:
-Paxor
-localizer
-english strings, so you can focus on translating instead of hunting for complete database
-polish translated strings. I doubt anyone here is Polish, so treat that as "demo" what you can do with the plugin
-sample small strings which I have used to do the first screenshot in the thread :)

It works on: 5.00 cfw, 5.03 cfw, 5.50 cfw, 6.20 hen/cfw, 6.35, and 6.39.

Updated!

Download is here:
http://code.google.com/p/localizer-plug ... loads/list

Sources are here:
http://code.google.com/p/localizer-plugin (added GPL license etc., just legal stuff)

Something doesn't want to translate? Bugs in database? Feel free to report it!
Advertising
Last edited by Draan on Sat Sep 10, 2011 10:24 am, edited 18 times in total.

5h4d0w
Posts: 103
Joined: Mon Feb 14, 2011 5:58 pm
Location: SPAAAAAAAAACE!

Re: Localizer™: Translate your XMB!

Post by 5h4d0w » Tue Feb 15, 2011 8:05 pm

Wow, very nice.
Advertising
Silver PSP 3001 6.20PRO-B5 Permanent + 32GB MS (2x 16GB MicroSD + Photofast CR-5400)

My PSP GENESIS Entry: SePlugins Manager

TiPi
Retired Mod
Posts: 740
Joined: Tue Sep 28, 2010 5:32 am
Contact:

Re: Localizer™: Translate your XMB!

Post by TiPi » Tue Feb 15, 2011 8:30 pm

Nice work, Draan. :D
Problems or questions? Feel free to contact me.
-My Blog-

jaja2u
Posts: 262
Joined: Mon Sep 27, 2010 7:52 pm

Re: Localizer™: Translate your XMB!

Post by jaja2u » Tue Feb 15, 2011 9:13 pm

Very unique! I like it :mrgreen:

But if I could make a suggestion, perhaps a way to do the translations in a more noob friendly way would help. Like a basic translator application.

Just a suggestion, because I was a little confused by the process. But truly nice work!
Thank you Total_Noob :mrgreen:

Lawliet156
Posts: 156
Joined: Tue Jan 04, 2011 2:53 pm
Location: Fort Worth, Texas

Re: Localizer™: Translate your XMB!

Post by Lawliet156 » Tue Feb 15, 2011 10:30 pm

Took me a little while to customize my XMB, but it was worth it, nice job. Keep up the good work.
Image

npt
VIP
Posts: 154
Joined: Wed Oct 27, 2010 3:32 pm

Re: Localizer™: Translate your XMB!

Post by npt » Tue Feb 15, 2011 11:01 pm

Very cool Draan! I think this is just awesome!

Regards,

npt
:ugeek:

djmati11
Posts: 278
Joined: Sun Dec 26, 2010 3:31 pm
Location: Poland :)

Re: Localizer™: Translate your XMB!

Post by djmati11 » Wed Feb 16, 2011 6:22 am

Screen in Polish :)

Thanks, can you give me source codes on PM?
PSP 3004 3g | PRO CFW 6.20 Perma patch
PS Vita PCH-1104, Datacode 2A | Mad Blocker Alpha: ROTF TN-B 1.81

kidz axe
Posts: 353
Joined: Sun Oct 03, 2010 3:48 pm
Location: http://kidz-axe.co.cc/forum/
Contact:

Re: Localizer™: Translate your XMB!

Post by kidz axe » Wed Feb 16, 2011 6:39 am

VERY VERY NICE,
love it.
:o
:)

wololo
Site Admin
Posts: 3614
Joined: Wed Oct 15, 2008 12:42 am
Location: Japan

Re: Localizer™: Translate your XMB!

Post by wololo » Wed Feb 16, 2011 12:34 pm

Excellent!
Entry accepted, welcome to the competition :)
If you need US PSN Codes, this technique is what I recommend.

Looking for guest bloggers and news hunters here at wololo.net, PM me!

billys981
Posts: 161
Joined: Sat Feb 05, 2011 9:55 am

Re: Localizer™: Translate your XMB!

Post by billys981 » Wed Feb 16, 2011 1:03 pm

Awesome!You are the winner!(i think)

Locked

Return to “Submissions”