Results 1 to 5 of 5

Thread: Multilanguage sites - different alphabets

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

    Default Multilanguage sites - different alphabets

    Hi,

    How I can create multilanguage website where I have to use different alphabets - Serbian Latin/Serbian Cyrillic/English Latin?

    Original website content is written with Cyrillic alphabet. If I want to show it in Latin version I need to use replace function. I have that function prepared, but I don't know where in code I should replace the output string? I assume it is in templates, right?

    Is this possible at all?

  2. #2
    KelvinSmith
    Gast

    Default

    You can build multi language site:

    - create one "website root" page for language
    - set language fallback to the most common used language (I often create en/it website and set fallback language to en)
    - install the ZedSeries Language Menu extension : https://contao.org/en/extension-list...000019.en.html

    take also a look at the extensions with language tag - https://contao.org/en/extension-list/tags/Language.html

    another way of doing a multilanguage website is explained here - https://contao.org/en/extension-list....60039.en.html

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

    Default

    Okay,

    I've created two versions of the website (Serbian Cyrillic /*fallback language*/ and Serbian Latin).

    Now, I have to use the same news archive on both websites without changing global language variable $GLOBALS['TL_LANGUAGE'] value. Is that possible at all?

    I was thinking to change the news item link depending of active language $GLOBALS['TL_LANGUAGE'] but I can't find where it is generated:

    Something like this:

    Code:
    if lang = lang1 
    then href = .../news-lang1-page/news-title
    else href = .../news-lang2-page/news-title.
    
    /*showing news item from the same news archive*/
    where news-lang1 and news-lang2 are pages where news readers are located.

    I am trying to avoid creating separate news archives, because the language is the same, I just need to convert strings from Cyrillic to Latin with function I made.
    Last edited by tetrijeb; 10/16/2015 at 15:58.

  4. #4
    User Andreas's Avatar
    Join Date
    07-11-09.
    Location
    Mönchengladbach
    Posts
    499

    Default

    First: Please use https://contao.org/extension-list/vi...elanguage.html not zedseries_languagemenu. We all use this for years and zed seams outdated.

    Please create a new thread for your new question. Thank you.

    Also take a look at https://contao.org/extension-list/vi...slanguage.html
    Web-Development, Freelancer, Burgtech, XHTML, HTML5, CSS, PHP, Javascript, MooTools, MySQL and more
    Amazon wishlist

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

    Default

    Quote Originally Posted by Andreas View Post
    First: Please use https://contao.org/extension-list/vi...elanguage.html not zedseries_languagemenu. We all use this for years and zed seams outdated.

    Please create a new thread for your new question. Thank you.

    Also take a look at https://contao.org/extension-list/vi...slanguage.html
    I've used changelanguage extension.

    Sorry for any inconvenience, but I wasn't sure which subforum to use, so I wrote it here. I will create new thread.

    Thanks.

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
  •