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
|
|
|
|
|
Translation files
By: idkfa46 on Tue, 01 September 2020 17:44
|
|
|
Re: Translation files
By: mirek on Tue, 01 September 2020 19:13
|
|
|
Re: Translation files
By: idkfa46 on Wed, 02 September 2020 11:03
|
|
|
Re: Translation files
By: idkfa46 on Thu, 03 September 2020 16:27
|
|
|
Re: Translation files
By: mirek on Thu, 03 September 2020 16:55
|
|
|
Re: Translation files
By: idkfa46 on Thu, 03 September 2020 17:37
|
|
|
Re: Translation files
By: mirek on Thu, 03 September 2020 18:50
|
|
|
Re: Translation files
By: idkfa46 on Wed, 23 September 2020 11:22
|
|
|
Re: Translation files
By: mirek on Wed, 23 September 2020 11:46
|
|
|
Re: Translation files
By: idkfa46 on Wed, 23 September 2020 14:18
|
|
|
Re: Translation files
By: mirek on Wed, 23 September 2020 16:22
|
|
|
Re: Translation files
By: Klugier on Wed, 23 September 2020 16:38
|
|
|
Re: Translation files
By: mirek on Wed, 23 September 2020 17:11
|
|
|
Re: Translation files
By: Klugier on Sun, 27 September 2020 00:15
|
|
|
Re: Translation files
By: idkfa46 on Wed, 23 September 2020 14:25
|
|
|
Re: Translation files
By: mirek on Wed, 23 September 2020 16:08
|
|
|
Re: Translation files
By: idkfa46 on Wed, 23 September 2020 17:32
|
|
|
Re: Translation files
By: idkfa46 on Wed, 30 September 2020 12:31
|
|
|
Re: Translation files
By: idkfa46 on Fri, 02 October 2020 08:51
|
|
|
Re: Translation files
By: mirek on Fri, 02 October 2020 11:24
|
|
|
Re: Translation files
By: idkfa46 on Fri, 02 October 2020 12:04
|
|
|
Re: Translation files
By: mirek on Sat, 03 October 2020 04:38
|
|
|
Re: Translation files
By: idkfa46 on Wed, 07 October 2020 13:35
|
Goto Forum:
Current Time: Sat May 04 19:00:52 CEST 2024
Total time taken to generate the page: 0.02911 seconds
|