Function | Returns a localized string for a given id | |||||||||
Example |
myvalue = s10localize( "id5" ). |
|||||||||
Format |
data: myid type string, myvalue type string. myvalue = s10localize( myid ). |
|||||||||
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: s10infomessage( s10localize( 'VISIT_SAVED' ) ). 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":
class visit definition inheriting from /s10/any. ... 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 |