Gnutella Forums

Gnutella Forums (https://www.gnutellaforums.com/)
-   Localizing Phex (translating) (https://www.gnutellaforums.com/localizing-phex-translating/)
-   -   How to localize Phex 2.0 (https://www.gnutellaforums.com/localizing-phex-translating/26759-how-localize-phex-2-0-a.html)

arne_bab July 15th, 2004 04:46 AM

How to localize Phex 2.0
 
1 Attachment(s)
There is a language file, which can be translated relatively simply.

It needs to be in the folder $phex/ext
$Phex is the folder with the jars).

There should then also be a file named language.list. That file simply contains a list of languages in the format [lang]_[country]. For example: en_US or de_DE.

You need to add dutch (I don't know the short form for it).

You also need to rename the lang.properties file.
For the german file it would be lang_de_DE.properties.
For dutch it is Lang_nl_NL.properties.

I hope this all is correct...

I attach the lang.properties file (you need to rename it from lang.txt, the forum won't take .properties files).

RaaF July 15th, 2004 05:32 AM

Nice one Arne

I just Downloaded the file and I will have a closer look later.
At first glance it looks simple to do.

RaaF July 15th, 2004 09:05 AM

Hello Arne,

I use Windows (2K) and in my Phex folder I see no Language files.
I even searched in the .jar files but nothing.
In the programme, under options there is also no choise for another language just US english.
Perhaps the Windows installer does not install the language option ?

arne_bab July 15th, 2004 01:29 PM

You need to add a folder named "lang" in the same folder as the jar-files. Then add the folder "resources" inside that folder and put the files there.

RaaF July 15th, 2004 03:42 PM

1 Attachment(s)
Arne
I followed your instructions but no-go

arne_bab July 15th, 2004 11:52 PM

Seems we have to ask the developer about this.

Did you add nl_NL in a new line to the language.list file?

GregorK July 16th, 2004 12:47 AM

Arne's description was correct except for the folder name. The files should be just in the $PHEX/lang folder.

I repeat the steps in a short summary again:
  • Create a file $PHEX/lang/language.list and add a single line nl_NL
    This file is used to build the language list in the UI.
  • Create a file $PHEX/lang/Lang_nl_NL.properties or $PHEX/lang/Lang_nl.properties and translate the text in it.
  • The order Phex uses to search for translations is nl_NL, then nl and then it will fallback to use the default english language file. The first found translation will be used.

Gregor

GregorK July 16th, 2004 02:54 AM

Hmpf.. Just found a tiny bug... your translated file will not be displayed even if you have the correct configuration.
I will release a fix very soon.

RaaF July 16th, 2004 04:17 AM

OK thanks for your info Gregor, I hope you can easely fix it.

BTW ,
This is what's in the lang.list file:

en_US
nl_NL

Should there be a single line for every language, or just one for NL ?

GregorK July 16th, 2004 04:54 AM

Your lang.list should be named language.list

There should be a single line for every language but you dont need to specify languages, which are already by default inside Phex, like en_US.

So your language.list needs just one single line:
nl_NL

It was a easy fix, just a missing "/". As soon as I have time I will compile and publish the release.


EDIT: To get around hassle of creating a new release for this little fix, everybody who is interested in the localization fix can contact me by mail or pm to get it.


All times are GMT -7. The time now is 04:57 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 ©2011, Crawlability, Inc.

Copyright © 2020 Gnutella Forums.
All Rights Reserved.