Cannot translate strings handled by fieldmapper
Bug #1078596 reported by
Pasi Kallinen
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Evergreen |
Fix Released
|
Undecided
|
Unassigned | ||
2.2 |
Fix Released
|
Undecided
|
Unassigned | ||
2.3 |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
We have (practically) a complete Evergreen translation to Finnish. Problem is that some strings that have been translated show only the English string in the staff client. Looking at the source code, it seems all strings going through fieldmapper show only the english string.
Attached is a screenshot of the patron registration screen; note how "Verify Password" and "Parent/Guardian" are translated, but the rest of the field names aren't.
Changed in evergreen: | |
status: | New → Triaged |
Changed in evergreen: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Some more information:
"Verify Password" and "Parent/Guardian" are handled specially in the load() function in var/web/ js/ui/default/ actor/user/ register. js:
dojo. byId('parentGua rdian') .innerHTML = localeStrings. PARENT_ OR_GUARDIAN;
Whereas all the other (non-translatable) strings are handled in fleshFMRow():
var fieldIdl = fieldmapper. IDL.fmclasses[ fmcls]. field_map[ fmfield] ; appendChild( document. createTextNode( fieldIdl. label)) ;
...
ltd.