(2014-01-26, 02:25:49)Carlos Wrote: Try this... Insert in your gsconfig:
Code:if(isset($_GET['lang'])) {
if ($_GET['lang'] == 'en') {
$nm_i18n['READ_MORE'] = 'Read more';
} else {
$nm_i18n['READ_MORE'] = 'Číst dál';
}
}
Thank you again, Carlos, works like a charm and also checks if the site is multilingual, right?
I added the same for the rest of the strings that need to be translated - "Published on xx.yy.zzzz" and "<< Go back to the previous page".
Code:
# NM Translations
if (isset($_GET['lang'])) {
if ($_GET['lang'] == 'en') {
$nm_i18n['READ_MORE'] = 'Read more';
} else {
$nm_i18n['READ_MORE'] = 'Číst dál';
}
}
if (isset($_GET['lang'])) {
if ($_GET['lang'] == 'en') {
$nm_i18n['PUBLISHED'] = 'Published on';
} else {
$nm_i18n['PUBLISHED'] = 'Publikováno';
}
}
if (isset($_GET['lang'])) {
if ($_GET['lang'] == 'en') {
$nm_i18n['GO_BACK'] = '<< Back to the previous page';
} else {
$nm_i18n['GO_BACK'] = '<< Zpět na výpis článků';
}
}
Tomáš Janeček - Multilingual personal website powered by GetSimple
» The little I did for GetSimple
» The little I did for GetSimple