[FEATURE] Add all countries and their localized names
TYPO3 now supports loading a list of all countries of the world in all supported translations that TYPO3 has to offer - out of the box. For this, a dev-dependency "sokil/php-isocodes-db-i18n" package is used, which contains a list of all countries (ISO 3166-1), their short names, their official names in english, and optional translations. This package fetches the data from debian repositories and is updated automatically on the second day of each month. A new Build script then transfers the information and the translations (originally in PO files) via symfony/translation into a PHP class and XLF translations for country names ("France") and official country names ("French Republic"). The Build script is already prepared to also fetch language script codes in the future, along with languages and/or currencies as well. A new API (CountryProvider) is available which returns the countries, and prepared label strings to be used with TYPO3's language me...
Showing
- Build/Scripts/updateIsoDatabase.php 199 additions, 0 deletionsBuild/Scripts/updateIsoDatabase.php
- composer.json 2 additions, 0 deletionscomposer.json
- composer.lock 220 additions, 1 deletioncomposer.lock
- typo3/sysext/core/Classes/Country/Country.php 76 additions, 0 deletionstypo3/sysext/core/Classes/Country/Country.php
- typo3/sysext/core/Classes/Country/CountryProvider.php 1772 additions, 0 deletionstypo3/sysext/core/Classes/Country/CountryProvider.php
- typo3/sysext/core/Configuration/Services.yaml 4 additions, 0 deletionstypo3/sysext/core/Configuration/Services.yaml
- typo3/sysext/core/Documentation/Changelog/12.2/Feature-99618-ListOfCountriesInTheWorldAndTheirLocalizedNames.rst 97 additions, 0 deletions...99618-ListOfCountriesInTheWorldAndTheirLocalizedNames.rst
- typo3/sysext/core/Resources/Private/Language/Iso/af.countries.xlf 1651 additions, 0 deletions...sext/core/Resources/Private/Language/Iso/af.countries.xlf
- typo3/sysext/core/Resources/Private/Language/Iso/ar.countries.xlf 1691 additions, 0 deletions...sext/core/Resources/Private/Language/Iso/ar.countries.xlf
- typo3/sysext/core/Resources/Private/Language/Iso/bg.countries.xlf 1691 additions, 0 deletions...sext/core/Resources/Private/Language/Iso/bg.countries.xlf
- typo3/sysext/core/Resources/Private/Language/Iso/bs.countries.xlf 1679 additions, 0 deletions...sext/core/Resources/Private/Language/Iso/bs.countries.xlf
- typo3/sysext/core/Resources/Private/Language/Iso/ca.countries.xlf 1687 additions, 0 deletions...sext/core/Resources/Private/Language/Iso/ca.countries.xlf
- typo3/sysext/core/Resources/Private/Language/Iso/ch.countries.xlf 91 additions, 0 deletions...sext/core/Resources/Private/Language/Iso/ch.countries.xlf
- typo3/sysext/core/Resources/Private/Language/Iso/countries.xlf 1273 additions, 0 deletions.../sysext/core/Resources/Private/Language/Iso/countries.xlf
- typo3/sysext/core/Resources/Private/Language/Iso/cs.countries.xlf 1691 additions, 0 deletions...sext/core/Resources/Private/Language/Iso/cs.countries.xlf
- typo3/sysext/core/Resources/Private/Language/Iso/cy.countries.xlf 1691 additions, 0 deletions...sext/core/Resources/Private/Language/Iso/cy.countries.xlf
- typo3/sysext/core/Resources/Private/Language/Iso/da.countries.xlf 1691 additions, 0 deletions...sext/core/Resources/Private/Language/Iso/da.countries.xlf
- typo3/sysext/core/Resources/Private/Language/Iso/de.countries.xlf 1695 additions, 0 deletions...sext/core/Resources/Private/Language/Iso/de.countries.xlf
- typo3/sysext/core/Resources/Private/Language/Iso/el.countries.xlf 1691 additions, 0 deletions...sext/core/Resources/Private/Language/Iso/el.countries.xlf
- typo3/sysext/core/Resources/Private/Language/Iso/eo.countries.xlf 1691 additions, 0 deletions...sext/core/Resources/Private/Language/Iso/eo.countries.xlf
Please register or sign in to comment