This documentation is for a version that has reached its End Of Life. Such versions are no longer supported and don't receive security updates. Consider updating to a newer version.
Language API¶
You can manage languages configured in the system with PHP API by using LanguageService.
Getting language information¶
To get a list of all languages in the system use LanguageService::loadLanguages:
1 2 3 4 5 | |
Creating a language¶
To create a new language, you need to create a LanguageCreateStruct and provide it with the language code and language name.
Then, use LanguageService::createLanguage and pass the LanguageCreateStruct to it:
1 2 3 4 | |