Makoto Kato
7127efa43c
Bug 943287 - Part 3. nsICollation fallback version for Android. r=hsivonen
...
Beta and release channel of Android still turn off ICU. So we should add UTF-8 version of nsICollation for fallback.
Some people want to keep --enale-intl-api=no for faster build on developer environment, so even if non-Android, it will be required.
MozReview-Commit-ID: 3RcjqoVip1W
--HG--
rename : intl/locale/unix/nsCollationUnix.cpp => intl/locale/nsCollationAndroid.cpp
extra : rebase_source : 6844f32efe8c37b020f30bc745d4d4d8e95c4158
2017-03-23 13:43:38 +09:00
Makoto Kato
80c217bbec
Bug 943287 - Part 2. Use ICU version of nsICollation on all platform. r=hsivonen
...
nsICollation for macOS version uses ICU, so we should use it on all platform since nightly and aurora can use ICU on all platform.
MozReview-Commit-ID: 4nTzDCjOQXJ
--HG--
rename : intl/locale/tests/unit/test_collation_mac_icu.js => intl/locale/tests/unit/test_collation.js
extra : rebase_source : 3b47f9a521e79be929bb4c39d0c68b9438075e4c
2017-03-23 13:42:49 +09:00
Makoto Kato
aa97ad5859
Bug 943287 - Part 1. Rename nsCollation.cpp to nsCollationFactory.cpp. r=hsivonen
...
nsCollation.cpp implements nsCollationFactory and nsCollation utils classes.
To remove nsIPlatfromCharset dependency, I would like to remove nsCollaction utils class. So at first, I would like to rename it to nsCollactionFactory.cpp. (then, nsICollation implementation will be nsCollation.cpp)
MozReview-Commit-ID: FaG3vfzi9cl
--HG--
rename : intl/locale/nsCollation.cpp => intl/locale/nsCollationFactory.cpp
rename : intl/locale/nsCollation.h => intl/locale/nsCollationFactory.h
extra : rebase_source : 25eebf52634310891d1bbcc974635b5cc4b1c402
2017-03-23 13:42:00 +09:00
Makoto Kato
4113212e91
Bug 1349855 - Remove unused nsILocale. r=emk
...
After landing bug 1301640, 1st parameter of nsIScriptableDateFormat.FormatDateTime() is ignored now. So it is unnecessary to create nsILocaleService from locale parameter.
MozReview-Commit-ID: GlqC0D9shdy
2017-03-24 11:02:03 +09:00
Zibi Braniecki
cb77ac3b2d
Bug 1347002 - Add LocaleService::GetAvailableLocales. r=jfkthame
...
MozReview-Commit-ID: 99I5WgdzXlb
--HG--
extra : rebase_source : 44e1316fd90b5f28fca6feb23dfdf112e74ed7c0
2017-03-13 17:33:24 -07:00
Zibi Braniecki
9a76e90f11
Bug 1348259 - Switch nsLanguageAtomService to use OSPreferences::GetSystemLocale. r=m_kato
...
MozReview-Commit-ID: DvKbtrpfNJe
--HG--
extra : rebase_source : 7a62729ce4251c7cd046449c84f5072ed66cf7c9
2017-03-21 16:20:07 -07:00
Zibi Braniecki
b17d737c5b
Bug 1348797 - Add null-check to validTagChars test in LocaleService::NegotiateLanguages. r=jfkthame
...
--HG--
extra : amend_source : f6dde0867a6cf10b5b2f50c3cfcf3f383d708d28
2017-03-20 15:14:58 -04:00
Zibi Braniecki
71e93b5c82
Bug 1346611 - Introduce LocaleService::GetDefaultLocale. r=jfkthame
...
MozReview-Commit-ID: 8aMkbrh0SqI
--HG--
extra : rebase_source : fd05894d2fa613385bc236a0aee6ad9265e9d581
2017-03-14 13:04:59 -07:00
Makoto Kato
20cb071f24
Bug 1347431 - Skip some xpcshell tests that is failure on Android without ENABLE_INTL_API. r=snorp
...
Sicne some tests doesn't work with --with-intl-api=no, we should skip it on Android
MozReview-Commit-ID: IjlH3aQdiqb
--HG--
extra : rebase_source : ac6d91bf291f6268ea29bcb29180b2f5197e012c
2017-03-16 12:54:25 +09:00
Zibi Braniecki
7cb5e257c7
Bug 1346617 - Add LocaleService::SetRequestedLocales. r=jfkthame
...
MozReview-Commit-ID: FrziO9fOs3R
--HG--
extra : rebase_source : a2f1b5c31317c80666fbda334ea7bfcef28397b6
2017-03-12 12:34:56 -07:00
Zibi Braniecki
fbfa4998fa
Bug 1346819 - Port SanitizeAsBCP47 to LocaleService. r=baku,jfkthame
...
MozReview-Commit-ID: 2SXD5HaJPXr
--HG--
extra : rebase_source : 44404dfd577f13fde722ef5c13a29f853766786d
2017-03-13 08:31:43 -07:00
Zibi Braniecki
f096c9aab9
Bug 1346674 - Migrate all uses of nsILocaleService::GetApplicationLocale to mozILocaleService::GetAppLocale. r=jfkthame
...
MozReview-Commit-ID: 2E7mj3yQnxB
--HG--
extra : rebase_source : 97ba5b1738b2f116ec75830ed1b23f279680035e
2017-03-12 20:39:22 -07:00
Carsten "Tomcat" Book
c1edc7067d
merge mozilla-inbound to mozilla-central a=merge
2017-03-13 15:22:26 +01:00
Makoto Kato
3cb0726c57
Bug 1345762 - Rename OSPreferences_unix.cpp to OSPreferences_android.cpp. r=gandalf
...
OSPreferences_unix.cpp is used on Android only. So we should rename it to OSPreferences_android.cpp
Also, we should create android directory into intl/locale, then move OSPreferences_android.cpp and nsAndroidCharset.cpp into it.
MozReview-Commit-ID: 2CUbV1Yc2fu
--HG--
rename : intl/locale/unix/OSPreferences_unix.cpp => intl/locale/android/OSPreferences_android.cpp
rename : intl/locale/unix/nsAndroidCharset.cpp => intl/locale/android/nsAndroidCharset.cpp
extra : rebase_source : f677428cc899c767e784b9f2c793b84e3fd95c11
2017-03-09 16:35:27 +09:00
Makoto Kato
e07ff992fd
Bug 1343766 - Add DateTimeFomat without ICU for Android. r=emk
...
MozReview-Commit-ID: FWeBliqlXv3
2017-03-10 12:58:21 +09:00
Zibi Braniecki
76830b8830
Bug 1337694 - Add language negotiation heuristics to LocaleService. r=jfkthame
...
MozReview-Commit-ID: 1WjJiKgyaWA
--HG--
extra : rebase_source : 7baac37cf78599605ed274d7165ad8746626828c
2017-02-24 17:23:39 -08:00
Makoto Kato
989d78dec8
Bug 1344596 - Allow OSPreferences API without ENABLE_INTL_API. r=gandalf
...
Since we have to keep --with-intl-api=no setting, we allow OSPrefrences API wiout ENABLE_INTL_API.
MozReview-Commit-ID: 8sQHW6iq9Ss
--HG--
extra : rebase_source : 94e2efbeeb70f3edc519ffc9bfeaf7416ea1dc0e
2017-03-06 11:03:46 +09:00
David Major
ed0b8f8653
Bug 1344615: Remove nsXPCOMStrings.{h,cpp} r=bsmedberg
...
These are now dead code.
MozReview-Commit-ID: AClU0Qx3kmN
--HG--
extra : rebase_source : df83cf89292da1519bb26027c11e14923d5c54a0
2017-03-06 17:52:54 +13:00
David Major
058a3a25a4
Bug 1344615: Rewrite a few straggling users of NS_String* APIs. r=bsmedberg
...
I've moved the body of the APIs into the few remaining callers.
MozReview-Commit-ID: 9ALoSmQHkGM
--HG--
extra : rebase_source : e0e747dec23424446b18d53ab65e4fa262e16554
2017-03-06 17:52:09 +13:00
Zibi Braniecki
d0bfa17fb3
Bug 1344141 - Do not BCP47 canonicalize languages from ChromeRegistry in LocaleService. r=jfkthame
...
MozReview-Commit-ID: I6xMPhZRUUv
--HG--
extra : rebase_source : 3ce24ccbaba2e51715c121e343b682cd6088bda4
2017-03-03 13:31:26 -08:00
Zibi Braniecki
1618c4af60
Bug 1342753 - Use app locale in DateTimeFormat.cpp, instead of OS locale. r=m_kato
...
MozReview-Commit-ID: SPsNYxe493
--HG--
extra : rebase_source : b611ad61c83577ac1d42adce504ceb1b3731f59e
2017-02-27 09:36:50 -08:00
Daniel Holbert
95a650ec1b
Bug 1343975: Get rid of all dos/windows linebreaks in Mozilla C++ code. r=ehsan
...
This is an automated patch, generated by the following command:
find . -name "*.h" -exec fromdos {} \; && \
find . -name "*.cpp" -exec fromdos {} \; && \
hg revert -C gfx/angle \
gfx/sfntly \
media/webrtc \
media/libstagefright \
media/openmax_il \
other-licenses
MozReview-Commit-ID: Gunlz3vE3h6
2017-03-02 13:08:29 -08:00
Zibi Braniecki
fbabbc6c00
Bug 1308329 - Extend OSPreferences API to cover date/time styles. r=jfkthame
...
MozReview-Commit-ID: HnuWfS8UEDH
--HG--
extra : rebase_source : 6e09bb36c1d4fe89ed22c2fc5ef8de3ff8ed484d
2017-02-08 17:17:51 -08:00
Zibi Braniecki
eb0f2e4c51
Bug 1344445 - Add LocaleService::GetRequestedLocales. r=jfkthame
...
MozReview-Commit-ID: 76xYTKk6OHh
--HG--
extra : rebase_source : 867dd72ad280ba0ec3ffe50bd254226436d76eea
2017-03-06 13:24:45 -08:00
Sebastian Hengst
67b7f2faa5
Backed out changeset 288bc41a2ffe (bug 1344445) for bustage due to unused variable rv at LocaleService.cpp:70:14. r=backout
2017-03-11 18:58:55 +01:00
Zibi Braniecki
fb5ca0e430
Bug 1344445 - Add LocaleService::GetRequestedLocales. r=jfkthame
...
MozReview-Commit-ID: 76xYTKk6OHh
--HG--
extra : rebase_source : 497cb0474ef414bb2690444bfa590b8f817f7392
2017-03-06 13:24:45 -08:00
Makoto Kato
797b5df988
Bug 1225696 - Part 3. Revert the order of kDateFormat. r=jorgk
...
MozReview-Commit-ID: A1gWYkHi28v
2017-02-24 20:33:53 +09:00
Tooru Fujisawa
8abf3f1675
Bug 1340924
- Remove Iterator consumer from intl/. r=Pike
2017-02-22 16:11:34 +09:00
Jonathan Kew
041dc3257f
Bug 1341094 - Update mozILocaleService.getAppLocales to avoid use of jsapi. r=smaug
2017-02-20 21:14:25 +00:00
Makoto Kato
5ad41e1593
Bug 1225696 - Part 1. Add kDateFormatMonthLong and kDateFormatYearMonthLong to DateTimeFormat. r=emk
...
MozReview-Commit-ID: CT2Gzd0AEXb
--HG--
extra : rebase_source : 6b98c53f5a88e38cd19081b8a2559685a69ecc36
2017-02-20 12:47:18 +09:00
David Major
773fd87a6b
Bug 1338928: Add constexpr to static data under intl/ for better codegen on Windows. r=emk
...
MozReview-Commit-ID: I47OgjC0K5F
2017-02-15 15:08:31 +13:00
Jonathan Kew
17fb7377be
Bug 1339119 - Actually use the locale from macOS instead of throwing it away in OSPreferences::ReadSystemLocales. r=gandalf
2017-02-13 17:51:13 +00:00
Gregory Moore
65e4e6d86d
Bug 1329841 - Added support into DateTimeFormat*.cpp for kDateFormatYearMonth and kDateFormatWeekday date format selectors. r=emk
...
MozReview-Commit-ID: 5LpCbpTUMKw
--HG--
rename : intl/locale/DateTimeFormatICU.cpp => intl/locale/DateTimeFormat.cpp
extra : rebase_source : e1f49db15578be0e3578da7c0b44898befc3dfae
2017-02-08 14:08:30 -08:00
Jonathan Kew
2f76f2869c
Bug 1336281 followup - Unify the JS-callable and C++-only versions of LocaleService::GetAppLocale, and declare it as a read-only attribute in IDL. r=gandalf
2017-02-08 21:12:16 +00:00
Jonathan Kew
928fbd7db2
Bug 1337129 - Fix up #include paths used in unit tests for new intl services. r=gandalf
2017-02-08 21:12:14 +00:00
Wes Kocher
95ae929bd7
Merge m-c to autoland, a=merge
...
MozReview-Commit-ID: AY7XekuIyIs
2017-02-07 16:56:19 -08:00
Zibi Braniecki
b8f991e41b
Bug 1335983 - Migrate nsCollation::CreateCollection to use LocaleService::GetAppLocale. r=jfkthame
...
MozReview-Commit-ID: 5GEnL7Kihpj
--HG--
extra : rebase_source : 413d880035b49da82db0530379425d31ac31a82e
2017-02-07 12:52:03 -08:00
Gregory Moore
d394752f2f
Bug 1331466 - Added functionality to FormatPRExplodedTime to take into account timezone information given in the PRExplodedTime parameter. r=emk
...
MozReview-Commit-ID: HsRi1Uwfdgq
--HG--
extra : rebase_source : fdbc52677e3d946990f95229f36915436b4d743a
extra : amend_source : b307a9b67f171c23a691bb0d561475efbcc984aa
2017-02-06 14:02:38 -08:00
Carsten "Tomcat" Book
092e5dc5f1
merge mozilla-inbound to mozilla-central a=merge
2017-02-07 14:08:46 +01:00
Makoto Kato
64e728ef62
Bug 1336879 - Use Vista+ API directly for nsWin32Locale. r=emk
...
MozReview-Commit-ID: FaPCetrI8JZ
2017-02-07 10:47:41 +09:00
Zibi Braniecki
6d4115599f
Bug 1336281 - Expose mozILocaleService. r=jfkthame
...
MozReview-Commit-ID: 3fTtad7tAg6
--HG--
extra : rebase_source : ae108187419d7b5698899cebe1ddb7aae46ae156
2017-02-05 12:29:39 -08:00
Zibi Braniecki
1aa7bc8b32
Bug 1333184 - Introduce OSPreferences API. r=jfkthame
...
MozReview-Commit-ID: ALvLGtBmRgn
--HG--
extra : rebase_source : fb237beec41e7b93eeac862be285074acfc36a77
2017-02-05 11:41:43 -08:00
Zibi Braniecki
da241c5563
Bug 1332207 - Introduce mozilla::intl::LocaleService. r=jfkthame
...
MozReview-Commit-ID: AV1bvCt6tmP
--HG--
extra : rebase_source : 1951fbecf24d991d204c0bf00de3336878886df1
2017-01-25 15:58:14 -08:00
Wes Kocher
a9ce32d9a5
Backed out 2 changesets (bug 1335983) for build bustage a=backout
...
Backed out changeset 5a9559ded976 (bug 1335983)
Backed out changeset de2b0d90e2da (bug 1335983)
MozReview-Commit-ID: 377KQDU1QqJ
2017-02-07 12:34:30 -08:00
Zibi Braniecki
6d98bad59d
Bug 1335983 - Migrate nsCollation::CreateCollection to use LocaleService::GetAppLocale. r=jfkthame
...
MozReview-Commit-ID: bJVrVj2dAS
--HG--
extra : rebase_source : f3a28e003415f0c58462a73b5fd987455e102fc5
2017-02-06 14:57:09 -08:00
Makoto Kato
d2e954db28
Bug 1332565 - Turn off test_intl_on_worker.js test on Android's xpcshell. r=Waldo
...
MozReview-Commit-ID: HoZ7KvSsTix
2017-01-20 17:07:35 +09:00
Mark Banner
16e6d381ac
Bug 503613 - Remove old 'tail =' lines from xpcshell.ini files; r=gps
...
MozReview-Commit-ID: 62Hp5ISxowJ
--HG--
extra : rebase_source : daa8efb3409031fea553f4fd0c9d0746e38dc308
extra : histedit_source : b4c23aacf678ba0d0ac9c09191a7c494ead11a08
2017-01-18 10:30:39 +00:00
Gregory Moore
c337ff9019
Bug 1301640 - Replaced per-platform variants of nsIDateTimeFormat with single, ICU-backed version that has static c++ callers. r=emk
...
Also removed unused format selectors and removed option to pass in a locale. Changed all callers to use new version.
MozReview-Commit-ID: Gq0b1c3C1eO
--HG--
rename : intl/locale/unix/nsDateTimeFormatUnix.cpp => intl/locale/DateTimeFormatUnix.cpp
extra : source : 7e747433d1c9fae8a0acb4090f61335fcc165e4c
2016-11-21 15:58:37 -08:00
Masatoshi Kimura
a473040cee
Backed out changeset 7e747433d1c9 (bug 1301640) for causing bug 1325751. r=backout
...
MozReview-Commit-ID: GEYAveO6sUj
2016-12-25 10:43:04 +09:00
Gregory Moore
fc8f05853a
Bug 1301640 - Replaced per-platform variants of nsIDateTimeFormat with single, ICU-backed version that has static c++ callers. r=emk
...
Also removed unused format selectors and removed option to pass in a locale. Changed all callers to use new version.
MozReview-Commit-ID: Gq0b1c3C1eO
--HG--
rename : intl/locale/unix/nsDateTimeFormatUnix.cpp => intl/locale/DateTimeFormatUnix.cpp
extra : rebase_source : 54d8cfd01edce5f0a78c8b5c6eb89a245c12af01
2016-11-21 15:58:37 -08:00