One message in the login page isn't translated. The message is:
Enter your LoginName. (Typically First name and last name, no space, no dots, capitalized, e.g. JohnSmith, unless you chose otherwise). Visit TWikiRegistration if you do not have one.
I think the problem lies in the order of applying translation (gettext) and TWiki formatting but I didn't dig in to figure it out.
--
TWiki:Main/HowardTsai
- 15 Aug 2007
String freeze is any-time-now for 4.2 - perhaps we could take a glance at this one last time. I think the problem is that the string is set in configure for apache login - but perhaps a smarter solution could be found for the
TemplateLogin message.
--
TWiki:Main.SteffenPoulsen
- 16 Sep 2007
so... as this been resolved in 4.2?
--
SvenDowideit - 01 Oct 2007
No, it has not been solved in 4.2, for neither login scheme. For ApacheLogin there's no chance, because AFAICS Apache's "Realm" does not care for
Accept-Language
headers.
For TemplateLogin ,
%MAKETEXT{..}%
is
not invoked in the login template. Wouldn't be sufficent, though, because TWiki.pot and all the translation(s) contain the TWiki variable
%TWIKIWEB%
which has already been expanded when
%MAKETEXT{..}%
would be invoked.
So, either we drop the variable
%TWIKIWEB%
at this point in favour of the 99.9% constant
TWiki
, or there's a couple of changes to be made:
- In
locales/TWiki.pot
and its translations, use %1
instead of TWiki
. If it is a variable, treat it as a variable.
- In
lib/TWiki.spec
, in the {AuthRealm}
definition, change occurrences of TWiki
to [_1]
.
- In
templates/login.tmpl
, change the reference to %AUTHREALM%
into %MAKETEXT{"%AUTHREALM%" args="%TWIKIWEB%"}%
.
This sort of works (I've just tested it in my T4.2 installation), but only for fresh installs. Everyone else will have the bogus, untranslatable string in his
lib/LocalSite.cfg
. I am unsure about other side effects because I know pretty much of nothing about
I18N. Sorry.
--
TWiki:Main.HaraldJoerg
- 01 Oct 2007
Sorry, forgot to set status to "New" after providing new data.
-
TWiki:Main.HaraldJoerg
- 04 Oct 2007
I understand. After review I don't believe this is Urgent - it should not block a release. Dropping to Normal, consistent with all other non-fatal internationalisation bugs (some day someone will step forward to own internationalisation, but until then....)
CC
TemplateLogin login screen is fully translated now (at least in
pattern
), and there is nothing that can be done about ApacheLogin - closing.
--
TWiki:Main.SteffenPoulsen
- 22 Dec 2007