office-gobmx/i18npool
Eike Rathke 8453f6e5d1 Resolves: tdf#130563 Add predefined 4-digit year date+time format
Add a predefined NF_DATETIME_SYS_DDMMYYYY_HHMM format code with
formatindex="50" to all locale data files, which shifts all
reserved area internally generated built-in formats up by one.
Reserved area was filled already so that boundary has to be
increased as well. Add some flexibility for future additions by
setting the new boundary to 65, free first format index to be used
by additional locale data formats is 66 now. Adapt all locales to
the new boundary.

The existing predefined NF_DATETIME_SYSTEM_SHORT_HHMM format code
with formatindex="46" mostly was and is used with 2-digit years
(stemming back from the old binary format and Excel
compatibility), some locales that don't use 2-digit years at all
already defined it to 4-digit years. Keep those but move the
default="true" attribute (if so) to the new "50" format.

Modify populating the format list such that resulting duplicates
will be suppressed there as well.

Also try to match the new format in ODF import if a long year was
requested with date+time.

Finally set the new format as default for all *_IT locales. In
future changing the default date+time format to 4-digit year is
just a matter of moving the default="true" attribute to the new
format.

Change-Id: Ib16aa9fda0e71b2d03f78e3dd013785de03cd288
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/89265
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Jenkins
2020-02-22 20:17:54 +01:00
..
inc tdf#124176: Use pragma once instead of include guards 2020-01-25 17:51:07 +01:00
qa/cppunit
source Resolves: tdf#130563 Add predefined 4-digit year date+time format 2020-02-22 20:17:54 +01:00
util
CppunitTest_i18npool_test_breakiterator.mk
CppunitTest_i18npool_test_characterclassification.mk
CppunitTest_i18npool_test_ordinalsuffix.mk
CppunitTest_i18npool_test_textsearch.mk
CustomTarget_breakiterator.mk GBUILD_TRACE, support for finding out where the build time is spent 2020-02-16 14:49:45 +01:00
CustomTarget_collator.mk GBUILD_TRACE, support for finding out where the build time is spent 2020-02-16 14:49:45 +01:00
CustomTarget_indexentry.mk GBUILD_TRACE, support for finding out where the build time is spent 2020-02-16 14:49:45 +01:00
CustomTarget_localedata.mk GBUILD_TRACE, support for finding out where the build time is spent 2020-02-16 14:49:45 +01:00
CustomTarget_textconversion.mk GBUILD_TRACE, support for finding out where the build time is spent 2020-02-16 14:49:45 +01:00
Executable_gencoll_rule.mk
Executable_genconv_dict.mk
Executable_gendict.mk
Executable_genindex_data.mk
Executable_saxparser.mk
IwyuFilter_i18npool.yaml
Library_collator_data.mk
Library_dict_ja.mk
Library_dict_zh.mk
Library_i18npool.mk
Library_i18nsearch.mk
Library_index_data.mk
Library_localedata_en.mk
Library_localedata_es.mk
Library_localedata_euro.mk Resolves: tdf#130579 Add Ligurian [lij-IT] locale data 2020-02-21 15:54:48 +01:00
Library_localedata_others.mk Resolves: tdf#130772 Add Minangkabau [min-ID] locale data 2020-02-21 21:56:06 +01:00
Library_textconv_dict.mk
Makefile
Module_i18npool.mk
Rdb_saxparser.mk
README

Internationalisation (i18npool) framework ensures that the suite is adaptable to the requirements of different
native languages, their local settings and customs, etc without source code modification. (Wow, that is such marketing-speak...)

Specifically for locale data documentation please see i18npool/source/localedata/data/locale.dtd

See also [http://wiki.documentfoundation.org/Category:I18n]

On iOS we put the largest data generated here, the dict_ja and dict_zh
stuff, into separate files and not into code to keep the size of an
app binary down. Temporary test code:

    static bool beenhere = false;
    if (!beenhere) {
        beenhere = true;
        uno::Reference< uno::XComponentContext > xComponentContext(::cppu::defaultBootstrap_InitialComponentContext());
        uno::Reference< lang::XMultiComponentFactory > xMultiComponentFactoryClient( xComponentContext->getServiceManager() );
        uno::Reference< uno::XInterface > xInterface =
            xMultiComponentFactoryClient->createInstanceWithContext( "com.sun.star.i18n.BreakIterator_ja", xComponentContext );
    }