Commit ab376d11 authored by Pierre DAVID's avatar Pierre DAVID

i18n: configuration parameter jourfmt -> dayfmt

One more internationalization patch: the
configuration parameter jourfmt becomes
dayfmt.
parent b5519c8d
......@@ -1695,7 +1695,7 @@ snit::type ::config {
variable configspec {
{general
{datefmt rw {string}}
{jourfmt rw {string}}
{dayfmt rw {string}}
{authmethod rw {menu {{pgsql Internal} {ldap {LDAP}}}}}
{pageformat rw {menu {{a4 A4} {letter Letter}}} }
{schemaversion ro {string}}
......
......@@ -9,8 +9,8 @@
cfg:datefmt:desc {Date/hour display format}
cfg:datefmt:help {Date and time display format, used in data display and data editing. See Tcl clock(n) manual page for format specification.}
cfg:jourfmt:desc {Date display format}
cfg:jourfmt:help {Date display format (without hours). See Tcl clock(n) manual page for format specification.}
cfg:dayfmt:desc {Date display format}
cfg:dayfmt:help {Date display format (without hours). See Tcl clock(n) manual page for format specification.}
cfg:authmethod:desc {Authentication method}
cfg:authmethod:help {Authentication method is based on a directory where to find people information (name, address, etc.).}
cfg:pageformat:desc {Paper format}
......
......@@ -628,8 +628,8 @@
cfg:datefmt:desc {Format d'affichage des dates/heures}
cfg:datefmt:help {Format d'affichage des dates et des heures, utilisé dans l'édition et l'affichage des données. Voir la page de manuel clock(n) de Tcl.}
cfg:jourfmt:desc {Format d'affichage des jours}
cfg:jourfmt:help {Format d'affichage des dates (sans l'heure). Voir la page de manuel clock(n) de Tcl.}
cfg:dayfmt:desc {Format d'affichage des jours}
cfg:dayfmt:help {Format d'affichage des dates (sans l'heure). Voir la page de manuel clock(n) de Tcl.}
cfg:authmethod:desc {Méthode d'authentification}
cfg:authmethod:help {La méthode d'authentification est basée sur un annuaire où trouver les informations sur les personnes (nom, adresse, etc.).}
cfg:pageformat:desc {Format de papier}
......
......@@ -235,7 +235,7 @@ netmagis_insert_config ()
COPY global.config (key, value) FROM stdin;
datefmt %d/%m/%Y %H:%M:%S
jourfmt %a %d %b %Y
dayfmt %a %d %b %Y
authmethod pgsql
pageformat a4
default_lease_time 600
......
......@@ -171,6 +171,7 @@ ALTER TABLE global.config RENAME COLUMN valeur TO value ;
DELETE FROM global.config WHERE key = 'dnsupdateperiod' ;
INSERT INTO global.config (key, value) VALUES ('schemaversion', '22') ;
UPDATE global.config SET key = 'dayfmt' WHERE key = 'jourfmt' ;
ALTER TABLE global.seq_groupe RENAME TO seq_nmgroup ;
ALTER TABLE global.groupe RENAME TO nmgroup ;
......
......@@ -315,7 +315,7 @@ proc output-list {dbfd lcidr idview _tabuid format} {
# Get all allowed IP address and add them to the array.
#
set jourfmt [dnsconfig get "jourfmt"]
set dayfmt [dnsconfig get "dayfmt"]
set sql "SELECT DISTINCT rr.name || '.' || domain.name AS name,
rr_ip.addr,
rr.comment, rr.respname, rr.respmail, rr.date,
......@@ -370,7 +370,7 @@ proc output-list {dbfd lcidr idview _tabuid format} {
set dhcp ""
}
set date [clock format [clock scan $date] -format $jourfmt]
set date [clock format [clock scan $date] -format $dayfmt]
if {$sendsmtp} then {
set sendsmtp [mc "Yes"]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment