summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
| | | * | | | | Using list patterns to get a string from list in QLocale.Liang Qi2011-03-089-4/+137
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reviewed-by: Denis Dzyubenko Task-number: QTBUG-17097
| | * | | | | | Cache some values to improve digit substitution on Windows.Denis Dzyubenko2011-03-171-27/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reviewed-by: Zeno Albisser
| | * | | | | | Fixed the qlocale manual test app on symbian.Denis Dzyubenko2011-03-173-3/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reviewed-by: trustme
| | * | | | | | Narrow day name on WindowsDenis Dzyubenko2011-03-171-3/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added narrow day name support available on Windows Vista and newer. Reviewed-by: Zeno Albisser
| | * | | | | | Refactored QLocale on Windows.Denis Dzyubenko2011-03-173-274/+358
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added LocaleChanged system locale enum that is queried whenever we detect that the system locale is changed. This should make it easier to have cached values in the system locale implementations. Reviewed-by: Zeno Albisser
| | * | | | | | Use digit substitution on Windows for currency formatting.Denis Dzyubenko2011-03-171-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reviewed-by: Zeno Albisser
| | * | | | | | Added digit substitution for date/time on Windows.Denis Dzyubenko2011-03-171-7/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Whenever we are asked to convert a date/time object to string, we should respect the system digit substitution rules. Reviewed-by: Zeno Albisser
| | * | | | | | Added short time format support on Windows.Denis Dzyubenko2011-03-171-3/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since Windows 7 there is a new TIME_NOSECONDS flag that is supposed to be used whenever short time format is requested. Reviewed-by: Zeno Albisser
| | * | | | | | Merge remote branch 'earth-team/master' into master-i18nDenis Dzyubenko2011-03-171032-24035/+46417
| | |\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/corelib/tools/qlocale.cpp
| | * | | | | | | Improved QLocale::quoteString.Denis Dzyubenko2011-03-071-4/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Whenever the system locale doesn't return the proper alternate quotes we should try the standard quotes before falling back to the CLDR data. Reviewed-by: trustme
| | * | | | | | | Extended documentation for QLocale.Denis Dzyubenko2011-03-041-9/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reviewed-by: axis
| | * | | | | | | Added convenience script enum values to QLocale.Denis Dzyubenko2011-03-043-2/+30
| | | |/ / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Apparently SimplifiedHan and TraditionalHan are not widely used terms, hence adding convenience names SimplifiedChineseScript and TraditionalChineseScript. Also added the missing documentation for the Script enum. Reviewed-by: trustme
| | * | | | | | Fixed spelling in the comment.Denis Dzyubenko2011-03-041-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reviewed-by: trustme
| | * | | | | | Fixed parsing on the locale name in QLocale.Denis Dzyubenko2011-03-031-2/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes QLocale autotests on Windows. Reviewed-by: trustme
| | * | | | | | Compile fix for Windows.Denis Dzyubenko2011-03-021-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reviewed-by: trustme
| | * | | | | | Updated CLDR data for QLocale.Denis Dzyubenko2011-03-021-4023/+4194
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a temporary commit and meant to be removed before merging the branch into Qt as we don't want to bloat the repository size by updating CLDR every time we make a small change to QLocale, but do that only once when we are done. Reviewed-by: trustme
| | * | | | | | Added writing script support to QLocale.Denis Dzyubenko2011-03-0213-182/+613
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Task-number: QTBUG-17105 Reviewed-by: trustme
| | * | | | | | Use the localized represantion of AM/PM string when converting time.Denis Dzyubenko2011-03-011-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reviewed-by: Liang Qi
| | * | | | | | Fixed CLDR to QLocale generator.Denis Dzyubenko2011-03-011-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Create temp files on the same device as the QTDIR so that rename() will work properly. Reviewed-by: Liang Qi
| | * | | | | | QLocale: Compile fix for Windows.Denis Dzyubenko2011-02-281-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reviewed-by: trustme
| | * | | | | | Compile fix on Mac for QLocale.Denis Dzyubenko2011-02-281-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reviewed-by: trustme
| | * | | | | | Fixed querying QLocale::uiLanguage on Linux.Denis Dzyubenko2011-02-281-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Handle the case when the LC_MESSAGES only contains the language but not the country code. Also fixes qstring conversion - we cannot use fromRawData as the data is a local array that will be destroyed. Reviewed-by: trustme
| | * | | | | | Compile fix for Qt in namespace.Denis Dzyubenko2011-02-281-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reviewed-by: trustme
| | * | | | | | Compile fix.Denis Dzyubenko2011-02-251-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reviewed-by: trustme
| | * | | | | | Fixed documentation for QLocaleDenis Dzyubenko2011-02-256-60/+112
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also added a forgotten license header for qlocale.qdoc Reviewed-by: trustme
| | * | | | | | Fixed the generator script for qlocale after splitting the sources.Denis Dzyubenko2011-02-251-12/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reviewed-by: trustme
| | * | | | | | Improved currency value to string conversion in QLocale.Denis Dzyubenko2011-02-257-70/+163
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added a second, optional, argument to QLocale::toCurrencyString() that represents a currency symbol that is supposed to be added to the formatted string. Task-number: QTBUG-17100 Reviewed-by: Zeno Albisser Reviewed-by: Olivier Goffart
| | * | | | | | fixed QLocale::quoteString() to allow for QSystemLocale implementationZeno Albisser2011-02-256-29/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reviewed-by: Denis Dzyubenko Task-number: QTBUG-17096
| | * | | | | | Improved QLocale apiDenis Dzyubenko2011-02-256-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Renames FormatCurrency enum value to CurrencyToString to match other enums. Task-number: related to QTBUG-17100 Reviewed-by: trustme
| | * | | | | | Implemented retrieving AM/PM text on Mac.Denis Dzyubenko2011-02-251-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reviewed-by: trustme
| | * | | | | | QLocale: Compile fix for mac.Denis Dzyubenko2011-02-251-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reviewed-by: trustme
| | * | | | | | Merge branch 'master-i18n' of scm.dev.nokia.troll.no:qt/qt-earth-team into ↵Denis Dzyubenko2011-02-2410-343/+479
| | |\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | master-i18n Conflicts: src/corelib/tools/qlocale.cpp
| | | * | | | | | Updated CLDR data for QLocale.Zeno Albisser2011-02-241-326/+326
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a temporary commit and meant to be removed before merging the branch into Qt as we don't want to bloat the repository size by updating CLDR every time we make a small change to QLocale, but do that only once when we are done. Reviewed-by: trustme
| | | * | | | | | Implemented QLocale::weekendStart and QLocale::weekendEndZeno Albisser2011-02-248-18/+154
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reviewed-by: Denis Dzyubenko Task-number: QTBUG-17088
| | * | | | | | | QLocale improvements on unix/linux.Denis Dzyubenko2011-02-243-85/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There is no reason to re-read environment variables all the time. Reviewed-by: Zeno Albisser
| | * | | | | | | Split monolithic qlocale.cpp into platform-specific filesDenis Dzyubenko2011-02-2415-5097/+5426
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is just a refactoring change to split huge unreadable qlocale.cpp into multiple files. Reviewed-by: Zeno Albisser
| | * | | | | | | QTranslator improvements for QLocale UI languagesDenis Dzyubenko2011-02-232-0/+155
| | |/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | To be able to make use of the new QLocale::uiLanguages property, here is a new overload in QTranslator::load that takes QLocale object as an argument and tries to load the translation based on educated guesses of the locale name and file name. Task-number: related to QTBUG-7329 Reviewed-by: Zeno Albisser
| | * | | | | | QLocale: Compile fix on WindowsDenis Dzyubenko2011-02-231-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reviewed-by: trustme
| | * | | | | | Compile fix.Denis Dzyubenko2011-02-231-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reviewed-by: trustme
| | * | | | | | QLocale: Supporting multiple locale categories on Unix.Denis Dzyubenko2011-02-232-14/+133
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds support for LC_* environment variables on Unix. Reviewed-by: Thiago Macieira Reviewed-by: Olivier Goffart
| | * | | | | | Improved qlocale manualtestDenis Dzyubenko2011-02-2313-45/+469
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reviewed-by: trustme
| | * | | | | | Added UI languages property to QLocaleDenis Dzyubenko2011-02-238-6/+279
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The return value is a sorted list of locale names that could be used for presenting data to the user (i.e. for translations). Task-number: QTBUG-7329 Reviewed-by: Zeno Albisser
| | * | | | | | Updated CLDR data for QLocale.Zeno Albisser2011-02-221-327/+327
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a temporary commit and meant to be removed before merging the branch into Qt as we don't want to bloat the repository size by updating CLDR every time we make a small change to QLocale, but do that only once when we are done. Reviewed-by: trustme
| | * | | | | | Added documentation for enum value FirstDayOfWeekZeno Albisser2011-02-221-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reviewed-by: trustme
| | * | | | | | Added Misc Tab to QLocale manual test to test quotationZeno Albisser2011-02-225-2/+158
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reviewed-by: Denis Dzyubenko
| | * | | | | | Implemented QLocale::quoteString(...)Zeno Albisser2011-02-226-4/+138
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reviewed-by: Denis Dzyubenko Task-number: QTBUG-17096
| | * | | | | | Changed manual QLocale test to update FirstDayOfWeek automaticallyZeno Albisser2011-02-221-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reviewed-by: Denis Dzyubenko
| | * | | | | | Merge remote branch 'earth-team/4.7-i18n' into master-i18nDenis Dzyubenko2011-02-212-2/+7
| | |\ \ \ \ \ \
| | | * | | | | | Fixes QLocale locale name parsing.Denis Dzyubenko2011-02-032-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Allow BCP47 dash as a language-country separator. This only changes it one way - parsing 'en-US' will work, but QLocale::name() will still return name with underscore as separator. Task-number: QTBUG-15835 Reviewed-by: João Abecasis
| | * | | | | | | Another improvement to the CLDR parser/QLocale data generatorDenis Dzyubenko2011-02-211-28/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Include the CLDR version used in the QLocale documentation. Reviewed-by: trustme