fmsystem-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Fmsystem-commits] [16900] translations: collect missing


From: sigurdne
Subject: [Fmsystem-commits] [16900] translations: collect missing
Date: Tue, 4 Jul 2017 04:00:24 -0400 (EDT)

Revision: 16900
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=16900
Author:   sigurdne
Date:     2017-07-04 04:00:24 -0400 (Tue, 04 Jul 2017)
Log Message:
-----------
translations: collect missing

Modified Paths:
--------------
    trunk/phpgwapi/inc/class.translation.inc.php

Modified: trunk/phpgwapi/inc/class.translation.inc.php
===================================================================
--- trunk/phpgwapi/inc/class.translation.inc.php        2017-07-04 07:12:02 UTC 
(rev 16899)
+++ trunk/phpgwapi/inc/class.translation.inc.php        2017-07-04 08:00:24 UTC 
(rev 16900)
@@ -242,19 +242,19 @@
                                $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}##'";
-                               
-                               
$GLOBALS['phpgw']->db->query($sql,__LINE__,__FILE__);
+                               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}##'";
 
-                               if( !$GLOBALS['phpgw']->db->next_record() )
-                               {       
-                                       $GLOBALS['phpgw']->db->query("INSERT 
INTO phpgw_lang (message_id,app_name,lang,content) 
VALUES('{$lookup_key}','##{$app_name}##','$userlang','missing')",__LINE__,__FILE__);
+                                       
$GLOBALS['phpgw']->db->query($sql,__LINE__,__FILE__);
+
+                                       if( 
!$GLOBALS['phpgw']->db->next_record() )
+                                       {
+                                               
$GLOBALS['phpgw']->db->query("INSERT INTO phpgw_lang 
(message_id,app_name,lang,content) 
VALUES('{$lookup_key}','##{$app_name}##','$userlang','missing')",__LINE__,__FILE__);
+                                       }
                                }
                        }
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]