130 Commits

Author SHA1 Message Date
Rene Gollent
50f1e6269d Fix incorrect include. Fixes GCC4 build.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37630 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-20 18:26:45 +00:00
Adrien Destugues
2d67f5fcd6 Locale preflet : make the 12/24hr switching system more robust and lossless
* When selecting chinese, the AM/PM stays at the beginning of the string
 * When clicking multiple times on the 12 hours button, the AM/PM indicator is added only once.
 * Only regression : the default format for cherokee (US) uses a 12hour clock without AM/PM indicator, so it is not possible 
to switch it to a 24Hr clock scheme.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37628 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-20 17:44:14 +00:00
Adrien Destugues
0b269e50a0 * Remove an useless BBox, because BBox nesting looks just too ugly.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37620 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-20 16:02:42 +00:00
Adrien Destugues
4b37c7f861 * Remove direct access to ICU in locale preflet, use the locale kit instead.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37619 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-20 15:47:16 +00:00
Adrien Destugues
5421c7d682 * Fix all localized applications, as an include was missing in some of them
* dstcheck : the generated catalog is now 'dstcheck.catkeys' instead of 'en.catkeys', so that it does not conflict with 
other localized apps in the bin/ folder.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37617 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-20 13:11:13 +00:00
Adrien Destugues
66d288a959 * Actually set the 12/24hr clock selector depending on the date format when selecting a country.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37605 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-19 17:33:07 +00:00
Oliver Tappe
7ad694e346 Some more ICU-related improvements:
* updated icu-devel package to 4.4.1
* create appropriate devel lib links when icu-devel is being installed
  (which only works during build, not when using installoptionalpackage)
* dropped ICU headers from repository and instead fetch them from the
  icu-devel package when needed during the build
* adjusted Jamfiles that make use of ICU-headers accordingly (hopefully
  I didn't miss any)
* fixed license in OptionalPackage description of icu packages


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37531 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-15 21:23:45 +00:00
Adrien Destugues
5098ba1b94 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
2010-07-13 19:04:40 +00:00
Adrien Destugues
630acb8436 Remove useless debug output. Thanks Jerome for pointing it out!
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37429 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-08 13:08:24 +00:00
Adrien Destugues
30a49962db Style fixes.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37428 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-08 11:05:31 +00:00
Adrien Destugues
51145d87bd 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
2010-07-08 09:14:09 +00:00
Adrien Destugues
c19a67f957 * Separate the Settings class from the locale preflet a little (it can be reused in other parts of the OS)
* Improve the settings class so it is able to handle a revert
 * Re-enable the revert button in the preflet and make it work.
This fixes #5897.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37400 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-05 13:36:16 +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
76a4353b79 Add a new way of using the locale kit with static accessors instead of global variables. This has the following consequences :
* Applications don't have to declare BCatalog fCatalog themselves, it's now done automatically
 * Libs and add-ons can be localized just the same way (except static libraries)
For now this new system is yet disabled as I'm looking for some peer review before going on. To enable it you have to define B_TRANSLATE_USE_NEW_MACROS in each file doing catalog access. This will not stay, I'll update the 
other apps to use it.
The linking in jamfiles must be not only with liblocale.so, but also liblocalestub.a. Not sure how to handle this for user-side applications. Libraries are also required to provide a MIME signature to use any catalog.
The locale preflet is updated to the new system (as a test). Othe rapps will follow if everyone is ok with this approach.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37323 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-01 11:54:09 +00:00
Wim van der Meer
12039d82c4 Adding missing #undef B_TRANSLATE_CONTEXT
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37288 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-28 07:21:37 +00:00
Matt Madia
4eb0cbb044 Updated TR_CONTEXT to be B_TRANSLATE_CONTEXT, relating to #5408.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36733 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-05-07 20:19:06 +00:00
Axel Dörfler
96eaa02e8f * Changed BLocaleRoster::GetLanguage() to a signature that makes more sense,
and looks more like the rest of the API.
* Also, it will now return an appropriate error code if the language couldn't
  be allocated (anything else than B_OK is an improvement :-)).
* Several changes in BLanguage:
  - GetName() now gets a BString reference, also
  - it now returns the name in its own language, ie. for German this would
    always be "deutsch", no matter the current language settings, and finally,
  - it now empties the string it gets before adding the name.
  - added GetTranslatedName() that behaves like the previous version.
  - added const where it made sense (ie. almost everywhere).
  - Code() now returns the code of the language only.
  - ID() now returns the full ID of this language, ie. including country,
    variant, and keywords if any.
  - added Country(), and Variant().
  - renamed IsCountry() to IsCountrySpecific().
  - added IsVariant().
* Cleaned up Language.h, minor cleanup in LocaleRoster.cpp.
* Removed the whole move item logic from LanguageListView; while this was not
  only spaghetti code, it doesn't make much sense in the first place.
* Instead of removing stuff from the left, and even worse, moving all countries
  for a language even if only one had been dragged, we now only mark the items
  that are already in the preferred list, and only those.
* Fixed various mixups of FullList*() vs. *() methods that could lead to things
  like bug #5896.
* Pressing the delete key in the preferred list view will now remove the
  language.
* Moved LocaleWindow specific message constants to LocaleWindow.cpp; Locale.h
  is supposed to contain application wide constants.
* The drop logic is now in LocaleWindow.
* We now make sure that each base language can only be in the list once.
* Lots of cleanup, even though I mostly replaced spaghettie code with different
  looking spaghettie code - still, I think things have slightly improved.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36727 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-05-07 17:38:40 +00:00
Axel Dörfler
d2ed47fd9f * Made the spacing a bit larger in general, and made it use
BControlLook::DefaultItemSpacing() instead of hard coded values.
* Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36715 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-05-07 11:31:10 +00:00
Matt Madia
b850bd3b17 Updated to use B_TRANSLATE* macros. relates to #5408.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36688 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-05-06 23:53:12 +00:00
Axel Dörfler
7b63fd1c11 * BOutlineListView::SortItemsUnder() and FullListSortItems() does not behave
as described in the BeBook when oneLevelOnly is false - only
  BListView::SortItems() does ignore the hierarchy. So the work-arounds for
  this are completely unnecessary. Removed now unused compare_list_items().
* The BOutlineListView sorting methods have a different comparison signature
  as the other comparison functions: they point to the items directly. The
  compare_typed_list_items() function did not take this into account, and
  dereferenced them anyway, leading to #5883.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36587 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-05-02 18:00:20 +00:00
Axel Dörfler
533d9a5f85 * Fixed a ton of minor coding style violations, no functional change intended.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36586 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-05-02 17:38:11 +00:00
Stephan Aßmus
b5fa58c9d8 New icons for OpenGL, Touchpad and Locale (revised previous version, which was
not committed as icon before).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36567 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-05-01 13:11:03 +00:00
Oliver Tappe
68a1479cc6 Fix #5788 by overhauling the Locale preflet a bit:
* InitiateDrag() now makes sure that either a number of top-level items
  or a group of subitems sharing the parent is being dragged - anything
  else doesn't really make sense and results in mayhem and/or crashes
* LocaleWindow now tries harder to keep the language listview sorted
* when moving around items between the two listviews, they are no longer
  copied (and partly leaked), but the same items are now just moved over
* cleanup here and there
This is still somewhat of a mess - I recommend splitting the two listviews at least (as they actually behave differently) - maybe it would be better to pick the available languages from a popup-menu instead of keeping them in a listview?

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36561 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-30 22:52:03 +00:00
Oliver Tappe
e590fb24c6 * style adjustments
* commented out a useless block of code (and added a respective TODO) 


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36496 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-26 17:11:11 +00:00
Oliver Tappe
1d26f9e11c Fix #5755: Locale preflet crashing when dragging languages around
* The flag bitmaps being part of list items were not treated properly in
  the language item's copy constructor (the bitmap pointer was copied, not
  the bitmap object itself). As a result, bitmap objects were freed more than 
  once. 
* some cleanup

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36487 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-26 13:43:06 +00:00
Adrien Destugues
0638c3ab4c * 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
2010-04-15 21:34:00 +00:00
Adrien Destugues
ffbcecd489 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
2010-04-15 18:52:20 +00:00
Adrien Destugues
5e7931beaa Separate LanguageListView from LocaleWindow as it was occupying more than half of the file and will grow even more soon.
No functionnal change.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36307 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-15 17:48:31 +00:00
Ingo Weinhold
58b0a5dda6 DoCatalogs:
* Renamed parameter "appName" to "target".
* Replaced parameter "generatedCatalog" by "sourceLanguage" and made it
  optional. Default is "en".
* Removed the no longer needed parameter from the DoCatalogs invocations.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36016 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-03-31 18:34:03 +00:00
Ingo Weinhold
6d9af5b7a0 Removed no longer needed DoCatalogs parameters.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36009 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-03-30 18:21:26 +00:00
Adrien Destugues
cd5274c4c0 Update to the ukrainian translation, done by totish. Thanks !
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35501 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-02-16 21:19:34 +00:00
Artur Wyszynski
5fb7d0a580 Added a set of polish translations, translated by me & Hubert (Hugen)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35436 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-02-09 05:32:43 +00:00
Adrien Destugues
c055de4e49 Incomplete handling of moving items around in a list. Child items get lost when you move their parent, but I feel the code is getting too messy and I'm not sure what's the best way to fix that.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35384 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-02-01 21:18:11 +00:00
Adrien Destugues
8c325f8097 Fix some more bugs in the locale preflet lists. Dragging from one list to the other should now always work, while drawing inside a list is not finished, working on it now.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35383 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-02-01 19:53:43 +00:00
Adrien Destugues
d66b223341 Move the parent along with child items in the language selection list.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35378 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-02-01 12:58:43 +00:00
Adrien Destugues
fbc6963056 The locale preflet now use a BOutlineListView for listing languages and country variants.
This is still quite buggy, but at least you can start working on pt_br and test things out.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35364 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-01-31 21:00:29 +00:00
Adrien Destugues
5570fd11c0 - Locale kit : made the language class live. It now uses ICU as a backend as expected
- Some changes in the locale roster to allow instanciating a language
- Locale preflet : use this new API instead of directly calling ICU
Side effect : all languages in Locale window are now displayed in the current locale. It makes more sense as otherwise the list would be unsortable. However it can get annoying if you mistakenly set a strange language as default.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35210 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-01-20 22:44:34 +00:00
Adrien Destugues
f66bb08155 Added portuguese localisation done by Xeon3D.
I had to uptade the catkeys as Travis tool has trouble keeping up with changes in the repository (most importantly, cpufrequency fixes and mail sentance casing). I hope nothing was lost in the process.
Travis, if you read this, I had to load the catkey files in vim and save them back to get them linked correctly by the buildtools. I suspect some line ending problem or something alike. Also, your fingerprint computation seemed wrong in most cases.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34994 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-01-10 21:47:07 +00:00
Adrien Destugues
3314b279e1 A TR call was missing in this file.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34985 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-01-10 12:53:56 +00:00
Adrien Destugues
b2994d16d3 More lithuanian catalog updates.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34895 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-01-04 19:20:28 +00:00
Adrien Destugues
2fdf91fe74 Esperanto localization by Travis D. Reed. Thanks !
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34853 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-01-02 10:08:52 +00:00
Adrien Destugues
0b2fbbfaa9 Patch by Humdinger to convert all the preference panels to sentance case.
Also update the localization catalogs as needed.
CPUFrequency localization is broken : the current code works, but the DoCatalogs jamrule is not powerful enough to properly extract the catkeys.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34767 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-12-24 15:31:00 +00:00
Adrien Destugues
9c1a9b926a * Patch by Humdinger to convert a lot of things to sentance case.
* Cleanup and update of all the touched catkeys files


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34731 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-12-21 12:51:41 +00:00
Jonas Sundström
2e71609917 Fixed memory leaks. Thanks Stephan and Rene! Added naive sorting of the list of available languages, meant to be replaced.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34066 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-15 22:11:50 +00:00
Jonas Sundström
5e5a7d535c Double-clicking to select/deselect preferred languages added.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34062 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-15 18:11:58 +00:00
Jonas Sundström
34bdaab8bd Simplified quitting. Propagate settings from window to application/settings when they change instead of collecting them when quitting.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34060 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-15 15:07:55 +00:00
Jonas Sundström
31f52d335f Hack to make Command-Q save preferences and not only Command-W.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34051 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-15 02:50:16 +00:00
Siarzhuk Zharski
c9f0f9b9d2 ISO 639 defines the name for Ukrainian language as 'uk'.
This changeset correct usage of this language abbreviation and restore normal function of the localized preflets.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33765 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-25 20:38:29 +00:00
Adrien Destugues
98c24e6fd3 Added lithuaninan locale done by Algirdas Buckus. Thanks !
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33710 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-21 17:31:33 +00:00
Adrien Destugues
207836f1b1 Added ukrainian catalogs, done by Alex Rudyk aka totish. Thanks!
--Cette ligne, et les suivantes ci-dessous, seront ignorées--

M    src/preferences/appearance/Jamfile
M    src/preferences/locale/Jamfile
M    src/preferences/bluetooth/Jamfile
M    src/preferences/cpufrequency/Jamfile
A    data/catalogs/preferences/appearance/ua.catkeys
A    data/catalogs/preferences/locale/ua.catkeys
M    data/catalogs/preferences/locale/fr.catkeys
A    data/catalogs/preferences/bluetooth/ua.catkeys
A    data/catalogs/preferences/cpufrequency/ua.catkeys


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33686 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-20 21:16:35 +00:00