Welcome to the nuBuilder Forums!

Join our community by registering and logging in.
As a member, you'll get access to exclusive forums, resources, 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