summaryrefslogtreecommitdiff
path: root/i18nlangtag
AgeCommit message (Collapse)Author
2017-07-21replace localestr with a script for the supported translation targetsCaolán McNamara
Change-Id: Ia0c00f6f978428d68b3c53051e26e1913b207dbe
2017-07-21don't build localestr when cross-compilingCaolán McNamara
Change-Id: Ia776d159aecc3082f46efe5bdd46477b45576b31
2017-07-21migrate to boost::gettextCaolán McNamara
* all .ui files go from <interface> to <interface domain="MODULE"> e.g. vcl * all .src files go away and the english source strings folded into the .hrc as NC_("context", "source string") * ResMgr is dropped in favour of std::locale imbued by boost::locale::generator pointed at matching MODULE .mo files * UIConfig translations are folded into the module .mo, so e.g. UIConfig_cui goes from l10n target to normal one, so the res/lang.zips of UI files go away * translation via Translation::get(hrc-define-key, imbued-std::locale) * python can now be translated with its inbuilt gettext support (we keep the name strings.hrc there to keep finding the .hrc file uniform) so magic numbers can go away there * java and starbasic components can be translated via the pre-existing css.resource.StringResourceWithLocation mechanism * en-US res files go away, their strings are now the .hrc keys in the source code * remaining .res files are replaced by .mo files * in .res/.ui-lang-zip files, the old scheme missing translations of strings results in inserting the english original so something can be found, now the standard fallback of using the english original from the source key is used, so partial translations shrink dramatically in size * extract .hrc strings with hrcex which backs onto xgettext -C --add-comments --keyword=NC_:1c,2 --from-code=UTF-8 --no-wrap * extract .ui strings with uiex which backs onto xgettext --add-comments --no-wrap * qtz for gettext translations is generated at runtime as ascii-ified crc32 of content + "|" + msgid * [API CHANGE] remove deprecated binary .res resouce loader related uno apis com::sun::star::resource::OfficeResourceLoader com::sun::star::resource::XResourceBundleLoader com::sun::star::resource::XResourceBundle when translating strings via uno apis com.sun.star.resource.StringResourceWithLocation can continue to be used Change-Id: Ia2594a2672b7301d9c3421fdf31b6cfe7f3f8d0a
2017-07-17loplugin:unnecessaryparen: i18nlangtag (clang-cl)Stephan Bergmann
Change-Id: I77d010932d8d56ce295a88d63bee96a9219d4a4d
2017-07-10teach unnecessaryparen loplugin about identifiersNoel Grandin
Change-Id: I5710b51e53779c222cec0bf08cd34bda330fec4b Reviewed-on: https://gerrit.libreoffice.org/39737 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-07-06use OString::operator== in preference to ::equalsNoel Grandin
Change-Id: Ib291521963a791a9c6175964571e9d9895072acf Reviewed-on: https://gerrit.libreoffice.org/39646 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-06-25loplugin:oncevar in helpcompiler..jvmfwkNoel Grandin
Change-Id: Ia9b20a8ca95684cbeb21e3425972c43ba50df3cd Reviewed-on: https://gerrit.libreoffice.org/39187 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-06-19Add Kituba (Democratic Republic of the Congo) [ktu-CD] to language listEike Rathke
Change-Id: I9ba7a9d104dd6a5e47aa62058d0602101053e9af
2017-06-05spelling instanciate -> instantiateNoel Grandin
Change-Id: Ic1393da64328c0dc7e2860334b204139bf537d81 Reviewed-on: https://gerrit.libreoffice.org/38401 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-05-08Make kSAME constexpr and move k0 to the same place.Eike Rathke
Change-Id: Id99d2dd799d3ee0cc2badf4aaf1b5acd7fb02c27
2017-05-08Whatever LANGUAGE_SYSTEM may be in future, this has to be 0Eike Rathke
Change-Id: Iddc4dcf3e29919b092560d3bdd81ca85667b224b
2017-05-08Adapt to reality, defines are LanguageType strong_intEike Rathke
... since c70d49c7c888da8cfd73db8585e7be1f37fc398a, so adjust the regex. Change-Id: I460b5983cd7a0d3e4c4368e946bb8b8f6153f9a4
2017-04-26use strong_int for LanguageTypeNoel Grandin
Change-Id: If99a944f7032180355da291ad283b4cfcea4f448 Reviewed-on: https://gerrit.libreoffice.org/36629 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-04-24loplugin:checkunusedparams in i18nlangtag and l10ntoolsNoel Grandin
Change-Id: If7c7404b1cc1cf9445a2af8106f7326b76524388 Reviewed-on: https://gerrit.libreoffice.org/36883 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-04-24clang-tidy readability-simplify-boolean-expr in hwpfilter..lotuswordproNoel Grandin
Change-Id: I945d3fe6af5f88937b341dfc3696bf1d36344862 Reviewed-on: https://gerrit.libreoffice.org/36874 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-04-21gbuild: Remove MSVC 2013 legacy codeDavid Ostrovsky
Uwinapi is discontinued. Change-Id: I063b4d0d8fab2d60de168e960a63b8181158ac01 Reviewed-on: https://gerrit.libreoffice.org/23198 Reviewed-by: David Ostrovsky <david@ostrovsky.org> Tested-by: David Ostrovsky <david@ostrovsky.org>
2017-03-30remove type decorations on char literalsJochen Nitschke
they are only needed where type deduction fails. left them in defines for now. Change-Id: I7f002dd6bc7acc083c73b6c64076de6dd28d0b09 Reviewed-on: https://gerrit.libreoffice.org/35893 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2017-03-19scp2: Removed unused Directory itemsStephan Bergmann
Change-Id: Ib095e8eb9f9b79864f6a50557994f4d24f0bd2a4
2017-03-15tdf#105448 add Xibe [sjo-CN] to language list (and remove Sibe [nco-PG])Eike Rathke
... the latter which was a misunderstanding and erroneous. Change-Id: I4ec8eaf14348aaaed43ea4578d46b5488279c85b
2017-03-14tdf#100462 prefer en-GB-oxendict over en-GB-oedEike Rathke
And make en-GB-oed just an alias of en-GB-oxendict. Change-Id: I73c1208f85d06360dbd8def0b8d916cddfe59aca
2017-03-03Remove redundant 'inline' keywordStephan Bergmann
...from function definitions occurring within class definitions. Done with a rewriting Clang plugin (to be pushed later). Change-Id: I9c6f2818a57ccdb361548895a7743107cbacdff8 Reviewed-on: https://gerrit.libreoffice.org/34874 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2017-02-24Always enable liblangtagKhaled Hosny
The license should not be an issue any more since liblangtag now has an LGPL/MPLv2 dual licence. Change-Id: I4dfffcccf5d710bd16b21c3254c1449ae041b8ab Reviewed-on: https://gerrit.libreoffice.org/34511 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Eike Rathke <erack@redhat.com>
2017-01-30tdf#105448 add Sibe [nco-PG] to language listEike Rathke
Change-Id: If7dfeaa0dd4cf4d164147b8b866f7c493a5af669
2017-01-30tdf#105448 add Manchu [mnc-CN] to language list (CTL)Eike Rathke
Change-Id: Ia19da31a3df0a7d196997eedef07d8a28aa2e72c
2017-01-10New loplugin:conststringvar: i18nlangtagStephan Bergmann
Change-Id: I261755055109430e6e8974efc57cc82fce8fd28a
2016-12-08loplugin:staticanonymousTor Lillqvist
Change-Id: I046ab88e9bd4667e496a6525abc5d5f99cf162c2
2016-12-08loplugin:overrideTor Lillqvist
Change-Id: If654061dea2c78b6d1131cf9a4339ee21205bb82
2016-12-08loplugin:nullptrTor Lillqvist
Change-Id: Idb6bb5e42c1d2952e30a063a56ef7fecbc6924de
2016-12-05loplugin:unnecessaryoverride (dtors) in i18nlangtagStephan Bergmann
Change-Id: Id7c37e6a1966b4e44184391d9207e390d9c8861d
2016-11-29Rewrite some (trivial) assignments inside if/while conditions: i18nlangtagStephan Bergmann
Change-Id: Ie6b8e644e01ed99559981d001a7ab95d72ffa5c2
2016-11-17Fix tdf#103855 add language codes and names to language lists from extensionsMartin Hosken
Rationale for changes to languagetag.hxx can be found in the bug tdf#103855. Change-Id: I7fa7c8a3f7b219ce08df69a3965f544ae156beab Reviewed-on: https://gerrit.libreoffice.org/30882 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2016-10-07i18nlangtag: fix loplugin:cppunitassertequals warningsMiklos Vajna
Change-Id: I2f7134c8308b68c0a01c83d7f1427d18ec7b164a Reviewed-on: https://gerrit.libreoffice.org/29584 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org>
2016-09-13loplugin:override: No more need for the "MSVC dtor override" workaroundStephan Bergmann
The issue of 362d4f0cd4e50111edfae9d30c90602c37ed65a2 "Explicitly mark overriding destructors as 'virtual'" appears to no longer be a problem with MSVC 2013. (The little change in the rewriting code of compilerplugins/clang/override.cxx was necessary to prevent an endless loop when adding "override" to OOO_DLLPUBLIC_CHARTTOOLS virtual ~CloseableLifeTimeManager(); in chart2/source/inc/LifeTime.hxx, getting stuck in the leading OOO_DLLPUBLIC_CHARTTOOLS macro. Can't remember what that isAtEndOfImmediateMacroExpansion thing was originally necessary for, anyway.) Change-Id: I534c634504d7216b9bb632c2775c04eaf27e927e
2016-08-29name it Hungarian Rovas, tdf#97406 follow-upEike Rathke
Change-Id: I62d5a503b199922b82e7cec3e0ef971bbbd43d09
2016-08-29Resolves: tdf#95162 Hung is RTL/CTLEike Rathke
Change-Id: If408305564b1fddbef371f32d2b91b6a1e44a2b0
2016-08-26add Old Hungarian (Hungarian Rovas) [hu-Hung-HU] to language list, tdf#97406Eike Rathke
Change-Id: I1804a08c69d496d6d1a7a8bb657b65fbfc24beb3
2016-08-16Resolves: tdf#101540 add Silesian [szl-PL] to language listEike Rathke
Change-Id: I7f73a6286d080a5ebf1b7a1bb834a06f51be6529
2016-07-27improve passstuffbyref return analysisNoel Grandin
Change-Id: I4258bcc97273d8bb7a8c4879fac02a427f76e18c Reviewed-on: https://gerrit.libreoffice.org/27317 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-07-04Fix some spelling errors in comments and stringsOtto Kekäläinen
Change-Id: Iecd6b5e13d6be14651f77d8e37f01117ba15a11e Reviewed-on: https://gerrit.libreoffice.org/26883 Reviewed-by: jan iversen <jani@documentfoundation.org> Tested-by: jan iversen <jani@documentfoundation.org>
2016-06-09tdf#94698 cleanup Makefiles. Get rid of udkapi and offapiGleb Mishchenko
This patch changes occurences in makefiles from $(eval $(call gb_CppunitTest_use_api,comphelper_test_config, \ udkapi \ offapi \ )) to $(eval $(call gb_CppunitTest_use_sdk_api,comphelper_test_config)) (corrected instead of abandon, jani) Change-Id: Ic96ec65d82d7452e288f05a8b6d576ef543b068e Reviewed-on: https://gerrit.libreoffice.org/23426 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: jan iversen <jani@documentfoundation.org> Tested-by: jan iversen <jani@documentfoundation.org>
2016-05-10Insert explicit "break" when falling through to empty next caseStephan Bergmann
...which itself only contains a "break" (or nothing at all at the end of the "switch"), as otherwise Clang -Wimplicit-fallthrough would warn about these. Change-Id: I25c1cf2ca74dfeba7ca0385ca8f1c1bf30bbf91b
2016-04-25add English (Mauritius) [en-MU] and French (Mauritius) [fr-MU], tdf#99372Eike Rathke
Change-Id: I98a0bc42a7d7f5c0943c9861556392399b9d0313
2016-04-21unit test 'C' locale shall map to 'en-US'Eike Rathke
Change-Id: Id4772b087add703537b588c961283466436f10c1
2016-04-21handle 'C' locale in simpleExtract()Eike Rathke
... so liblangtag isn't called and we explicitly have it known from there on as well. Also, don't set mbInitializedLocale=true in the LanguageTag ctor with Locale anymore as we don't know there if a semantically correct Locale was passed (which technically the 'C' locale is not). Instead, set it centrally in LanguageTag::registerImpl() where conversion to maBcp47 string takes place. Change-Id: I71551bd4b59d896c0674286edee816e05081ecd4
2016-04-21also exclude the "specific English" table from mapping to LanguageTagEike Rathke
... otherwise entering a tag for such combination would result in a different locale instead of an on-the-fly assignment. Change-Id: I0c1b2005298cb39f98cf816d4765ce21a5cbc9bc
2016-04-20explicitly map 'C' locale and other known definitions to LanguageTagEike Rathke
Starting up a dbgutil build with LC_ALL=C gave i18nlangtag/source/languagetag/languagetag.cxx:1362: LanguageTagImpl::convertLocaleToLang: with bAllowOnTheFlyID invalid 'C' i18nlangtag/source/languagetag/languagetag.cxx:1533: LanguageTag::getLanguageFromLangtag: pLangT==NULL for 'C' i18nlangtag/source/languagetag/languagetag.cxx:1593: LanguageTag::getRegionFromLangtag: pRegionT==NULL for 'C' Nothing harmful in this case as the default fallback is 'en-US', but it also indicated that other known non-standard "locales" such as "sr-latin" or "german" were not resolved to the defined values. Likely such weird values are not in use anymore, but.. Change-Id: Ib3469354ceb236552540da5fd11d8f9e9c5ab1fd
2016-04-14Resolves: tdf#73973 it's [crk-Latn-CA] and [crk-Cans-CA]Eike Rathke
Change-Id: I0da8562fc378f873e208919999bfc85f30d26778
2016-04-04loplugin:constantparam in i18nlangtagNoel Grandin
Change-Id: I3d7cbac7ca58f3de9771a1221196f851255f3fb9 Reviewed-on: https://gerrit.libreoffice.org/23802 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-04-01tdf#97966 Drop 'static' keywordsWastack
Including no keywords from extern "C" blocks Change-Id: Id9dd5a53d6ea5134ebb473bd0463f8f42965a211 Reviewed-on: https://gerrit.libreoffice.org/23674 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2016-03-03loplugin:unuseddefaultparams variousNoel Grandin
Change-Id: Ibf8489c957b307156689de4c7cb8440ddd4e4546 Reviewed-on: https://gerrit.libreoffice.org/22852 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>