summaryrefslogtreecommitdiffstats
path: root/zarb-ml/mageia-sysadm/2011-February/002775.html
blob: 47bb0e11f9434279ca16a3d114ba6363d7026deb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
 <HEAD>
   <TITLE> [Mageia-sysadm] mediawiki
   </TITLE>
   <LINK REL="Index" HREF="index.html" >
   <LINK REL="made" HREF="mailto:mageia-sysadm%40mageia.org?Subject=Re%3A%20%5BMageia-sysadm%5D%20mediawiki&In-Reply-To=%3C201102172042.21228.bgmilne%40staff.telkomsa.net%3E">
   <META NAME="robots" CONTENT="index,nofollow">
   <META http-equiv="Content-Type" content="text/html; charset=us-ascii">
   <LINK REL="Previous"  HREF="002772.html">
   <LINK REL="Next"  HREF="002776.html">
 </HEAD>
 <BODY BGCOLOR="#ffffff">
   <H1>[Mageia-sysadm] mediawiki</H1>
    <B>Buchan Milne</B> 
    <A HREF="mailto:mageia-sysadm%40mageia.org?Subject=Re%3A%20%5BMageia-sysadm%5D%20mediawiki&In-Reply-To=%3C201102172042.21228.bgmilne%40staff.telkomsa.net%3E"
       TITLE="[Mageia-sysadm] mediawiki">bgmilne at staff.telkomsa.net
       </A><BR>
    <I>Thu Feb 17 19:42:21 CET 2011</I>
    <P><UL>
        <LI>Previous message: <A HREF="002772.html">[Mageia-sysadm] mediawiki
</A></li>
        <LI>Next message: <A HREF="002776.html">[Mageia-sysadm] mediawiki
</A></li>
         <LI> <B>Messages sorted by:</B> 
              <a href="date.html#2775">[ date ]</a>
              <a href="thread.html#2775">[ thread ]</a>
              <a href="subject.html#2775">[ subject ]</a>
              <a href="author.html#2775">[ author ]</a>
         </LI>
       </UL>
    <HR>  
<!--beginarticle-->
<PRE>On Thursday, 17 February 2011 17:56:23 Michael Scherer wrote:
&gt;<i> Le jeudi 17 f&#233;vrier 2011 &#224; 17:32 +0200, Buchan Milne a &#233;crit :
</I>&gt;<i> &gt; On Thursday, 17 February 2011 12:40:51 Buchan Milne wrote:
</I>&gt;<i> &gt;       1 i-default
</I>
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.

&gt;<i> &gt;       1 es-pe
</I>&gt;<i> &gt;       1 cs-cz
</I>&gt;<i> 
</I>&gt;<i> Theses 3 one are likely wrong ( according to IANA registry )
</I>
Do you have a URL handy?

&gt;<i> &gt; I guess I should filter these out, and replace with
</I>&gt;<i> &gt; en,fr,es,ru,it,fi,et,es,tr ? I will fix the wrong ones in LDAP later.
</I>&gt;<i> 
</I>&gt;<i> How can we enforce correct entry ? Should we maybe have a whitelist, and
</I>&gt;<i> receive a monthly mail about wrong one ?
</I>
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.

&gt;<i> ( if we start to use the data, we should have them correct I think ).
</I>
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-&gt;languages};
+    $c-&gt;log-&gt;info(&quot;Languages: $langs, default: &quot; . $c-&gt;language . &quot;, saving: 
&quot; . ${$c-&gt;languages}[0]);
 
     #my $form = Catalyst::Controller::HTML::FormFu-&gt;form();
     #$c-&gt;response-&gt;body('Matched CatDap::Controller::register in register.');
</PRE>












<!--endarticle-->
    <HR>
    <P><UL>
        <!--threads-->
	<LI>Previous message: <A HREF="002772.html">[Mageia-sysadm] mediawiki
</A></li>
	<LI>Next message: <A HREF="002776.html">[Mageia-sysadm] mediawiki
</A></li>
         <LI> <B>Messages sorted by:</B> 
              <a href="date.html#2775">[ date ]</a>
              <a href="thread.html#2775">[ thread ]</a>
              <a href="subject.html#2775">[ subject ]</a>
              <a href="author.html#2775">[ author ]</a>
         </LI>
       </UL>

<hr>
<a href="https://www.mageia.org/mailman/listinfo/mageia-sysadm">More information about the Mageia-sysadm
mailing list</a><br>
</body></html>