‪TYPO3CMS  ‪main
updateIsoDatabase.php File Reference

Go to the source code of this file.

Classes

class  XliffDumper
 

Functions

 updatePhpFile (string $fileLocation, array $contents)
 
 importCountries (array $countries, array $supportedLanguagesInTypo3, string $baseDirectory, string $targetXliffDirectory)
 
 importLanguages (array $languages, array $supportedLanguagesInTypo3, string $baseDirectory, string $targetXliffDirectory)
 
 importLanguageScriptSystems (array $scripts, array $supportedLanguagesInTypo3, string $baseDirectory, string $targetXliffDirectory)
 

Variables

 if (PHP_SAPI !=='cli')
 
 $baseDirectory = __DIR__ . '/../../vendor/sokil/php-isocodes-db-i18n'
 
 $targetXliffDirectory = __DIR__ . '/../../typo3/sysext/core/Resources/Private/Language/Iso'
 
 $typo3Locales = new Locales()
 
 $languages = $typo3Locales->getLanguages()
 
 $supportedLanguagesInTypo3 = array_keys($languages)
 
 $countries = json_decode(file_get_contents($baseDirectory . '/databases/iso_3166-1.json'), true)
 
 $languageSource = json_decode(file_get_contents($baseDirectory . '/databases/iso_639-2.json'), true)
 
 return
 
 $scripts = json_decode(file_get_contents($baseDirectory . '/databases/iso_15924.json'), true)
 

Function Documentation

◆ importCountries()

importCountries ( array  $countries,
array  $supportedLanguagesInTypo3,
string  $baseDirectory,
string  $targetXliffDirectory 
)

◆ importLanguages()

importLanguages ( array  $languages,
array  $supportedLanguagesInTypo3,
string  $baseDirectory,
string  $targetXliffDirectory 
)

◆ importLanguageScriptSystems()

importLanguageScriptSystems ( array  $scripts,
array  $supportedLanguagesInTypo3,
string  $baseDirectory,
string  $targetXliffDirectory 
)

◆ updatePhpFile()

updatePhpFile ( string  $fileLocation,
array  $contents 
)

Variable Documentation

◆ $baseDirectory

$baseDirectory = __DIR__ . '/../../vendor/sokil/php-isocodes-db-i18n'

◆ $countries

$countries = json_decode(file_get_contents($baseDirectory . '/databases/iso_3166-1.json'), true)

◆ $languages

$languages = $typo3Locales->getLanguages()

Definition at line 104 of file updateIsoDatabase.php.

Referenced by TYPO3\CMS\Seo\HrefLang\HrefLangGenerator\__invoke(), TYPO3\CMS\Backend\Form\FormDataProvider\DatabaseSystemLanguageRows\addData(), TYPO3\CMS\Core\Service\FlexFormService\convertFlexFormContentToArray(), TYPO3\CMS\Backend\Tests\Unit\Configuration\TranslationConfigurationProviderTest\defaultLanguageIsAlwaysReturned(), TYPO3\CMS\Core\Command\SiteListCommand\execute(), TYPO3\CMS\Backend\Domain\Repository\Localization\LocalizationRepository\fetchAvailableLanguages(), TYPO3\CMS\Linkvalidator\Repository\BrokenLinkRepository\getAllBrokenLinksForPages(), TYPO3\CMS\Linkvalidator\Tests\Functional\Repository\BrokenLinkRepositoryTest\getAllBrokenLinksForPagesRespectsGivenLanguages(), TYPO3\CMS\Core\Routing\PageSlugCandidateProvider\getCandidatesForPath(), TYPO3\CMS\Install\Service\LanguagePackService\getLanguageDetails(), TYPO3\CMS\Backend\View\PageLayoutContext\getLanguagesToShow(), TYPO3\CMS\Viewpage\Controller\ViewModuleController\getPreviewLanguages(), TYPO3\CMS\Linkvalidator\Result\LinkAnalyzerResult\getResultForTask(), TYPO3\CMS\Workspaces\Controller\ReviewController\getSystemLanguages(), TYPO3\CMS\Backend\Tests\Unit\Configuration\TranslationConfigurationProviderTest\getSystemLanguagesAggregatesLanguagesOfAllSitesForRootLevel(), TYPO3\CMS\Backend\Tests\Unit\Configuration\TranslationConfigurationProviderTest\getSystemLanguagesConcatenatesTitlesOfLanguagesForRootLevel(), importLanguages(), TYPO3\CMS\Core\Localization\TcaSystemLanguageCollector\populateAvailableSiteLanguages(), TYPO3\CMS\Frontend\ContentObject\Menu\AbstractMenuContentObject\prepareMenuItemsForLanguageMenu(), TYPO3\CMS\Viewpage\Controller\ViewModuleController\registerDocHeader(), TYPO3\CMS\Backend\Form\FieldWizard\OtherLanguageThumbnails\render(), TYPO3\CMS\Core\Tests\Functional\Routing\Aspect\PersistedAliasMapperTest\setUp(), TYPO3\CMS\Core\Tests\Functional\Routing\Aspect\PersistedPatternMapperTest\setUp(), TYPO3\CMS\Core\Localization\CacheWarmer\warmupCaches(), and TYPO3\CMS\Core\Tests\Functional\SiteHandling\SiteBasedTestTrait\writeSiteConfiguration().

◆ $languageSource

$languageSource = json_decode(file_get_contents($baseDirectory . '/databases/iso_639-2.json'), true)

Definition at line 227 of file updateIsoDatabase.php.

◆ $scripts

$scripts = json_decode(file_get_contents($baseDirectory . '/databases/iso_15924.json'), true)

Definition at line 276 of file updateIsoDatabase.php.

Referenced by importLanguageScriptSystems().

◆ $supportedLanguagesInTypo3

$supportedLanguagesInTypo3 = array_keys($languages)

◆ $targetXliffDirectory

$targetXliffDirectory = __DIR__ . '/../../typo3/sysext/core/Resources/Private/Language/Iso'

Definition at line 99 of file updateIsoDatabase.php.

Referenced by importCountries(), and importLanguages().

◆ $typo3Locales

$typo3Locales = new Locales()

Definition at line 103 of file updateIsoDatabase.php.

◆ if

if(PHP_SAPI !=='cli')

Definition at line 23 of file updateIsoDatabase.php.

◆ return

return

Definition at line 230 of file updateIsoDatabase.php.