Skip to main content

Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "Scout/Concepts/Texts"

(Replaced content with "The Scout documentation has been moved to https://eclipsescout.github.io/.")
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{ScoutPage|cat=Shared}}
+
The Scout documentation has been moved to https://eclipsescout.github.io/.
 
+
Texts is a class used for the localization of the texts in the user interface.
+
 
+
== Description ==
+
{{note|TODO|Add a description}}
+
 
+
<source lang="java">
+
Texts.get("persons");
+
</source>
+
 
+
* TODO: explain the properties text files.
+
 
+
It is possible to use some Parameters:
+
<source lang="java">
+
String name = "Bob";
+
int age = 13;
+
 
+
Texts.get("NameWithAge", name, age);
+
</source>
+
 
+
In this case, some placeholders for the parameters are needed in the translated text:
+
  NameWithAge={0} is {1} years old;
+
 
+
 
+
== See Also ==
+
* {{ScoutLink|Concepts|Shared Plug-In|Shared Plug-In}}
+

Latest revision as of 05:10, 14 March 2024

The Scout documentation has been moved to https://eclipsescout.github.io/.

Back to the top