[haiku-bugs] Re: [Haiku] #7169: A DiskUsage localization patch

  • From: "siarzhuk" <trac@xxxxxxxxxxxx>
  • Date: Sun, 13 Feb 2011 13:05:00 -0000

#7169: A DiskUsage localization patch
------------------------------+--------------------------------------------
  Reporter:  Karvjorm         |        Owner:  siarzhuk
      Type:  enhancement      |       Status:  assigned
  Priority:  normal           |    Milestone:  R1
 Component:                   |      Version:  R1/alpha2
  Applications/DiskUsage      |     Keywords:  DiskUsage localization patch
Resolution:                   |  Has a Patch:  1
Blocked By:                   |     Blocking:
  Platform:  All              |
------------------------------+--------------------------------------------

Comment (by siarzhuk):

 Replying to [comment:3 Karvjorm]:
 > Replying to [comment:2 siarzhuk]:
 > OK, I tried to do the localization work without large refactoring work
 and noticed that those strings that are target for the localization were
 loaded from the resource file. So I decided to localize those dynamically
 on-the-fly after there were loaded to the application. I did not know any
 other way (except refactoring the code and inserting strings to source
 code and ignoring strings in the resource file). But maybe I have to do it
 then?

 Yes, do it. Just grep through the source for every name of those
 "quasi"-constant loaded from resource and replace it directly with
 translated string literal. Anyway our catalogs are already some kind of
 resources. ;-) And the code will be more clear and compact. Corresponding
 strings from DiskUsage.rdef and any references should be, of course,
 purged.

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

Other related posts: