#
518f9c4e |
|
26-Jul-2021 |
Jérôme Duval <jerome.duval@gmail.com> |
BCountry: check ICU version for addLikelySubtags should help arm, riscv builds. Change-Id: I2d626dfd28c9c4abaac15c010dd41afac410d564 Reviewed-on: https://review.haiku-os.org/c/haiku/+/4246 Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
|
#
e5fb17f0 |
|
20-Sep-2019 |
Adrien Destugues <pulkomandy@pulkomandy.tk> |
BCountry: add a GetPreferredLanguage method. The APIs for this were introduced in ICU 63, so we'll need an update. ICU 63 does not build with gcc2, so this method is disabled there. Change-Id: Iabe49509ed6d4e578560d497d3ca336a97db4625 Reviewed-on: https://review.haiku-os.org/c/haiku/+/1874 Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org> Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
|
#
ae569978 |
|
10-Jul-2021 |
Máximo Castañeda <antiswen@yahoo.es> |
BCountry: return country name ICU's Locale::getDisplayName fills in the locale's name in the form "language (country, variation)". We are interested in the country here. Fixes #17081 Change-Id: Icb810dbe2c486d95251d4d06a48dfe3a000fa968 Reviewed-on: https://review.haiku-os.org/c/haiku/+/4206 Reviewed-by: humdinger <humdingerb@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).
|
#
70cdd7d4 |
|
19-Sep-2019 |
Adrien Destugues <pulkomandy@pulkomandy.tk> |
BCountry: add SetTo and InitCheck. Change-Id: I5fbc2a1c0e735d6edeb23672017bb64d1b3f4390 Reviewed-on: https://review.haiku-os.org/c/haiku/+/1872 Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
|
#
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.
|
#
45f2f22b |
|
18-Aug-2011 |
Oliver Tappe <zooey@hirschkaefer.de> |
* update (not-so-)optional package ICU to 4.8.1, which contains interesting stuff for message formatting * adjust LocaleKit to use namespace 'icu', as ICU has been configured to no longer use a version specific namespace * adjust LocaleKit to general API changes in ICU 4.8 Note: all software using ICU (like WebPositive) needs to be rebuilt! Note: the ICU package for PPC needs to be updated before it can be used! git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42638 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
e050c0c6 |
|
25-May-2011 |
Axel Dörfler <axeld@pinc-software.de> |
* Minor cleanup. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41741 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
aa754a90 |
|
22-Dec-2010 |
Oliver Tappe <zooey@hirschkaefer.de> |
Fix CID-2460: * check result of BMessage::FindString() (plus more ...) git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39919 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
25dc253d |
|
22-Nov-2010 |
Ingo Weinhold <ingo_weinhold@gmx.de> |
* Merged weak-symbols branch. * Fixed trivial merge conflict in src/system/libroot/posix/locale/nl_langinfo.cpp * Fixed gcc 2 compilation of src/system/glue/init_term_dyn.c. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39571 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
6fd2f4a0 |
|
23-Oct-2010 |
Oliver Tappe <zooey@hirschkaefer.de> |
One more monster commit (sorry ...) concerning the Locale Kit: * extracted new class BFormattingConventions from BCountry, which manages the formatting conventions from a given locale and allows to get/set the four different date/time formats supported by ICU-locales as well as number and monetary formats * overhauled the Locale preflet: + drop editing features for all formats, since I don't think they do not make much sense to have in a prefs GUI - being able to select from the existing locales should be good enough. Please note that you can still change the formats programmatically in an application. + renamed the 'Countries' tab to 'Formatting' + the locale formatting conventions list in the 'Formatting' tab is now hierarchical for easier access (less scrolling) + fixed functionality of 'Revert' and 'Defaults' buttons + added support for using the month/day-names of your preferred language during date formatting * adjusted BLocale to ask BFormattingConventions for the current formats when formatting dates and times and to offer 4 different format styles (full, long, medium and short). * adjust all classes formatting dates/times to pick the appropriate format style * BLocaleRoster no longer directly archives/unarchives the individual formatting conventions but delegates that to BFormattingConventions git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39123 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
d1d8fda6 |
|
19-Oct-2010 |
Oliver Tappe <zooey@hirschkaefer.de> |
Next step of Locale Kit refactoring: * BLocale now keeps language and country completely separate and mixes the formatting conventions into the current language's locale when formatting dates and times (needs to be done for number- and currency-formatting, too, since the digits may not be in the preferred language) * optimized fetching of the flag icons such that they are all loaded in one go (by the locale roster) - this alone speeds up the Locale preflet considerably * worked on fixing the language confusion in the Locale preflet * fixed a couple of bugs in the Locale preflet that would lead to illegal characters being displayed in the date-subpart menus git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39013 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
81fe5a92 |
|
28-Aug-2010 |
Oliver Tappe <zooey@hirschkaefer.de> |
* re-added GetAvailableTimeZones() to BCountry - it is now a convenience wrapper around BLocaleRoster::GetAvailableTimeZonesForCountry() * minor cleanup git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38412 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
c91aa9f4 |
|
26-Aug-2010 |
Oliver Tappe <zooey@hirschkaefer.de> |
* moved support for getting timezones-by-country from BCountry to LocaleRoster, since we'd like to be able to get the timezones of the global (i.e. empty) country, too. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38380 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
5509491f |
|
10-Aug-2010 |
Adrien Destugues <pulkomandy@pulkomandy.ath.cx> |
* Style fix. Sorry, looks like I spent too much time on other projects today. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38009 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
aed7e5e9 |
|
10-Aug-2010 |
Adrien Destugues <pulkomandy@pulkomandy.ath.cx> |
* Make BCountry::Measurement() actually do something useful. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38007 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
4ebeabb6 |
|
05-Aug-2010 |
Adrien Destugues <pulkomandy@pulkomandy.ath.cx> |
* Remove GetLocaleName from BCountry * Add GetName to BLocale instead git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37919 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
5c3a3034 |
|
04-Aug-2010 |
Adrien Destugues <pulkomandy@pulkomandy.ath.cx> |
* Move the locale-related stuff away from BCountry to BLocale. * Remove the be_locale global object and go through the be_locale_roster instead * Rework the storage of data for the be_locale_roster, since BLocale already holds a BCountry and a BLanguage. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37907 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
38ac8def |
|
01-Aug-2010 |
Oliver Tappe <zooey@hirschkaefer.de> |
Largish cleanup sweep concerning the Locale Kit (sorry it got so big): * refactored private/mutable stuff out of LocaleRoster into MutableLocaleRoster * moved management of Locale/Time settings file and broadcasting of any changes out of preflets and into MutableLocaleRoster * added proper sorting to the listviews of the Locale preflet * the Time preflet no longer overlaps long timezone names into the actual time * several fixes with respect to leaking ICU objects, esp. in BCountry * the locale roster no longer passes out references to its own BCountry object, but uses copies, instead - this makes locking superfluous, as the clients' BCountry objects can no longer be changed by the setting a new default country in the locale roster * removed pretty useless POSIX-style symbol fetching from BCountry - if we need that at all, it should live in the dedicated formatter classes * adjusted readonlybootprompt, dstcheck and Deskbar to the changed Locale API * refactored existing Time-formatter into TimeUnitFormat and DurationFormat (the latter of which is now used by AboutSystem) * added stubs for Date, DateTime and Time formatters * lots of coding style fixes throughout the Locale Kit and the Locale and Time preflets This will probably break most external apps making use of the Locale Kit - it does break WebPositive. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37831 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
99d2aa98 |
|
29-Jul-2010 |
Oliver Tappe <zooey@hirschkaefer.de> |
Improved the Time preflet (still not working properly, though) * basically rewrote TimeZone to sport a nicer to use interface * adjusted all users of TimeZone accordingly * changed TZDisplay to show the Date next to the label, in order to avoid that long timezone names draw all over it * the timezone listview is now properly sorted according to the current language (using BCollator) * fixed a couple of bugs (overflows, etc.) that caused incorrect GMT offsets to be used during computations git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37813 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
c090a0fd |
|
26-Jul-2010 |
Oliver Tappe <zooey@hirschkaefer.de> |
* updated ICU build packages with newer builds that try a bit harder to avoid warnings and incorporate some of the ICU-patches we had in our repo before we upgraded to 4.4.1 * fixed remaining warnings when building locale kit * activated EnableWerror for locale kit * added 'Unicode' license, which is the second license in use by ICU git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37763 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
282582c0 |
|
23-Jul-2010 |
Adrien Destugues <pulkomandy@pulkomandy.ath.cx> |
* Bcountry : private methods start with underscore. The timezone list isnow actually a list of BTimeZone objects, that holdsall the needed info, not only the code. Also tweak the listing code to remove duplicatesfromthe list generated by ICU. * BTimeZone : remove Code, rename Name to GetName. The class is likely to change again for further optimization. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37719 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
6c178e1e |
|
23-Jul-2010 |
Adrien Destugues <pulkomandy@pulkomandy.ath.cx> |
* Add locking system to BCountry to avoid problems with the formatters being deleted while you use them, or created multiple times. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37716 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
eaf70455 |
|
23-Jul-2010 |
Adrien Destugues <pulkomandy@pulkomandy.ath.cx> |
* Ensure if ICU formatters allocation fails, we return an empty string * Use a CheckedArrayByteSink for formatting to a char*, instead of allocating a BString then copying it back to the buffer using strncpy git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37708 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
f48ad0d9 |
|
22-Jul-2010 |
Adrien Destugues <pulkomandy@pulkomandy.ath.cx> |
* Style fixes (some pointed out by Axel, some others by the vim stylechecker). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37698 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
d4f3002d |
|
22-Jul-2010 |
Adrien Destugues <pulkomandy@pulkomandy.ath.cx> |
* BCountry : add error checking in case the system runs out of memory, cleanup function prototypes (we don't need virtual, this was a leftover of OpenTracker days) git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37697 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
3bdfd7f3 |
|
22-Jul-2010 |
Adrien Destugues <pulkomandy@pulkomandy.ath.cx> |
* BCountry : use lazy initialisation for the date and time formatters, since they are not always used. Makes instancaiating a country faster, and so, loading the locale preflet is also faster and use less memory. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37696 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
a03aca6e |
|
21-Jul-2010 |
Adrien Destugues <pulkomandy@pulkomandy.ath.cx> |
WIP Timezone support * BCountry can list the timezones applicable for the country * BCountry can give its name (for example France), or LocaleName (french (France)). The second one will later be moved to BLocale class along with most of the locale settings ; but this needs a bit of refactoring. * The Locale preflet now uses LocaleName instead of Name, since it deals with locales. The time preflet will want only country names, without te language information, for example. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37690 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
82a115e8 |
|
21-Jul-2010 |
Adrien Destugues <pulkomandy@pulkomandy.ath.cx> |
* BCountry : add copy constructor and assignment operator * The locale roster uses them instead of messing with pointers, to avoid ownership problems * The Locale preflet works on a copy of the default country instead of altering it directly git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37649 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
7af097b9 |
|
16-Jul-2010 |
Adrien Destugues <pulkomandy@pulkomandy.ath.cx> |
* Add FormatDate variant returning fields positions and associated DateFields returning their identifiers * Use them in the time preflet to display and edit the date in a local-aware way git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37551 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
a7e183f8 |
|
14-Jul-2010 |
Adrien Destugues <pulkomandy@pulkomandy.ath.cx> |
BDateField is already used in ColumnListView, so use another name for this enum. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37518 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
57500c63 |
|
14-Jul-2010 |
Adrien Destugues <pulkomandy@pulkomandy.ath.cx> |
* Allow use of unicode character in time view * Some support for languages having an order different than H:M:S:AM (like chinese). Does not seem to work too well, but I can't spot what I missed * API to get the infos about the type of each field in a time format git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37517 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
c96d1da7 |
|
14-Jul-2010 |
Adrien Destugues <pulkomandy@pulkomandy.ath.cx> |
* Add an API to get a formatted time along with delimiters for the differrent fields, for further parsing/formatting git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37514 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
5098ba1b |
|
13-Jul-2010 |
Adrien Destugues <pulkomandy@pulkomandy.ath.cx> |
Update ICU to 4.4 * Remove 4.2 sourcecode * ICU is now an optional package (mandatory) * Adjust the namespaces and libraries names where needed git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37498 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
51145d87 |
|
08-Jul-2010 |
Adrien Destugues <pulkomandy@pulkomandy.ath.cx> |
Support for setting 12/24Hr mode in locale preflet. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37427 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
2f0eb7b1 |
|
02-Jul-2010 |
Adrien Destugues <pulkomandy@pulkomandy.ath.cx> |
* Introduce a new method in BCountry to get the first day of week (monday or sunday) * Localize date in deskbar properly, and use the new API to show the calendar. The "show european date" checkbox is now gone. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37344 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
17f902d7 |
|
01-Jul-2010 |
Rene Gollent <anevilyak@gmail.com> |
Don't leak the time formatter. Fixes ticket #6250. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37329 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
3fc995d1 |
|
24-Jun-2010 |
Adrien Destugues <pulkomandy@pulkomandy.ath.cx> |
* Deskbar now uses localized time from locale kit. Thus the "24 hour clock" setting is not needed anymore. * The locale kit now provide a less complete 'full' time format : hour minutes seconds, I don't think anyone cares much about the "UTC + 1" or other similar stuff. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37243 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
fd49f484 |
|
26-Apr-2010 |
Oliver Tappe <zooey@hirschkaefer.de> |
* removed debug output git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36485 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
0638c3ab |
|
15-Apr-2010 |
Adrien Destugues <pulkomandy@pulkomandy.ath.cx> |
* Add some more icons for better testing * Use the country name instead of the language name to identify each icon * Cleanup, fixed copyrights, and some more checks to avoid crashing in case of a missing icon git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36321 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
ffbcecd4 |
|
15-Apr-2010 |
Adrien Destugues <pulkomandy@pulkomandy.ath.cx> |
Add support for flags in BCountry. The flags are stored as HVIF icon resources in liblocale.so. Test french flag took from http://www.bastisoft.de/misc/flags/ (licence is very permissive), converted to HVIF with Icon O Matic. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36314 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
87158047 |
|
15-Apr-2010 |
Adrien Destugues <pulkomandy@pulkomandy.ath.cx> |
Add a call in BCountry to get an icon for that country. Untested and not working yet since we don't provide any icon. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36303 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
c668114b |
|
26-Nov-2009 |
Axel Dörfler <axeld@pinc-software.de> |
* Fixed broken FormatMonetary() versions which also fixes a warning. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34297 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
b2543193 |
|
20-Sep-2009 |
Adrien Destugues <pulkomandy@pulkomandy.ath.cx> |
-Started to localize the appearance preflet to find more locale kit bugs. It worked. -MarkForTranslation was not scanned by collectcatkeys, improved the regexp to take it into account -Some gristing was missing in jamrules, added a bit, still seem to miss some. -Replaced $(var:B).ext with $(var:S=.ext) as it is the proper way in order not to loose grist and mess things up -Removed icu include and replaced direct class nesting with pointer to avoid binary compatibility breakage on ICU updates. -Fixed TimeFormatSettingsView to properly include needed icu things. Should not be there, actually. Needs cleanup. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33210 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
75f15221 |
|
18-Sep-2009 |
Oliver Tappe <zooey@hirschkaefer.de> |
* reintegrated gsoc-locale-kit branch into trunk - there's more work to do, but it's about time to give this code more exposure. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33176 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.
|
#
45f2f22b5250a7be9cdb0a82dee2ca91aaa8398d |
|
18-Aug-2011 |
Oliver Tappe <zooey@hirschkaefer.de> |
* update (not-so-)optional package ICU to 4.8.1, which contains interesting stuff for message formatting * adjust LocaleKit to use namespace 'icu', as ICU has been configured to no longer use a version specific namespace * adjust LocaleKit to general API changes in ICU 4.8 Note: all software using ICU (like WebPositive) needs to be rebuilt! Note: the ICU package for PPC needs to be updated before it can be used! git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42638 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
e050c0c6781d3d3e8957fe0fc2cc9d6cf9ca7267 |
|
25-May-2011 |
Axel Dörfler <axeld@pinc-software.de> |
* Minor cleanup. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41741 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
aa754a906bf71bc6b4dcc25fa63f727445b3fd60 |
|
22-Dec-2010 |
Oliver Tappe <zooey@hirschkaefer.de> |
Fix CID-2460: * check result of BMessage::FindString() (plus more ...) git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39919 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
25dc253d6ab28ce204fa4de2d3e7a27d167fc817 |
|
22-Nov-2010 |
Ingo Weinhold <ingo_weinhold@gmx.de> |
* Merged weak-symbols branch. * Fixed trivial merge conflict in src/system/libroot/posix/locale/nl_langinfo.cpp * Fixed gcc 2 compilation of src/system/glue/init_term_dyn.c. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39571 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
6fd2f4a0d14b45a316defe994e9790de062ff3ff |
|
23-Oct-2010 |
Oliver Tappe <zooey@hirschkaefer.de> |
One more monster commit (sorry ...) concerning the Locale Kit: * extracted new class BFormattingConventions from BCountry, which manages the formatting conventions from a given locale and allows to get/set the four different date/time formats supported by ICU-locales as well as number and monetary formats * overhauled the Locale preflet: + drop editing features for all formats, since I don't think they do not make much sense to have in a prefs GUI - being able to select from the existing locales should be good enough. Please note that you can still change the formats programmatically in an application. + renamed the 'Countries' tab to 'Formatting' + the locale formatting conventions list in the 'Formatting' tab is now hierarchical for easier access (less scrolling) + fixed functionality of 'Revert' and 'Defaults' buttons + added support for using the month/day-names of your preferred language during date formatting * adjusted BLocale to ask BFormattingConventions for the current formats when formatting dates and times and to offer 4 different format styles (full, long, medium and short). * adjust all classes formatting dates/times to pick the appropriate format style * BLocaleRoster no longer directly archives/unarchives the individual formatting conventions but delegates that to BFormattingConventions git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39123 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
d1d8fda63745350804d76b4ed160732086fa9655 |
|
19-Oct-2010 |
Oliver Tappe <zooey@hirschkaefer.de> |
Next step of Locale Kit refactoring: * BLocale now keeps language and country completely separate and mixes the formatting conventions into the current language's locale when formatting dates and times (needs to be done for number- and currency-formatting, too, since the digits may not be in the preferred language) * optimized fetching of the flag icons such that they are all loaded in one go (by the locale roster) - this alone speeds up the Locale preflet considerably * worked on fixing the language confusion in the Locale preflet * fixed a couple of bugs in the Locale preflet that would lead to illegal characters being displayed in the date-subpart menus git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39013 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
81fe5a9200d8b5b8509206f0f0fb85492946c113 |
|
28-Aug-2010 |
Oliver Tappe <zooey@hirschkaefer.de> |
* re-added GetAvailableTimeZones() to BCountry - it is now a convenience wrapper around BLocaleRoster::GetAvailableTimeZonesForCountry() * minor cleanup git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38412 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
c91aa9f4e626eae5e737b74cc173526ccab6ac7c |
|
26-Aug-2010 |
Oliver Tappe <zooey@hirschkaefer.de> |
* moved support for getting timezones-by-country from BCountry to LocaleRoster, since we'd like to be able to get the timezones of the global (i.e. empty) country, too. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38380 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
5509491f57f2aea728a6f3eb8757416e0ff2b458 |
|
10-Aug-2010 |
Adrien Destugues <pulkomandy@pulkomandy.ath.cx> |
* Style fix. Sorry, looks like I spent too much time on other projects today. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38009 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
aed7e5e9ae44acbad7fa29b0165680c41e351595 |
|
10-Aug-2010 |
Adrien Destugues <pulkomandy@pulkomandy.ath.cx> |
* Make BCountry::Measurement() actually do something useful. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38007 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
4ebeabb63965856cc0aa165536afd36220a70feb |
|
05-Aug-2010 |
Adrien Destugues <pulkomandy@pulkomandy.ath.cx> |
* Remove GetLocaleName from BCountry * Add GetName to BLocale instead git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37919 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
5c3a30348613821de032e50f1633e47dc732651f |
|
04-Aug-2010 |
Adrien Destugues <pulkomandy@pulkomandy.ath.cx> |
* Move the locale-related stuff away from BCountry to BLocale. * Remove the be_locale global object and go through the be_locale_roster instead * Rework the storage of data for the be_locale_roster, since BLocale already holds a BCountry and a BLanguage. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37907 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
38ac8def5a72de58d6ae4e82d8c4a6be1021e67e |
|
01-Aug-2010 |
Oliver Tappe <zooey@hirschkaefer.de> |
Largish cleanup sweep concerning the Locale Kit (sorry it got so big): * refactored private/mutable stuff out of LocaleRoster into MutableLocaleRoster * moved management of Locale/Time settings file and broadcasting of any changes out of preflets and into MutableLocaleRoster * added proper sorting to the listviews of the Locale preflet * the Time preflet no longer overlaps long timezone names into the actual time * several fixes with respect to leaking ICU objects, esp. in BCountry * the locale roster no longer passes out references to its own BCountry object, but uses copies, instead - this makes locking superfluous, as the clients' BCountry objects can no longer be changed by the setting a new default country in the locale roster * removed pretty useless POSIX-style symbol fetching from BCountry - if we need that at all, it should live in the dedicated formatter classes * adjusted readonlybootprompt, dstcheck and Deskbar to the changed Locale API * refactored existing Time-formatter into TimeUnitFormat and DurationFormat (the latter of which is now used by AboutSystem) * added stubs for Date, DateTime and Time formatters * lots of coding style fixes throughout the Locale Kit and the Locale and Time preflets This will probably break most external apps making use of the Locale Kit - it does break WebPositive. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37831 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
99d2aa985b7e24d8e11ab008236b819fb895b61a |
|
29-Jul-2010 |
Oliver Tappe <zooey@hirschkaefer.de> |
Improved the Time preflet (still not working properly, though) * basically rewrote TimeZone to sport a nicer to use interface * adjusted all users of TimeZone accordingly * changed TZDisplay to show the Date next to the label, in order to avoid that long timezone names draw all over it * the timezone listview is now properly sorted according to the current language (using BCollator) * fixed a couple of bugs (overflows, etc.) that caused incorrect GMT offsets to be used during computations git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37813 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
c090a0fd840440a924c08cc9bc6c256d16635a7a |
|
26-Jul-2010 |
Oliver Tappe <zooey@hirschkaefer.de> |
* updated ICU build packages with newer builds that try a bit harder to avoid warnings and incorporate some of the ICU-patches we had in our repo before we upgraded to 4.4.1 * fixed remaining warnings when building locale kit * activated EnableWerror for locale kit * added 'Unicode' license, which is the second license in use by ICU git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37763 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
282582c0059d82c9b3a87b20f63e16cbdfa446d3 |
|
23-Jul-2010 |
Adrien Destugues <pulkomandy@pulkomandy.ath.cx> |
* Bcountry : private methods start with underscore. The timezone list isnow actually a list of BTimeZone objects, that holdsall the needed info, not only the code. Also tweak the listing code to remove duplicatesfromthe list generated by ICU. * BTimeZone : remove Code, rename Name to GetName. The class is likely to change again for further optimization. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37719 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
6c178e1e7302975ed66f75fb55c61e508d892708 |
|
23-Jul-2010 |
Adrien Destugues <pulkomandy@pulkomandy.ath.cx> |
* Add locking system to BCountry to avoid problems with the formatters being deleted while you use them, or created multiple times. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37716 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
eaf7045526f7345b40585a02292450198e33b618 |
|
23-Jul-2010 |
Adrien Destugues <pulkomandy@pulkomandy.ath.cx> |
* Ensure if ICU formatters allocation fails, we return an empty string * Use a CheckedArrayByteSink for formatting to a char*, instead of allocating a BString then copying it back to the buffer using strncpy git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37708 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
f48ad0d9682343155c456f2828c929cab6ecf05c |
|
22-Jul-2010 |
Adrien Destugues <pulkomandy@pulkomandy.ath.cx> |
* Style fixes (some pointed out by Axel, some others by the vim stylechecker). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37698 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
d4f3002de9849049e0a88a8a5c5df2bd203ec01a |
|
22-Jul-2010 |
Adrien Destugues <pulkomandy@pulkomandy.ath.cx> |
* BCountry : add error checking in case the system runs out of memory, cleanup function prototypes (we don't need virtual, this was a leftover of OpenTracker days) git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37697 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
3bdfd7f3409a7b4f20f9b1c59d74636d6f4c12b0 |
|
22-Jul-2010 |
Adrien Destugues <pulkomandy@pulkomandy.ath.cx> |
* BCountry : use lazy initialisation for the date and time formatters, since they are not always used. Makes instancaiating a country faster, and so, loading the locale preflet is also faster and use less memory. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37696 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
a03aca6e0619095634916826781a08b046a36e24 |
|
21-Jul-2010 |
Adrien Destugues <pulkomandy@pulkomandy.ath.cx> |
WIP Timezone support * BCountry can list the timezones applicable for the country * BCountry can give its name (for example France), or LocaleName (french (France)). The second one will later be moved to BLocale class along with most of the locale settings ; but this needs a bit of refactoring. * The Locale preflet now uses LocaleName instead of Name, since it deals with locales. The time preflet will want only country names, without te language information, for example. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37690 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
82a115e8bc9b595045f77913ac6f8aebb0870278 |
|
21-Jul-2010 |
Adrien Destugues <pulkomandy@pulkomandy.ath.cx> |
* BCountry : add copy constructor and assignment operator * The locale roster uses them instead of messing with pointers, to avoid ownership problems * The Locale preflet works on a copy of the default country instead of altering it directly git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37649 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
7af097b973b6939efe12e585cfc1c10f445d30b3 |
|
16-Jul-2010 |
Adrien Destugues <pulkomandy@pulkomandy.ath.cx> |
* Add FormatDate variant returning fields positions and associated DateFields returning their identifiers * Use them in the time preflet to display and edit the date in a local-aware way git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37551 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
a7e183f8e52ef2a97069bc1abd1d6fa335549110 |
|
14-Jul-2010 |
Adrien Destugues <pulkomandy@pulkomandy.ath.cx> |
BDateField is already used in ColumnListView, so use another name for this enum. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37518 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
57500c639ca1e72b0919694a11755ee74548e066 |
|
14-Jul-2010 |
Adrien Destugues <pulkomandy@pulkomandy.ath.cx> |
* Allow use of unicode character in time view * Some support for languages having an order different than H:M:S:AM (like chinese). Does not seem to work too well, but I can't spot what I missed * API to get the infos about the type of each field in a time format git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37517 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
c96d1da7355e04e3e8d51bb3caa8766e630133a4 |
|
14-Jul-2010 |
Adrien Destugues <pulkomandy@pulkomandy.ath.cx> |
* Add an API to get a formatted time along with delimiters for the differrent fields, for further parsing/formatting git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37514 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
5098ba1b94a671c0be0e3f0a5823e9c0e8cc7d0c |
|
13-Jul-2010 |
Adrien Destugues <pulkomandy@pulkomandy.ath.cx> |
Update ICU to 4.4 * Remove 4.2 sourcecode * ICU is now an optional package (mandatory) * Adjust the namespaces and libraries names where needed git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37498 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
51145d87bd00e1dea54c7bca7e4904bfb6ca425c |
|
08-Jul-2010 |
Adrien Destugues <pulkomandy@pulkomandy.ath.cx> |
Support for setting 12/24Hr mode in locale preflet. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37427 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
2f0eb7b11e9cdb428b2da5bfaac25c9998b02e03 |
|
02-Jul-2010 |
Adrien Destugues <pulkomandy@pulkomandy.ath.cx> |
* Introduce a new method in BCountry to get the first day of week (monday or sunday) * Localize date in deskbar properly, and use the new API to show the calendar. The "show european date" checkbox is now gone. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37344 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
17f902d7c23354e83f3f3099206818557c15d0c5 |
|
01-Jul-2010 |
Rene Gollent <anevilyak@gmail.com> |
Don't leak the time formatter. Fixes ticket #6250. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37329 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
3fc995d101cdc6b31f12bb35f9681f4f16b8a408 |
|
24-Jun-2010 |
Adrien Destugues <pulkomandy@pulkomandy.ath.cx> |
* Deskbar now uses localized time from locale kit. Thus the "24 hour clock" setting is not needed anymore. * The locale kit now provide a less complete 'full' time format : hour minutes seconds, I don't think anyone cares much about the "UTC + 1" or other similar stuff. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37243 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
fd49f4844b983fb4846fcc03c842d5216655cc02 |
|
26-Apr-2010 |
Oliver Tappe <zooey@hirschkaefer.de> |
* removed debug output git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36485 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
0638c3ab4cb3b8859c8fd6f0010ecc2ac6f8478f |
|
15-Apr-2010 |
Adrien Destugues <pulkomandy@pulkomandy.ath.cx> |
* Add some more icons for better testing * Use the country name instead of the language name to identify each icon * Cleanup, fixed copyrights, and some more checks to avoid crashing in case of a missing icon git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36321 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
ffbcecd4894c27f62075a6e70ff3bae0caa51356 |
|
15-Apr-2010 |
Adrien Destugues <pulkomandy@pulkomandy.ath.cx> |
Add support for flags in BCountry. The flags are stored as HVIF icon resources in liblocale.so. Test french flag took from http://www.bastisoft.de/misc/flags/ (licence is very permissive), converted to HVIF with Icon O Matic. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36314 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
87158047dd792fe80efa0b183d1cd01624fb583d |
|
15-Apr-2010 |
Adrien Destugues <pulkomandy@pulkomandy.ath.cx> |
Add a call in BCountry to get an icon for that country. Untested and not working yet since we don't provide any icon. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36303 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
c668114b36b95fd63b62e30699b9bea51f08066b |
|
26-Nov-2009 |
Axel Dörfler <axeld@pinc-software.de> |
* Fixed broken FormatMonetary() versions which also fixes a warning. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34297 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
b25431936010250e5ddd6d526a8788b391b77c12 |
|
20-Sep-2009 |
Adrien Destugues <pulkomandy@pulkomandy.ath.cx> |
-Started to localize the appearance preflet to find more locale kit bugs. It worked. -MarkForTranslation was not scanned by collectcatkeys, improved the regexp to take it into account -Some gristing was missing in jamrules, added a bit, still seem to miss some. -Replaced $(var:B).ext with $(var:S=.ext) as it is the proper way in order not to loose grist and mess things up -Removed icu include and replaced direct class nesting with pointer to avoid binary compatibility breakage on ICU updates. -Fixed TimeFormatSettingsView to properly include needed icu things. Should not be there, actually. Needs cleanup. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33210 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
75f152215517c2af1a93938f46d3156503329a5e |
|
18-Sep-2009 |
Oliver Tappe <zooey@hirschkaefer.de> |
* reintegrated gsoc-locale-kit branch into trunk - there's more work to do, but it's about time to give this code more exposure. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33176 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
|