[Tickets #11107] Re: localized access key problem

bugs at horde.org bugs at horde.org
Fri Apr 6 20:44:52 UTC 2012


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/11107
------------------------------------------------------------------------------
  Ticket             | 11107
  Updated By         | leena.heino at uta.fi
  Summary            | localized access key problem
  Queue              | Horde Groupware
  Version            | 4.0
  Type               | Bug
  State              | Feedback
  Priority           | 2. Medium
  Milestone          |
  Patch              |
  Owners             |
------------------------------------------------------------------------------


leena.heino at uta.fi (2012-04-06 20:44) wrote:

The problem is that we have to force the locale to use UTF-8 by  
defining it in horde/config/nls.local.php:
$horde_nls_config['charsets'] ['fi_FI'] = 'UTF-8';

This results that characters are stripped from labels in this piece of code:
return preg_replace('/_([A-Za-z])/',  
$GLOBALS['registry']->nlsconfig->curr_multibyte &&  
preg_match('/[\x80-\xff]/', $label) ? '' : '\1', $label);

Which I believe does this: If the translated label contains 8bit  
character and the locale uses multibyte charset eg. UTF-8 then remove  
any character after the underscore.

Stripping blindly the next character after the underscore results  
labels where a character is missing and might even break the resulting  
label if the desired access key is not a ascii character.





More information about the bugs mailing list