<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="de">
	<id>https://notebook.martin-sojka.de/index.php?action=history&amp;feed=atom&amp;title=Translation_interface</id>
	<title>Translation interface - Versionsgeschichte</title>
	<link rel="self" type="application/atom+xml" href="https://notebook.martin-sojka.de/index.php?action=history&amp;feed=atom&amp;title=Translation_interface"/>
	<link rel="alternate" type="text/html" href="https://notebook.martin-sojka.de/index.php?title=Translation_interface&amp;action=history"/>
	<updated>2026-04-19T15:09:04Z</updated>
	<subtitle>Versionsgeschichte dieser Seite in Notebook</subtitle>
	<generator>MediaWiki 1.33.0</generator>
	<entry>
		<id>https://notebook.martin-sojka.de/index.php?title=Translation_interface&amp;diff=1709&amp;oldid=prev</id>
		<title>MartinSojka: Die Seite wurde neu angelegt: „Translation strings can be added manually to the tables, but are usually read by parsing a ''classname''.t file alongside a normal class file in the same direc…“</title>
		<link rel="alternate" type="text/html" href="https://notebook.martin-sojka.de/index.php?title=Translation_interface&amp;diff=1709&amp;oldid=prev"/>
		<updated>2012-04-05T14:35:49Z</updated>

		<summary type="html">&lt;p&gt;Die Seite wurde neu angelegt: „Translation strings can be added manually to the tables, but are usually read by parsing a &amp;#039;&amp;#039;classname&amp;#039;&amp;#039;.t file alongside a normal class file in the same direc…“&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Neue Seite&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Translation strings can be added manually to the tables, but are usually read by parsing a ''classname''.t file alongside a normal class file in the same directory.&lt;br /&gt;
&lt;br /&gt;
==Global methods==&lt;br /&gt;
&lt;br /&gt;
; String _(String ''text'', Array ''params'' = null) : Looks up ''text'' in the look-up table and returns it if found, else returns it verbatim.&lt;br /&gt;
; String t(String ''text'', Array ''params'' = null) : Looks up ''objectname'' + '.' + ''text'' in the look-up table and returns it if found, else returns ''text''&lt;br /&gt;
; Global.lang : Array of language strings (&amp;quot;en_US&amp;quot;, &amp;quot;en_GB&amp;quot;, &amp;quot;de_DE&amp;quot; and so on) in precedence order, or a language string of the only language alone&lt;br /&gt;
; Global.translation : Mapping of known look-up tables (mappings) of the translations, indexed by the language string&lt;br /&gt;
&lt;br /&gt;
==Interfaces==&lt;br /&gt;
&lt;br /&gt;
; translation : Interface implemented if the object wants to supply custom translations&lt;br /&gt;
:; String translate(String ''text'', Array ''params'' = null) : Method called by t(...) if the object implements the translation interface; if it returns a non-null value (including an empty string), this will be taken in lieu of the look-up tables&lt;/div&gt;</summary>
		<author><name>MartinSojka</name></author>
		
	</entry>
</feed>