Documentation

Trace:

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
jvx:client:gui:multi_linguality [2018/02/01 12:55]
admin
jvx:client:gui:multi_linguality [2020/06/08 13:54] (current)
cduncan
Line 1: Line 1:
-~~Title: ​Multi-Language ​Support~~+~~Title: ​Multilingual ​Support~~
  
-Multi-language ​support is integrated in JVx´s core components. Each component allows the translation of text without further effort. All components that display text, such as Button, Menu, MenuItem, Label individually handle the translation of the displayed text.+Multilingual ​support is integrated in JVx´s core components. Each component allows the translation of text without further effort. All components that display text, such as Button, Menu, MenuItem, ​or Labelindividually handle the translation of the displayed text.
  
-The developer only has to translate user-defined outputs, such as messages, questions, error messages etc. A single method call, or ideally the translation of the text itself, is sufficient.+The developer only has to translate user-defined outputs, such as messages, questions, error messagesetc. A single method call, or ideally the translation of the text itself, is sufficient.
  
 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.
  
-== Uage ==+== Usage ==
  
 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.
  
-The following source code represents a frame with a table, groupbox and buttons: ​+The following source code represents a frame with a table, groupboxand buttons: ​
  
 <file java DBEditFrame.java>​ <file java DBEditFrame.java>​
Line 61: Line 61:
 The translation can be defined centrally or by component. "By component"​ means that each component can use different translations for identical texts. A central translation always uses the same translation for identical texts. If a component does not use its own translation,​ a translation is automatically requested from the parent component. The translation can be defined centrally or by component. "By component"​ means that each component can use different translations for identical texts. A central translation always uses the same translation for identical texts. If a component does not use its own translation,​ a translation is automatically requested from the parent component.
  
-In this case the translation is defined centrallyat the highest (i.e. application) level:+In this case the translation is defined centrally at the highest (i.e. application) level:
  
 <file java> <file java>
Line 229: Line 229:
  
   <!-- general messages -->   <!-- general messages -->
-  <entry key="​An error occured ​during storing the data!*Would you nevertheless like to leave the window?">​Beim Speichern der Daten ist ein Fehler aufgetreten! Möchten Sie dennoch das Fenster verlassen?</​entry>​+  <entry key="​An error occurred ​during storing the data!*Would you nevertheless like to leave the window?">​Beim Speichern der Daten ist ein Fehler aufgetreten! Möchten Sie dennoch das Fenster verlassen?</​entry>​
   ​   ​
   <!-- security -->   <!-- security -->
This website uses cookies for visitor traffic analysis. By using the website, you agree with storing the cookies on your computer.More information