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 message Go to previous message](theme/default/images/up.png) ![Go to next message Go to previous message](theme/default/images/down.png) |
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](theme/default/images/read.png) |
|
Translation files
By: idkfa46 on Tue, 01 September 2020 17:44
|
![Read Message Read Message](theme/default/images/read.png) |
|
Re: Translation files
By: mirek on Tue, 01 September 2020 19:13
|
![Read Message Read Message](theme/default/images/read.png) |
|
Re: Translation files
By: idkfa46 on Wed, 02 September 2020 11:03
|
![Read Message Read Message](theme/default/images/read.png) |
|
Re: Translation files
By: idkfa46 on Thu, 03 September 2020 16:27
|
![Read Message Read Message](theme/default/images/read.png) |
|
Re: Translation files
By: mirek on Thu, 03 September 2020 16:55
|
![Read Message Read Message](theme/default/images/read.png) |
|
Re: Translation files
By: idkfa46 on Thu, 03 September 2020 17:37
|
![Read Message Read Message](theme/default/images/read.png) |
|
Re: Translation files
By: mirek on Thu, 03 September 2020 18:50
|
![Read Message Read Message](theme/default/images/read.png) |
|
Re: Translation files
By: idkfa46 on Wed, 23 September 2020 11:22
|
![Read Message Read Message](theme/default/images/read.png) |
|
Re: Translation files
By: mirek on Wed, 23 September 2020 11:46
|
![Read Message Read Message](theme/default/images/read.png) |
|
Re: Translation files
By: idkfa46 on Wed, 23 September 2020 14:18
|
![Read Message Read Message](theme/default/images/read.png) |
|
Re: Translation files
By: mirek on Wed, 23 September 2020 16:22
|
![Read Message Read Message](theme/default/images/read.png) |
|
Re: Translation files
By: Klugier on Wed, 23 September 2020 16:38
|
![Read Message Read Message](theme/default/images/read.png) |
|
Re: Translation files
By: mirek on Wed, 23 September 2020 17:11
|
![Read Message Read Message](theme/default/images/read.png) |
|
Re: Translation files
By: Klugier on Sun, 27 September 2020 00:15
|
![Read Message Read Message](theme/default/images/read.png) |
|
Re: Translation files
By: idkfa46 on Wed, 23 September 2020 14:25
|
![Read Message Read Message](theme/default/images/read.png) |
|
Re: Translation files
By: mirek on Wed, 23 September 2020 16:08
|
![Read Message Read Message](theme/default/images/read.png) |
|
Re: Translation files
By: idkfa46 on Wed, 23 September 2020 17:32
|
![Read Message Read Message](theme/default/images/read.png) |
|
Re: Translation files
By: idkfa46 on Wed, 30 September 2020 12:31
|
![Read Message Read Message](theme/default/images/read.png) |
|
Re: Translation files
By: idkfa46 on Fri, 02 October 2020 08:51
|
![Read Message Read Message](theme/default/images/read.png) |
|
Re: Translation files
By: mirek on Fri, 02 October 2020 11:24
|
![Read Message Read Message](theme/default/images/read.png) |
|
Re: Translation files
By: idkfa46 on Fri, 02 October 2020 12:04
|
![Read Message Read Message](theme/default/images/read.png) |
|
Re: Translation files
By: mirek on Sat, 03 October 2020 04:38
|
![Read Message Read Message](theme/default/images/read.png) |
|
Re: Translation files
By: idkfa46 on Wed, 07 October 2020 13:35
|
Goto Forum:
Current Time: Sun Jun 16 04:13:33 CEST 2024
Total time taken to generate the page: 0.02466 seconds
|