Page 1 of 1

Translation Strings

Posted: Sat Dec 12, 2020 4:09 pm
by apmuthu
Have located 171 translatable strings from

Code: Select all

SELECT TRIM(
REPLACE(
  REPLACE(
    REPLACE(sob_all_label, "<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class='nuActionButton'>", "")
    , "<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class='nuActionButton'>", "")
  , "</span>", "")
) AS Labels
FROM `zzzzsys_object` 
GROUP BY Labels
HAVING Labels NOT IN ('_________________________', '', '?');
Are there any other tables or in the php / js code where there are translatable strings?

The string nuTranslate( is present in some js and php files where translation is imputed.

There is a typo in the nusqlbuilder4.sql - missing semicolon:
Replace &nbsp< with &nbsp;<

My Commit

Re: Translation Strings

Posted: Sat Jan 02, 2021 10:55 am
by apmuthu

Code: Select all

/* Translation Stats */
SELECT trl_language
     , COUNT(*) AS translated_strings
     , (SELECT COUNT(DISTINCT trl_english) FROM `zzzzsys_translate` a)-COUNT(*) AS ToTranslate 
FROM `zzzzsys_translate` GROUP BY trl_language ORDER BY translated_strings DESC;

Code: Select all

/* Missing Strings */

/* change @lang value for each language's strings yet to be translated */
SET @lang:='French';

SELECT a.trl_english
FROM `zzzzsys_translate` a LEFT JOIN 
(SELECT b.trl_english FROM zzzzsys_translate b WHERE b.trl_language = @lang) lang
USING (trl_english)
WHERE lang.trl_english IS NULL
GROUP BY a.trl_english;