codeigniter4 / translations

System message translations for CodeIgniter4
https://codeigniter4.github.io/translations/
MIT License
197 stars 206 forks source link

Italian language Time.php #260

Closed danilort closed 2 years ago

danilort commented 2 years ago

CodeIngiter 4.1.5 Translations 4.1.5

I found a translation error for the IT language (Italian). Inside the file 'system\Language\it\Time.php' (ITALIAN) there are some voices in English.

ERRATA:

'years'          => '{0, plural, =1{# year} other{# years}}',
'months'         => '{0, plural, =1{# month} other{# months}}',
'weeks'          => '{0, plural, =1{# week} other{# weeks}}',
'days'           => '{0, plural, =1{# day} other{# days}}',
'hours'          => '{0, plural, =1{# hour} other{# hours}}',
'minutes'        => '{0, plural, =1{# minute} other{# minutes}}',
'seconds'        => '{0, plural, =1{# second} other{# seconds}}',

CORRIGE:

'years'          => '{0, plural, =1{# anno} other{# anni}}',
'months'         => '{0, plural, =1{# mese} other{# mesi}}',
'weeks'          => '{0, plural, =1{# settimana} other{# settimane}}',
'days'           => '{0, plural, =1{# giorno} other{# giorni}}',
'hours'          => '{0, plural, =1{# ora} other{# ore}}',
'minutes'        => '{0, plural, =1{# minuto} other{# minuti}}',
'seconds'        => '{0, plural, =1{# secondo} other{# secondi}}',

TO TEST:

echo "<br>" . lang('Time.years', [1], 'en');    
echo "<br>" . lang('Time.years', [9], 'en');                
echo "<br>" . lang('Time.years', [1], 'it');            
echo "<br>" . lang('Time.years', [9], 'it');    

Output BEFORE correction:

1 year
9 years
1 year
9 years

Output AFTER correction:

1 year
9 years
1 anno
9 anni

Greetings Danilo

paulbalandan commented 2 years ago

@danilort thank you for the information. Please submit a PR so that we can correct the errors. Thanks.

danilort commented 2 years ago

PR = https://github.com/danilort/translations/pull/1

danilort commented 2 years ago

I opened PR