![]() |
TYPO3
7.6
|
Public Member Functions | |
fetchTranslationStatus ($extensionKey, $mirrorUrl) | |
updateTranslation ($extensionKey, $language, $mirrorUrl) | |
![]() | |
injectConfigurationUtility (\TYPO3\CMS\Extensionmanager\Utility\ConfigurationUtility $configurationUtility) | |
fetchExtension ($extensionKey, $version, $expectedMd5, $mirrorUrl) | |
decodeServerData ($externalData) | |
decodeExchangeData ($stream) | |
Protected Member Functions | |
parseL10nXML ($string) | |
fetchTranslation ($extensionKey, $language, $mirrorUrl) | |
unzipTranslationFile ($file, $path) | |
Additional Inherited Members | |
![]() | |
$wsdlUrl | |
![]() | |
$configurationUtility | |
Extends of extensionmanager ter connection to enrich with translation related methods
Definition at line 24 of file TerService.php.
|
protected |
Fetches an extensions l10n file from the given mirror
string | $extensionKey | Extension Key |
string | $language | The language code of the translation to fetch |
string | $mirrorUrl | URL of mirror to use |
\TYPO3\CMS\Lang\Exception\XmlParser |
Definition at line 163 of file TerService.php.
References ExtensionManagementUtility\extPath(), and GeneralUtility\strtolower().
Referenced by TerService\updateTranslation().
fetchTranslationStatus | ( | $extensionKey, | |
$mirrorUrl | |||
) |
Fetches extensions translation status
string | $extensionKey | Extension Key |
string | $mirrorUrl | URL of mirror to use |
Definition at line 33 of file TerService.php.
References TerService\parseL10nXML(), and GeneralUtility\strtolower().
|
protected |
Parses content of *-l10n.xml into a suitable array
string | $string,: | XML data to parse |
\TYPO3\CMS\Lang\Exception\XmlParser |
Definition at line 53 of file TerService.php.
Referenced by TerService\fetchTranslationStatus().
|
protected |
Unzip an language zip file
string | $file | path to zip file |
string | $path | path to extract to |
\TYPO3\CMS\Lang\Exception\Language |
Definition at line 201 of file TerService.php.
References GeneralUtility\getFileAbsFileName(), GeneralUtility\mkdir_deep(), and GeneralUtility\writeFile().
Referenced by TerService\updateTranslation().
updateTranslation | ( | $extensionKey, | |
$language, | |||
$mirrorUrl | |||
) |
Install translations for all selected languages for an extension
string | $extensionKey | The extension key to install the translations for |
string | $language | Language code of translation to fetch |
string | $mirrorUrl | Mirror URL to fetch data from |
Definition at line 124 of file TerService.php.
References TerService\fetchTranslation(), GeneralUtility\getFileAbsFileName(), GeneralUtility\mkdir_deep(), GeneralUtility\rmdir(), TerService\unzipTranslationFile(), and GeneralUtility\writeFileToTypo3tempDir().