#
e523bfeb |
|
04-Feb-2024 |
Emir SARI <bitigchi@me.com> |
NumberFormat: add floating-point precision support - Simplify code in AboutSystem - Make error string translatable in Locale preflet Change-Id: I3b967ee04d764ec1bcf0fa40e40dae8da4a35c20 Reviewed-on: https://review.haiku-os.org/c/haiku/+/7373 Reviewed-by: waddlesplash <waddlesplash@gmail.com>
|
#
267c6a9b |
|
19-Mar-2021 |
Jérôme Duval <jerome.duval@gmail.com> |
Locale: correct fix binary compatibility for BNumberFormat fix HaikuDepot build after hrev55006 Change-Id: I3c275e1b0f23f936db448ad82639458535617d6a Reviewed-on: https://review.haiku-os.org/c/haiku/+/3809 Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
|
#
e3c39838 |
|
19-Mar-2021 |
Jérôme Duval <jerome.duval@gmail.com> |
Locale: fix binary compatibility for BNumberFormat Issue: https://github.com/HaikuArchives/Album/issues/15 Change-Id: I1f8d5055f929957adb0cca20a8f6b13bcccabfab Reviewed-on: https://review.haiku-os.org/c/haiku/+/3807 Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
|
#
564de192 |
|
09-Mar-2021 |
Andrew Lindesay <apl@lindesay.co.nz> |
Locale: Support for Percent Formatting Updates BNumberFormat to be able to format percentages. Also re-introduces some unit tests and updates the BNumberFormat ones. This doesn't actually fix #16312 as the defaults for percentage formatting don't seem to track the selected language, but goes part way there. Related to #16312 Change-Id: Id6ddf426ce5571f4e8513c0eb1663cf42ac53cb1 Reviewed-on: https://review.haiku-os.org/c/haiku/+/3767 Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
|
#
1bad1ff3 |
|
02-Aug-2020 |
Adrien Destugues <pulkomandy@pulkomandy.tk> |
Prepare for ICU update - libicule and libiculx do not exist anymore in newer ICU versions (harfbuzz replaces them), but we didn't actually use them, so remove them from the build feature and from the package dependencies - Add namespace usage marcos since the newer ICU packages put ICU things in a namespace, making it easier to have multiple versions of ICU used side by side. No functional change intended, but this makes it possible to build the code with either ICU 57 (for gcc2) or 66 (for other architectures).
|
#
037ea84b |
|
23-Jul-2017 |
Adrien Destugues <pulkomandy@pulkomandy.tk> |
BNumberFormat: add Parse() and GetSymbol().
|
#
6cbcfc19 |
|
23-Jul-2017 |
Adrien Destugues <pulkomandy@pulkomandy.tk> |
BNumberFormat: cache ICU formatters For performance reasons, it is a good idea to keep the formatters instanciated, instead of re-creating them each time we need to format a number.
|
#
73de5837 |
|
10-May-2015 |
Jérôme Duval <jerome.duval@gmail.com> |
Update icu x86_64 package with namespace renaming enabled. "Renaming" means the icu namespace is suffixed with the version number, atm icu_55. Using "renaming" allows to use two different versions of ICU, thus easing upgrades. For instance haikuwebkit uses a current version of ICU, while the system uses a newer one after an upgrade. * Replace all uses of the icu namespace in our public headers, with a macro defaulting to icu. As the namespace is only used for private fields pointers, there should be no impact. * Locale kit *.cpp have to import the macro from <unicode/uversion.h> *before* including any locale headers. Ditto for a Time preferences cpp file. This way, the correct current icu namespace is referenced. * Fixes bug #12057.
|
#
5d5ec05b |
|
27-Oct-2014 |
Adrien Destugues <pulkomandy@gmail.com> |
B*Format: make immutable and remove locking The language and formatting conventions can now only be set when creating the objects. This removed the needs for locking them when formatting to avoid some other thread changing the format while it's being used. Adjust tests and DeskBar TimeView to the API changes.
|
#
e3857211 |
|
02-Oct-2014 |
Adrien Destugues <pulkomandy@gmail.com> |
Move DateTimeFormat and NumberFormat out of BLocale * ... and adjust all callers * Remove NumberFormatImpl: we rely on ICU to provide this and it can be fully wrapped into the C++ file. The class was a stub anyway. * "Monetary" format is included in NumberFormat for now. There may be a more generic solution to handle monetary and BTimeUnitFormat (and other arbitrary units)
|
#
33eead33 |
|
17-Feb-2010 |
Adrien Destugues <pulkomandy@pulkomandy.ath.cx> |
* Improve the test for TimeFormat (style and error checking) * Fix the TimeFormat API, there was a double free. Make it work as expected : you send it a number of seconds and it will format it properly in days, hours, minutes, seconds with proper plural. * Cleanup other parts of the Format API from useless things. They may get reintroduced later if we feel the need to do so. * AboutSystem now use TimeFormat to display the uptime in properly localized way. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35506 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
b2c385c0 |
|
16-Feb-2010 |
Adrien Destugues <pulkomandy@pulkomandy.ath.cx> |
-Added new TimeFormat API for formatting and localizing a time (uptime, copy duration, ...) -Added a very simple test that shows the API is corrupting memory and ends up crashing -Fixed build of other locale tests git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35503 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
c3ac87e8 |
|
01-May-2009 |
Oliver Tappe <zooey@hirschkaefer.de> |
* Copied imported OpenTracker Locale Kit files from the vendor branch into their new homes (at least for now, might need some adjustment). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30540 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
73de58376ac8f983ae64a643e01ec5bf047208d2 |
|
10-May-2015 |
Jérôme Duval <jerome.duval@gmail.com> |
Update icu x86_64 package with namespace renaming enabled. "Renaming" means the icu namespace is suffixed with the version number, atm icu_55. Using "renaming" allows to use two different versions of ICU, thus easing upgrades. For instance haikuwebkit uses a current version of ICU, while the system uses a newer one after an upgrade. * Replace all uses of the icu namespace in our public headers, with a macro defaulting to icu. As the namespace is only used for private fields pointers, there should be no impact. * Locale kit *.cpp have to import the macro from <unicode/uversion.h> *before* including any locale headers. Ditto for a Time preferences cpp file. This way, the correct current icu namespace is referenced. * Fixes bug #12057.
|
#
5d5ec05b1df089eff03f04a7122ac7cf355c4f3e |
|
27-Oct-2014 |
Adrien Destugues <pulkomandy@gmail.com> |
B*Format: make immutable and remove locking The language and formatting conventions can now only be set when creating the objects. This removed the needs for locking them when formatting to avoid some other thread changing the format while it's being used. Adjust tests and DeskBar TimeView to the API changes.
|
#
e3857211d305a595c2d0b58768f25623d5967675 |
|
02-Oct-2014 |
Adrien Destugues <pulkomandy@gmail.com> |
Move DateTimeFormat and NumberFormat out of BLocale * ... and adjust all callers * Remove NumberFormatImpl: we rely on ICU to provide this and it can be fully wrapped into the C++ file. The class was a stub anyway. * "Monetary" format is included in NumberFormat for now. There may be a more generic solution to handle monetary and BTimeUnitFormat (and other arbitrary units)
|
#
33eead339b2cf4b27f271e3f7fdae433b02bef6a |
|
17-Feb-2010 |
Adrien Destugues <pulkomandy@pulkomandy.ath.cx> |
* Improve the test for TimeFormat (style and error checking) * Fix the TimeFormat API, there was a double free. Make it work as expected : you send it a number of seconds and it will format it properly in days, hours, minutes, seconds with proper plural. * Cleanup other parts of the Format API from useless things. They may get reintroduced later if we feel the need to do so. * AboutSystem now use TimeFormat to display the uptime in properly localized way. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35506 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
b2c385c0727b400b447efa535a3a67042bd52af8 |
|
16-Feb-2010 |
Adrien Destugues <pulkomandy@pulkomandy.ath.cx> |
-Added new TimeFormat API for formatting and localizing a time (uptime, copy duration, ...) -Added a very simple test that shows the API is corrupting memory and ends up crashing -Fixed build of other locale tests git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35503 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
c3ac87e8fc6f81023c44faed6cf00c8a916f4e31 |
|
01-May-2009 |
Oliver Tappe <zooey@hirschkaefer.de> |
* Copied imported OpenTracker Locale Kit files from the vendor branch into their new homes (at least for now, might need some adjustment). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30540 a95241bf-73f2-0310-859d-f6bbb57e9c96
|