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 #54941 is a reply to message #54694] Wed, 30 September 2020 12:31 Go to previous messageGo to previous message
idkfa46 is currently offline  idkfa46
Messages: 155
Registered: December 2011
Experienced Member
I'm here again! The tranlsation mode works very well but I'm in trouble with my database...
When I change the language the t_() content inside the db do not change and I have a few queries that fail!


here is an example:


void Impostazioni::ResetDbCoefCombinaz()
{
	SQL & Delete(COEFCOMBIN);
	
	int i=0;
	Progress p(t_("Creating database: coefficienti di combinazione..."));
	
	try
	{
		SQL & Insert(COEFCOMBIN)(CATEGORIA,t_("Carichi permanenti"))(PSI0j,0)(PSI1j,0)(PSI2j,0); p.SetPos(++i);
		SQL & Insert(COEFCOMBIN)(CATEGORIA,t_("Carichi permanenti NON strutturali"))(PSI0j,0)(PSI1j,0)(PSI2j,0); p.SetPos(++i);
		SQL & Insert(COEFCOMBIN)(CATEGORIA,t_("Categoria A Ambienti ad uso residenziale"))(PSI0j,0.70)(PSI1j,0.50)(PSI2j,0.30); p.SetPos(++i);
		SQL & Insert(COEFCOMBIN)(CATEGORIA,t_("Categoria B Uffici"))(PSI0j,0.70)(PSI1j,0.50)(PSI2j,0.30); p.SetPos(++i);
		SQL & Insert(COEFCOMBIN)(CATEGORIA,t_("Categoria C Ambienti suscettibili di affollamento"))(PSI0j,0.70)(PSI1j,0.70)(PSI2j,0.60); p.SetPos(++i);
		SQL & Insert(COEFCOMBIN)(CATEGORIA,t_("Categoria D Ambienti ad uso commerciale"))(PSI0j,0.70)(PSI1j,0.70)(PSI2j,0.60); p.SetPos(++i);
		SQL & Insert(COEFCOMBIN)(CATEGORIA,t_("Categoria E Biblioteche, archivi, magazzini e ambienti ad uso industriale"))(PSI0j,1.00)(PSI1j,0.90)(PSI2j,0.80); p.SetPos(++i);
		SQL & Insert(COEFCOMBIN)(CATEGORIA,t_("Categoria F Rimesse e parcheggi (per autoveicoli di peso <= 30 kN)"))(PSI0j,0.70)(PSI1j,0.70)(PSI2j,0.60); p.SetPos(++i);
		SQL & Insert(COEFCOMBIN)(CATEGORIA,t_("Categoria G Rimesse e parcheggi (per autoveicoli di peso > 30 kN)"))(PSI0j,0.70)(PSI1j,0.50)(PSI2j,0.30); p.SetPos(++i);
		SQL & Insert(COEFCOMBIN)(CATEGORIA,t_("Categoria H Coperture"))(PSI0j,0.00)(PSI1j,0.00)(PSI2j,0.00); p.SetPos(++i);
		SQL & Insert(COEFCOMBIN)(CATEGORIA,t_("Vento"))(PSI0j,0.60)(PSI1j,0.20)(PSI2j,0.00); p.SetPos(++i);
		SQL & Insert(COEFCOMBIN)(CATEGORIA,t_("Neve (a quota <= 1000 m s.l.m.)"))(PSI0j,0.50)(PSI1j,0.20)(PSI2j,0.00); p.SetPos(++i);
		SQL & Insert(COEFCOMBIN)(CATEGORIA,t_("Neve (a quota > 1000 m s.l.m.)"))(PSI0j,0.70)(PSI1j,0.50)(PSI2j,0.20); p.SetPos(++i);
		SQL & Insert(COEFCOMBIN)(CATEGORIA,t_("Variazioni termiche"))(PSI0j,0.60)(PSI1j,0.50)(PSI2j,0.00); p.SetPos(++i);
	}
	catch(SqlExc &e)
	{
		Exclamation("[* " + DeQtfLf(e) + "]");
	}
}

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




Is there any trick to solve it or to force the language update?

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 Jun 16 04:13:33 CEST 2024

Total time taken to generate the page: 0.02466 seconds