New: Format of dates depends on language

This commit is contained in:
Laurent Destailleur 2009-06-14 17:26:56 +00:00
parent ffa41c9819
commit 8bb947486a
19 changed files with 163 additions and 19 deletions

View File

@ -2,6 +2,14 @@
CHARSET = UTF-8
SeparatorDecimal = ,
SeparatorThousand =
FormatDateShort=%d/%m/%Y # Format of day with PHP/C tags (strftime functions)
FormatDateShort_java=dd/MM/yyyy # Format of day with Java tags
FormatHourShort=%H:%M
FormatDateTextShort=%d %b %Y
FormatDateText=%d %B %Y
FormatDateHourShort=%d/%m/%Y %H:%M
FormatDateHourTextShort=%d %b %Y %H:%M
FormatDateHourText=%d %B %Y %H:%M
DatabaseConnection = Connexió a la base de dades
Error = Error
ErrorFieldRequired = El camp '%s' és obligatori

View File

@ -3,6 +3,14 @@
CHARSET=UTF-8
SeparatorDecimal=.
SeparatorThousand=,
FormatDateShort=%d/%m/%Y # Format of day with PHP/C tags (strftime functions)
FormatDateShort_java=dd/MM/yyyy # Format of day with Java tags
FormatHourShort=%H:%M
FormatDateTextShort=%d %b %Y
FormatDateText=%d %B %Y
FormatDateHourShort=%d/%m/%Y %H:%M
FormatDateHourTextShort=%d %b %Y %H:%M
FormatDateHourText=%d %B %Y %H:%M
UnitPrice=Unit price
UnitPriceHT=Unit price (excl GST)
UnitPriceTTC=Unit price

View File

@ -0,0 +1,12 @@
# Dolibarr language file - en_GB - main
CHARSET=UTF-8
SeparatorDecimal=.
SeparatorThousand=,
FormatDateShort=%d/%m/%Y # Format of day with PHP/C tags (strftime functions)
FormatDateShort_java=dd/MM/yyyy # Format of day with Java tags
FormatHourShort=%H:%M
FormatDateTextShort=%d %b %Y
FormatDateText=%d %B %Y
FormatDateHourShort=%d/%m/%Y %H:%M
FormatDateHourTextShort=%d %b %Y %H:%M
FormatDateHourText=%d %B %Y %H:%M

View File

@ -2,6 +2,14 @@
CHARSET=UTF-8
SeparatorDecimal=.
SeparatorThousand=,
FormatDateShort=%d/%m/%Y # Format of day with PHP/C tags (strftime functions)
FormatDateShort_java=dd/MM/yyyy # Format of day with Java tags
FormatHourShort=%I:%M %p
FormatDateTextShort=%b %d, %Y
FormatDateText=%B %d, %Y
FormatDateHourShort=%d/%m/%Y %I:%M %p
FormatDateHourTextShort=%b %d, %Y, %I:%M %p
FormatDateHourText=%B %d, %Y, %I:%M %p
DatabaseConnection=Database connection
Error=Error
ErrorFieldRequired=Field '%s' is required

View File

@ -2,6 +2,14 @@
CHARSET = UTF-8
SeparatorDecimal = ,
SeparatorThousand =
FormatDateShort=%d/%m/%Y # Format of day with PHP/C tags (strftime functions)
FormatDateShort_java=dd/MM/yyyy # Format of day with Java tags
FormatHourShort=%H:%M
FormatDateTextShort=%d %b %Y
FormatDateText=%d %B %Y
FormatDateHourShort=%d/%m/%Y %H:%M
FormatDateHourTextShort=%d %b %Y %H:%M
FormatDateHourText=%d %B %Y %H:%M
DatabaseConnection = Conexión a la base de datos
Error = Error
ErrorFieldRequired = El campo '%s' es obligatorio

View File

@ -4,13 +4,20 @@
* Generation date 2009-01-19 22:07:11
*/
// Date 2009-01-19 22:07:11
// START - Lines generated via autotranslator.php tool.
// Reference language: en_US
CHARSET=UTF-8
SeparatorDecimal=.
SeparatorThousand=
SeparatorDecimal=,
SeparatorThousand=
FormatDateShort=%d.%m.%Y # Format of day with PHP/C tags (strftime functions)
FormatDateShort_java=dd.MM.yyyy # Format of day with Java tags
FormatHourShort=%H.%M
FormatDateTextShort=%d. %b %Y
FormatDateText=%d. %B %Y
FormatDateHourShort=%d.%m.%Y %H.%M
FormatDateHourTextShort=%d. %b %Y %H.%M
FormatDateHourText=%d. %B %Y %H.%M
DatabaseConnection=Tietokannan yhteydessä
Error=Virhe
ErrorFieldRequired=Kenttä '% s' on

View File

@ -1,4 +1,12 @@
# Dolibarr language file - fr_BE - main
CHARSET=UTF-8
SeparatorDecimal=,
SeparatorThousand=
SeparatorThousand=
FormatDateShort=%d/%m/%Y # Format of day with PHP/C tags (strftime functions)
FormatDateShort_java=dd/MM/yyyy # Format of day with Java tags
FormatHourShort=%H:%M
FormatDateTextShort=%d %b %Y
FormatDateText=%d %B %Y
FormatDateHourShort=%d/%m/%Y %H:%M
FormatDateHourTextShort=%d %b %Y %H:%M
FormatDateHourText=%d %B %Y %H:%M

View File

@ -0,0 +1,12 @@
# Dolibarr language file - fr_CA - main
CHARSET=UTF-8
SeparatorDecimal=,
SeparatorThousand=
FormatDateShort=%d.%m.%Y # Format of day with PHP/C tags (strftime functions)
FormatDateShort_java=dd.MM.yyyy # Format of day with Java tags
FormatHourShort=%H:%M
FormatDateTextShort=%d %b %Y
FormatDateText=%d %B %Y
FormatDateHourShort=%d.%m.%Y %H:%M
FormatDateHourTextShort=%d %b %Y %H:%M
FormatDateHourText=%d %B %Y %H:%M

View File

@ -0,0 +1,12 @@
# Dolibarr language file - fr_CH - main
CHARSET=UTF-8
SeparatorDecimal=,
SeparatorThousand=
FormatDateShort=%d-%m-%Y # Format of day with PHP/C tags (strftime functions)
FormatDateShort_java=dd-MM-yyyy # Format of day with Java tags
FormatHourShort=%H:%M
FormatDateTextShort=%d %b %Y
FormatDateText=%d %B %Y
FormatDateHourShort=%d-%m-%Y %H:%M
FormatDateHourTextShort=%d %b %Y %H:%M
FormatDateHourText=%d %B %Y %H:%M

View File

@ -3,7 +3,7 @@ CHARSET=UTF-8
SeparatorDecimal=,
SeparatorThousand=
FormatDateShort=%d/%m/%Y # Format of day with PHP/C tags (strftime functions)
FormatDateShort_java=dd/MM/yyyy # Format of day with Java tags
FormatDateShort_java=dd/MM/yyyy # Format of day with Java tags
FormatHourShort=%H:%M
FormatDateTextShort=%d %b %Y
FormatDateText=%d %B %Y

View File

@ -2,6 +2,14 @@
CHARSET =ISO-8859-1
SeparatorDecimal =,
SeparatorThousand =
FormatDateShort=%d/%m/%Y # Format of day with PHP/C tags (strftime functions)
FormatDateShort_java=dd/MM/yyyy # Format of day with Java tags
FormatHourShort=%H.%M
FormatDateTextShort=%d %b %Y
FormatDateText=%d %B %Y
FormatDateHourShort=%d/%m/%Y %H.%M
FormatDateHourTextShort=%d %b %Y %H.%M
FormatDateHourText=%d %B %Y %H:%M
DatabaseConnection =Connessione al database
Error =Errore
ErrorFieldRequired =Il campo '%s' <20> necessaria

View File

@ -1,8 +1,16 @@
# Dolibarr language file - no_NB - main
CHARSET=UTF-8
SeparatorDecimal=,
SeparatorThousand=
FormatDateShort=%d.%m.%Y # Format of day with PHP/C tags (strftime functions)
FormatDateShort_java=dd.MM.yyyy # Format of day with Java tags
FormatHourShort=%H.%M
FormatDateTextShort=%d. %b %Y
FormatDateText=%d. %B %Y
FormatDateHourShort=%d.%m.%Y %H:%M
FormatDateHourTextShort=%d. %b %Y %H:%M
FormatDateHourText=%d. %B %Y %H:%M
DatabaseConnection=Databasetilkobling
SeparatorDecimal=.
SeparatorThousand=,
Error=Feil
ErrorFieldRequired=Feltet '%s' er påkrevet
ErrorFieldFormat=Feltet '%s' har ugyldig verdi

View File

@ -2,6 +2,14 @@
CHARSET=UTF-8
SeparatorDecimal=,
SeparatorThousand=
FormatDateShort=%d/%m/%Y # Format of day with PHP/C tags (strftime functions)
FormatDateShort_java=dd/MM/yyyy # Format of day with Java tags
FormatHourShort=%H:%M
FormatDateTextShort=%d %b %Y
FormatDateText=%d %B %Y
FormatDateHourShort=%d/%m/%Y %H:%M
FormatDateHourTextShort=%d %b %Y %H:%M
FormatDateHourText=%d %B %Y %H:%M
Error=Fout
ErrorForbidden=Toegang verboden
ErrorFileDoesNotExists=Bestand %s bestaat niet

View File

@ -6,13 +6,20 @@
* Generation date 2009-01-19 00:04:30
*/
// Date 2009-01-19 00:04:30
// START - Lines generated via autotranslator.php tool.
// Reference language: en_US
CHARSET=UTF-8
SeparatorDecimal=,
SeparatorThousand=
FormatDateShort=%d-%m-%Y # Format of day with PHP/C tags (strftime functions)
FormatDateShort_java=dd-MM-yyyy # Format of day with Java tags
FormatHourShort=%H:%M
FormatDateTextShort=%d %b %Y
FormatDateText=%d %B %Y
FormatDateHourShort=%d-%m-%Y %H:%M
FormatDateHourTextShort=%d %b %Y %H:%M
FormatDateHourText=%d %B %Y %H:%M
DatabaseConnection=Database connectie
Error=Fout
ErrorFieldRequired=Veld &#39;% s&#39; is vereist

View File

@ -6,13 +6,20 @@
* Generation date 2009-01-19 00:44:06
*/
// Date 2009-01-19 00:44:06
// START - Lines generated via autotranslator.php tool.
// Reference language: en_US
CHARSET=UTF-8
SeparatorDecimal=,
SeparatorThousand=
FormatDateShort=%d-%m-%Y # Format of day with PHP/C tags (strftime functions)
FormatDateShort_java=dd-MM-yyyy # Format of day with Java tags
FormatHourShort=%H:%M
FormatDateTextShort=%d %b %Y
FormatDateText=%d %B %Y
FormatDateHourShort=%d-%m-%Y %H:%M
FormatDateHourTextShort=%d %b %Y %H:%M
FormatDateHourText=%d %B %Y %H:%M
DatabaseConnection=Połączenia z bazą danych
Error=Błąd
ErrorFieldRequired=Pole &#39;% s&#39; jest wymagane

View File

@ -2,6 +2,14 @@
CHARSET=UTF-8
SeparatorDecimal=,
SeparatorThousand=
FormatDateShort=%d/%m/%Y # Format of day with PHP/C tags (strftime functions)
FormatDateShort_java=dd/MM/yyyy # Format of day with Java tags
FormatHourShort=%H:%M
FormatDateTextShort=%d %b %Y
FormatDateText=%d %B %Y
FormatDateHourShort=%d/%m/%Y %H:%M
FormatDateHourTextShort=%d %b %Y %H:%M
FormatDateHourText=%d %B %Y %H:%M
DatabaseConnection=Ligação à Base de Dados
Error=Erro
ErrorFieldRequired=O campo '%s' é obrigatório

View File

@ -4,13 +4,20 @@
* Generation date 2009-01-19 21:32:52
*/
// Date 2009-01-19 21:32:52
// START - Lines generated via autotranslator.php tool.
// Reference language: en_US
CHARSET=UTF-8
SeparatorDecimal=,
SeparatorThousand=
FormatDateShort=%d.%m.%Y # Format of day with PHP/C tags (strftime functions)
FormatDateShort_java=dd.MM.yyyy # Format of day with Java tags
FormatHourShort=%H:%M
FormatDateTextShort=%d %b %Y
FormatDateText=%d %B %Y
FormatDateHourShort=%d.%m.%Y %H:%M
FormatDateHourTextShort=%d %b %Y %H:%M
FormatDateHourText=%d %B %Y %H:%M
DatabaseConnection=Baza de date de conectare
Error=Eroare
ErrorFieldRequired=Câmp &quot;% s&quot; este necesar

View File

@ -4,13 +4,20 @@
* Generation date 2009-01-19 21:30:52
*/
// Date 2009-01-19 21:30:52
// START - Lines generated via autotranslator.php tool.
// Reference language: en_US
CHARSET=UTF-8
SeparatorDecimal=,
SeparatorThousand=
FormatDateShort=%d.%m.%Y # Format of day with PHP/C tags (strftime functions)
FormatDateShort_java=dd.MM.yyyy # Format of day with Java tags
FormatHourShort=%H:%M
FormatDateTextShort=%d %b %Y
FormatDateText=%d %B %Y
FormatDateHourShort=%d.%m.%Y %H:%M
FormatDateHourTextShort=%d %b %Y %H:%M
FormatDateHourText=%d %B %Y %H:%M
DatabaseConnection=Подключение к базе данных
Error=Ошибка
ErrorFieldRequired=Поле &#39;% S&#39; требуется

View File

@ -290,14 +290,15 @@ class Translate {
// Format for date
if ($domain == 'main')
{
$this->format_date_short=empty($this->tab_translate['FormatDateShort'])?"%d/%m/%Y":$this->tab_translate['FormatDateShort']; # Format of day with PHP/C tags (strftime functions)
$this->format_date_short_java=empty($this->tab_translate['FormatDateShort'])?"dd/MM/yyyy":$this->tab_translate['FormatDateShort']; # Format of day with Java tags
$this->format_hour_short=empty($this->tab_translate['FormatHourShort'])?"%H:%M":$this->tab_translate['FormatHourShort'];
$this->format_date_text_short=empty($this->tab_translate['FormatDateTextShort'])?"%d %b %Y":$this->tab_translate['FormatDateTextShort'];
$this->format_date_text=empty($this->tab_translate['FormatDateText'])?"%d %B %Y":$this->tab_translate['FormatDateText'];
$this->format_date_hour_short=empty($this->tab_translate['FormatDateHourShort'])?"%d/%m/%Y %H:%M":$this->tab_translate['FormatDateHourShort'];
$this->format_date_hour_text_short=empty($this->tab_translate['FormatDateHourTextShort'])?"%d %b %Y %H:%M":$this->tab_translate['FormatDateHourTextShort'];
$this->format_date_hour_text=empty($this->tab_translate['FormatDateHourText'])?"%d %B %Y %H:%M":$this->tab_translate['FormatDateHourText'];
$conf->format_date_short=empty($this->tab_translate['FormatDateShort'])?"%d/%m/%Y":$this->tab_translate['FormatDateShort']; # Format of day with PHP/C tags (strftime functions)
$conf->format_date_short_java=empty($this->tab_translate['FormatDateShort'])?"dd/MM/yyyy":$this->tab_translate['FormatDateShort']; # Format of day with Java tags
$conf->format_hour_short=empty($this->tab_translate['FormatHourShort'])?"%H:%M":$this->tab_translate['FormatHourShort'];
$conf->format_date_text_short=empty($this->tab_translate['FormatDateTextShort'])?"%d %b %Y":$this->tab_translate['FormatDateTextShort'];
$conf->format_date_text=empty($this->tab_translate['FormatDateText'])?"%d %B %Y":$this->tab_translate['FormatDateText'];
$conf->format_date_hour_short=empty($this->tab_translate['FormatDateHourShort'])?"%d/%m/%Y %H:%M":$this->tab_translate['FormatDateHourShort'];
$conf->format_date_hour_text_short=empty($this->tab_translate['FormatDateHourTextShort'])?"%d %b %Y %H:%M":$this->tab_translate['FormatDateHourTextShort'];
$conf->format_date_hour_text=empty($this->tab_translate['FormatDateHourText'])?"%d %B %Y %H:%M":$this->tab_translate['FormatDateHourText'];
//print $domain." => ".$this->defaultlang." ".$conf->format_date_hour_short." ".$this->tab_translate['FormatDateHourShort'];
}
if (empty($this->tab_loaded[$domain])) $this->tab_loaded[$domain]=2; // Marque ce fichier comme non trouve