[haiku-bugs] [Haiku] #9198: Localization data bind into app resource loaded incorrectly

  • From: "siarzhuk" <trac@xxxxxxxxxxxx>
  • Date: Wed, 21 Nov 2012 22:23:42 -0000

#9198: Localization data bind into app resource loaded incorrectly
-----------------------------+------------------------------
 Reporter:  siarzhuk         |        Owner:  pulkomandy
     Type:  bug              |       Status:  new
 Priority:  normal           |    Milestone:  R1
Component:  Kits/Locale Kit  |      Version:  R1/Development
 Keywords:                   |   Blocked By:
 Blocking:  9142             |  Has a Patch:  0
 Platform:  All              |
-----------------------------+------------------------------
 The problem observed with KeymapSwitcher 1.2.7.8 (build 15 Nov 2012)
 available at the following link:

 
http://sourceforge.net/projects/dotmatrix4beos/files/Haiku%20Keymap%20Switcher/1.2.7/

 In this version we  decided to switch using localization catalogs in the
 application resources. As result on clean system with default English
 locale we observe that Finnish locale was loaded for Settings dialog and
 replicant context menu. That is wrong - English locale data should be used
 instead of Finnish.
 We have checked resources of this application with ResEdit and found that
 all catalogs are stored in it but English catalog is absent. We have also
 checked make file and it looks like English data were requested to bind as
 all other:

 {{{
 /Sources/keymapswitcher> make -f app.makefile bindcatalogs

 for lc in be bg cs de en fi ro ru sv uk; \
 do linkcatkeys -o objects.x86-gcc4-release/KeymapSwitcher \
      -s x-vnd.Nexus-KeymapSwitcher -tr -l $lc locales/$lc.catkeys; \
 done
 }}}

 I think it is a kind of space optimization avoiding English catalog in the
 app resources. But it unfortunately fails to work correctly. :-(

 But non-English localizations are loaded perfectly for system locales that
 have corresponding catalogs in resources: Belarusian, Russian, Ukrainian,
 German etc.

 Note that adding separate catalog files to
 /boot/common/data/locale/catalogs/<mime name>/ workarounds this issue
 completely - all is displayed in English.

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/9198>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: