[haiku-bugs] Re: [Haiku] #7697: [AboutSystem] Link to MIT licence looks strange when localized

  • From: "taos" <trac@xxxxxxxxxxxx>
  • Date: Thu, 16 Jun 2011 15:42:25 -0000

#7697: [AboutSystem] Link to MIT licence looks strange when localized
----------------------------------------+----------------------------
   Reporter:  taos                      |      Owner:  nobody
       Type:  bug                       |     Status:  new
   Priority:  normal                    |  Milestone:  R1
  Component:  Applications/AboutSystem  |    Version:  R1/Development
 Resolution:                            |   Keywords:  localization
 Blocked By:                            |   Blocking:
Has a Patch:  0                         |   Platform:  All
----------------------------------------+----------------------------

Comment (by taos):

 Hmmm, okay. If I replace CopyCharsInto() with CopyInto() and CountChars()
 with Length() the string is cut at the correct place - only both %s are
 removed as intended.

 The graphical representation is okay (see screenshot below), the "click
 and read" functionality is still there (and at the correct place even in a
 Japanese or Russian system).

 [[Image(AboutSystem_no_Chars.png)]]

 But, I'm not sure if removing the awareness of UTF8 in the code is the
 right way. However, if you're interested in a quick and dirty fix I can
 attach a patch file.

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

Other related posts: