Documentation

Trace:

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Last revision Both sides next revision
jvx:client:gui:multi_linguality [2018/02/01 12:51]
admin created
jvx:client:gui:multi_linguality [2018/02/01 12:55]
admin
Line 7: Line 7:
 The translation mechanism does not require special text keys. We recommend developing the application in one language and creating the translation separately, either in parallel or after completion. The translation mechanism does not require special text keys. We recommend developing the application in one language and creating the translation separately, either in parallel or after completion.
  
-== Example ​==+== Uage ==
  
 All of the text in an application we have created is in German. However, we just found out that English also has to be supported. This requirement was not known at the time of development. All of the text in an application we have created is in German. However, we just found out that English also has to be supported. This requirement was not known at the time of development.
Line 111: Line 111:
 At a minimum, the translation file contains the following: At a minimum, the translation file contains the following:
  
-<file xml translation.properties>+<file xml translation.xml>
 <?xml version="​1.0"​ encoding="​UTF-8"?>​ <?xml version="​1.0"​ encoding="​UTF-8"?>​
 <​!DOCTYPE properties SYSTEM "​http://​java.sun.com/​dtd/​properties.dtd">​ <​!DOCTYPE properties SYSTEM "​http://​java.sun.com/​dtd/​properties.dtd">​
Line 127: Line 127:
 </​file>​ </​file>​
 \\  \\ 
-**<fs 20px>Hint</​fs>​**+**<fs 20px>Note</​fs>​**
  
 The showcase application allows switching between German and English. A full integration of the translation can be viewed in the source code. The showcase application allows switching between German and English. A full integration of the translation can be viewed in the source code.
Line 133: Line 133:
 The following translation file is used: The following translation file is used:
  
-<file xml translation.properties>+<file xml translation.xml>
 <?xml version="​1.0"​ encoding="​UTF-8"?>​ <?xml version="​1.0"​ encoding="​UTF-8"?>​
 <​!DOCTYPE properties SYSTEM "​http://​java.sun.com/​dtd/​properties.dtd">​ <​!DOCTYPE properties SYSTEM "​http://​java.sun.com/​dtd/​properties.dtd">​
Line 373: Line 373:
  
 demonstrates the wildcard mechanism for translations. ​ demonstrates the wildcard mechanism for translations. ​
 +
 Variable text passages are defined using *. If multiple wildcards are used, text can be accessed via index (beginning with 0). Variable text passages are defined using *. If multiple wildcards are used, text can be accessed via index (beginning with 0).
This website uses cookies for visitor traffic analysis. By using the website, you agree with storing the cookies on your computer.More information