You are here: Foswiki>Tasks Web>Item9955 (04 Aug 2015, MichaelDaum)Edit Attach

Item9955: Problem in UserRegistration with generating a WikiName from FirstName and LastName when they include umlaute.

pencil
Priority: Normal
Current State: Closed
Released In: 2.0.0
Target Release: major
Applies To: Engine
Component: FoswikiUIRegister, I18N
Branches: master
Reported By: EnrikGuenter
Waiting For:
Last Change By: MichaelDaum
When i want to create a new User, for example "Mesüt Özil", the WikiName "MesDZil" ist beeing generated as WikiName. Not that terrible, but pretty unclean. For this Wiki the WikiName needs to be FirstnameLastname so i need the field WikiName in UserRegistration to be ReadOnly actually.

Foswiki 1.1.1, Charset iso-8859-15, locale de_DE.iso-8859-15, UseLocale=on

-- EnrikGuenter - 04 Nov 2010

I wonder if this is the perl code or it is the javascript that sucks on the registration page.

Is it possible to register a person with letters that are not English. A very reasonable requirement.

-- KennethLavrsen - 04 Nov 2010

It is just the javascript

You can manually edit the WikiName and the registration goes correctly creating the user with the WikiName with non A-Z

-- KennethLavrsen - 04 Nov 2010

In foswikiString.js we have

foswiki.StringConstants.prototype.UPPER_ALPHA_CHARS = "A-Z";

foswiki.StringConstants.prototype.LOWER_ALPHA_CHARS = "a-z";

We need that changed to some generic character classes for upper and lower.

but [:upper:] and [:lower:] does not work it seems.

-- KennethLavrsen - 05 Nov 2010

> You can manually edit the WikiName and the registration goes correctly creating the user with the WikiName? with non A-Z

Yes, kenneth, thats correct, but i'd really like to keep the field Readonly. The Foswiki i'm setting up here is strictly professional (sadly) and not supposed to let the useres become creative in their WikiNames. I tried a solution with %CALC to manually change Umlaute to thier two-letter-equivalent like ö -> oe. But no success so far. I will continue to try next week, unless someone has a cleaner solution?

-- EnrikGuenter - 05 Nov 2010

As a hack you can add the German letters to the a-z. I.e. a-zöäü in foswikiStrings.js

-- KennethLavrsen - 06 Nov 2010

Confirming, setting to I18N component

-- GeorgeClark - 14 Oct 2013

Appears to be fixed in 1.2. Marking fixed.

-- GeorgeClark - 23 Jun 2015

No it b'ain't

-- Main.CrawfordCurrie - 25 Jun 2015 - 13:54

Be now.

-- Main.CrawfordCurrie - 25 Jun 2015 - 14:00

Transliteration of unicode chars to ascii-clean was actually a desired feature ... and a required one on Foswiki platforms that are not fully unicodified ... opening a new task at Item13608

-- MichaelDaum - 04 Aug 2015
 

ItemTemplate edit

Summary Problem in UserRegistration with generating a WikiName from FirstName and LastName when they include umlaute.
ReportedBy EnrikGuenter
Codebase 1.1.8, trunk
SVN Range
AppliesTo Engine
Component FoswikiUIRegister, I18N
Priority Normal
CurrentState Closed
WaitingFor
Checkins distro:5b9b8c9ff160
TargetRelease major
ReleasedIn 2.0.0
CheckinsOnBranches master
trunkCheckins
masterCheckins distro:5b9b8c9ff160
ItemBranchCheckins
Release01x01Checkins
Topic revision: r10 - 04 Aug 2015, MichaelDaum
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy