[Mageia-sysadm] mediawiki

Buchan Milne bgmilne at staff.telkomsa.net
Thu Feb 17 19:42:21 CET 2011


On Thursday, 17 February 2011 17:56:23 Michael Scherer wrote:
> Le jeudi 17 février 2011 à 17:32 +0200, Buchan Milne a écrit :
> > On Thursday, 17 February 2011 12:40:51 Buchan Milne wrote:
> >       1 i-default

I've added some debug logging (see patch below).

Firefox, to which I have added a number of languages, shows:

[info] Languages: en-za,en-gb,en-us,en,af,nl,i-default, default: af, saving: 
en-za

(So, in this case, the interface is displayed in Afrikaans ... I guess I need 
to create at least 3 English translations - en, en_us, en_gb)

Chromium with default language settings shows:

[info] Languages: en-gb,en-us,en,i-default, default: en, saving: en-gb

So, I can imagine a case where it is the only language listed. In this case, I 
think we should either not set preferredLanguage, or set it to en.

> >       1 es-pe
> >       1 cs-cz
> 
> Theses 3 one are likely wrong ( according to IANA registry )

Do you have a URL handy?

> > I guess I should filter these out, and replace with
> > en,fr,es,ru,it,fi,et,es,tr ? I will fix the wrong ones in LDAP later.
> 
> How can we enforce correct entry ? Should we maybe have a whitelist, and
> receive a monthly mail about wrong one ?

May be a good idea. Or, we could use slapo-constraint (with regex, or dynamic 
list in LDAP)

Maybe we should also compare to what localisation teams we have (or don't 
have), and indicate to users whose preferred languages isn't localised that 
they could contribute in that way.

> ( if we start to use the data, we should have them correct I think ).

Well, password reset by admin (e.g. for privileged user) currently uses it to 
try and get the email notification to the user in the right language.

Regards,
Buchan

===================================================================
--- lib/CatDap/Controller/register.pm   (revision 568)
+++ lib/CatDap/Controller/register.pm   (working copy)
@@ -25,6 +25,8 @@
 
 sub index :Path :Args(0) : Form {
     my ( $self, $c ) = @_;
+    my $langs = join ',',@{$c->languages};
+    $c->log->info("Languages: $langs, default: " . $c->language . ", saving: 
" . ${$c->languages}[0]);
 
     #my $form = Catalyst::Controller::HTML::FormFu->form();
     #$c->response->body('Matched CatDap::Controller::register in register.');


More information about the Mageia-sysadm mailing list