Is there a plan to build a translator module?
Or some other way to build a Multi language system?
Please let me know,
Thanks
AM
Welcome to the nuBuilder Forums!
Register and log in to access exclusive forums and content available only to registered users.
Register and log in to access exclusive forums and content available only to registered users.
Multi Language
Re: Multi Language
alvin,
Sorry about taking so long to get back (we had a 5 day long weekend).
The best solution I can offer is to get a list of all the titles used in zzsys_object and zzsys_form and do a replacement for each phrase into the language you want.
You can get this list by
1-Creating a temp table...
2-Then updating the other_phrase field to what is needed.
3-Then creating a Procedure Activity with this code
4-And Running it.
Hope this helps
Steven
Sorry about taking so long to get back (we had a 5 day long weekend).
The best solution I can offer is to get a list of all the titles used in zzsys_object and zzsys_form and do a replacement for each phrase into the language you want.
You can get this list by
1-Creating a temp table...
Code: Select all
CREATE TABLE nubuilder_phrases SELECT `sob_all_title` as english_phrase, lpad('',250,' ') as other_phrase
FROM `zzsys_object`
GROUP BY `sob_all_title`
UNION
SELECT `sfo_title` as english_phrase, lpad('',250, ' ') as other_phrase
FROM `zzsys_form`
GROUP BY `sfo_title`
3-Then creating a Procedure Activity with this code
Code: Select all
$t = nuRunQuery("SELECT * FROM nubuilder_phrases");
while($r = db_fetch_object($t)){
$o = "UPDATE zzsys_object SET sob_all_title = '$r->other_phrase' WHERE sob_all_title = '$r->english_phrase'";
$f = "UPDATE zzsys_form SET sfo_title = '$r->other_phrase' WHERE sfo_title = '$r->english_phrase'";
nuRunQuery($o);
nuRunQuery($f);
}
Hope this helps
Steven
-
- Posts: 9
- Joined: Sat Apr 16, 2011 6:49 am
Re: Multi Language
Thanks Steven,
But in the end I will need to have a way that a user can switch between languages, a button, or maybe pick your language at login.
The system will have users in multi location with multi language.
What do you think?
AM
But in the end I will need to have a way that a user can switch between languages, a button, or maybe pick your language at login.
The system will have users in multi location with multi language.
What do you think?
AM
Re: Multi Language
Sounds like a big job.
If you need someone to do it for you, you can get commercial support for nuBuilder here http://www.nusoftware.com.au/home.html
Steven
If you need someone to do it for you, you can get commercial support for nuBuilder here http://www.nusoftware.com.au/home.html
Steven
-
- Posts: 9
- Joined: Sat Apr 16, 2011 6:49 am
Re: Multi Language
I am going to look into this more, later... But for now I am just going to post a few links to some info.
http://en.wikipedia.org/wiki/GNU_gettext
http://www.gnu.org/software/hello/manua ... Files.html
http://fplanque.net/Blog/devblog/2003/0 ... d_po_files
http://www.poedit.net/index.php
http://en.wikipedia.org/wiki/GNU_gettext
http://www.gnu.org/software/hello/manua ... Files.html
http://fplanque.net/Blog/devblog/2003/0 ... d_po_files
http://www.poedit.net/index.php