| Function | Returns a localized string for a given id | |||||||||
| Example | ABAP
|
|||||||||
| Format | ABAP
|
|||||||||
| Parameters |
|
|||||||||
| Description |
With s10localize() you can access language-dependent strings that are stored
class- and language-specific in text files. They are stored in the same way as
HTML files in the MIME Repository. Example: ABAP
The S10 Framework loads the text file "visit.texts.txt" in the corresponding folder:
Example text file "visit.texts.txt" in English: //
message texts The prerequisite for this is that the path in the MIME Repository in which the files are located is specified in the class. This is done by defining a constant "projectpath": ABAP
The entire path of the text file is then formed from this, e.g. sap/bc/bsp/s10/cis/classes/visit/views.en/visit.texts.txt' The format of the text file is very simple:- Character set UTF-8 - Blank lines and comment lines beginning with // are ignored - One line per text, beginning with the keyword "text". - Following that, the text ID. Upper and lower case are irrelevant - Then the corresponding text in inverted commas |
|||||||||
| Components | S10 Framework |