[Linpha-cvs] SF.net SVN: linpha: [4423] trunk/linpha2
Status: Inactive
Brought to you by:
bzrudi
From: <bz...@us...> - 2006-03-20 16:34:37
|
Revision: 4423 Author: bzrudi Date: 2006-03-20 08:34:17 -0800 (Mon, 20 Mar 2006) ViewCVS: http://svn.sourceforge.net/linpha/?rev=4423&view=rev Log Message: ----------- renamed tr() to i18n() Modified Paths: -------------- trunk/linpha2/ChangeLog trunk/linpha2/lib/classes/linpha.functions.php trunk/linpha2/templates/main_html/basket.html.php trunk/linpha2/templates/main_html/view_img.html.php trunk/linpha2/templates/main_html/view_meta.html.php Property Changed: ---------------- trunk/linpha2/lib/lang/ Modified: trunk/linpha2/ChangeLog =================================================================== --- trunk/linpha2/ChangeLog 2006-03-20 14:52:31 UTC (rev 4422) +++ trunk/linpha2/ChangeLog 2006-03-20 16:34:17 UTC (rev 4423) @@ -1,5 +1,6 @@ 2006-03-20 bzrudi <linpha2_AT_tuxpower_DOT_de> * language stuff should work now + * renamed tr() to i18n() 2006-03-19 bzrudi <linpha2_AT_tuxpower_DOT_de> * added new file: /lib/lang/language.php Modified: trunk/linpha2/lib/classes/linpha.functions.php =================================================================== --- trunk/linpha2/lib/classes/linpha.functions.php 2006-03-20 14:52:31 UTC (rev 4422) +++ trunk/linpha2/lib/classes/linpha.functions.php 2006-03-20 16:34:17 UTC (rev 4423) @@ -7,7 +7,7 @@ * If option tr_learn is set - all new entries will be autolearned. * @param string $text phrase/word to translate */ - function tr($text) + function i18n($text) { global $translate; $tr_learn = true; //autolearn new language entries Property changes on: trunk/linpha2/lib/lang ___________________________________________________________________ Name: svn:ignore + lang.* Modified: trunk/linpha2/templates/main_html/basket.html.php =================================================================== --- trunk/linpha2/templates/main_html/basket.html.php 2006-03-20 14:52:31 UTC (rev 4422) +++ trunk/linpha2/templates/main_html/basket.html.php 2006-03-20 16:34:17 UTC (rev 4423) @@ -1,11 +1,11 @@ <form name="basket" action="<?php echo $GLOBALS['linpha']->template->UrlFull; ?>&cmd=remove_selected" method="POST"> <div class='navigation'> -<a href="<?php echo LINPHA_DIR.'/?cat=alb&id='.$_GET['ref_id']; ?>"><?php tr("Go Back"); ?></a> -<a href="<?php echo $GLOBALS['linpha']->template->UrlFull; ?>&cmd=remove_all"><?php tr("Remove All"); ?></a> +<a href="<?php echo LINPHA_DIR.'/?cat=alb&id='.$_GET['ref_id']; ?>"><?php i18n("Go Back"); ?></a> +<a href="<?php echo $GLOBALS['linpha']->template->UrlFull; ?>&cmd=remove_all"><?php i18n("Remove All"); ?></a> <input type="submit" name="submit" value="remove selected" /> <br /><br /> -<?php tr("Images In Basket");?>:<?php echo count($_SESSION['basket_ids']); ?> +<?php i18n("Images In Basket");?>:<?php echo count($_SESSION['basket_ids']); ?> </div> <div id='maindiv' class='main'> @@ -90,7 +90,7 @@ <?php } else { - tr("Empty Basket"); + i18n("Empty Basket"); } ?> </div> Modified: trunk/linpha2/templates/main_html/view_img.html.php =================================================================== --- trunk/linpha2/templates/main_html/view_img.html.php 2006-03-20 14:52:31 UTC (rev 4422) +++ trunk/linpha2/templates/main_html/view_img.html.php 2006-03-20 16:34:17 UTC (rev 4423) @@ -64,13 +64,13 @@ </style> <div class="add_comment"> <form action="<?php echo $GLOBALS['linpha']->imgview->link_url.'&id='.$GLOBALS['linpha']->imgview->id_current; ?>" method="POST"> -<?php tr("Add Comment"); ?>:<br /> +<?php i18n("Add Comment"); ?>:<br /> <div id="comment_div_text"> <input type="text" id="comment_input_text" name="comment_text" value="" size="40" maxlength="40" /> <a href="javascript:open_textarea()">(+)</a> </div> <textarea style="display: none;" id="comment_textarea" name="comment_textarea" rows="10" cols="50"></textarea> -<?php tr("Name"); ?>: <input type="text" name="author" value="" size="10" maxlength="40" /> +<?php i18n("Name"); ?>: <input type="text" name="author" value="" size="10" maxlength="40" /> <input type="hidden" name="cmd" value="add_comment" /> <input type="submit" name="submit" value="submit" /> </form> Modified: trunk/linpha2/templates/main_html/view_meta.html.php =================================================================== --- trunk/linpha2/templates/main_html/view_meta.html.php 2006-03-20 14:52:31 UTC (rev 4422) +++ trunk/linpha2/templates/main_html/view_meta.html.php 2006-03-20 16:34:17 UTC (rev 4423) @@ -67,7 +67,7 @@ <div id='maindiv' class='main'> <a href="<?php echo $GLOBALS['linpha']->imgview->link_url.'&id='.$GLOBALS['linpha']->imgview->id_current.'&view=img'; ?>">Back to normal view</a> -<h1><?php tr("Edit Image Imformation"); ?></h1> +<h1><?php i18n("Edit Image Imformation"); ?></h1> <?php $query = $GLOBALS['linpha']->db->Execute("SELECT id, name, field_type FROM ".PREFIX."meta_fields " . "WHERE flags = '5' OR flags = '7' ORDER by id"); @@ -76,8 +76,8 @@ <form action="<?php echo $GLOBALS['linpha']->imgview->link_url.'&id='.$GLOBALS['linpha']->imgview->id_current; ?>" method="POST"> <table border='1'> <tr> - <td width="150"><b><?php tr("Name"); ?></b></td> - <td width="200"><b><?php tr("Value"); ?></b></td> + <td width="150"><b><?php i18n("Name"); ?></b></td> + <td width="200"><b><?php i18n("Value"); ?></b></td> <td rowspan="<?php echo $num+1; ?>"><?php echo $GLOBALS['linpha']->imgview->output['image']; ?></td> </tr> <?php This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |