[haiku-bugs] [Haiku] #15933: Add event when the preferred locale changes

  • From: "Haiku" <trac@xxxxxxxxxxxx>
  • To: undisclosed-recipients: ;
  • Date: Thu, 30 Apr 2020 07:30:54 -0000

#15933: Add event when the preferred locale changes
-------------------------+-----------------------------
 Reporter:  icculus      |       Owner:  nobody
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Unscheduled
Component:  - General    |     Version:  R1/Development
 Keywords:               |  Blocked By:
 Blocking:               |    Platform:  All
-------------------------+-----------------------------
 So I'm working on filling in locale support in SDL:

 https://bugzilla.libsdl.org/show_bug.cgi?id=2131#c19

 The idea is that you can ask SDL what the user's list of preferred
 languages is (which on Haiku, eventually becomes a call to
 BLocaleRoster::Default()->GetPreferredLanguages()). That part is working
 here.

 Optionally, SDL can send an event to alert the user that this list has
 changed, so they know to requery if they care. There are ways to do this
 on Windows and macOS, but there doesn't appear to be one in Haiku.

 Can we have one?   :)    Something that apps can see when the Locale
 preference panel sees a change, the same way that I presume
 B_FONTS_UPDATED and B_COLORS_UPDATED work.

 This isn't life or death--platforms without such an event just don't alert
 apps of the system preference change--but it would be a nice enhancement
 to have.

 Thanks,
 --ryan.
-- 
Ticket URL: <https://dev.haiku-os.org/ticket/15933>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.

Other related posts: