Results 1 to 7 of 7

Thread: Serbian language

  1. #1
    User tetrijeb's Avatar
    Join Date
    04-19-12.
    Location
    Bosnia&Herzegovina
    Posts
    114

    Default Serbian language

    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.

  2. #2
    Community-Moderator xchs's Avatar
    Join Date
    06-19-09.
    Posts
    1,287

    Default

    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

  3. #3
    User tetrijeb's Avatar
    Join Date
    04-19-12.
    Location
    Bosnia&Herzegovina
    Posts
    114

    Default

    Quote Originally Posted by xchs View Post
    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
    Hi xchs,

    I will do that. Thanks.

  4. #4
    User tetrijeb's Avatar
    Join Date
    04-19-12.
    Location
    Bosnia&Herzegovina
    Posts
    114

    Default

    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

  5. #5
    Community-Moderator xchs's Avatar
    Join Date
    06-19-09.
    Posts
    1,287

    Default

    If you want to translate only a few labels you can do this in the "system/config/langconfig.php" as well.

    For example:
    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]';

        



    Make sure that you save the "langconfig.php" with UTF-8 (w/o BOM) encoding.
    Contao Community Moderator
    → Support options

  6. #6
    User tetrijeb's Avatar
    Join Date
    04-19-12.
    Location
    Bosnia&Herzegovina
    Posts
    114

    I've got it, and I changed the labels.

    Thank you for the advice.
    Last edited by tetrijeb; 03/04/2015 at 00:42.

  7. #7
    Community-Moderator xchs's Avatar
    Join Date
    06-19-09.
    Posts
    1,287

    Default

    Fine. You're welcome.
    Contao Community Moderator
    → Support options

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •