From c22e4c185bb19cc07358324832ac3ce9280d70b9 Mon Sep 17 00:00:00 2001 From: Andrey Kutejko Date: Sat, 15 Jun 2013 22:01:02 +0300 Subject: [PATCH] simple translation --- ipf.php | 3 +++ 1 file changed, 3 insertions(+) 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; } -- 2.49.0