Internationalize RCP preference page [message #689359] |
Mon, 27 June 2011 13:51 |
mousa.alsulaimi Messages: 18 Registered: June 2011 |
Junior Member |
|
|
hello ,
i was wondering how can i internationalize eclipse RCP preference pages ,to be specific ( org.eclipse.ui.internal.themes.ColorsAndFontsPreferencePage) , i checked babel packages but i did not find org.eclipse.ui , it is there ? if not , how can i internationalize this page ?, i tried to create a property file called org.eclipse.ui.internal.themes.ColorsAndFontsPreferencePage_ar_KW.properties and added the required keys and values by copying the output of the follwoing (
ResourceBundle bundle = ResourceBundle.getBundle(ColorsAndFontsPreferencePage.class.getName()) ;
// bundle.
System.out.println("name: "+ ColorsAndFontsPreferencePage.class.getName()) ;
Enumeration<String > list =bundle.getKeys() ;
String temp = new String() ;
while(list.hasMoreElements())
System.out.println("" +(temp=list.nextElement())+"=" +bundle.getString(temp) ) ;
)
i also tried creating a package called org.eclipse.ui.internal.themes , and inside it i created a
file called ColorsAndFontsPreferencePage_ar_KW.properties with the same content but still it did not work.
appreciate your help
[Updated on: Mon, 27 June 2011 13:52] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.02909 seconds