[haiku-bugs] Re: [Haiku] #7480: Mail preferences only partially localized

  • From: "pulkomandy" <trac@xxxxxxxxxxxx>
  • Date: Wed, 29 Jun 2011 17:32:21 -0000

#7480: Mail preferences only partially localized
--------------------------------+----------------------------
   Reporter:  taos              |      Owner:  czeidler
       Type:  bug               |     Status:  new
   Priority:  normal            |  Milestone:  R1
  Component:  Preferences/Mail  |    Version:  R1/Development
 Resolution:                    |   Keywords:  localization
 Blocked By:                    |   Blocking:
Has a Patch:  1                 |   Platform:  All
--------------------------------+----------------------------

Comment (by pulkomandy):

 Please avoid hardcoding spaces like this. Some languages (eg. Chinese)
 don't use spaces at all, for them it make the whole thing look wrong
 without any way to fix it.

 {{{
 error_msg << B_TRANSLATE("Error while authenticating user") << " " << uid;
 }}}

 This makes it impossible :
   * To have no space before the uid in languages where it isn't needed
   * To do the right thing when a language needs something such as "Error
 while authenticating %uid% user".

 Please use BString ReplaceFirst API instead for building strings from
 separate variables.

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/7480#comment:11>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: