As Phil said, Turkish is not in the "User Interface Translation" list that Oracle JRE provides (http://www.oracle.com/technetwork/java/javase/locales-137662.html#translation). So you won't see FileChooser UI texts in Turkish even in Turkish locale.

The second issue you raised is a bit different. I'd expect to see Turkish if you provide your own properties file. Please check if there is any errors in your program. At least I see that you are using "string1/string2" keys with ResourceBundle.getString() method, while your test_tr.properties has "test1/test2" keys.

Naoto

(3/1/11 7:40 AM), Phil Race wrote:
This is a localisation issue (not internationalisation issue as Alan
suggested).
but the bottom line is whilst many locales are supported that does not
mean that user interface messages are translated into all those locales.
There's a huge cost issue behind that. There was an openjdk project to
add Brazilian Portugese localisation and if Turkish is important then
something similar would need to be done there. But it implies an ongoing
commitment to update those messages and test them and that's a cost too.

-phil.

On 3/1/2011 2:13 AM, Jing LV wrote:
Hello,

I've found several problem while using OpenJDK under Turkish Locale.
For some examples:

(All testcase should run with parameter -Duser.language=tr
-Duser.region=TR)

public static void main(String args[]) {
System.out.println(" locale :" + Locale.getDefault());
ResourceBundle bundle = ResourceBundle.getBundle
("com.sun.java.swing.plaf.windows.resources.windows",
Locale.getDefault());
System.out.println(" STRING :" +
bundle.getString("FileChooser.newFolderActionLabelText"));
}

Excepted results:
locale : tr_TR
STRING : Yeni Klasör
But got:
locale : tr_TR
STRING : New Folder

And
public static void main(String args[]) {

ResourceBundle bundle = ResourceBundle.getBundle("test", Locale
.getDefault());
String sample = bundle.getString("string1");
System.out.println(" FirstString : " + sample);
System.out.println(" SecondString : " + bundle.getString("string2"));
}
it requires a text file "test_tr.properties" with entries:
test=\u00dcretilen ara kaynak dosyalar\u0131 silinmez\n
test1=abc\u00f3def
Excepted result:
First String : ÜThis is a turkeyı test
Second String : simpleóword
But on windows XP, it was:
First String : ?This is a turkey? test
Second String : simple¨®word

I also see http://bugs.sun.com/view_bug.do?bug_id=6341798, but sure if
it is delivered already.

So my question is, is Turkish Locale officially supported by OpenJDK?
And is there some solutions already for such issues? If no, I can
provide the fix.



Reply via email to