Home » Community » Newbie corner » Translation files
|
Re: Translation files [message #54978 is a reply to message #54968] |
Sat, 03 October 2020 04:38 |
|
mirek
Messages: 13975 Registered: November 2005
|
Ultimate Member |
|
|
idkfa46 wrote on Fri, 02 October 2020 12:04Ciao Mirek,
thank your for your feedback. I try to better explaining the situation...
1 - At the moment I have a database that contain text in a t_() macro and at the first run the database is create with the user language
I guess you might got this a bit wrong, perhaps you see a magic in t_ that is not there.. All that t_ does is that it might return different string literal. So your database contains texts, period.
Quote:
Is there a trick to force database translation update?
I have to read and update it row by row? In that case is it possible to read the database text with a Select * and Update the translation without going throught the T_("") language with something like this?
Basically, yes.
Maybe you can delete the whole table content and insert new values?
All that said, this design, depending on translation, feels pretty awful. What about defining some integer constants instead of texts?
Alternatively, what about having these texts in DB in english and do the eventual translation in the application?
Mirek
|
|
|
|
Goto Forum:
Current Time: Sat Apr 20 06:44:18 CEST 2024
Total time taken to generate the page: 4.93986 seconds
|