Issue 133 in ntorrent: Language Problem

0 views
Skip to first unread message

codesite...@google.com

unread,
Oct 22, 2010, 8:10:24 AM10/22/10
to ntorr...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect

New issue 133 by anguste: Language Problem
http://code.google.com/p/ntorrent/issues/detail?id=133

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!

codesite...@google.com

unread,
Oct 25, 2010, 5:11:08 AM10/25/10
to ntorr...@googlegroups.com
Updates:
Status: Invalid

Comment #1 on issue 133 by kei060: Language Problem
http://code.google.com/p/ntorrent/issues/detail?id=133

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!


codesite...@google.com

unread,
Oct 25, 2010, 5:27:14 AM10/25/10
to ntorr...@googlegroups.com

Comment #2 on issue 133 by kei060: Language Problem
http://code.google.com/p/ntorrent/issues/detail?id=133

alternatively you can just delete the zh_CN language file. (as en should be
default)

codesite...@google.com

unread,
Oct 28, 2010, 8:19:34 AM10/28/10
to ntorr...@googlegroups.com

Comment #3 on issue 133 by anguste: Language Problem
http://code.google.com/p/ntorrent/issues/detail?id=133

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

Attachments:
Capture.JPG 13.5 KB

codesite...@google.com

unread,
Oct 29, 2010, 2:38:39 PM10/29/10
to ntorr...@googlegroups.com
Updates:
Status: Accepted

Comment #4 on issue 133 by kei060: Language Problem
http://code.google.com/p/ntorrent/issues/detail?id=133

will do.

Reply all
Reply to author
Forward
0 new messages