The same news archive on two language websites.
Hello,
I will try to explain my problem as clear as I can.
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.
As I understand, by default, separate news archives have to be created for different language websites.