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 #54968 is a reply to message #54965] Fri, 02 October 2020 12:04 Go to previous messageGo to previous message
idkfa46 is currently offline  idkfa46
Messages: 155
Registered: December 2011
Experienced Member
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
2 - If the user change the language setting and restart the tool all the software change language making exception for the database text
3 - At this stage I have a few queries like this one that fails because the match "s" = "CATEGORIA" doesn't work (it's a different language!)

double Impostazioni::GetPsi0j(String s)
{
	SQL * Select(PSI0j).From(COEFCOMBIN).Where(CATEGORIA == s);	return SQL[PSI0j];
}


4 - To solve it I have to update the text translation in the database... To reset de database to default setting is the easiest way but I gonna lose possible user settings!

My question:

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?

try
{
	SQL * Select(CATEGORIA).From(COEFCOMBIN);
		
	while(SQL.Fetch())
	{			
		SQL & ::Update(COEFCOMBIN)(CATEGORIA, t_(SQL[CATEGORIA])).Where(CATEGORIA == SQL[CATEGORIA]);		
	}	
}


Thanks,
Matteo
 
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: Sun Aug 24 13:38:05 CEST 2025

Total time taken to generate the page: 0.05739 seconds