Click here to Skip to main content
15,899,025 members
Home / Discussions / Java
   

Java

 
GeneralRe: Arabic Font in Java program Pin
TorstenH.5-May-11 22:12
TorstenH.5-May-11 22:12 
GeneralRe: Arabic Font in Java program Pin
Nagy Vilmos5-May-11 22:29
professionalNagy Vilmos5-May-11 22:29 
GeneralRe: Arabic Font in Java program Pin
Richard MacCutchan6-May-11 2:41
mveRichard MacCutchan6-May-11 2:41 
GeneralOT: Woking - European City of Skank 1973-Present Pin
Nagy Vilmos6-May-11 2:57
professionalNagy Vilmos6-May-11 2:57 
GeneralRe: Arabic Font in Java program Pin
Richard MacCutchan6-May-11 2:43
mveRichard MacCutchan6-May-11 2:43 
GeneralRe: Arabic Font in Java program Pin
TorstenH.5-May-11 22:17
TorstenH.5-May-11 22:17 
GeneralRe: Arabic Font in Java program Pin
TorstenH.5-May-11 21:21
TorstenH.5-May-11 21:21 
Answernearly SOLVED - some more questions Pin
TorstenH.6-May-11 4:24
TorstenH.6-May-11 4:24 
I had some time to work on this today:

public final class MultiLanguageSupport extends NLS{
	
	public static final String BUNDLE_NAME = 
		"de.XXX.messaging.ua.nls.NLS"; //$NON-NLS-1$
	public static final ResourceBundle oMap = 
		ResourceBundle.getBundle("resource/language/language"); //$NON-NLS-1$

	static {
		NLS.initializeMessages(BUNDLE_NAME, MultiLanguageSupport.class);
	}

	public static final String getString(final String strKey){
		return oMap.getString(strKey);
	}

}


You can see, I'm again using the NLS-mechanism to get the Strings from property files. The reason is, that Eclipse RCP otherwise will not ne able to read the given file as there is a check in the load mechanism of NLS if the file is ending on .properties. Didn't want to touch that one.

MultiLanguageSupport.getString("Some.Key.Value"); // call in code

label="%Some.Key.Value" // declaration in plugin.xml


*.properties files can be encoded as unicode. The foreign language might not be readable - but is displayed correctly (kind of - still can't read Arabic Sigh | :sigh: ).

Now I'm dealing with the IDialogConstants, where the "OK" and "Cancel" is read.
Any ideas how to customize that Confused | :confused: OMG | :OMG:

regards
Torsten
I never finish anyth...

AnswerRe: nearly SOLVED - some more questions Pin
Nagy Vilmos10-May-11 5:07
professionalNagy Vilmos10-May-11 5:07 
QuestionCron Expression Pin
R V Reddy5-May-11 0:58
R V Reddy5-May-11 0:58 
AnswerRe: Cron Expression Pin
Luc Pattyn5-May-11 1:51
sitebuilderLuc Pattyn5-May-11 1:51 
AnswerRe: Cron Expression Pin
Richard MacCutchan5-May-11 4:20
mveRichard MacCutchan5-May-11 4:20 
Questionhow to write a simple Client Server Program using Jabber XMPP Pin
williamroma3-May-11 0:55
williamroma3-May-11 0:55 
AnswerRe: how to write a simple Client Server Program using Jabber XMPP Pin
Nagy Vilmos3-May-11 1:13
professionalNagy Vilmos3-May-11 1:13 
QuestionCreating the Quartz Database Structure Pin
R V Reddy2-May-11 21:02
R V Reddy2-May-11 21:02 
AnswerRe: Creating the Quartz Database Structure Pin
DaveAuld2-May-11 21:54
professionalDaveAuld2-May-11 21:54 
GeneralRe: Creating the Quartz Database Structure Pin
R V Reddy2-May-11 23:31
R V Reddy2-May-11 23:31 
GeneralRe: Creating the Quartz Database Structure Pin
DaveAuld2-May-11 23:37
professionalDaveAuld2-May-11 23:37 
QuestionConnection Information to DB in Java Web ? Pin
tannghia1-May-11 17:12
tannghia1-May-11 17:12 
AnswerRe: Connection Information to DB in Java Web ? Pin
Richard MacCutchan1-May-11 23:21
mveRichard MacCutchan1-May-11 23:21 
AnswerRe: Connection Information to DB in Java Web ? Pin
jschell2-May-11 7:50
jschell2-May-11 7:50 
AnswerRe: Connection Information to DB in Java Web ? Pin
all_in_flames8-Jun-11 7:56
professionalall_in_flames8-Jun-11 7:56 
Questionxml parsing in java applets Pin
bala_brim30-Apr-11 0:27
bala_brim30-Apr-11 0:27 
AnswerRe: xml parsing in java applets Pin
Richard MacCutchan30-Apr-11 5:35
mveRichard MacCutchan30-Apr-11 5:35 
GeneralRe: xml parsing in java applets Pin
Nagy Vilmos1-May-11 22:39
professionalNagy Vilmos1-May-11 22:39 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.