fix i18n and currency link to respect respectively currency and i18n current user choice
This commit is contained in:
parent
62ae758e22
commit
89d4cca797
3 changed files with 12 additions and 0 deletions
|
@ -10260,6 +10260,10 @@ janin.currency = {
|
|||
document.title = janin.currency.name() + " " + ninja.translator.get("title");
|
||||
document.getElementById("siteTitle").alt = janin.currency.name() + " " + ninja.translator.get("title");
|
||||
|
||||
// Update i18n link
|
||||
document.getElementById("cultureen").href = "?culture=en¤cy=" + janin.currency.name().toLowerCase();
|
||||
document.getElementById("culturefr").href = "?culture=fr¤cy=" + janin.currency.name().toLowerCase();
|
||||
|
||||
if(ninja.seeder.isDone())
|
||||
{
|
||||
// Regenerate a new wallet when not expensive
|
||||
|
@ -12334,6 +12338,8 @@ for(i = 0; i < janin.currencies.length; i++) {
|
|||
if(janin.currencies[i].donate == null)
|
||||
continue;
|
||||
currencieslist += "<a href='?currency="+janin.currencies[i].name;
|
||||
if (ninja.getQueryString()["culture"] != undefined)
|
||||
currencieslist += "&culture=" + ninja.getQueryString()["culture"];
|
||||
currencieslist += "'>"+janin.currencies[i].name+"</a> ";
|
||||
j++;
|
||||
}
|
||||
|
|
|
@ -43,6 +43,10 @@ janin.currency = {
|
|||
document.title = janin.currency.name() + " " + ninja.translator.get("title");
|
||||
document.getElementById("siteTitle").alt = janin.currency.name() + " " + ninja.translator.get("title");
|
||||
|
||||
// Update i18n link
|
||||
document.getElementById("cultureen").href = "?culture=en¤cy=" + janin.currency.name().toLowerCase();
|
||||
document.getElementById("culturefr").href = "?culture=fr¤cy=" + janin.currency.name().toLowerCase();
|
||||
|
||||
if(ninja.seeder.isDone())
|
||||
{
|
||||
// Regenerate a new wallet when not expensive
|
||||
|
|
|
@ -37,6 +37,8 @@ for(i = 0; i < janin.currencies.length; i++) {
|
|||
if(janin.currencies[i].donate == null)
|
||||
continue;
|
||||
currencieslist += "<a href='?currency="+janin.currencies[i].name;
|
||||
if (ninja.getQueryString()["culture"] != undefined)
|
||||
currencieslist += "&culture=" + ninja.getQueryString()["culture"];
|
||||
currencieslist += "'>"+janin.currencies[i].name+"</a> ";
|
||||
j++;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue