Patch level : 2.0 470
Files correlati : Ricompilazione Demo : [ ] Commento : Aggiunta traduzione a i cespiti git-svn-id: svn://10.65.10.50/trunk@11122 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
f4a8729838
commit
2b86a6c841
@ -166,8 +166,8 @@ bool TMov_qmask::on_field_event(TOperable_field& o, TField_event e, long jolly)
|
||||
{
|
||||
TMask_field& f = efield(F_TOTRES);
|
||||
if (f.shown() && !f.empty())
|
||||
return yesno_box("Attenzione: la registrazione contabile non è ancora del tutto evasa:\n"
|
||||
"Si desidera uscire ugualmente?");
|
||||
return yesno_box(TR("Attenzione: la registrazione contabile non è ancora del tutto evasa:\n"
|
||||
"Si desidera uscire ugualmente?"));
|
||||
}
|
||||
break;
|
||||
default:
|
||||
@ -296,7 +296,7 @@ bool TMov_emask::test_inputability(const short* id, char flag)
|
||||
}
|
||||
}
|
||||
if (!ok)
|
||||
error_box("E' necessario specificare almeno uno dei valori previsti dal tipo movimento");
|
||||
error_box(TR("E' necessario specificare almeno uno dei valori previsti dal tipo movimento"));
|
||||
return ok;
|
||||
}
|
||||
|
||||
@ -381,15 +381,15 @@ bool TMov_emask::on_field_event(TOperable_field& o, TField_event e, long jolly)
|
||||
{
|
||||
case tc_immateriale:
|
||||
if (!tpmov.get_bool("B1"))
|
||||
return error_box("Movimento non applicabile a beni immateriali");
|
||||
return error_box(TR("Movimento non applicabile a beni immateriali"));
|
||||
break;
|
||||
case tc_pluriennale:
|
||||
if (!tpmov.get_bool("B2"))
|
||||
return error_box("Movimento non applicabile a costi pluriennali");
|
||||
return error_box(TR("Movimento non applicabile a costi pluriennali"));
|
||||
break;
|
||||
default:
|
||||
if (!tpmov.get_bool("B0"))
|
||||
return error_box("Movimento non applicabile a beni materiali");
|
||||
return error_box(TR("Movimento non applicabile a beni materiali"));
|
||||
break;
|
||||
}
|
||||
}
|
||||
@ -404,7 +404,7 @@ bool TMov_emask::on_field_event(TOperable_field& o, TField_event e, long jolly)
|
||||
{
|
||||
const TDate dtmov = get(F_DTMOV);
|
||||
if (dtcomp > dtmov)
|
||||
return error_box("La data di acquisizione del cespite non può precedere quella del movimento");
|
||||
return error_box(TR("La data di acquisizione del cespite non può precedere quella del movimento"));
|
||||
}
|
||||
}
|
||||
break;
|
||||
@ -436,18 +436,18 @@ bool TMov_emask::on_field_event(TOperable_field& o, TField_event e, long jolly)
|
||||
{
|
||||
const TDate dtmov = o.get();
|
||||
if (dtmov < dtret)
|
||||
return error_box("La data del movimento di rettifica deve seguire la data del movimento rettificato");
|
||||
return error_box(TR("La data del movimento di rettifica deve seguire la data del movimento rettificato"));
|
||||
}
|
||||
}
|
||||
break;
|
||||
case F_TPDOC:
|
||||
if (e == fe_button)
|
||||
{
|
||||
TArray_sheet sci(3, 3, -3, -3, o.prompt(), "Tipo|Descrizione@20");
|
||||
sci.add("FA|Fattura d'acquisto");
|
||||
sci.add("FV|Fattura di vendita");
|
||||
sci.add("NC|Nota di credito");
|
||||
sci.add("ND|Nota di debito");
|
||||
TArray_sheet sci(3, 3, -3, -3, o.prompt(), HR("Tipo|Descrizione@20"));
|
||||
sci.add(TR("FA|Fattura d'acquisto"));
|
||||
sci.add(TR("FV|Fattura di vendita"));
|
||||
sci.add(TR("NC|Nota di credito"));
|
||||
sci.add(TR("ND|Nota di debito"));
|
||||
if (sci.run() == K_ENTER)
|
||||
{
|
||||
TToken_string& str = sci.row(-1);
|
||||
@ -465,7 +465,7 @@ bool TMov_emask::on_field_event(TOperable_field& o, TField_event e, long jolly)
|
||||
if (e == fe_modify || e == fe_close)
|
||||
{
|
||||
if (o.empty() && cespite_nuovo())
|
||||
return error_box("È necessario inserire il numero di elementi del nuovo cespite");
|
||||
return error_box(TR("È necessario inserire il numero di elementi del nuovo cespite"));
|
||||
}
|
||||
break;
|
||||
case F_VNONAMM:
|
||||
@ -475,7 +475,7 @@ bool TMov_emask::on_field_event(TOperable_field& o, TField_event e, long jolly)
|
||||
get_currency(F_COSTO, csto);
|
||||
get_currency(F_VNONAMM, vnon);
|
||||
if (vnon > csto)
|
||||
return error_box("Il valore non ammortizzabile non puo' superare %s", csto.string(TRUE));
|
||||
return error_box(FR("Il valore non ammortizzabile non puo' superare %s"), csto.string(TRUE));
|
||||
}
|
||||
break;
|
||||
case F_PLUSREIN:
|
||||
@ -487,7 +487,7 @@ bool TMov_emask::on_field_event(TOperable_field& o, TField_event e, long jolly)
|
||||
get_currency(F_PLUSREIN, plus);
|
||||
const TCurrency val = csto-vnon;
|
||||
if (plus > val)
|
||||
return error_box("La plusvalenza reinvestita non puo' superare %s", val.string(TRUE));
|
||||
return error_box(FR("La plusvalenza reinvestita non puo' superare %s"), val.string(TRUE));
|
||||
}
|
||||
break;
|
||||
case F_NORMALE:
|
||||
@ -502,8 +502,8 @@ bool TMov_emask::on_field_event(TOperable_field& o, TField_event e, long jolly)
|
||||
if (fon_amm > val_amm)
|
||||
{
|
||||
TString msg;
|
||||
msg << "Il fondo ammortamento fiscale (" << fon_amm.string(TRUE) << ')';
|
||||
msg << "non puo' superare il valore da ammortizzare (" << val_amm.string(TRUE) << ')';
|
||||
msg << TR("Il fondo ammortamento fiscale (") << fon_amm.string(TRUE) << ')';
|
||||
msg << TR("non puo' superare il valore da ammortizzare (") << val_amm.string(TRUE) << ')';
|
||||
return error_box(msg);
|
||||
}
|
||||
}
|
||||
@ -520,8 +520,8 @@ bool TMov_emask::on_field_event(TOperable_field& o, TField_event e, long jolly)
|
||||
if (fon_amm > val_amm)
|
||||
{
|
||||
TString msg;
|
||||
msg << "Il fondo ammortamento civilistico (" << fon_amm.string(TRUE) << ')';
|
||||
msg << "non puo' superare il valore da ammortizzare (" << val_amm.string(TRUE) << ')';
|
||||
msg << TR("Il fondo ammortamento civilistico (") << fon_amm.string(TRUE) << ')';
|
||||
msg << TR("non puo' superare il valore da ammortizzare (") << val_amm.string(TRUE) << ')';
|
||||
return error_box(msg);
|
||||
}
|
||||
}
|
||||
@ -628,27 +628,14 @@ bool TMov_emask::calc_amm(int tipo)
|
||||
|
||||
void TMov_emask::set_fondi_inputability()
|
||||
{
|
||||
/*
|
||||
if (cespite_nuovo())
|
||||
{
|
||||
// Disabilito tutti i campi della pagina per i nuovi cespiti
|
||||
set_inputability(fis_ids, ' ');
|
||||
set_inputability(civ_ids, ' ');
|
||||
set_inputability(F_QPERSE, ' ');
|
||||
set_inputability(prv_ids, ' ');
|
||||
}
|
||||
else
|
||||
*/
|
||||
{
|
||||
set_inputability(fis_ids, _s5[10]);
|
||||
set_inputability(civ_ids, _s5[11]);
|
||||
set_inputability(F_QPERSE, _s5[12]);
|
||||
set_inputability(fis_ids, _s5[10]);
|
||||
set_inputability(civ_ids, _s5[11]);
|
||||
set_inputability(F_QPERSE, _s5[12]);
|
||||
|
||||
bool should_be_on = _s5[10] == 'S' || _s5[10] == 'O'; // Test preliminare basato su %TMC
|
||||
if (should_be_on)
|
||||
should_be_on = _cespite.get_int(CESPI_USOPROM) > 1; // Test aggiuntivo su uso promiscuo
|
||||
set_inputability(prv_ids, should_be_on ? _s5[10] : ' '); // Dis/abilita fondo privato e quote perse private
|
||||
}
|
||||
bool should_be_on = _s5[10] == 'S' || _s5[10] == 'O'; // Test preliminare basato su %TMC
|
||||
if (should_be_on)
|
||||
should_be_on = _cespite.get_int(CESPI_USOPROM) > 1; // Test aggiuntivo su uso promiscuo
|
||||
set_inputability(prv_ids, should_be_on ? _s5[10] : ' '); // Dis/abilita fondo privato e quote perse private
|
||||
}
|
||||
|
||||
void TMov_emask::recalc_amm()
|
||||
@ -1041,7 +1028,7 @@ void TMovicespi::init_modify_mode(TMask& m)
|
||||
{
|
||||
m.disable(DLG_SAVEREC);
|
||||
m.disable(DLG_DELREC);
|
||||
TString msg = "Movimento già stampato sul Bollato dell'esercizio ";
|
||||
TString msg = TR("Movimento già stampato sul Bollato dell'esercizio ");
|
||||
msg << esc.date2esc(dtmov);
|
||||
xvt_statbar_set(msg);
|
||||
}
|
||||
@ -1070,7 +1057,7 @@ void TMovicespi::kill_mov(const TString& idcespite, const TString& idmov, int lf
|
||||
if (err != NOERR)
|
||||
{
|
||||
const int tpamm = rel.curr().get_int("TPAMM");
|
||||
error_box("Errore %d nella cancellazione dell'ammortamento (%d) del movimento %s", err, tpamm, (const char*)idmov);
|
||||
error_box(FR("Errore %d nella cancellazione dell'ammortamento (%d) del movimento %s"), err, tpamm, (const char*)idmov);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1151,6 +1138,6 @@ bool TMovicespi::remove()
|
||||
int ce1500(int argc, char* argv[])
|
||||
{
|
||||
TMovicespi mc;
|
||||
mc.run(argc, argv, "Movimenti cespiti");
|
||||
mc.run(argc, argv, TR("Movimenti cespiti"));
|
||||
return 0;
|
||||
}
|
||||
|
@ -113,7 +113,7 @@ bool TCalcamm::calcola_ammortamenti()
|
||||
cur.freeze();
|
||||
|
||||
TString msg;
|
||||
msg << "Calcolo ammortamenti di " << items << " cespiti...";
|
||||
msg << TR("Calcolo ammortamenti di ") << items << TR(" cespiti...");
|
||||
TProgind pi(items, msg, TRUE, TRUE);
|
||||
|
||||
for (cur = 0L; cur.pos() < items; ++cur)
|
||||
@ -168,8 +168,8 @@ void TCalcamm::main_loop()
|
||||
|
||||
bool ok = TRUE;
|
||||
if (dc.bollato_stampato())
|
||||
ok = error_box("Non è possibile effettuare il calcolo degli ammortamenti:\n"
|
||||
"il bollato dell'attività corrente è già stato stampato");
|
||||
ok = error_box(TR("Non è possibile effettuare il calcolo degli ammortamenti:\n"
|
||||
"il bollato dell'attività corrente è già stato stampato"));
|
||||
if (ok)
|
||||
calcola_ammortamenti();
|
||||
}
|
||||
@ -181,6 +181,6 @@ void TCalcamm::main_loop()
|
||||
int ce2100(int argc, char* argv[])
|
||||
{
|
||||
TCalcamm a;
|
||||
a.run(argc, argv, "Calcolo ammortamenti");
|
||||
a.run(argc, argv, TR("Calcolo ammortamenti"));
|
||||
return 0;
|
||||
}
|
||||
|
@ -1,4 +1,5 @@
|
||||
#include <currency.h>
|
||||
#include <diction.h>
|
||||
#include <recarray.h>
|
||||
#include <tabutil.h>
|
||||
#include <varrec.h>
|
||||
@ -192,8 +193,8 @@ void TCespite::save_sal() const
|
||||
if (err != NOERR)
|
||||
err = _salpro.write(salce);
|
||||
if (err != NOERR)
|
||||
error_box("Errore %d durante la scrittura sui saldi del cespite %s", (const char*)get(CESPI_IDCESPITE));
|
||||
log("- Scrittura salpro %d: errore %d", _tipo_sit, err);
|
||||
error_box(FR("Errore %d durante la scrittura sui saldi del cespite %s"), err, (const char*)get(CESPI_IDCESPITE));
|
||||
log(FR("- Scrittura salpro %d: errore %d"), _tipo_sit, err);
|
||||
}
|
||||
|
||||
// Salva AMMPRO
|
||||
@ -205,8 +206,8 @@ void TCespite::save_amm() const
|
||||
if (err != NOERR)
|
||||
err = _ammpro.write(ammce);
|
||||
if (err != NOERR)
|
||||
error_box("Errore %d durante la scrittura sugli ammortamenti del cespite %s", (const char*)get(CESPI_IDCESPITE));
|
||||
log("- Scrittura ammpro %d: errore %d", _tipo_sit, err);
|
||||
error_box(TR("Errore %d durante la scrittura sugli ammortamenti del cespite %s"), err, (const char*)get(CESPI_IDCESPITE));
|
||||
log(TR("- Scrittura ammpro %d: errore %d"), _tipo_sit, err);
|
||||
}
|
||||
|
||||
// Ritorna il record della categoria del cespite
|
||||
@ -242,7 +243,7 @@ void TCespite::set_msg05(const char* msg)
|
||||
// Certified 75%
|
||||
bool TCespite::valido()
|
||||
{
|
||||
log("- Controllo validita`");
|
||||
log(TR("- Controllo validita`"));
|
||||
const TDitta_cespiti& dc = ditta_cespiti();
|
||||
TDate ini_es, fin_es;
|
||||
const int esercizio = dc.esercizio_corrente(ini_es, fin_es);
|
||||
@ -254,7 +255,7 @@ bool TCespite::valido()
|
||||
const TDate alienazione = get(CESPI_DTALIEN);
|
||||
if (alienazione.ok() && alienazione < ini_es)
|
||||
{
|
||||
set_msg05("cespite completamente eliminato.");
|
||||
set_msg05(TR("cespite completamente eliminato."));
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
@ -262,7 +263,7 @@ bool TCespite::valido()
|
||||
const TRectype& cat = categoria();
|
||||
if (cat.get_bool("B0"))
|
||||
{
|
||||
set_msg05("categoria non ammortizzabile.");
|
||||
set_msg05(TR("categoria non ammortizzabile."));
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
@ -270,7 +271,7 @@ bool TCespite::valido()
|
||||
const TDate completamento = get(CESPI_DTCOMP);
|
||||
if (!completamento.ok() || completamento > fin_es)
|
||||
{
|
||||
set_msg05("cespite non completato.");
|
||||
set_msg05(TR("cespite non completato."));
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
@ -282,7 +283,7 @@ bool TCespite::valido()
|
||||
const TDate funzione = get(CESPI_DTFUNZ);
|
||||
if (!funzione.ok() || funzione > fin_es)
|
||||
{
|
||||
set_msg05("cespite non ancora entrato in funzione.");
|
||||
set_msg05(TR("cespite non ancora entrato in funzione."));
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
@ -296,7 +297,7 @@ bool TCespite::valido()
|
||||
const TDate& ricavi = dc.data_primi_ricavi();
|
||||
if (!ricavi.ok() || ricavi > fin_es)
|
||||
{
|
||||
set_msg05("non sono ancora stati conseguiti ricavi.");
|
||||
set_msg05(TR("non sono ancora stati conseguiti ricavi."));
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
@ -307,7 +308,7 @@ bool TCespite::valido()
|
||||
{
|
||||
if (completamento >= ini_es && completamento <= fin_es)
|
||||
{
|
||||
set_msg05("decorrenza ammortamenti dall'esercizio successivo.");
|
||||
set_msg05(TR("decorrenza ammortamenti dall'esercizio successivo."));
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
@ -554,7 +555,7 @@ void TCespite::applica_rettifiche(TRectype& tmv, TRectype& tmvam)
|
||||
|
||||
void TCespite::aggiorna_salpro(const TRectype& tmv, const TRectype& tmvam, char segno)
|
||||
{
|
||||
log("= Aggiornamento saldi ed ammortamenti progressivi");
|
||||
log(TR("= Aggiornamento saldi ed ammortamenti progressivi"));
|
||||
incr_field(_salpro, SALCE_NUMELE, tmv, MOVCE_NUMELE, segno);
|
||||
incr_field(_salpro, SALCE_CSTO, tmv, MOVCE_CSTO, segno);
|
||||
incr_field(_salpro, SALCE_VNONAMM, tmv, MOVCE_VNONAMM, segno);
|
||||
@ -661,26 +662,26 @@ void TCespite::rip_jolly(TRelation& rel, const real& num, const real& den, int m
|
||||
// Certified 100%
|
||||
void TCespite::rip_elem(TRelation& rel, int mode)
|
||||
{
|
||||
log("# Ripartizionamento importi in base agli elementi");
|
||||
log(TR("# Ripartizionamento importi in base agli elementi"));
|
||||
const real num = rel.curr(LF_MOVCE).get(MOVCE_NUMELE);
|
||||
const real den = _salpro.get(SALCE_NUMELE);
|
||||
if (den > ZERO)
|
||||
rip_jolly(rel, num, den, mode);
|
||||
else
|
||||
log("! - Numero elementi non valido: %s", den.string());
|
||||
log(FR("! - Numero elementi non valido: %s"), den.string());
|
||||
}
|
||||
|
||||
// Riproporzionare importi a partire dal costo storico
|
||||
// Certified 100%
|
||||
void TCespite::rip_costo(TRelation& rel, int mode)
|
||||
{
|
||||
log("# Ripartizionamento importi in base al costo storico");
|
||||
log(TR("# Ripartizionamento importi in base al costo storico"));
|
||||
const real num = rel.curr(LF_MOVCE).get(MOVCE_CSTO);
|
||||
const real den = _salpro.get(SALCE_CSTO);
|
||||
if (den > ZERO)
|
||||
rip_jolly(rel, num, den, mode);
|
||||
else
|
||||
log("! - Costo non valido: %s", den.string());
|
||||
log(FR("! - Costo non valido: %s"), den.string());
|
||||
}
|
||||
|
||||
// Testa la necessità di eventuali ripartizioni
|
||||
@ -763,9 +764,9 @@ real TCespite::calc_quota(const real& valamm, const real& perric,
|
||||
const long giorni_possesso = dtmov - fnc_max(inies, dtcomp) + 1;
|
||||
const long giorni_esercizio = fines - inies + 1;
|
||||
quota = quota * giorni_possesso / giorni_esercizio;
|
||||
note << "Ammortamenti ragguagliati a "
|
||||
<< giorni_possesso << " giorni di possesso su "
|
||||
<< giorni_esercizio << " giorni dell'esercizio";
|
||||
note << TR("Ammortamenti ragguagliati a ")
|
||||
<< giorni_possesso << TR(" giorni di possesso su ")
|
||||
<< giorni_esercizio << TR(" giorni dell'esercizio");
|
||||
}
|
||||
ammmv.put(AMMMV_NOTE, note);
|
||||
}
|
||||
@ -1357,7 +1358,7 @@ void TCespite::cal_valenza(const TRectype& tmv, const TRectype& tmvam, TRectype&
|
||||
|
||||
void TCespite::elabora_mov_neg(TRelation& rel, TRectype& tmv, TRectype& tmvam)
|
||||
{
|
||||
log("= Elaborazione movimento con segno -");
|
||||
log(TR("= Elaborazione movimento con segno -"));
|
||||
|
||||
const TString4 tpmov = tmv.get(MOVCE_CODMOV); // Tipo movimento da non confondere col tipo documento!
|
||||
const TRectype& tmc = cache().get("%TMC", tpmov);
|
||||
@ -1385,7 +1386,7 @@ void TCespite::elabora_mov_neg(TRelation& rel, TRectype& tmv, TRectype& tmvam)
|
||||
// Scandisce tutti i movimenti del cespite fino alla data_limite
|
||||
void TCespite::scansione_movimenti(const TDate& data_limite, bool is_valid)
|
||||
{
|
||||
log("- Scansione movimenti");
|
||||
log(TR("- Scansione movimenti"));
|
||||
TDitta_cespiti& cce = ditta_cespiti();
|
||||
TDate inies, fines;
|
||||
const int esercizio = cce.esercizio_corrente(inies, fines);
|
||||
@ -1772,7 +1773,7 @@ void TCespite::agg_spe_man(bool is_valid)
|
||||
{
|
||||
if (_tipo_sit != 1 || !is_valid || tipo() != tc_materiale)
|
||||
return;
|
||||
log("- Aggiornamento spese di manutenzione");
|
||||
log(TR("- Aggiornamento spese di manutenzione"));
|
||||
|
||||
TDitta_cespiti& cce = ditta_cespiti();
|
||||
TString16 field; // Nome del campo da incrementare
|
||||
@ -1821,7 +1822,7 @@ bool TCespite::calc_amm(int tipo_sit, const TDate& data_limite, bool recalc_spe_
|
||||
{
|
||||
_tipo_sit = tipo_sit;
|
||||
const TString16 idcespite = get(CESPI_IDCESPITE); // Keep it handy for debug purposes
|
||||
log("* Inizio calcolo situazione %d cespite %s", tipo_sit, (const char*)idcespite);
|
||||
log(FR("* Inizio calcolo situazione %d cespite %s"), tipo_sit, (const char*)idcespite);
|
||||
|
||||
#ifdef DBG
|
||||
if (tipo_sit == 1 && atol(idcespite) == 83L)
|
||||
@ -1836,7 +1837,7 @@ bool TCespite::calc_amm(int tipo_sit, const TDate& data_limite, bool recalc_spe_
|
||||
calc_amm_residui(is_valid);
|
||||
if (recalc_spe_man)
|
||||
agg_spe_man(is_valid);
|
||||
log("* Fine calcolo situazione %d cespite %s", tipo_sit, (const char*)idcespite);
|
||||
log(FR("* Fine calcolo situazione %d cespite %s"), tipo_sit, (const char*)idcespite);
|
||||
log("");
|
||||
|
||||
return is_valid;
|
||||
|
@ -53,13 +53,13 @@ bool TOpenesc_mask::check_oldes()
|
||||
if (!b1 || b2)
|
||||
{
|
||||
TString msg;
|
||||
msg << "Non è possibile aprire il nuovo esercizio in quanto ";
|
||||
msg << TR("Non è possibile aprire il nuovo esercizio in quanto ");
|
||||
if (!b1)
|
||||
msg << "non è stato stampato il bollato";
|
||||
msg << TR("non è stato stampato il bollato");
|
||||
else
|
||||
msg << "è già stata effettuata la chiusura";
|
||||
msg << TR("è già stata effettuata la chiusura");
|
||||
const TString8 codatt = ccb.get("CODTAB").mid(4);
|
||||
msg << "\ndell'attività " << cache().get("%CAT", codatt, "S0");
|
||||
msg << TR("\ndell'attività ") << cache().get("%CAT", codatt, "S0");
|
||||
ok = error_box(msg);
|
||||
break;
|
||||
}
|
||||
@ -105,7 +105,7 @@ bool TOpenesc_mask::on_field_event(TOperable_field& o, TField_event e, long joll
|
||||
if (e == fe_close)
|
||||
{
|
||||
if (o.empty())
|
||||
return error_box("È necessario specificare il codice del nuovo esercizio");
|
||||
return error_box(TR("È necessario specificare il codice del nuovo esercizio"));
|
||||
}
|
||||
break;
|
||||
default:
|
||||
@ -185,7 +185,7 @@ void TOpenesc::crea_esercizio(int oldes, int newes, const TDate& ies, const TDat
|
||||
}
|
||||
}
|
||||
else
|
||||
warning_box("Attenzione: non esiste ancora l'esercizio contabile %04d", newes);
|
||||
warning_box(TR("Attenzione: non esiste ancora l'esercizio contabile %04d"), newes);
|
||||
}
|
||||
|
||||
// Crea l'esercizio cespiti se necessario
|
||||
@ -368,7 +368,7 @@ void TOpenesc::crea_ammortamenti(int oldes, int newes) const
|
||||
const long items = cur.items();
|
||||
cur.freeze();
|
||||
|
||||
TProgind pi(items, "Creazione ammortamenti", FALSE, TRUE);
|
||||
TProgind pi(items, TR("Creazione ammortamenti"), FALSE, TRUE);
|
||||
for (cur = 0; cur.pos() < items; ++cur)
|
||||
{
|
||||
pi.addstatus(1);
|
||||
@ -415,6 +415,6 @@ void TOpenesc::main_loop()
|
||||
int ce2200(int argc, char* argv[])
|
||||
{
|
||||
TOpenesc a;
|
||||
a.run(argc, argv, "Cambio esercizio");
|
||||
a.run(argc, argv, TR("Cambio esercizio"));
|
||||
return 0;
|
||||
}
|
||||
|
@ -41,8 +41,8 @@ void TCollces_sheet::get_row(long n, TToken_string& row)
|
||||
}
|
||||
|
||||
TCollces_sheet::TCollces_sheet(TCursor* cursor, TEdit_field* ef, TToken_string& sibling)
|
||||
: TBrowse_sheet(cursor, "CODGRUPPO|CODSPECIE|CODCAT|CODCAT", "Categorie",
|
||||
"Gruppo|Specie|Categoria|Descrizione@70", 0, ef, sibling)
|
||||
: TBrowse_sheet(cursor, "CODGRUPPO|CODSPECIE|CODCAT|CODCAT", TR("Categorie"),
|
||||
HR("Gruppo|Specie|Categoria|Descrizione@70"), 0, ef, sibling)
|
||||
{
|
||||
}
|
||||
|
||||
@ -98,7 +98,7 @@ bool TCesp2cg_qmask::on_field_event(TOperable_field& o, TField_event e, long jol
|
||||
{
|
||||
const TRectype& cesp = cache().get(LF_CESPI, o.get());
|
||||
if (cesp.empty())
|
||||
return error_box("Inserire un cespite valido");
|
||||
return error_box(TR("Inserire un cespite valido"));
|
||||
}
|
||||
break;
|
||||
default:
|
||||
@ -144,7 +144,7 @@ void TCesp2cg_emask::test_duplication(short g1, short g2)
|
||||
}
|
||||
if (!s1.blank() && s1 == s2)
|
||||
{
|
||||
warning_box("Non si deve specificare lo stesso conto della riga precedente");
|
||||
warning_box(TR("Non si deve specificare lo stesso conto della riga precedente"));
|
||||
for (int i = 0; i < 4; i++)
|
||||
reset(g1+i);
|
||||
}
|
||||
@ -229,7 +229,7 @@ bool TCesp2cg::user_create()
|
||||
{
|
||||
if (!has_module(CGAUT))
|
||||
{
|
||||
error_box("È necessario attivare il modulo contabilità");
|
||||
error_box(TR("È necessario attivare il modulo contabilità"));
|
||||
return FALSE;
|
||||
}
|
||||
_rel = new TRelation(LF_COLLCES);
|
||||
@ -359,6 +359,6 @@ bool TCesp2cg::user_destroy()
|
||||
int ce2300(int argc, char* argv[])
|
||||
{
|
||||
TCesp2cg a;
|
||||
a.run(argc, argv, "Collegamenti contabili");
|
||||
a.run(argc, argv, TR("Collegamenti contabili"));
|
||||
return 0;
|
||||
}
|
||||
|
@ -227,6 +227,6 @@ void TCesp_tras::main_loop()
|
||||
int ce2400(int argc, char* argv[])
|
||||
{
|
||||
TCesp_tras a;
|
||||
a.run(argc, argv, "Trasferimento movimenti");
|
||||
a.run(argc, argv, TR("Trasferimento movimenti"));
|
||||
return 0;
|
||||
}
|
||||
|
@ -35,7 +35,7 @@ bool TRestore_boll_mask::on_field_event(TOperable_field& o, TField_event e, long
|
||||
TString80 key; key.format("%4d%02d%s",esercizio, gruppo, (const char*) specie);
|
||||
const TRectype& ccb = cache().get("CCB", key);
|
||||
if (ccb.get_bool("B2"))
|
||||
return error_box("L'attivita' selezionata e' gia' stata chiusa. \nNon e' possibile ripristinare il bollato");
|
||||
return error_box(TR("L'attivita' selezionata e' gia' stata chiusa. \nNon e' possibile ripristinare il bollato"));
|
||||
}
|
||||
break;
|
||||
default:
|
||||
@ -162,10 +162,10 @@ void TRestore_boll::main_loop()
|
||||
|
||||
bool ok = TRUE;
|
||||
if (dc.bollato_stampato())
|
||||
ok = yesno_box("Si desidera veramente ripristinare la stampa bollato:\n"
|
||||
"dell' attivita' selezionata ?");
|
||||
ok = yesno_box(TR("Si desidera veramente ripristinare la stampa bollato:\n"
|
||||
"dell' attivita' selezionata ?"));
|
||||
else
|
||||
ok = warning_box("Il bollato dell' attivita' selezionata non risulta stampato");
|
||||
ok = warning_box(TR("Il bollato dell' attivita' selezionata non risulta stampato"));
|
||||
|
||||
if (ok)
|
||||
{
|
||||
@ -180,6 +180,6 @@ void TRestore_boll::main_loop()
|
||||
int ce2500(int argc, char* argv[])
|
||||
{
|
||||
TRestore_boll a;
|
||||
a.run(argc, argv, "Ripristino stampa bollato");
|
||||
a.run(argc, argv, TR("Ripristino stampa bollato"));
|
||||
return 0;
|
||||
}
|
||||
|
@ -155,14 +155,14 @@ bool TRegistro_cespiti::attivita_handler(TMask_field& f, KEY k)
|
||||
{
|
||||
calc_on = reg_on = FALSE;
|
||||
m.reset(F_CALCOLO);
|
||||
xvt_statbar_set("L'esercizio è stato chiuso");
|
||||
xvt_statbar_set(TR("L'esercizio è stato chiuso"));
|
||||
}
|
||||
else
|
||||
if (ccb.get_bool("B1"))
|
||||
{
|
||||
calc_on = reg_on = FALSE;
|
||||
m.set(F_CALCOLO,"X");
|
||||
xvt_statbar_set("Il bollato dell'esercizio é stato stampato");
|
||||
xvt_statbar_set(TR("Il bollato dell'esercizio é stato stampato"));
|
||||
}
|
||||
else
|
||||
xvt_statbar_set("");
|
||||
@ -175,7 +175,7 @@ bool TRegistro_cespiti::attivita_handler(TMask_field& f, KEY k)
|
||||
if (m.get_int(F_TIPOREGISTRO) == 2 && ccb.get_bool("B2"))
|
||||
{
|
||||
if (k == K_ENTER)
|
||||
return f.error_box("Attenzione! Esercizio chiuso. \nNon è possibile stampare il registro bollato.");
|
||||
return f.error_box(TR("Attenzione! Esercizio chiuso. \nNon è possibile stampare il registro bollato."));
|
||||
}
|
||||
}
|
||||
return TRUE;
|
||||
@ -276,7 +276,7 @@ void TRegistro_cespiti::main_loop()
|
||||
//della manutenzione creato precedentemente
|
||||
if (_bollato)
|
||||
{
|
||||
if (yesno_box("Bollato stampato in modo corretto ?"))
|
||||
if (yesno_box(TR("Bollato stampato in modo corretto ?")))
|
||||
aggiorna_bollato();
|
||||
else
|
||||
distruggi_cespite_man();
|
||||
@ -313,7 +313,7 @@ void TRegistro_cespiti::costruisci_cespite(int cat, const real& spese)
|
||||
cespi.put(CESPI_FLGTPVEI, 1);
|
||||
cespi.put(CESPI_TPSPEMAN, 1);
|
||||
|
||||
TString desc = "Importo spese di manutenzione sostenute - beni materiali ";
|
||||
TString desc = TR("Importo spese di manutenzione sostenute - beni materiali ");
|
||||
desc << (cat == 91 ? 5 : 25) << '%';
|
||||
cespi.put(CESPI_DESC, desc);
|
||||
|
||||
@ -365,7 +365,7 @@ HIDDEN void kill_rec(TLocalisamfile& f)
|
||||
err = _iskeyerr;
|
||||
}
|
||||
if (err != NOERR)
|
||||
error_box("Errore %d durante la cancellazione del cespite %s dal file: %d",
|
||||
error_box(FR("Errore %d durante la cancellazione del cespite %s dal file: %d"),
|
||||
err, (const char*)f.get("IDCESPITE"), f.num());
|
||||
}
|
||||
|
||||
@ -689,15 +689,15 @@ void TRegistro_cespiti::print_valorifinali()
|
||||
TString80 key; key.format("%04d",_mask->get_int(F_ESERCIZIO));
|
||||
const TRectype& cce = cache().get("CCE", key);
|
||||
long giorni = (_mask->get_date(F_DATAFINE) - _mask->get_date(F_DATAINIZIO) + 1);
|
||||
key.format("Amm.to ragguagliato all'esercizio di %3d giorni su %3d",giorni, cce.get("I3"));
|
||||
key.format(FR("Amm.to ragguagliato all'esercizio di %3d giorni su %3d"),giorni, cce.get("I3"));
|
||||
section.find_field(FR_FE_MSG2).set(key);
|
||||
section.find_field(FR_FE_MSG2).enable(msg);
|
||||
msg = _form->cursor()->curr(LF_AMMCE).get_bool(AMMCE_MSG03);
|
||||
const int usoprom = _form->cursor()->curr().get_int(CESPI_USOPROM);
|
||||
if (usoprom==2 || usoprom==4)
|
||||
key="Ammortamento ridotto al 50% per bene in uso promiscuo";
|
||||
key=TR("Ammortamento ridotto al 50% per bene in uso promiscuo");
|
||||
else if (usoprom==3 || usoprom==5)
|
||||
key="Ammortamento ridotto all'80% per bene in uso promiscuo";
|
||||
key=TR("Ammortamento ridotto all'80% per bene in uso promiscuo");
|
||||
section.find_field(FR_FE_MSG3).set(key);
|
||||
section.find_field(FR_FE_MSG3).enable(msg);
|
||||
msg = _form->cursor()->curr(LF_AMMCE).get_bool(AMMCE_MSG04);
|
||||
@ -761,7 +761,7 @@ void TRegistro_cespiti::footer_registro()
|
||||
int ce3100(int argc, char* argv[])
|
||||
{
|
||||
TRegistro_cespiti a;
|
||||
a.run(argc,argv,"Stampa registro cespiti");
|
||||
a.run(argc,argv,TR("Stampa registro cespiti"));
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user