Patch level : 4.0 596

Files correlati     : ve7.exe
Ricompilazione Demo : [ ]
Commento            :


TRaduzioni in ingleses


git-svn-id: svn://10.65.10.50/trunk@14790 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
alex 2007-01-25 15:42:56 +00:00
parent 07a7236a7c
commit 4a6b388bd4
5 changed files with 49 additions and 43 deletions

View File

@ -919,9 +919,14 @@ const TString_array& TDongle::info() const
TScanner scanner("campo.aut");
for (int aut = 0; ; aut++)
{
const TString& tok = scanner.line();
if (tok.blank())
const TString row(scanner.line());
if (row.blank())
break;
TString tok(row.left(3));
const TString name(row.mid(3));
if (name.full())
tok << dictionary_translate(name);
((TString_array&)_info).add(tok);
}
}

View File

@ -353,7 +353,7 @@ bool TForm_item::read_from(const TRectype& prof)
if (!_special.is_key(key))
{
error_box("Variabile speciale non presente nel profilo: %s",
error_box(FR("Variabile speciale non presente nel profilo: %s"),
(const char*)key);
continue;
}
@ -1874,7 +1874,7 @@ bool TForm_list::update()
if (val == def) pos = 0; // Test default (first & empty) value
else
{
ok = yesno_box("Il campo '%s' non puo' valere '%s': continuare ugualmente",
ok = yesno_box(FR("Il campo '%s' non puo' valere '%s': continuare ugualmente"),
(const char*)key(), (const char*)val);
set(_codes.get(pos = 0));
}
@ -2364,7 +2364,7 @@ TForm_item* TPrint_section::parse_item(const TString& s)
TForm_item* f = create_item(s);
#ifdef DBG
if (f == NULL)
yesnofatal_box("Tipo di campo del form non riconosciuto: '%s'", (const char*)s);
yesnofatal_box(FR("Tipo di campo del form non riconosciuto: '%s'"), (const char*)s);
#endif
return f;
}
@ -2491,7 +2491,7 @@ TForm_item& TPrint_section::find_field(short id) const
case last_page : str << 'L'; break;
default : str << 'O'; break;
}
yesnofatal_box("Impossibile trovare il campo %d nella sezione %s del form %s",
yesnofatal_box(FR("Impossibile trovare il campo %d nella sezione %s del form %s"),
id, (const char*)str, (const char*)form().name());
return field(0);
}
@ -2687,7 +2687,7 @@ bool TForm::parse_sortedjoin(TScanner& scanner)
filter=parse_filter(scanner);
} else scanner.push();
if (filter.empty() && sortexp.empty())
yesnofatal_box("Sort senza espressioni di ordinamento o filtri");
yesnofatal_box(TR("Sort senza espressioni di ordinamento o filtri"));
TRelation * sortrel=new TRelation(atoi(j));
while (ok() && scanner.popkey() != "JO" )
{
@ -2696,7 +2696,7 @@ bool TForm::parse_sortedjoin(TScanner& scanner)
TString16 subj(scanner.pop()); // File or table
parse_join_param(scanner,sortrel,subj,atoi(j));
} else
yesnofatal_box("Token non riconosciuto in SORT:%s", (const char *) scanner.key());
yesnofatal_box(FR("Token non riconosciuto in SORT:%s"), (const char *) scanner.key());
}
int to = 0;
@ -2728,7 +2728,7 @@ bool TForm::parse_sortedjoin(TScanner& scanner)
}
}
if (exp.empty())
yesnofatal_box("JOIN senza espressioni INTO");
yesnofatal_box(TR("JOIN senza espressioni INTO"));
scanner.push();
TSortedfile *sf= new TSortedfile(atoi(j),sortrel,sortexp,filter,key);
@ -3697,8 +3697,8 @@ bool TForm::print(
if ((_char_to_pos != '\0' || ((_ipx +_ipy+_fpx) != 0)) && // Se i parametri di posizionamento sono settati e
(_x != 0 || _y != 0)) // cosi' pure gli offset genera un errore.
{
error_box("Non e' possibile settare contemporaneamente gli offset"
" e i parametri di posizionamento del modulo.");
error_box(TR("Non e' possibile settare contemporaneamente gli offset"
" e i parametri di posizionamento del modulo."));
return FALSE;
}
TPrinter& pr = printer();
@ -3721,21 +3721,21 @@ bool TForm::print(
{
if (height(t)> (word)pr.formlen())
{
TString s("La lunghezza totale della sezione ");
TString s(TR("La lunghezza totale della sezione "));
switch ( t )
{
case odd_page:
s << "standard"; break;
s << TR("standard"); break;
case even_page:
s << "pagine pari"; break;
s << TR("pagine pari"); break;
case first_page:
s << "prima pagina"; break;
s << TR("prima pagina"); break;
case last_page:
s << "ultima pagina"; break;
s << TR("ultima pagina"); break;
default:
break;
}
s << " eccede la lunghezza reale del foglio.";
s << TR(" eccede la lunghezza reale del foglio.");
message_box(s);
}
}
@ -4484,7 +4484,7 @@ bool TForm::write_profile()
}
form.reread(_unlock);
if (err != NOERR)
return error_box("Errore di salvataggio profilo: %d", err);
return error_box(FR("Errore di salvataggio profilo: %d"), err);
return TRUE;
}
@ -4576,7 +4576,7 @@ void TForm::read(
printer().set_form_name(n);
}
else
fatal_box("Il form '%s' non esiste.",(const char*)n);
fatal_box(FR("Il form '%s' non esiste."),(const char*)n);
TScanner scanner(n);
bool ok = TRUE;

View File

@ -429,6 +429,7 @@ const TFilename& TFile_info::load_filedes()
_dir = _nordir;
COpenFile(num(), &_filedes, _nolock, _dir);
_name = _filedes.SysName;
strncpy(_filedes.Des, dictionary_translate(_filedes.Des), sizeof(_filedes.Des));
}
else
_name.cut(0);

View File

@ -456,7 +456,7 @@ void TRelation_application::insert_mode()
}
if (!user_can_write(r))
{
warning_box("L'utente %s non puo' inserire in questo archivio",
warning_box(FR("L'utente %s non puo' inserire in questo archivio"),
(const char*)user());
return;
}
@ -506,9 +506,9 @@ bool TRelation_application::modify_mode()
if (err != NOERR)
{
if (err == _islocked)
message_box("I dati sono gia' usati da un altro programma");
message_box(TR("I dati sono gia' usati da un altro programma"));
else
error_box("Impossibile leggere i dati: errore %d", err);
error_box(FR("Impossibile leggere i dati: errore %d"), err);
query_mode();
return FALSE;
}
@ -612,8 +612,8 @@ HIDDEN bool delete_handler(TMask_field& f, KEY k)
}
if (req)
{
TString str; str << (finale ? "A " : "Da ") << orig.prompt();
return f.error_box("Specificare anche il valore %s", (const char*)str);
TString str; str << (finale ? TR("A ") : TR("Da ")) << orig.prompt();
return f.error_box(FR("Specificare anche il valore %s"), (const char*)str);
}
}
}
@ -630,7 +630,7 @@ HIDDEN bool delete_handler(TMask_field& f, KEY k)
default : ok = prec <= curr; break;
}
if (!ok)
return f.error_box("Inserire un valore non inferiore a '%s'", (const char*)prec);
return f.error_box(FR("Inserire un valore non inferiore a '%s'"), (const char*)prec);
}
}
return TRUE;
@ -799,7 +799,7 @@ int TRelation_application::delete_mode()
keep_running = FALSE;
if (tasto == K_DEL && sht.checked() == 0)
{
error_box("Non e' stato selezionato nessun elemento");
error_box(TR("Non e' stato selezionato nessun elemento"));
sht.select(0);
keep_running = TRUE;
}
@ -1016,7 +1016,7 @@ bool TRelation_application::save(bool check_dirty)
else k = K_ESC;
}
else
k = yesnocancel_box("Si desidera registrare?");
k = yesnocancel_box(TR("Si desidera registrare?"));
if (k == K_ESC || k == K_NO)
{
@ -1710,7 +1710,7 @@ bool TRelation_application::load_transaction()
if (ok)
_mask->on_firm_change();
else
error_box("La ditta %ld non esiste", firm);
error_box(FR("La ditta %ld non esiste"), firm);
}
if (_curr_transaction == TRANSACTION_RUN)
retv= FALSE; // Ho gia' finito qui: basta il cambio ditta

View File

@ -25,7 +25,7 @@ HIDDEN bool _expr_val(TMask_field& f, KEY)
const char* s = e.varname(i);
if (s[0] != '#')
{
TString err; err << "Non esiste la variabile " << s << " in " << e;
TString err; err << TR("Non esiste la variabile ") << s << TR(" nell'espressione ") << e;
return f.error_box((const char*)err);
}
s++;
@ -164,8 +164,8 @@ HIDDEN bool _pi_val(TMask_field& f, KEY)
bool len_error = TRUE;
if (stato.blank() || stato == "IT")
len_error = pi.len() != 11;
const char* msg = len_error ? "Lunghezza p" : "P";
ok = f.yesno_box("%sartita IVA errata, la accetto ugualmente?", msg);
const char* msg = len_error ? TR("Lunghezza") : "";
ok = f.yesno_box(FR("%s Partita IVA errata, la accetto ugualmente?"), msg);
if (ok) f.set_dirty(FALSE);
}
else ok = TRUE; // Era gia' errata e la ho accettata
@ -274,7 +274,7 @@ HIDDEN bool _cf_val(TMask_field& f, KEY key)
{
if(f.dirty())
{
ok = f.yesno_box("Codice fiscale errato: lo accetto ugualmente?");
ok = f.yesno_box(TR("Codice fiscale errato: lo accetto ugualmente?"));
if (ok) f.set_dirty(FALSE);
}
else ok = TRUE; // Era gia' errato al caricamento quindi lo accetto
@ -290,7 +290,7 @@ HIDDEN bool _xt_pi_val(TMask_field& f, KEY key)
TString16 value(f.get());
if (value.empty())
return f.error_box("Partita IVA obbligatoria");
return f.error_box(TR("Partita IVA obbligatoria"));
if (!_pi_val(f, key))
return FALSE;
@ -316,7 +316,7 @@ HIDDEN bool _xt_pi_val(TMask_field& f, KEY key)
if (pi != s1 && pi != s2 && pi != s3)
{
TString16 ui; ui.format("%03d", s1);
if (f.yesno_box("Ufficio IVA della partita IVA non congruente: correggere in %s?",
if (f.yesno_box(FR("Ufficio IVA della partita IVA non congruente: correggere in %s?"),
(const char*)ui))
{
value.overwrite(ui, 7);
@ -383,8 +383,8 @@ HIDDEN bool _xt_cf_val(TMask_field& f, KEY key)
if ((sesso == 'F' && gn < 40) || (sesso == 'M' && gn > 40))
{
passed = fld_sex.yesno_box("Sesso non congruente al codice fiscale:\n"
"correzione automatica?");
passed = fld_sex.yesno_box(TR("Sesso non congruente al codice fiscale:\n"
"correzione automatica?"));
if (passed) fld_sex.set(sesso == 'M' ? "F" : "M");
else return TRUE;
}
@ -405,8 +405,8 @@ HIDDEN bool _xt_cf_val(TMask_field& f, KEY key)
err = 3;
if (err != 0)
{
const char* const what = err==1 ? "Anno" : (err==2 ? "Mese" : "Giorno");
passed = fld_dat.yesno_box("%s di nascita non congruente al codice fiscale: correzione automatica?", what);
const char* const what = err==1 ? TR("Anno") : (err==2 ? TR("Mese") : TR("Giorno"));
passed = fld_dat.yesno_box(FR("%s di nascita non congruente al codice fiscale: correzione automatica?"), what);
if (passed) data = "";
else return TRUE;
}
@ -426,7 +426,7 @@ HIDDEN bool _xt_cf_val(TMask_field& f, KEY key)
const char* const codcom = cf.mid(11, 4);
if (com.not_empty() && com != codcom)
{
passed = fld_com.yesno_box("Comune non congruente al codice fiscale: correzione automatica?");
passed = fld_com.yesno_box(TR("Comune non congruente al codice fiscale: correzione automatica?"));
if (passed) com = "";
else return TRUE;
}
@ -482,7 +482,7 @@ HIDDEN bool _fixlen_val(TMask_field& f, KEY)
const int length = atoi(get_val_param(0));
const bool ok = s.len() == length;
if (!ok) f.error_box("Lunghezza errata: deve essere %d", length);
if (!ok) f.error_box(FR("Lunghezza errata: deve essere %d"), length);
return ok;
}
@ -663,7 +663,7 @@ HIDDEN bool _alpha_val(TMask_field& f, KEY k)
const TString& s = f.get();
for (int i = 0; s[i]; i++)
if (!isalpha(s[i]))
return f.error_box("Sono ammessi solo caratteri alfabetici");
return f.error_box(TR("Sono ammessi solo caratteri alfabetici"));
}
return TRUE;
}
@ -754,7 +754,7 @@ HIDDEN bool _sconto_val(TMask_field& f, KEY key)
f.set(goodexp);
}
else
f.error_box( "Espressione di sconto non valida. Errore sul carattere %c", errorchar);
f.error_box(FR("Espressione di sconto non valida. Errore sul carattere %c"), errorchar);
}
}
return ok;
@ -782,7 +782,7 @@ HIDDEN bool _ora_val(TMask_field& f, KEY key)
ok &= ((atoi(&(ora[0]))<24)&&(atoi(&(ora[3]))<60));
if ( !ok )
{
f.error_box("Ora errata o formato non valido");
f.error_box(TR("Ora errata o formato non valido"));
return FALSE;
}
else