> > BTW, not all messages reside in cmsui.xml. E.g. when I add a user,
> > system reports, that password must be at least 6 characters long. In
> > english though most of the UI is in Russian -).
> if you find untranslated text then that is a bug (please report them)

To fix the untranslated error messages for the Admin User Profile screen:

FILE: \build\lenya\webapp\lenya\xslt\admin\users\profile.xsl
Change (near the bottom):
  <xsl:template match="message">
    <xsl:if test="preceding-sibling::message"><br/></xsl:if>
    <span class="[EMAIL PROTECTED]"><xsl:value-of select="."/></span>
  </xsl:template>
To:
  <xsl:template match="message">
    <xsl:if test="preceding-sibling::message"><br/></xsl:if>
    <span class="[EMAIL PROTECTED]"><i18n:text><xsl:value-of
select="."/></i18n:text></span>
  </xsl:template>

The messages need to be added to all the language files.  The English
version is:

<message key="This user already exists.">This user already exists.</message>
<message key="This is not a valid user ID.">This is not a valid user
ID.</message>
<message key="Please enter an e-mail address.">Please enter an e-mail
address.</message>
<message key="This LDAP user ID does not exist.">This LDAP user ID
does not exist.</message>
<message key="Password and confirmed password are not equal.">Password
and confirmed password are not equal.</message>
<message key="The password must be at least six characters long.">The
password must be at least six characters long.</message>
<message key="The password must contain at least one number.">The
password must contain at least one number.</message>

---
None of the XSL in xslt/admin forces them through i18n.  Here are the
other pages requiring fixes:

For Groups:
FILE: \build\lenya\webapp\lenya\xslt\admin\groups\profile.xsl
Messages:
"This group already exists."
"This is not a valid group ID."

ChangePassword has the message:
"You cannot change the password of this user."

Login has this message, which will be more complicated to fix since
the message includes the username:
"Either authentication failed (username = " + identity.getUsername() +
") or new password and confirmed new password do not match or new
password length is not between 5 and 8 characters"
The easy answer is to remove the username, and fix like the others. 
Otherwise i18n needs to be added to error message at creation, but a
Cocoon bug insists on changing the angle brackets to special HTML
characters.  Anyone able to fix the Cocoon bug?  It requires deleting
a few lines of code.

solprovider

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to