#
98e5fab3 |
|
18-Jul-2020 |
Adrien Destugues <pulkomandy@pulkomandy.tk> |
Locale: move "translate application names" checkbox to formatting tab Part of #15511
|
#
6c53279f |
|
25-May-2020 |
Augustin Cavalier <waddlesplash@gmail.com> |
Locale preferences: Set a default for filesystem/application translation. Change-Id: I5a7219a3380a8a2f72fe43b84ea0e85cc5454033 Reviewed-on: https://review.haiku-os.org/c/haiku/+/2813 Reviewed-by: waddlesplash <waddlesplash@gmail.com>
|
#
a70e506a |
|
15-Nov-2019 |
John Scipione <jscipione@gmail.com> |
Locale prefs: Select items after drag and drop in the Preferred Languages ListView. Change-Id: I423263ba0c6753a278f70e479eb2b711ca1d7670 Reviewed-on: https://review.haiku-os.org/c/haiku/+/1959 Reviewed-by: waddlesplash <waddlesplash@gmail.com>
|
#
42d17c1c |
|
14-Feb-2016 |
Adrien Destugues <pulkomandy@pulkomandy.tk> |
Remove TODO, fixed by the previous commit.
|
#
975ec13e |
|
14-Feb-2016 |
Adrien Destugues <pulkomandy@pulkomandy.tk> |
Locale prefs: skip script-specific entries Avoids showing the same language multiple times in the list, for example when there are cyrillic and latin variants. It is still possible to pick one of the variants, as they are also added as country-specific entries. Fixes #9144.
|
#
ad926b25 |
|
07-Nov-2015 |
Humdinger <humdingerb@gmail.com> |
Improve/fix tab view layout as discussed See http://www.freelists.org/post/haiku-development/Unifying-visuals-of-BTabView-usage Besides the tab bar going the full width of the window, also some layouting tweaks to several apps and prefs. Still missing: the first (and last) tabs in the tab bar should be inset by B_USE_WINDOW_SPACING so the controls in the tab view line up nicely. I think I remember stippi wanting to look into it... :)
|
#
acf1d971 |
|
01-Dec-2014 |
Adrien Destugues <pulkomandy@gmail.com> |
Locale: fix selection of format when Default'ing Using item->SetExpanded does not work in a BOutlineListView as the status of the list is then out of sync. The child items are not actually added to the visible list, and trying to select them won't work. Using list->Expand() instead works fine, so do that. Fixes the remaining part of #6805.
|
#
df8bc913 |
|
08-Oct-2014 |
Adrien Destugues <pulkomandy@gmail.com> |
Locale preferences: use B_WIDTH_FROM_WIDEST tabs. The russian translation of "Formatting" does not fit in B_WIDTH_AS_USUAL with the default font size.
|
#
31c0024d |
|
07-Nov-2012 |
John Scipione <jscipione@gmail.com> |
Add Deskbar clock settings to Time Preferences * Added a new Clock tab to the Time preflet. Added Clock related controls there. They all function by communicating with Deskbar. * Put controls in a BBox controlled by the Show clock checkbox. This more clearly shows that all the clock settings are dependent on the show clock setting since it doesn't matter what your clock settings are if you don't show the clock. * Make revert work. * Split clock settings into it's own file and struct. * Re-add the time zone setting. * Remove the clock settings from the Deskbar preference window, they are in Time now. * Make Locale preferences accepts B_LOCALE_CHANGED message, although not used.
|
#
aed35104 |
|
05-Aug-2012 |
Humdinger <humdingerb@gmail.com> |
Close alerts with ESCAPE key. Added SetFlags(B_CLOSE_ON_ESCAPE) or SetShortcut(index, B_ESCAPE) to BAlerts depending if the result gets used later in the code, or if it's a one-button BAlert.
|
#
546208a5 |
|
16-Apr-2012 |
Oliver Tappe <zooey@hirschkaefer.de> |
More catalog-related cleanup. * rename B_TRANSLATE_CONTEXT to B_TRANSLATION_CONTEXT and B_TRANSLATE_WITH_CONTEXT to B_TRANSLATE_CONTEXT, squashing a TODO * adjust all uses of both macros in Haiku's source tree * use correct header guard for collecting/Catalog.h The renamed macros require adjustments to all external applications using catalogs.
|
#
f6102c6f |
|
24-Aug-2011 |
Oliver Tappe <zooey@hirschkaefer.de> |
Improve drag'n'drop in Locale preflet: * following a hint by Stephan: implement drawing of a drop target indicator, a global one (bounds) for the available languages and an individual drop target indicator ("between" the items) for the preferred languages * fix drag'n'drop within preferred languages listview * finish support for manipulating multiple items in preferred languages listview git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42686 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
ed327030 |
|
21-Aug-2011 |
Oliver Tappe <zooey@hirschkaefer.de> |
Fix drawing artefacts in Locale prefs (and IMHO improve the look): * separate LanguageListItemWithFlag from LanguageListItem * draw the flag in front of the text instead of at wherever the right bounds happen to be, fixing the drawing artefacts when scrolling * size the flag to match the size of the list item, which looks much better when using a largish default font * use StringItem::BaselineOffset() instead of manually computed (and wrong) offset when drawing the text git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42667 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
2d93b528 |
|
28-Mar-2011 |
Jonas Sundström <jonas@kirilla.com> |
Set Escape as shortcut for BAlert Cancel option. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41132 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
560ff447 |
|
25-Mar-2011 |
Jonas Sundström <jonas@kirilla.com> |
Use resource definition files instead of DoCatalogs rule. Rename B_TRANSLATE_APP_NAME and related macros to the more generic B_TRANSLATE_SYSTEM_NAME, to also fits add-ons, folders, etc, and make 'System name' its standard context. Change CodyCam and PoorMan's app signatures to match the overall x-vnd.Haiku-App pattern. Some clean-up. Make SlideShowSaver build again. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41103 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
d374a272 |
|
16-Mar-2011 |
Jonas Sundström <jonas@kirilla.com> |
App name localization. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40980 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
da7a08ab |
|
13-Mar-2011 |
Jonas Sundström <jonas@kirilla.com> |
Rename System tab to Options. Suggested by deejam. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40936 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
07cffb47 |
|
11-Mar-2011 |
Jonas Sundström <jonas@kirilla.com> |
Introducing a Locale option to display localized filesystem entries (primarily apps and folders) in Deskbar, Tracker, etc. Making use of this in Deskbar's list of apps. The option currently defaults to off, to avoid exposing everyone to unfinished work. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40918 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
|
#
612333a6 |
|
09-Nov-2010 |
Oliver Tappe <zooey@hirschkaefer.de> |
Fix crash reported in #6805: * check if we actually have a selected item git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39382 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
31a81a2b |
|
25-Oct-2010 |
Rene Gollent <anevilyak@gmail.com> |
Go through the list view to tell it to expand the super item rather than setting its expanded property. Doesn't actually fix #6747 but at least corrects the observed bogus behavior for now until I figure out a proper solution that isn't hideously inefficient, no thanks to the train wreck that is the API design we inherited from Be for BOLV. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39144 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
|
#
6f43faba |
|
20-Oct-2010 |
Oliver Tappe <zooey@hirschkaefer.de> |
* some cleanup in BLocaleRoster git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39018 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
|
#
fdd9addf |
|
12-Sep-2010 |
Stephan Aßmus <superstippi@gmx.de> |
Patch by diver: Localize the Locale window title. Closes ticket #6594. Thanks! git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38628 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
b7f60965 |
|
30-Aug-2010 |
Oliver Tappe <zooey@hirschkaefer.de> |
* removed all BLocale-related getters from BLocaleRoster - they're available in BLocale (which is accessible via be_locale) * adjusted all users accordingly git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38459 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
6bb481c7 |
|
30-Aug-2010 |
Oliver Tappe <zooey@hirschkaefer.de> |
Adjustments to Locale preflet * renamed Locale.{h,cpp} to LocalePreflet.{h,cpp} as having two headers named Locale.h confuses jam (as a result, the Locale preflet did not depend on headers/os/locale/Locale.h) * style adjustments (mostly order of headers) git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38455 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
|
#
fb816644 |
|
03-Aug-2010 |
Adrien Destugues <pulkomandy@pulkomandy.ath.cx> |
* Rename TimeFormatSettingsView to FormatSettingsView, since it also provides number and currency formatting. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37869 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
|
#
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
|
#
4b37c7f8 |
|
20-Jul-2010 |
Adrien Destugues <pulkomandy@pulkomandy.ath.cx> |
* 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
|
#
c19a67f9 |
|
05-Jul-2010 |
Adrien Destugues <pulkomandy@pulkomandy.ath.cx> |
* 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
|
#
be8fa2fb |
|
02-Jul-2010 |
Adrien Destugues <pulkomandy@pulkomandy.ath.cx> |
* 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
|
#
76a4353b |
|
01-Jul-2010 |
Adrien Destugues <pulkomandy@pulkomandy.ath.cx> |
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
|
#
12039d82 |
|
28-Jun-2010 |
Wim van der Meer <wpjvandermeer@gmail.com> |
Adding missing #undef B_TRANSLATE_CONTEXT git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37288 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
4eb0cbb0 |
|
07-May-2010 |
Matt Madia <mattmadia@gmail.com> |
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
|
#
96eaa02e |
|
07-May-2010 |
Axel Dörfler <axeld@pinc-software.de> |
* 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
|
#
b850bd3b |
|
06-May-2010 |
Matt Madia <mattmadia@gmail.com> |
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
|
#
7b63fd1c |
|
02-May-2010 |
Axel Dörfler <axeld@pinc-software.de> |
* 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
|
#
533d9a5f |
|
02-May-2010 |
Axel Dörfler <axeld@pinc-software.de> |
* 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
|
#
68a1479c |
|
30-Apr-2010 |
Oliver Tappe <zooey@hirschkaefer.de> |
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
|
#
1d26f9e1 |
|
26-Apr-2010 |
Oliver Tappe <zooey@hirschkaefer.de> |
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
|
#
5e7931be |
|
15-Apr-2010 |
Adrien Destugues <pulkomandy@pulkomandy.ath.cx> |
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
|
#
cd5274c4 |
|
16-Feb-2010 |
Adrien Destugues <pulkomandy@pulkomandy.ath.cx> |
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
|
#
c055de4e |
|
01-Feb-2010 |
Adrien Destugues <pulkomandy@pulkomandy.ath.cx> |
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
|
#
8c325f80 |
|
01-Feb-2010 |
Adrien Destugues <pulkomandy@pulkomandy.ath.cx> |
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
|
#
d66b2233 |
|
31-Jan-2010 |
Adrien Destugues <pulkomandy@pulkomandy.ath.cx> |
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
|
#
fbc69630 |
|
31-Jan-2010 |
Adrien Destugues <pulkomandy@pulkomandy.ath.cx> |
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
|
#
5570fd11 |
|
20-Jan-2010 |
Adrien Destugues <pulkomandy@pulkomandy.ath.cx> |
- 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
|
#
0b2fbbfa |
|
24-Dec-2009 |
Adrien Destugues <pulkomandy@pulkomandy.ath.cx> |
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
|
#
2e716099 |
|
15-Nov-2009 |
Jonas Sundström <jonas@kirilla.com> |
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
|
#
5e5a7d53 |
|
15-Nov-2009 |
Jonas Sundström <jonas@kirilla.com> |
Double-clicking to select/deselect preferred languages added. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34062 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
34bdaab8 |
|
15-Nov-2009 |
Jonas Sundström <jonas@kirilla.com> |
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
|
#
31f52d33 |
|
14-Nov-2009 |
Jonas Sundström <jonas@kirilla.com> |
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
|
#
6886b5bf |
|
17-Oct-2009 |
Adrien Destugues <pulkomandy@pulkomandy.ath.cx> |
Language names are now written in their own language, making it easier to find your own even if you mistakenly set your preference to something very strange. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33625 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
3363f0c5 |
|
13-Oct-2009 |
Jonas Sundström <jonas@kirilla.com> |
Clean-up. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33576 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
8637183a |
|
12-Oct-2009 |
Jonas Sundström <jonas@kirilla.com> |
Laid out views to fit better on-screen. Made it use BAboutWindow and BWindow::CenterOnScreen(). Partial clean-up of code I passed by. A few obvious comments removed. Hopefully an improvement. Still needs a lot of work. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33563 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
73ce6110 |
|
29-Sep-2009 |
Oliver Tappe <zooey@hirschkaefer.de> |
fix build of Locale preflet: * fixed typo and "correction" in de.catkeys (it is not possible to change the english base text this way - it will corrupt the catalog instead, as the fingerprint will no longer match) * fixed typo in LocaleWindow.cpp and adjusted the existing catkeys accordingly git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33350 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
76065080 |
|
20-Sep-2009 |
Adrien Destugues <pulkomandy@pulkomandy.ath.cx> |
-Delete some old unused files -Some style fixes (mostly whitespace) -Switch to the short language list and make it build again. seems to have trouble with BStringByteSink and utf8, or is it just my build env having encoding problems ? git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33209 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
|
#
a6fb7929 |
|
05-May-2009 |
Oliver Tappe <zooey@hirschkaefer.de> |
* applying patch by PulkoMandy that fix a couple of styleguide issues (missing spaces after commas) that were pointed out by Stephan git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30636 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
db70cf3a |
|
05-May-2009 |
Oliver Tappe <zooey@hirschkaefer.de> |
* applied unchanged patch by PulkoMandy that converts the Locale prefs to use layout management git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30634 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
|
#
acf1d9714e6ca198cc74a5741e0d35309f4e54e1 |
|
01-Dec-2014 |
Adrien Destugues <pulkomandy@gmail.com> |
Locale: fix selection of format when Default'ing Using item->SetExpanded does not work in a BOutlineListView as the status of the list is then out of sync. The child items are not actually added to the visible list, and trying to select them won't work. Using list->Expand() instead works fine, so do that. Fixes the remaining part of #6805.
|
#
df8bc913d26e8b4968d3eaeb2085fe1fae1f4f04 |
|
08-Oct-2014 |
Adrien Destugues <pulkomandy@gmail.com> |
Locale preferences: use B_WIDTH_FROM_WIDEST tabs. The russian translation of "Formatting" does not fit in B_WIDTH_AS_USUAL with the default font size.
|
#
31c0024d1b271b0b671c77432cce0be483b366f0 |
|
07-Nov-2012 |
John Scipione <jscipione@gmail.com> |
Add Deskbar clock settings to Time Preferences * Added a new Clock tab to the Time preflet. Added Clock related controls there. They all function by communicating with Deskbar. * Put controls in a BBox controlled by the Show clock checkbox. This more clearly shows that all the clock settings are dependent on the show clock setting since it doesn't matter what your clock settings are if you don't show the clock. * Make revert work. * Split clock settings into it's own file and struct. * Re-add the time zone setting. * Remove the clock settings from the Deskbar preference window, they are in Time now. * Make Locale preferences accepts B_LOCALE_CHANGED message, although not used.
|
#
aed35104852941f0f6f3d1dcc5338b5f337d0a3c |
|
05-Aug-2012 |
Humdinger <humdingerb@gmail.com> |
Close alerts with ESCAPE key. Added SetFlags(B_CLOSE_ON_ESCAPE) or SetShortcut(index, B_ESCAPE) to BAlerts depending if the result gets used later in the code, or if it's a one-button BAlert.
|
#
546208a53940a26c6379c48a7854ade1a8250fc5 |
|
16-Apr-2012 |
Oliver Tappe <zooey@hirschkaefer.de> |
More catalog-related cleanup. * rename B_TRANSLATE_CONTEXT to B_TRANSLATION_CONTEXT and B_TRANSLATE_WITH_CONTEXT to B_TRANSLATE_CONTEXT, squashing a TODO * adjust all uses of both macros in Haiku's source tree * use correct header guard for collecting/Catalog.h The renamed macros require adjustments to all external applications using catalogs.
|
#
f6102c6fba34f639d328d3480948f21ec76f80c9 |
|
24-Aug-2011 |
Oliver Tappe <zooey@hirschkaefer.de> |
Improve drag'n'drop in Locale preflet: * following a hint by Stephan: implement drawing of a drop target indicator, a global one (bounds) for the available languages and an individual drop target indicator ("between" the items) for the preferred languages * fix drag'n'drop within preferred languages listview * finish support for manipulating multiple items in preferred languages listview git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42686 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
ed3270303877d293339908b02647b374418d513e |
|
21-Aug-2011 |
Oliver Tappe <zooey@hirschkaefer.de> |
Fix drawing artefacts in Locale prefs (and IMHO improve the look): * separate LanguageListItemWithFlag from LanguageListItem * draw the flag in front of the text instead of at wherever the right bounds happen to be, fixing the drawing artefacts when scrolling * size the flag to match the size of the list item, which looks much better when using a largish default font * use StringItem::BaselineOffset() instead of manually computed (and wrong) offset when drawing the text git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42667 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
2d93b5283f6f66996df4a04f641f1cd8868fdfeb |
|
28-Mar-2011 |
Jonas Sundström <jonas@kirilla.com> |
Set Escape as shortcut for BAlert Cancel option. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41132 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
560ff4478d5c85455ea3e5ed5e392ef93132d545 |
|
25-Mar-2011 |
Jonas Sundström <jonas@kirilla.com> |
Use resource definition files instead of DoCatalogs rule. Rename B_TRANSLATE_APP_NAME and related macros to the more generic B_TRANSLATE_SYSTEM_NAME, to also fits add-ons, folders, etc, and make 'System name' its standard context. Change CodyCam and PoorMan's app signatures to match the overall x-vnd.Haiku-App pattern. Some clean-up. Make SlideShowSaver build again. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41103 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
d374a27286b8a52974a97dba0d5966ea026a665d |
|
16-Mar-2011 |
Jonas Sundström <jonas@kirilla.com> |
App name localization. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40980 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
da7a08abb8abd6ad06fa2ee36133c367f9b63bd4 |
|
13-Mar-2011 |
Jonas Sundström <jonas@kirilla.com> |
Rename System tab to Options. Suggested by deejam. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40936 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
07cffb4786d1ad91631b60045e9f85c611380d27 |
|
11-Mar-2011 |
Jonas Sundström <jonas@kirilla.com> |
Introducing a Locale option to display localized filesystem entries (primarily apps and folders) in Deskbar, Tracker, etc. Making use of this in Deskbar's list of apps. The option currently defaults to off, to avoid exposing everyone to unfinished work. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40918 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
|
#
612333a601894e3f9b43344f9286bb46dc653bde |
|
09-Nov-2010 |
Oliver Tappe <zooey@hirschkaefer.de> |
Fix crash reported in #6805: * check if we actually have a selected item git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39382 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
31a81a2b939f0c74bed6dc8b10d57207afcff7c0 |
|
25-Oct-2010 |
Rene Gollent <anevilyak@gmail.com> |
Go through the list view to tell it to expand the super item rather than setting its expanded property. Doesn't actually fix #6747 but at least corrects the observed bogus behavior for now until I figure out a proper solution that isn't hideously inefficient, no thanks to the train wreck that is the API design we inherited from Be for BOLV. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39144 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
|
#
6f43fabafb968148eb5c70d5489d7e81d07d44d2 |
|
20-Oct-2010 |
Oliver Tappe <zooey@hirschkaefer.de> |
* some cleanup in BLocaleRoster git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39018 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
|
#
fdd9addfceb5a6d10d733a15dac2ccbdaa9b820b |
|
12-Sep-2010 |
Stephan Aßmus <superstippi@gmx.de> |
Patch by diver: Localize the Locale window title. Closes ticket #6594. Thanks! git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38628 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
b7f609650b9864f5f93ee235c1a095970f9df525 |
|
30-Aug-2010 |
Oliver Tappe <zooey@hirschkaefer.de> |
* removed all BLocale-related getters from BLocaleRoster - they're available in BLocale (which is accessible via be_locale) * adjusted all users accordingly git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38459 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
6bb481c7148451f881d071e0d3ec39255ed7e9b2 |
|
30-Aug-2010 |
Oliver Tappe <zooey@hirschkaefer.de> |
Adjustments to Locale preflet * renamed Locale.{h,cpp} to LocalePreflet.{h,cpp} as having two headers named Locale.h confuses jam (as a result, the Locale preflet did not depend on headers/os/locale/Locale.h) * style adjustments (mostly order of headers) git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38455 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
|
#
fb816644a7e35901ffa240385f652c02e782f28e |
|
03-Aug-2010 |
Adrien Destugues <pulkomandy@pulkomandy.ath.cx> |
* Rename TimeFormatSettingsView to FormatSettingsView, since it also provides number and currency formatting. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37869 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
|
#
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
|
#
4b37c7f861efbf2e31685ffaba80f3e923a8a6c8 |
|
20-Jul-2010 |
Adrien Destugues <pulkomandy@pulkomandy.ath.cx> |
* 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
|
#
c19a67f957974029a2999312ddec4e7589b8b8c7 |
|
05-Jul-2010 |
Adrien Destugues <pulkomandy@pulkomandy.ath.cx> |
* 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
|
#
be8fa2fb3088ab1921612b60f352dd9334b40b3d |
|
02-Jul-2010 |
Adrien Destugues <pulkomandy@pulkomandy.ath.cx> |
* 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
|
#
76a4353b79418ab1d9050821a5578bef0d40df0c |
|
01-Jul-2010 |
Adrien Destugues <pulkomandy@pulkomandy.ath.cx> |
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
|
#
12039d82c4d623ec9292898610203c8a10d2456a |
|
28-Jun-2010 |
Wim van der Meer <wpjvandermeer@gmail.com> |
Adding missing #undef B_TRANSLATE_CONTEXT git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37288 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
4eb0cbb044cf538f18c0d252934a5bcaa33bfd34 |
|
07-May-2010 |
Matt Madia <mattmadia@gmail.com> |
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
|
#
96eaa02e8f3976114f4db607ea41ebe158916823 |
|
07-May-2010 |
Axel Dörfler <axeld@pinc-software.de> |
* 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
|
#
b850bd3b1709446d741e7402b4c3cb206e66b87e |
|
06-May-2010 |
Matt Madia <mattmadia@gmail.com> |
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
|
#
7b63fd1c112daf6e1faef003d2374eebb442dcec |
|
02-May-2010 |
Axel Dörfler <axeld@pinc-software.de> |
* 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
|
#
533d9a5f85f4e917dda6c2e1bbd5b0f85a275dbb |
|
02-May-2010 |
Axel Dörfler <axeld@pinc-software.de> |
* 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
|
#
68a1479cc677c39d5bad325baf4429c2e932901e |
|
30-Apr-2010 |
Oliver Tappe <zooey@hirschkaefer.de> |
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
|
#
1d26f9e11c6afa0d24f8fcc6360f23fcf96da747 |
|
26-Apr-2010 |
Oliver Tappe <zooey@hirschkaefer.de> |
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
|
#
5e7931beaaec3143a0cb1e7c815fd931c27a8041 |
|
15-Apr-2010 |
Adrien Destugues <pulkomandy@pulkomandy.ath.cx> |
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
|
#
cd5274c4c04bb23e1cb35305050200eb709807ad |
|
16-Feb-2010 |
Adrien Destugues <pulkomandy@pulkomandy.ath.cx> |
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
|
#
c055de4e49d7496a49c6ca0b6ac700b297ce2376 |
|
01-Feb-2010 |
Adrien Destugues <pulkomandy@pulkomandy.ath.cx> |
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
|
#
8c325f80977d57d60de0872685f93707504cae03 |
|
01-Feb-2010 |
Adrien Destugues <pulkomandy@pulkomandy.ath.cx> |
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
|
#
d66b22334191de1eb5a7a3ecdebce60b0e49cb33 |
|
31-Jan-2010 |
Adrien Destugues <pulkomandy@pulkomandy.ath.cx> |
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
|
#
fbc6963056502e4295206497dba8c0a6a7319cb8 |
|
31-Jan-2010 |
Adrien Destugues <pulkomandy@pulkomandy.ath.cx> |
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
|
#
5570fd11c032110ee0bbfd01a2265d810301687b |
|
20-Jan-2010 |
Adrien Destugues <pulkomandy@pulkomandy.ath.cx> |
- 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
|
#
0b2fbbfaa9d35d304991f3543276c8e46f155460 |
|
24-Dec-2009 |
Adrien Destugues <pulkomandy@pulkomandy.ath.cx> |
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
|
#
2e71609917bc51cecb879346310f35aff10a4c74 |
|
15-Nov-2009 |
Jonas Sundström <jonas@kirilla.com> |
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
|
#
5e5a7d535c13fc505793b4248cff7fbc4eadd201 |
|
15-Nov-2009 |
Jonas Sundström <jonas@kirilla.com> |
Double-clicking to select/deselect preferred languages added. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34062 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
34bdaab8bdd636b513c79517fd3a612acf85a26a |
|
15-Nov-2009 |
Jonas Sundström <jonas@kirilla.com> |
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
|
#
31f52d335f2159eebe6579fd6d9dc82faf9da68a |
|
14-Nov-2009 |
Jonas Sundström <jonas@kirilla.com> |
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
|
#
6886b5bf6ae4c9008aba6764e592f3165320c80b |
|
17-Oct-2009 |
Adrien Destugues <pulkomandy@pulkomandy.ath.cx> |
Language names are now written in their own language, making it easier to find your own even if you mistakenly set your preference to something very strange. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33625 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
3363f0c5bd542224563bf4d3534222d479750273 |
|
13-Oct-2009 |
Jonas Sundström <jonas@kirilla.com> |
Clean-up. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33576 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
8637183adfbf55556a844fd551f98a86a56bad11 |
|
12-Oct-2009 |
Jonas Sundström <jonas@kirilla.com> |
Laid out views to fit better on-screen. Made it use BAboutWindow and BWindow::CenterOnScreen(). Partial clean-up of code I passed by. A few obvious comments removed. Hopefully an improvement. Still needs a lot of work. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33563 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
73ce611089202ee2095ecca4598ca292c5b64693 |
|
29-Sep-2009 |
Oliver Tappe <zooey@hirschkaefer.de> |
fix build of Locale preflet: * fixed typo and "correction" in de.catkeys (it is not possible to change the english base text this way - it will corrupt the catalog instead, as the fingerprint will no longer match) * fixed typo in LocaleWindow.cpp and adjusted the existing catkeys accordingly git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33350 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
76065080e65ea7903e2f89413e7c5c43e23238e0 |
|
20-Sep-2009 |
Adrien Destugues <pulkomandy@pulkomandy.ath.cx> |
-Delete some old unused files -Some style fixes (mostly whitespace) -Switch to the short language list and make it build again. seems to have trouble with BStringByteSink and utf8, or is it just my build env having encoding problems ? git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33209 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
|
#
a6fb7929ba30029f7a3376d75cb6e43b6b816104 |
|
05-May-2009 |
Oliver Tappe <zooey@hirschkaefer.de> |
* applying patch by PulkoMandy that fix a couple of styleguide issues (missing spaces after commas) that were pointed out by Stephan git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30636 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
db70cf3ae8136abda6fde4b369b0185e4070b791 |
|
05-May-2009 |
Oliver Tappe <zooey@hirschkaefer.de> |
* applied unchanged patch by PulkoMandy that converts the Locale prefs to use layout management git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30634 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
|