Gnutella Forums  

Go Back   Gnutella Forums > Current Gnutella Client Forums > Phex (Cross-platform) > Development & Coding > Localizing Phex (translating)
Register FAQ The Twelve Commandments Members List Calendar Arcade Find the Best VPN Today's Posts

Localizing Phex (translating) Translating Phex into your language and getting in touch with other translators


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old July 15th, 2004
arne_bab's Avatar
Draketo, small dragon.
 
Join Date: May 31st, 2002
Location: Heidelberg, Germany
Posts: 1,881
arne_bab is a great assister to others; your light through the dark tunnel
Default How to localize Phex 2.0

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).
Attached Files
File Type: txt lang.txt (27.5 KB, 681 views)
__________________

-> put this banner into your own signature! <-
--
Erst im Spiel lebt der Mensch.
Nur ludantaj homoj vivas.
GnuFU.net - Gnutella For Users
Draketo.de - Shortstories, Poems, Music and strange Ideas.

Last edited by arne_bab; March 1st, 2007 at 06:11 AM.
Reply With Quote
  #2 (permalink)  
Old July 15th, 2004
RaaF's Avatar
Modding Member
 
Join Date: April 21st, 2001
Location: Netherlands
Posts: 1,002
RaaF is a great assister to others; your light through the dark tunnel
Default

Nice one Arne

I just Downloaded the file and I will have a closer look later.
At first glance it looks simple to do.
__________________
Het algemeen gnutella forum in Nederlands

Reply With Quote
  #3 (permalink)  
Old July 15th, 2004
RaaF's Avatar
Modding Member
 
Join Date: April 21st, 2001
Location: Netherlands
Posts: 1,002
RaaF is a great assister to others; your light through the dark tunnel
Question

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 ?
__________________
Het algemeen gnutella forum in Nederlands

Reply With Quote
  #4 (permalink)  
Old July 15th, 2004
arne_bab's Avatar
Draketo, small dragon.
 
Join Date: May 31st, 2002
Location: Heidelberg, Germany
Posts: 1,881
arne_bab is a great assister to others; your light through the dark tunnel
Default

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.
__________________

-> put this banner into your own signature! <-
--
Erst im Spiel lebt der Mensch.
Nur ludantaj homoj vivas.
GnuFU.net - Gnutella For Users
Draketo.de - Shortstories, Poems, Music and strange Ideas.
Reply With Quote
  #5 (permalink)  
Old July 15th, 2004
RaaF's Avatar
Modding Member
 
Join Date: April 21st, 2001
Location: Netherlands
Posts: 1,002
RaaF is a great assister to others; your light through the dark tunnel
Default

Arne
I followed your instructions but no-go
Attached Thumbnails
How to localize Phex 2.0-phex-lang.jpg  
__________________
Het algemeen gnutella forum in Nederlands

Reply With Quote
  #6 (permalink)  
Old July 16th, 2004
arne_bab's Avatar
Draketo, small dragon.
 
Join Date: May 31st, 2002
Location: Heidelberg, Germany
Posts: 1,881
arne_bab is a great assister to others; your light through the dark tunnel
Default

Seems we have to ask the developer about this.

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

-> put this banner into your own signature! <-
--
Erst im Spiel lebt der Mensch.
Nur ludantaj homoj vivas.
GnuFU.net - Gnutella For Users
Draketo.de - Shortstories, Poems, Music and strange Ideas.
Reply With Quote
  #7 (permalink)  
Old July 16th, 2004
Phex Developer
 
Join Date: May 9th, 2001
Location: Stuttgart, Germany
Posts: 988
GregorK is flying high
Default

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
__________________
Reply With Quote
  #8 (permalink)  
Old July 16th, 2004
Phex Developer
 
Join Date: May 9th, 2001
Location: Stuttgart, Germany
Posts: 988
GregorK is flying high
Default

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.
__________________
Reply With Quote
  #9 (permalink)  
Old July 16th, 2004
RaaF's Avatar
Modding Member
 
Join Date: April 21st, 2001
Location: Netherlands
Posts: 1,002
RaaF is a great assister to others; your light through the dark tunnel
Default

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 ?
__________________
Het algemeen gnutella forum in Nederlands

Reply With Quote
  #10 (permalink)  
Old July 16th, 2004
Phex Developer
 
Join Date: May 9th, 2001
Location: Stuttgart, Germany
Posts: 988
GregorK is flying high
Default

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.
__________________

Last edited by GregorK; July 16th, 2004 at 06:11 AM.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[BUG] Phex 2.6.4.89 - phex upload stuck with "initializing" uploads pawelsz General Discussion 1 January 31st, 2006 03:34 PM
No downloads from phex to phex Only A Hobo General Discussion 3 October 21st, 2005 03:20 AM
[BUG] Phex 2.6.4.89 - phex window graphic corruption pawelsz General Discussion 4 September 18th, 2005 07:38 PM
Need example of using phex. reise General Gnutella Development Discussion 9 November 24th, 2003 10:34 AM
Decentralized Host-Cache - Only PHEX has one - So Promote PHEX Unregistered General Discussion 0 January 31st, 2002 06:29 AM


All times are GMT -7. The time now is 08:29 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.