[haiku-commits] Re: haiku: hrev44261 - in src: add-ons/media/plugins/ffmpeg apps/mediaplayer

  • From: John Scipione <jscipione@xxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Mon, 25 Jun 2012 12:32:41 -0400

On Mon, Jun 25, 2012 at 11:46 AM, Philippe Houdoin <
philippe.houdoin@xxxxxxxxx> wrote:

> > And now that I see it written that way, I wonder if there is much need
> > for localisation :-\
>
> ?
>
> I'm not sure to understand why you would consider "%.0f kbps" could be
> some universal rate string format...
> For instance, in french we would probably use a "%.0f Kb/s" format.
>
> But the number format (comma or dot, number of decimal digits and so
> on) should be taken from user's locale settings, while the place of
> the number regarding the unit and the unit itself (kbps, Kb/s,
> whatever) should be localisable.
> It would be better if all this is done in one single place in Haiku source
> code.
>

For ticket #8503 I am working on detecting number separators and decimal
separators for DeskCalc and I've found that there is no easy way to detect
that information from the Locale Kit, nor is it particularly
straightforward to extract from ICU, although I have made a clumsy attempt
to do so anyway.

I am guessing that units like that above will be equally difficult to
extract from the Locale Kit/ICU. So, until that kind of functionality is
built-in I would just make a decision (kbps or Kb/s) now and not try to
localize the units.

Other related posts: