Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
en:entwickler:mehrsprachigkeit [2018/06/17 07:46] – [Rules for the name] fasseen:entwickler:mehrsprachigkeit [2018/06/17 07:47] (current) – [Using in source code] fasse
Line 3: Line 3:
  
 ==== Using in source code ==== ==== Using in source code ====
-In the **common.php** a global object **gL10n** of the Class **Language** is applied, which is derived of the PHP class [[https://secure.php.net/manual/en/class.simplexmlelement.php|SimpleXMLElement]]. This object reads the XML file. About the method **get ($text_id, $var1 "", $var2 = "")** the search text can be handed over with the ID. It returns then the text in the set language respectively. Does the text have placeholders (#VAR1#, #VAR2# ...), so this can be passed as additional parameters.+In the **common.php** a global object **gL10n** of the Class **Language** is applied, which is derived of the PHP class [[https://secure.php.net/manual/en/class.simplexmlelement.php|SimpleXMLElement]]. This object reads the XML file. About the method **get($textId, $params array())** the search text can be handed over with the ID. It returns then the text in the set language respectively. Does the text have placeholders (#VAR1#, #VAR2# ...), so this can be passed as additional parameters.
  
 Example: Example:
Line 26: Line 26:
  
 Examples: Examples:
-<code>ANN_ANNOUNCEMENT</code> represents //Announcement//+<code>SYS_ANNOUNCEMENT</code> represents //Announcement//
 <code>SYS_NO_ENTRY</code> represents //The requested item does not exist in the database.// <code>SYS_NO_ENTRY</code> represents //The requested item does not exist in the database.//
-<code>PRO_PHOTO_DELETED</code> represents //The profile photo has been deleted.//+<code>SYS_PHOTO_DELETED</code> represents //The profile photo has been deleted.//
  
 ==== Design options in the text ==== ==== Design options in the text ====
  • en/entwickler/mehrsprachigkeit.txt
  • Last modified: 2018/06/17 07:47
  • by fasse