Welcome to the nuBuilder Forums!

Register and log in to access exclusive forums and content available only to registered users.

Translation Strings

Questions related to using nuBuilder Forte.
Post Reply
apmuthu
Posts: 249
Joined: Sun Dec 06, 2020 6:50 am
Location: Chennai, India, Singapore

Translation Strings

Unread post 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
apmuthu
Posts: 249
Joined: Sun Dec 06, 2020 6:50 am
Location: Chennai, India, Singapore

Re: Translation Strings

Unread post 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;
Post Reply