Hunsu / ntorrent

Automatically exported from code.google.com/p/ntorrent
GNU General Public License v3.0
0 stars 1 forks source link

Language Problem #133

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hello there,

I just want to know if it's possible to select the language used in nTorrent 
other than the system locale settings. (i.e. my system is zh_CN, and I want to 
use en_US anyway in nTorret.)

It would better if a document for settings is available.

Thanks!

Original issue reported on code.google.com by angu...@gmail.com on 22 Oct 2010 at 12:09

GoogleCodeExporter commented 9 years ago
for now the only thing you can do is add this parameter to the execution of 
nTorrent.

-Duser.language=en

if you are running linux/mac you can just edit the file nTorrent.sh to 
something like this.

#!/bin/bash
BASE_PATH="`dirname $0`"
NTORRENT_CONFIG="$HOME/.ntorrent/ntorrent.properties"

cd $BASE_PATH

if [ -f $NTORRENT_CONFIG ]
then
  java -Duser.language=en -Djpf.boot.config=$NTORRENT_CONFIG -jar lib/jpf-boot.jar "$@"
else
 java -Duser.language=en -jar lib/jpf-boot.jar "$@"
fi

if you are running windows, its a bit more hassle. you could either build 
nTorrent from source and change launch4j settings (read launch4j documentation 
on how to add jvm properties/parameters) or just create your own shortcut which 
executes "java -Duser.language=en -jar lib/jpf-boot.jar" from the nTorrent 
directory.

in the future, this will be implemented as a setting from within nTorrent.

I hope this helps!

Original comment by kei...@gmail.com on 25 Oct 2010 at 9:11

GoogleCodeExporter commented 9 years ago
alternatively you can just delete the zh_CN language file. (as en should be 
default)

Original comment by kei...@gmail.com on 25 Oct 2010 at 9:26

GoogleCodeExporter commented 9 years ago
Thanks I think I'd take the 2nd solution.

One further question:
Is it possible to translate also the "Plugin" and "Skins" menu, i.e. in the 
zh_CN settings? Idon't quite like the half English half Chinese menu (as in the 
attached snapshot).

Original comment by angu...@gmail.com on 28 Oct 2010 at 12:19

Attachments:

GoogleCodeExporter commented 9 years ago
will do.

Original comment by kei...@gmail.com on 29 Oct 2010 at 6:37