Patch level : 2.0 486

Files correlati     :
Ricompilazione Demo : [ ]
Commento            :
Aggiunta traduzione all intra


git-svn-id: svn://10.65.10.50/trunk@11204 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
alex 2003-06-03 12:50:52 +00:00
parent 06b62f6cb0
commit d39b1114a5
6 changed files with 37 additions and 34 deletions

View File

@ -281,7 +281,7 @@ void TStampaIntra_form::print()
if (_totrow1 + _totrow2 == 0)
{
error_box("Non esistono righe di riepilogo o rettifiche da stampare per il periodo selezionato");
error_box(TR("Non esistono righe di riepilogo o rettifiche da stampare per il periodo selezionato"));
return;
}
@ -301,7 +301,7 @@ void TStampaIntra_form::print()
TLocalisamfile& nditte = relation()->lfile(LF_NDITTE);
nditte.put(NDT_CODDITTA, prefix().get_codditta());
if (relation()->read(_isequal) != NOERR && !yesno_box("Errore nel posizionamento sulla ditta corrente. Continuare?"))
if (relation()->read(_isequal) != NOERR && !yesno_box(TR("Errore nel posizionamento sulla ditta corrente. Continuare?")))
return;
pr.formlen(height(1));
@ -413,6 +413,6 @@ void TStampa_intra::main_loop()
int in0100(int argc, char* argv[])
{
TStampa_intra a;
a.run(argc, argv, "Stampa Riepiloghi");
a.run(argc, argv, TR("Stampa Riepiloghi"));
return 0;
}

View File

@ -360,11 +360,13 @@ bool TDischetto_mask::on_field_event(TOperable_field& o, TField_event e, long jo
const char fc = frequenza(anno, 'C');
TList_field& list = (TList_field&)field(type_field());
TToken_string codes = "A|C";
TToken_string descr = "Acquisti|Cessioni";
TToken_string descr = TR("Acquisti");
descr.add(TR("Cessioni"));
if (fa == fc)
{
codes.add("T");
descr.add("Tutti");
descr.add(TR("Tutti"));
}
list.replace_items(codes, descr);
@ -434,7 +436,7 @@ bool TDischetto_mask::write_record(ofstream& out, const TRecord_intra& rec, TInt
name = get(F_DISCO);
name.add(get(F_PATH));
name.add("scambi.cee");
message_box("Inserire un nuovo dischetto prima di continuare.");
message_box(TR("Inserire un nuovo dischetto prima di continuare."));
out.open(name);
if (out)
@ -444,7 +446,7 @@ bool TDischetto_mask::write_record(ofstream& out, const TRecord_intra& rec, TInt
}
}
if (!good)
error_box("Errore di scrittura su disco: ripetere l'operazione.");
error_box(TR("Errore di scrittura su disco: ripetere l'operazione."));
return good;
}
@ -466,9 +468,9 @@ void TDischetto_mask::genera_dischetto(char tip, int mode)
if (exist)
{
const char* ac = tip == 'A' ? "agli acquisti" : "alle cessioni";
if (!yesno_box("Il dischetto relativo %s del periodo indicato è già stato generato:\n"
"Si desidera proseguire ugualmente?", ac))
const char* ac = tip == 'A' ? TR("agli acquisti") : TR("alle cessioni");
if (!yesno_box(FR("Il dischetto relativo %s del periodo indicato è già stato generato:\n"
"Si desidera proseguire ugualmente?"), ac))
return;
}
@ -496,9 +498,9 @@ void TDischetto_mask::genera_dischetto(char tip, int mode)
bool do_remove = (mode == 2);
if (mode == 0)
{
do_remove = yesno_box("Il file %s, esiste gia': si desiderla eliminarlo?\n"
do_remove = yesno_box(FR("Il file %s, esiste gia': si desiderla eliminarlo?\n"
"Rispondendo SI i dati sul dischetto verranno azzerati.\n"
"Rispondendo NO i dati verranno accodati a quelli già presenti",
"Rispondendo NO i dati verranno accodati a quelli già presenti"),
(const char*)name);
}
if (do_remove)
@ -508,9 +510,9 @@ void TDischetto_mask::genera_dischetto(char tip, int mode)
ofstream out(name, ios::out | ios::app);
if (!out)
{
error_box("Impossibile creare il file %s\n"
error_box(FR("Impossibile creare il file %s\n"
"Assicurarsi di avere inserito un dischetto\n"
"formattato e ripetere nuovamente l'operazione.",
"formattato e ripetere nuovamente l'operazione."),
(const char*)name);
return;
}
@ -519,7 +521,7 @@ void TDischetto_mask::genera_dischetto(char tip, int mode)
const long total = ic._righe_riep + ic._righe_rett;
TProgind pi(total, "Generazione scambi.cee", FALSE, TRUE);
TProgind pi(total, TR("Generazione scambi.cee"), FALSE, TRUE);
TRecord_intra rec;
rec.genera_testata(ic);
out << rec;
@ -593,6 +595,6 @@ void TDischetto_app::main_loop()
int in0200(int argc, char* argv[])
{
TDischetto_app a;
a.run(argc, argv, "Generazione dischetti INTRA");
a.run(argc, argv, TR("Generazione dischetti INTRA"));
return 0;
}

View File

@ -97,7 +97,7 @@ bool TImmissione_mask::on_field_event(TOperable_field& o, TField_event e, long j
if (mov.empty())
{
if (e == fe_modify && !app().is_transaction())
warning_box("Il movimento contabile %s non esiste", (const char*)numreg);
warning_box(FR("Il movimento contabile %s non esiste"), (const char*)numreg);
}
else
{
@ -107,7 +107,7 @@ bool TImmissione_mask::on_field_event(TOperable_field& o, TField_event e, long j
const TString16 caus(mov.get(MOV_CODCAUS));
const TCausale c(caus);
if (!c.intra())
return error_box("La causale %s del movimento contabile %s non e' intracomunitaria",
return error_box(FR("La causale %s del movimento contabile %s non e' intracomunitaria"),
(const char*)caus, (const char*)numreg);
_caus_valintra = c.valintra();
}
@ -125,8 +125,8 @@ bool TImmissione_mask::on_field_event(TOperable_field& o, TField_event e, long j
m.show(-GR_ACQUISTI, acq); // Mostra i gruppi di campi
m.show(-GR_CESSIONI, !acq); // consoni al tipo movimento
s.enable_column(F_PAESE_ORIG, acq);
s.set_column_header(F_PAESE, acq ? "Paese\nProv." : "Paese\nDest.");
s.set_column_header(F_PROV, acq ? "Provincia\nDest." : "Provincia\nOrig.");
s.set_column_header(F_PAESE, acq ? TR("Paese\nProv.") : TR("Paese\nDest."));
s.set_column_header(F_PROV, acq ? TR("Provincia\nDest.") : TR("Provincia\nOrig."));
TString key ; key << main_app().get_firm();
const bool req = frequenza(anno()) == 'M' && !cache().get(LF_NDITTE, key).get_bool("NONOBBSTAT");
@ -197,7 +197,7 @@ bool TImmissione_mask::on_field_event(TOperable_field& o, TField_event e, long j
if (totdoc != totdocimm)
{
const TString str_totdoc(totdoc.string());
return error_box("Totale documento (%s) diverso dal totale documento immesso(%s)", (const char *)str_totdoc, (const char *)totdocimm.string());
return error_box(FR("Totale documento (%s) diverso dal totale documento immesso(%s)"), (const char *)str_totdoc, (const char *)totdocimm.string());
}
}
break;
@ -292,7 +292,7 @@ bool TImmissione_mask::on_sheet_field_event(TOperable_field& o, TField_event e,
TMask& m = o.mask();
TString16 key; key << m.get(F_NOMENCLATURA1) << m.get(F_NOMENCLATURA2) << m.get(F_NOMENCLATURA3);
if (key.empty())
return error_box("La nomenclatura combinata e' obbligatoria");
return error_box(TR("La nomenclatura combinata e' obbligatoria"));
}
}
else
@ -345,7 +345,7 @@ bool TImmissione_intra::protected_record(TRectype & rec)
const int periodo = _msk->date2periodo(d);
bool prot = is_riepilogo(tipo, d.year(), periodo) &&
!yesno_box("Attenzione: il movimento appartiene ad un riepilogo esistente,:\nSi desidera poterlo modificare ugualmente?");
!yesno_box(TR("Attenzione: il movimento appartiene ad un riepilogo esistente,:\nSi desidera poterlo modificare ugualmente?"));
_msk->enable(DLG_SAVEREC, !prot);
return prot;
}
@ -369,6 +369,6 @@ bool TImmissione_intra::user_destroy()
int in0500(int argc, char* argv[])
{
TImmissione_intra a;
a.run(argc, argv, "Movimenti INTRA");
a.run(argc, argv, TR("Movimenti INTRA"));
return 0;
}

View File

@ -55,7 +55,7 @@ bool TRiepiloghi_mask::on_field_event(TOperable_field& o, TField_event e, long j
{
TString16 key; key << get(F_NOMENCLATURA1) << get(F_NOMENCLATURA2) << get(F_NOMENCLATURA3);
if (key.empty())
return error_box("La nomenclatura combinata e' obbligatoria");
return error_box(TR("La nomenclatura combinata e' obbligatoria"));
}
}
else
@ -249,13 +249,13 @@ void TRiepiloghi_intra::check_existent_disk(const TMask& m)
const TRectype& ird = cache().get("IRD",str);
if (!ird.empty())
warning_box("E' già stato generato il dischetto per il periodo %d dell'anno %d", periodo,anno);
warning_box(FR("E' già stato generato il dischetto per il periodo %d dell'anno %d"), periodo,anno);
}
int in0600(int argc, char* argv[])
{
TRiepiloghi_intra a;
a.run(argc, argv, "Riepiloghi INTRA");
a.run(argc, argv, TR("Riepiloghi INTRA"));
return 0;
}

View File

@ -100,7 +100,7 @@ bool TRettifiche_mask::on_field_event(TOperable_field& o, TField_event e, long j
{
const TString& codval = get(O_VALUTA);
if (is_true_value(codval))
return error_box("Inserire l'ammontare in valuta %s", (const char*)codval);
return error_box(FR("Inserire l'ammontare in valuta %s"), (const char*)codval);
}
break;
case F_AMMONTARE:
@ -228,6 +228,6 @@ const char* TRettifiche_intra::get_next_key()
int in0700(int argc, char* argv[])
{
TRettifiche_intra a;
a.run(argc, argv, "Rettifiche INTRA");
a.run(argc, argv, TR("Rettifiche INTRA"));
return 0;
}

View File

@ -1,5 +1,6 @@
#include <currency.h>
#include <defmask.h>
#include <diction.h>
#include <prefix.h>
#include <progind.h>
#include <recarray.h>
@ -351,13 +352,13 @@ bool TGenerazione_mask::genera_riepiloghi()
const long items = cur.items();
if (items > 0)
{
TProgind pi(items, "Lettura movimenti intra...", TRUE, TRUE);
TProgind pi(items, TR("Lettura movimenti intra..."), TRUE, TRUE);
cur.freeze();
for (cur = 0; cur.pos() < items; ++cur)
{
pi.addstatus(1);
if (pi.iscancelled())
return warning_box("Operazione annullata");
return warning_box(TR("Operazione annullata"));
bool rowok = rel.is_first_match(LF_RINTRA);
while (rowok)
{
@ -367,12 +368,12 @@ bool TGenerazione_mask::genera_riepiloghi()
}
}
else
return warning_box("Non ci sono movimenti nel periodo specificato");
return warning_box(TR("Non ci sono movimenti nel periodo specificato"));
const int riepiloghi = _riep.sort();
if (riepiloghi > 0)
{
TProgind pi(riepiloghi, "Scrittura riepiloghi intra...", FALSE, TRUE);
TProgind pi(riepiloghi, TR("Scrittura riepiloghi intra..."), FALSE, TRUE);
TLocalisamfile riep(LF_RIEPRETT);
riep.put("TIPO", tipo);
riep.put("ANNO", anno_r);
@ -391,7 +392,7 @@ bool TGenerazione_mask::genera_riepiloghi()
const int werr = err == NOERR ? riep.rewrite() : riep.write();
if (werr != NOERR)
return error_box("Errore %d durante la scrittura dei riepiloghi", werr);
return error_box(FR("Errore %d durante la scrittura dei riepiloghi"), werr);
if (err == NOERR)
{