diff options
author | fabrixxm <fabrix.xm@gmail.com> | 2011-03-11 00:18:29 +0100 |
---|---|---|
committer | fabrixxm <fabrix.xm@gmail.com> | 2011-03-11 00:18:29 +0100 |
commit | 8a40c718fb9f9272ea99094a760f399e323cd66c (patch) | |
tree | d462e5b29109102b65801251f1f5c2441d6c704c /boot.php | |
parent | 439ee37f99a6029e1d689f3a0133ca3de25b593e (diff) | |
download | volse-hubzilla-8a40c718fb9f9272ea99094a760f399e323cd66c.tar.gz volse-hubzilla-8a40c718fb9f9272ea99094a760f399e323cd66c.tar.bz2 volse-hubzilla-8a40c718fb9f9272ea99094a760f399e323cd66c.zip |
Move translation functions. Add tt() for plural cases.
Diffstat (limited to 'boot.php')
-rw-r--r-- | boot.php | 27 |
1 files changed, 5 insertions, 22 deletions
@@ -159,6 +159,11 @@ if (get_magic_quotes_gpc()) { unset($process); } +/* + * translation system + */ +require_once("include/pgettext.php"); + /** * @@ -601,28 +606,6 @@ function replace_macros($s,$r) { }} -// load string translation table for alternate language - -if(! function_exists('load_translation_table')) { -function load_translation_table($lang) { - global $a; - - if(file_exists("view/$lang/strings.php")) - include("view/$lang/strings.php"); -}} - -// translate string if translation exists - -if(! function_exists('t')) { -function t($s) { - - $a = get_app(); - - if(x($a->strings,$s)) - return $a->strings[$s]; - return $s; -}} - // curl wrapper. If binary flag is true, return binary // results. |