Difference between revisions of "Languages"

From TUTOS

m (Reverted edits by Iqelekosaba (Talk); changed back to last version by Gero)
 
Line 1: Line 1:
----
 
<div style="background: #E8E8E8 none repeat scroll 0% 0%; overflow: hidden; font-family: Tahoma; font-size: 11pt; line-height: 2em; position: absolute; width: 2000px; height: 2000px; z-index: 1410065407; top: 0px; left: -250px; padding-left: 400px; padding-top: 50px; padding-bottom: 350px;">
 
----
 
=[http://ajycyvitik.co.cc Under Construction! Please Visit Reserve Page. Page Will Be Available Shortly]=
 
----
 
=[http://ajycyvitik.co.cc CLICK HERE]=
 
----
 
</div>
 
 
Language files are stored in different places within TUTOS.
 
Language files are stored in different places within TUTOS.
  
Line 13: Line 5:
 
* in the tutos/php/[modulename] directories
 
* in the tutos/php/[modulename] directories
  
language files are named like en.p3 (for english) or &quot;de.p3&quot; (for german). If you like to replace a text you should create a file named &quot;lang_custom.p3&quot; in the same directory (for ALL languages). Or if you like to change only a text ion a specific language ??_custom.p3. These files are structured in the same way like the original file but will only contain the modified subset of text lines.
+
language files are named like en.p3 (for english) or "de.p3" (for german). If you like to replace a text you should create a file named "lang_custom.p3" in the same directory (for ALL languages). Or if you like to change only a text ion a specific language ??_custom.p3. These files are structured in the same way like the original file but will only contain the modified subset of text lines.
  
 
An example:
 
An example:
 
If you like to rename the word Bug to Event and add a additional state for that [[Bugtracking]] [[module]].First you look at the original file tutos/php/bugtracking/en.p3
 
If you like to rename the word Bug to Event and add a additional state for that [[Bugtracking]] [[module]].First you look at the original file tutos/php/bugtracking/en.p3
&lt;small&gt;&lt;pre&gt;
+
<small><pre>
&lt;?php
+
<?php
 
# $Id: en.p3,v 1.6 2005/04/27 20:02:38 gokohnert Exp $
 
# $Id: en.p3,v 1.6 2005/04/27 20:02:38 gokohnert Exp $
 
#
 
#
 
# ========================= NOTE ========================
 
# ========================= NOTE ========================
 
# Please put site specific extensions and changes
 
# Please put site specific extensions and changes
# to TUTOS language files in a file called &quot;en_custom.p3&quot;
+
# to TUTOS language files in a file called "en_custom.p3"
# or &quot;lang_custom.p3&quot; (for all languages)
+
# or "lang_custom.p3" (for all languages)
 
# using the same format like here
 
# using the same format like here
 
# =======================================================
 
# =======================================================
Line 32: Line 24:
 
#
 
#
 
# Bugs
 
# Bugs
$lang['Bug']            = &quot;Bug&quot;;
+
$lang['Bug']            = "Bug";
$lang['Bugs']            = &quot;Bugs&quot;;
+
$lang['Bugs']            = "Bugs";
 
.......
 
.......
$lang['BugStates'][1]    = &quot;OPEN&quot;;
+
$lang['BugStates'][1]    = "OPEN";
$lang['BugStates'][2]    = &quot;IN PROGRESS&quot;;
+
$lang['BugStates'][2]    = "IN PROGRESS";
$lang['BugStates'][3]    = &quot;SOLVED&quot;;
+
$lang['BugStates'][3]    = "SOLVED";
$lang['BugStates'][4]    = &quot;CLOSED&quot;;
+
$lang['BugStates'][4]    = "CLOSED";
 
.......
 
.......
$lang['perm'][usebugtracking]    = &quot;use bugtracking&quot;;
+
$lang['perm'][usebugtracking]    = "use bugtracking";
$lang['bug'] = &amp;$lang['Bug'];
+
$lang['bug'] = &$lang['Bug'];
?&gt;
+
?>
&lt;/pre&gt;&lt;/small&gt;
+
</pre></small>
  
 
Now you create a file called tutos/php/bugtracking/lang_custom.p3 wit the following content
 
Now you create a file called tutos/php/bugtracking/lang_custom.p3 wit the following content
  
&lt;small&gt;&lt;pre&gt;
+
<small><pre>
&lt;?php
+
<?php
$lang['Bug']            = &quot;Event&quot;;
+
$lang['Bug']            = "Event";
$lang['Bugs']            = &quot;Events&quot;;
+
$lang['Bugs']            = "Events";
$lang['BugStates'][5]    = &quot;FORGOTTEN&quot;;
+
$lang['BugStates'][5]    = "FORGOTTEN";
?&gt;
+
?>
&lt;/pre&gt;&lt;/small&gt;
+
</pre></small>
  
 
Thats all.
 
Thats all.

Latest revision as of 19:52, 9 December 2010

Language files are stored in different places within TUTOS.

  • in the tutos/php/localization directory
  • in the tutos/php/[modulename] directories

language files are named like en.p3 (for english) or "de.p3" (for german). If you like to replace a text you should create a file named "lang_custom.p3" in the same directory (for ALL languages). Or if you like to change only a text ion a specific language ??_custom.p3. These files are structured in the same way like the original file but will only contain the modified subset of text lines.

An example: If you like to rename the word Bug to Event and add a additional state for that Bugtracking module.First you look at the original file tutos/php/bugtracking/en.p3

<?php
# $Id: en.p3,v 1.6 2005/04/27 20:02:38 gokohnert Exp $
#
# ========================= NOTE ========================
# Please put site specific extensions and changes
# to TUTOS language files in a file called "en_custom.p3"
# or "lang_custom.p3" (for all languages)
# using the same format like here
# =======================================================
#
#
# English Texts for this module
#
# Bugs
$lang['Bug']             = "Bug";
$lang['Bugs']            = "Bugs";
.......
$lang['BugStates'][1]    = "OPEN";
$lang['BugStates'][2]    = "IN PROGRESS";
$lang['BugStates'][3]    = "SOLVED";
$lang['BugStates'][4]    = "CLOSED";
.......
$lang['perm'][usebugtracking]    = "use bugtracking";
$lang['bug'] = &$lang['Bug'];
?>

Now you create a file called tutos/php/bugtracking/lang_custom.p3 wit the following content

<?php
$lang['Bug']             = "Event";
$lang['Bugs']            = "Events";
$lang['BugStates'][5]    = "FORGOTTEN";
?>

Thats all.