Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Community » Newbie corner » Translation files
Re: Translation files [message #54978 is a reply to message #54968] Sat, 03 October 2020 04:38 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
idkfa46 wrote on Fri, 02 October 2020 12:04
Ciao 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
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Simple Thread
Next Topic: Create exe from Windows to Linux
Goto Forum:
  


Current Time: Sat May 04 19:00:52 CEST 2024

Total time taken to generate the page: 0.02911 seconds