As I can see, there is no Serbian language localization for Contao versions 3.x. Are the all available languages already included in installation package?
What I can do to get it to my project?
Thanks.
As I can see, there is no Serbian language localization for Contao versions 3.x. Are the all available languages already included in installation package?
What I can do to get it to my project?
Thanks.
Hi tetrijeb,
feel free to register at transifex.com (our translation and localization platform) and join a new translation team for the Serbian language. The translated language resources will be part of the core distribution package when the translation is at least 95% complete.
See for further information: https://contao.org/en/news/translati...ao-3-core.html
Contao Community Moderator
→ Support options
At the moment, I am trying to to find out what are the language files for the Newslist, Newsreader and Calendar. I want to try it to translate them manually (only those files), since they are visible in the Front End. But I can't identified what files are used in those modules for Front End.
Is this correct path: /system/modules/news/languages/en
If you want to translate only a few labels you can do this in the "system/config/langconfig.php" as well.
For example:
Make sure that you save the "langconfig.php" with UTF-8 (w/o BOM) encoding.PHP Code:
// system/config/langconfig.php
if ($GLOBALS['TL_LANGUAGE'] == 'sr')
{
// system/modules/news/languages/en/default.xlf
// $GLOBALS['TL_LANG']['MSC']['by'] = 'by';
$GLOBALS['TL_LANG']['MSC']['by'] = 'по';
// $GLOBALS['TL_LANG']['MSC']['empty'] = 'There are no news items for this period.';
$GLOBALS['TL_LANG']['MSC']['empty'] = '[SERBIAN TRANSLATION]';
// $GLOBALS['TL_LANG']['MSC']['emptyList'] = 'Currently there are no news items.';
$GLOBALS['TL_LANG']['MSC']['emptyList'] = '[SERBIAN TRANSLATION]';
// system/modules/core/languages/en/default.xlf
// $GLOBALS['TL_LANG']['MSC']['more'] = 'Read more …';
$GLOBALS['TL_LANG']['MSC']['more'] = 'Опширније …';
// $GLOBALS['TL_LANG']['MSC']['goBack'] = Go back';
$GLOBALS['TL_LANG']['MSC']['goBack'] = '[SERBIAN TRANSLATION]';
…
}
Contao Community Moderator
→ Support options
I've got it, and I changed the labels.
Thank you for the advice.
Last edited by tetrijeb; 03/04/2015 at 00:42.
Fine. You're welcome.
Contao Community Moderator
→ Support options
Bookmarks