[Logo] Enterprise Client Community
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Literal Translations, using built in Resource Management  XML
Forum Index -> Development
Author Message
kretzler

Power User

Joined: 21/11/2007 13:00:57
Messages: 73
Location: Karlsruhe
Offline

Hello,

I am using the built in Resource Management to manage the mulit language resources and I would like to translate something like
'You need X correct answers.'

Is it possible to set X later?


Thanks,
Ralph
[WWW]
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5516
Offline

...yes, but there's no special CaptainCasa-related issue:

In you server side code load the literal (ResourceManager.readProperty()) and then apply rule in the way you define:

Code:
 ...
 // messageSaved = Document ${doc} was saved.
 String l = ResourceManager.readProperty("literals","messageSaved");
 l = l.replace("${doc}",m_documentNumber);
 ...
 


Björn

Björn Müller, CaptainCasa GmbH
kretzler

Power User

Joined: 21/11/2007 13:00:57
Messages: 73
Location: Karlsruhe
Offline

ohh, thats right.

Works fine. thanks a lot.
[WWW]
 
Forum Index -> Development
Go to:   
Powered by JForum 2.1.6 © JForum Team