<p class="description"><p>Additional functions for Translation class</p><p>Functions allowing user to create the new language, translation for specific strings and full management of the languages database.</p></p>
<span class="var-name">$PageID</span><span class="var-description">: page identifier. Might be "" if the string is to be available from any page, independendly from translation object creation parameters.</span> </li>
<li>
<span class="var-type">string</span>
<span class="var-name">$StringID</span><span class="var-description">: string identifier. Must be unique for the same PageID and strings that were created without PageID's. This rule must be respected to prevent ambiguities.</span> </li>
<li>
<span class="var-type">array</span>
<span class="var-name">$String</span><span class="var-description">: array of strings - the array keys should be languages id's, the values - the sttrings in these languages - e.g.: ("en"->"English text", "pl"->"Tekst polski", ...)</span> </li>
<li>
<span class="var-type">string</span>
<span class="var-name">$pear_DSN</span><span class="var-description">: PEAR DSN string for database connection</span> </li>
<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">New language creation</p>
<p class="description"><p>Creates new language in the system. Creates lang entry in the languages table and the table for language strings. If other langs have been created before and their tables were filled with strings, function addTranslation should be executed for each of the added strings just after calling this function and before using the Translation class for any purpose.</p></p>
<ul class="tags">
<li><span class="field">return:</span> Return 1 if everything went OK, a PEAR::DB_Error object if not.</li>
<span class="var-name">$LangID</span><span class="var-description">: Language identifier</span> </li>
<li>
<span class="var-type">string</span>
<span class="var-name">$LangName</span><span class="var-description">: Language name - store the language name of the lang, possibly in the language described. This name can be later retrieved by calling getLangName and getOtherLangs methods and used for hyperlinks changing the site language.</span> </li>
<li>
<span class="var-type">string</span>
<span class="var-name">$METATags</span><span class="var-description">: Tags that may describe the language codepage etc. These tags can be retrieved by calling getMetaTags method.</span> </li>
<li>
<span class="var-type">string</span>
<span class="var-name">$pear_DSN</span><span class="var-description">: PEAR DSN string for database connection</span> </li>
<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Language removal</p>
<p class="description"><p>Removes language from system. This function should be used carefully - it will permanently remove all the strings that has been added to the language table by dropping this table. If other langs are stored in the table, then only this lang column will be dropped.</p></p>
<ul class="tags">
<li><span class="field">return:</span> Return 1 if everything went OK, a PEAR::DB_Error object if not.</li>