[haiku-bugs] Re: [Haiku] #6515: language mix due to country settings

  • From: "zooey" <trac@xxxxxxxxxxxx>
  • Date: Sat, 28 Aug 2010 22:17:01 -0000

#6515: language mix due to country settings
------------------------------+---------------------------------------------
  Reporter:  axeld            |         Owner:  zooey         
      Type:  bug              |        Status:  in-progress   
  Priority:  high             |     Milestone:  R1            
 Component:  Kits/Locale Kit  |       Version:  R1/Development
Resolution:                   |      Keywords:                
Blocked By:                   |   Has a Patch:  0             
  Platform:  All              |      Blocking:                
------------------------------+---------------------------------------------

Comment (by zooey):

 Replying to [comment:10 axeld]:
 > LC_TIME=de_DE.utf-8 is wrong in this context; as Adrien correctly noted,
 it would need to be en_DE.utf-8 (either of them doesn't exist on my Linux
 installation, though, so I can't test it).

 Nope, LC_TIME=de_DE.utf-8 is perfectly fine in this context, you are
 mistaken. As Ingo has already mentioned - a locale named en_DE would
 represent the English variant spoken in Germany, *not* English language
 and German formatting rules.

 And the POSIX specification is clear about the meaning of the locale given
 in LC_TIME: it defines the formats, the strings and the separator
 characters used when formatting dates and times.

 Anyway, to have our cake, and eat it, too, we could add one more checkbox
 to the 'country' page that switches the strings between the language
 locale and the formatting locale.

 This settings could then be transported to the POSIX layer (and from there
 into its ICU backend) by adding a corresponding keyword to the POSIX/ICU
 locale specifier (so LC_TIME would be either 'de_DE@strings=time' or
 'de_DE@strings=messages'). If you guys insist on it, we could even go with
 'strings=messages' as default :-)

 This would even solve pulkomandy's example: With preferred languages
 'fr,es,en', a French app would use French month names and format and a
 Spanish app would use the Spanish strings in French format.

 I'm happy with that, since I'd still be able to use
 LC_TIME=de_DE.strings=time - fair enough.

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

Other related posts: