From aa32a920f8a3852b8e0ac7d9b17fee04d653a5f7 Mon Sep 17 00:00:00 2001 From: Romain d'Alverny Date: Thu, 24 May 2012 07:10:51 +0000 Subject: new, lower-level _d() to return localized _data_; rewritten _t() on top of it --- langs.inc.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'langs.inc.php') diff --git a/langs.inc.php b/langs.inc.php index 909fe5e29..23103f051 100644 --- a/langs.inc.php +++ b/langs.inc.php @@ -150,13 +150,17 @@ S; * Solution? rethink the whole i18n thing in an integrated one. */ function _t($s = null, $opt = null, $post = ' ') { + return _d($s, $opt) . $post; +} + +function _d($s = null, $opt = null) { if (!is_null($opt)) $_t = $opt; else { global $_t; } - return ($s == '' ? '---' : (array_key_exists($s, $_t) ? $_t[$s] : $s)) . $post; + return ($s == '' ? '---' : (array_key_exists($s, $_t) ? $_t[$s] : $s)); } /** -- cgit v1.2.1