Commit Graph

14 Commits

Author SHA1 Message Date
Adrien Destugues
5c3a303486 * 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
2010-08-04 18:45:06 +00:00
Oliver Tappe
38ac8def5a 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
2010-08-01 20:28:19 +00:00
Joachim Seemer
4de827d536 Small changes to strings.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37810 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-29 17:25:40 +00:00
Adrien Destugues
be8fa2fb30 * Update all applications in tree to use the new localizing system
* Remove the old one from the locale librairy, with some cleanup
Known regressions :
 * readonlybootprompt will no longer update the locale settings : the 
method used messed with internal undocumented things
 * external localized apps (webpositive for example) will not run 
anymore.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37336 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-02 11:36:13 +00:00
Adrien Destugues
69b8708d75 Patch by Jorma Karvonnen, mostly rewritten by me :
* dstcheck is now localized
 * it also localize the date using the locale kit instead of strftime
I also added a way to force the message to display, because it helps testing a lot. Run "dstcheck force" for that.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37297 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-29 09:34:42 +00:00
Stephan Aßmus
6fa92ae021 It's that time of the year again, in which people fix bugs in dstcheck... :-)
Now, it came up just fine, only it was burried behind Tracker windows.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29771 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-29 08:16:26 +00:00
Jérôme Duval
59b17b6be1 creates the dststatus file with 600 as permissions
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23113 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-12-11 20:20:45 +00:00
Axel Dörfler
b3d7f4bcf2 * Remove newlines from text; that should make nicer line breaks in the alert.
* Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19159 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-10-31 00:50:47 +00:00
DarkWyrm
6c0e9c8097 Moved Haiku-dependent command line apps to just Haiku build targets
Added an include to dstcheck to build for R5.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18374 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-03 17:53:43 +00:00
Jérôme Duval
c3b56e03d4 fixed my name
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17438 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-05-13 14:11:49 +00:00
Ingo Weinhold
758b1d0e05 Fixes that make Haiku build with gcc 4. Mainly out of the following
categories:
* Missing includes (like <stdlib.h> and <string.h>).
* Linking against $(TARGET_LIBSTDC++) instead of libstdc++.r4.so.
* Local variables shadowing parameters.
* Default parameters in function definitions (as opposed to function
  declarations).
* All C++ stuff (nothrow, map, set, vector, min, max,...) must be imported
  explicitly from the std:: namespace now.
* "new (sometype)[...]" must read "new sometype[...]", even if sometype is
  something like "const char *".
* __FUNCTION__ is no longer a string literal (but a string expression), i.e.
  'printf(__FUNCTION__ ": ...\n")' is invalid code.
* A type cast results in a non-lvalue. E.g. "(char *)buffer += bytes"
  is an invalid expression.
* "friend class SomeClass" only works when SomeClass is known before.
  Otherwise the an inner class with that name is considered as friend.
  gcc 4 is much pickier about scopes.
* gcc 4 is generally stricter with respect to type conversions in C.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14878 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-12 23:27:14 +00:00
Jérôme Duval
6dd2dfb15e update time preference signature
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14814 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-10 09:36:52 +00:00
Jérôme Duval
079e4d1f0b unlike on BeOS, our localtime_r doesn't set timezone information, we can call tzset() ourself
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14527 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-10-26 13:23:43 +00:00
Axel Dörfler
17049c451a Moved bin/ directory out of apps/.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@11909 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-19 00:09:19 +00:00