IWB Multi-Languages

14 views
Skip to first unread message

Deesh Banneheka

unread,
Oct 16, 2017, 5:19:35 AM10/16/17
to Information Workbench Discussions
Hello everyone

I wanted to have multi language on the IWB.
Do you have an example code for how to integrate this function into wiki pages?

Thanks for the feedback.

Cheers
Jagath

Andreas Schwarte

unread,
Oct 17, 2017, 2:09:05 AM10/17/17
to iwb-dis...@googlegroups.com

Hello Jagath,

 

you can achieve internationalized wiki pages using the following concepts:

 

a) #i18n parser function

 

The #i18n parser function [1] can be used to reference a translation from a resource bundle.  A resource bundle is basically a property file with key value pairs – the value being the translation for the respective key. The resource bundle (e.g. “myResourceBundle_de.properties” needs to exist on the classpath, e.g. in the “resources” source folder of the app.

 

Example:

 

{{#i18n: myResourceBundle#visualize | Visualize as {0} | Pie Chart}}

 

A similar concept can be used inside widget configurations. See [1] and the linked pages for details.

 

b) Literals with Language tags

 

RDF Literals can be tagged with languages. In the serialization format this looks like “Hallo Welt”@de

 

If you have an internationalized label for a resource , our value resolvers (e.g. in table widgets) automatically pick the correct language depending on the user’s preferred language. As a fallback the system preferred language is used.

 

 

Hope this helps, if you have further questions please let us know.

 

Best,

Andreas

 

 

[1] https//help.fluidops.com/resource/Help:AdvancedWikiSyntax#Parser_Functions

--
You received this message because you are subscribed to the Google Groups "Information Workbench Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to iwb-discussio...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages