[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [12061] API: tweak translation
From: |
Sigurd Nes |
Subject: |
[Fmsystem-commits] [12061] API: tweak translation |
Date: |
Thu, 21 Aug 2014 12:41:07 +0000 |
Revision: 12061
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=12061
Author: sigurdne
Date: 2014-08-21 12:41:06 +0000 (Thu, 21 Aug 2014)
Log Message:
-----------
API: tweak translation
Modified Paths:
--------------
trunk/phpgwapi/inc/class.translation.inc.php
Modified: trunk/phpgwapi/inc/class.translation.inc.php
===================================================================
--- trunk/phpgwapi/inc/class.translation.inc.php 2014-08-21 12:40:25 UTC
(rev 12060)
+++ trunk/phpgwapi/inc/class.translation.inc.php 2014-08-21 12:41:06 UTC
(rev 12061)
@@ -225,8 +225,8 @@
}
- $ret = "!{$key}"; // save key if we dont find a
translation
$key = $lookup_key;
+ $ret = '';
if ( isset($this->lang[$app_name][$key]) )
{
@@ -236,8 +236,16 @@
{
$ret = $this->lang['common'][$key];
}
- else if ($this->collect_missing)
+
+ if (!$ret)
{
+ $ret = "!{$key}"; // save key if we dont
find a translation
+ //don't look for it again
+ $this->lang[$app_name][$key] = $ret;
+ }
+
+ if ($this->collect_missing)
+ {
$lookup_key =
$GLOBALS['phpgw']->db->db_addslashes($lookup_key);
$sql = "SELECT message_id FROM phpgw_lang WHERE
lang = '{$userlang}' AND message_id = '{$lookup_key}'"
. " AND app_name = '##{$app_name}##'";
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [12061] API: tweak translation,
Sigurd Nes <=