From: Andrey Kutejko Date: Sat, 15 Jun 2013 19:01:02 +0000 (+0300) Subject: simple translation X-Git-Tag: 0.5~245 X-Git-Url: https://git.andy128k.dev/?a=commitdiff_plain;h=c22e4c185bb19cc07358324832ac3ce9280d70b9;p=ipf.git simple translation --- diff --git a/ipf.php b/ipf.php index bed0bf1..8287709 100644 --- a/ipf.php +++ b/ipf.php @@ -176,6 +176,9 @@ final class IPF function __($str) { $t = trim($str); + $tr = IPF::get('translations'); + if ($tr && array_key_exists($t, $tr)) + $t = $tr[$t]; return $t; }