]> git.andy128k.dev Git - ipf.git/commitdiff
simple translation
authorAndrey Kutejko <andy128k@gmail.com>
Sat, 15 Jun 2013 19:01:02 +0000 (22:01 +0300)
committerAndrey Kutejko <andy128k@gmail.com>
Sat, 15 Jun 2013 19:01:02 +0000 (22:01 +0300)
ipf.php

diff --git a/ipf.php b/ipf.php
index bed0bf198635116f6723f72b0828f440f3ba281f..828770956bdb85f2e1f770960399ec02efceae3f 100644 (file)
--- 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;
 }