Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added missing/disconnected translations #559

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 18 additions & 18 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@
</div>
</div>

<button id="exitOffline" class="subtabContent" style="visibility: hidden">That's cool. Take me to the game!</button>
<button id="exitOffline" class="subtabContent" style="visibility: hidden" i18n="offlineProgress.exit"></button>

</div>
<header>
Expand Down Expand Up @@ -694,7 +694,7 @@
<td><img class="cubeUpgrade19" src="Pictures/Default/Coin25.png" id="upg125" alt="upg125" loading="lazy"></td>
</tr>
</table>
<button class="autobuyerToggleButton upgradeToggle" id="coinAutoUpgrade" style="border:2px solid green">Auto: ON</button>
<button class="autobuyerToggleButton upgradeToggle" id="coinAutoUpgrade" style="border:2px solid green" i18n="general.autoOnColon"></button>
</div>
<div>
<img id="upgrades2" alt="Diamond" class="prestigeunlock" src="Pictures/Default/Diamond.png" loading="lazy">
Expand Down Expand Up @@ -730,7 +730,7 @@
</tr>

</table>
<button class="autobuyerToggleButton upgradeToggle" id="prestigeAutoUpgrade" style="border:2px solid green">Auto: ON</button>
<button class="autobuyerToggleButton upgradeToggle" id="prestigeAutoUpgrade" style="border:2px solid green" i18n="general.autoOnColon"></button>
</div>
<div>
<img id="upgrades3" alt="Mythos" class="transcendunlock" src="Pictures/Default/Mythos.png" loading="lazy">
Expand Down Expand Up @@ -765,7 +765,7 @@
<td><img class="reincarnationunlock" src="Pictures/Default/Mythos20.png" id="upg60" alt="upg60" loading="lazy"></td>
</tr>
</table>
<button class="autobuyerToggleButton upgradeToggle" id="transcendAutoUpgrade" style="border:2px solid green">Auto: ON</button>
<button class="autobuyerToggleButton upgradeToggle" id="transcendAutoUpgrade" style="border:2px solid green" i18n="general.autoOnColon"></button>
</div>
<div>
<img id="upgrades4" alt="Generators" class="prestigeunlock" src="Pictures/Default/Generators.png" loading="lazy">
Expand Down Expand Up @@ -800,7 +800,7 @@
<td><img id="upg120" alt="upg120" class="transcendunlock" src="Pictures/Default/Generator20.png" loading="lazy"></td>
</tr>
</table>
<button class="autobuyerToggleButton upgradeToggle" id="generatorsAutoUpgrade" style="border:2px solid green">Auto: ON</button>
<button class="autobuyerToggleButton upgradeToggle" id="generatorsAutoUpgrade" style="border:2px solid green" i18n="general.autoOnColon"></button>
</div>
<div>
<img id="upgrades5" alt="Automation" class="prestigeunlock" src="Pictures/Default/Automation.png" loading="lazy">
Expand Down Expand Up @@ -869,7 +869,7 @@
<td><img class="reinrow4" src="Pictures/Default/Particle20.png" id="upg80" alt="upg80" loading="lazy"></td>
</tr>
</table>
<button class="autobuyerToggleButton upgradeToggle" id="reincarnateAutoUpgrade" style="border: 2px solid green">Auto: ON</button>
<button class="autobuyerToggleButton upgradeToggle" id="reincarnateAutoUpgrade" style="border: 2px solid green" i18n="general.autoOnColon"></button>
</div>
</div>

Expand Down Expand Up @@ -2882,27 +2882,27 @@
<div class="confirmationToggles">
<div class="confirmationToggle">
<img class="prestigeunlock settingpic" id="settingpic1" alt="settingpic1" src="Pictures/Default/PrestigeNoBorder.png" loading="lazy">
<button class="auto square" id="toggle28" toggleid="28" format="$" style="border:2px solid green">ON</button>
<button class="auto square" id="toggle28" toggleid="28" format="$" style="border:2px solid green" i18n="general.on"></button>
</div>
<div class="confirmationToggle">
<img class="transcendunlock settingpic" id="settingpic2" alt="settingpic2" src="Pictures/Default/TranscendNoBorder.png" loading="lazy">
<button class="auto square" id="toggle29" toggleid="29" format="$" style="border:2px solid green">ON</button>
<button class="auto square" id="toggle29" toggleid="29" format="$" style="border:2px solid green" i18n="general.on"></button>
</div>
<div class="confirmationToggle">
<img class="reincarnationunlock settingpic" id="settingpic3" alt="settingpic3" src="Pictures/Default/ReincarnateNoBorder.png" loading="lazy">
<button class="auto square" id="toggle30" toggleid="30" format="$" style="border:2px solid green">ON</button>
<button class="auto square" id="toggle30" toggleid="30" format="$" style="border:2px solid green" i18n="general.on"></button>
</div>
<div class="confirmationToggle">
<img class="ascendunlock settingpic" id="settingpic4" alt="settingpic4" src="Pictures/Default/AscensionNoBorder.png" loading="lazy">
<button class="auto square" id="toggle31" toggleid="31" format="$" style="border:2px solid green">ON</button>
<button class="auto square" id="toggle31" toggleid="31" format="$" style="border:2px solid green" i18n="general.on"></button>
</div>
<div class="confirmationToggle">
<img class="sacrificeAnts settingpic" id="settingpic5" alt="settingpic5" src="Pictures/Default/SacrificeNoBorder.png" loading="lazy">
<button class="auto square" id="toggle32" toggleid="32" format="$" style="border:2px solid green">ON</button>
<button class="auto square" id="toggle32" toggleid="32" format="$" style="border:2px solid green" i18n="general.on"></button>
</div>
<div class="confirmationToggle">
<img class="singularity settingpic" id="settingpic6" alt="settingpic6" src="Pictures/Default/SingularityNoBorder.png" loading="lazy">
<button class="auto square" id="toggle33" toggleid="33" format="$" style="border:2px solid green">ON</button>
<button class="auto square" id="toggle33" toggleid="33" format="$" style="border:2px solid green" i18n="general.on"></button>
</div>
</div>
<p class="prestigeunlock" id="confirmationdisclaimer" style="color: plum" i18n="settings.noHotkeyAvailable"></p>
Expand Down Expand Up @@ -3483,20 +3483,20 @@ <h1>Artists</h1>
<span id="sAGenMT" class="statNumber statTotal">0</span></p>
</div>

<button id="summaryGeneration" style="border: 2px solid grey; height: 20px; width: 250px;">Generate Savefile Stats Summary</button>
<button id="summaryGeneration" style="border: 2px solid grey; height: 20px; width: 250px;" i18n="general.generateSummary"></button>
</div>
<div class="subtabContent subtabDisplayFlex historySubTab" id="resetHistorySubTab">
<div class="scrollbarX">
<div id="historyReset">
<p>Here's what you got from your last resets (except challenges):</p>
<p i18n="history.resetGains"></p>
<div class="historyTableWrap">
<table id="historyResetTable">
<tbody></tbody>
</table>
</div>
</div>
<div id="historyAnts" class="sacrificeAnts">
<p>Your sacrifices got you the following:</p>
<p i18n="history.antGains"></p>
<div class="historyTableWrap">
<table id="historyAntsTable">
<tbody></tbody>
Expand All @@ -3509,8 +3509,8 @@ <h1>Artists</h1>
<div class="scrollbarX">
<div id="historyAscend">
<div>
<p style="float: left">Your last ascensions got you the following:</p>
<button class="onOffToggle" id="historyTogglePerSecondButton">Per second: OFF</button>
<p style="float: left" i18n="history.ascensionGains"></p>
<button class="onOffToggle" id="historyTogglePerSecondButton" i18n="history.perSecondOff"></button>
</div>
<div class="historyTableWrap" style="clear: both">
<table id="historyAscendTable">
Expand All @@ -3524,7 +3524,7 @@ <h1>Artists</h1>
<div class="scrollbarX">
<div id="historySingularity">
<div>
<p style="float: left">Your last singularities got you the following:</p>
<p style="float: left" i18n="history.singularityGains"></p>
</div>
<div class="historyTableWrap" style="clear: both">
<table id="historySingularityTable">
Expand Down
2 changes: 1 addition & 1 deletion src/Hepteracts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ export const hepteractDescriptions = (type: hepteractTypes) => {
const craftCostMulti = calculateSingularityDebuff('Hepteract Costs')

const multiplier = player.hepteractCrafts[type].computeActualCap() / player.hepteractCrafts[type].CAP
bonusCapacityText.textContent = (player.hepteractCrafts[type].computeActualCap() / player.hepteractCrafts[type].CAP > 1) ? `Hepteract capacities are currently multiplied by ${multiplier}. Expansions cost what they would if this multiplier were 1.` : ''
bonusCapacityText.textContent = (multiplier > 1) ? i18next.t('wowCubes.hepteractForge.bonusCapacity', { multiplier }) : ''
let currentEffectRecord!: StringMap
let oneCost!: string | Record<string, string>

Expand Down
6 changes: 3 additions & 3 deletions src/Octeracts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,10 @@ export class OcteractUpgrade extends DynamicUpgrade {

return `<span style="color: gold">${this.name}</span>
<span style="color: lightblue">${this.description}</span>
<span style="color: ${color}"> ${i18next.t('general.level')} ${format(this.level, 0, true)}${maxLevel}${freeLevelInfo}</span>
<span style="color: ${color}">${i18next.t('general.level')} ${format(this.level, 0, true)}${maxLevel}${freeLevelInfo}</span>
<span style="color: gold">${this.getEffect().desc}</span>
${i18next.t('octeract.toString.costNextLevel')} ${format(costNextLevel, 2, true, true, true)} Octeracts${affordableInfo}
${i18next.t('general.spent')} Octeracts: ${format(this.octeractsInvested, 2, true, true, true)}`
${i18next.t('octeract.toString.costNextLevel', { n: format(costNextLevel, 2, true, true, true) })} ${affordableInfo}
${i18next.t('octeract.toString.spent', { n: format(this.octeractsInvested, 2, true, true, true) })}`
}

public updateUpgradeHTML(): void {
Expand Down
2 changes: 1 addition & 1 deletion src/Synergism.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1934,7 +1934,7 @@ const loadSynergy = async () => {
toggleAutoAscend(1)
}

DOMCacheGetOrSet('historyTogglePerSecondButton').textContent = 'Per second: ' + (player.historyShowPerSecond ? 'ON' : 'OFF')
DOMCacheGetOrSet('historyTogglePerSecondButton').textContent = i18next.t('history.perSecond' + (player.historyShowPerSecond ? 'On' : 'Off'))
DOMCacheGetOrSet('historyTogglePerSecondButton').style.borderColor = (player.historyShowPerSecond ? 'green' : 'red')

//If auto research is enabled and runing; Make sure there is something to try to research if possible
Expand Down
4 changes: 2 additions & 2 deletions src/Toggles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -419,13 +419,13 @@ export const toggleSaveOff = () => {
player.autoSacrificeToggle = true
el.textContent = i18next.t('toggles.saveOfferingsOff')
el.style.color = 'white'
et.textContent = 'Auto Runes: ON'
et.textContent = i18next.t('runes.blessings.autoRuneOn')
et.style.border = '2px solid green'
} else {
player.autoSacrificeToggle = false
el.textContent = i18next.t('toggles.saveOfferingsOn')
el.style.color = 'yellow'
et.textContent = 'Auto Runes: OFF'
et.textContent = i18next.t('runes.blessings.autoRuneOff')
et.style.border = '2px solid red'
}

Expand Down
2 changes: 1 addition & 1 deletion src/UpdateVisuals.ts
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,7 @@ export const visualUpdateCubes = () => {
break
}
case 4:
DOMCacheGetOrSet('cubeAmount2').textContent = `You have ${format(player.wowCubes, 0, true)} Wow! Cubes =)`
DOMCacheGetOrSet('cubeAmount2').textContent = i18next.t('cubes.total', { amount: format(player.wowCubes, 0, true) })
break
case 5:
break
Expand Down
20 changes: 14 additions & 6 deletions src/Upgrades.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,26 +159,34 @@ export const upgradedescriptions = (i: number) => {
clickUpgrades(i, false)
}

let currency = ''
let costCurrency = ''
let costProp = ''
let color = ''
if ((i <= 20 && i >= 1) || (i <= 110 && i >= 106) || (i <= 125 && i >= 121)) {
currency = 'Coins'
costCurrency = 'costCoins'
costProp = 'coins'
color = 'yellow'
}
if ((i <= 40 && i >= 21) || (i <= 105 && i >= 101) || (i <= 115 && i >= 111) || (i <= 87 && i >= 81)) {
currency = 'Diamonds'
costCurrency = 'costDiamonds'
costProp = 'diamonds'
color = 'cyan'
}
if ((i <= 60 && i >= 41) || (i <= 120 && i >= 116) || (i <= 93 && i >= 88)) {
currency = 'Mythos'
costCurrency = 'costMythos'
costProp = 'mythos'
color = 'plum'
}
if ((i <= 80 && i >= 61) || (i <= 100 && i >= 94)) {
currency = 'Particles'
costCurrency = 'costParticles'
costProp = 'particles'
color = 'limegreen'
}

DOMCacheGetOrSet('upgradecost').textContent = 'Cost: ' + format(Decimal.pow(10, G.upgradeCosts[i])) + ' ' + currency
const costParams: Record<string, string> = {}
costParams[costProp] = format(Decimal.pow(10, G.upgradeCosts[i]))

DOMCacheGetOrSet('upgradecost').textContent = i18next.t(`buildings.${costCurrency}`, costParams)
DOMCacheGetOrSet('upgradecost').style.color = color
upgradeeffects(i)
}
Expand Down
6 changes: 3 additions & 3 deletions src/singularity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,10 @@ export class SingularityUpgrade extends DynamicUpgrade {
return `<span style="color: gold">${this.name}</span>
<span style="color: lightblue">${this.description}</span>
<span style="color: ${minReqColor}">${minimumSingularity}</span>
<span style="color: ${color}"> ${i18next.t('general.level')} ${format(this.level, 0, true)}${maxLevel}${freeLevelInfo}</span>
<span style="color: ${color}">${i18next.t('general.level')} ${format(this.level, 0, true)}${maxLevel}${freeLevelInfo}</span>
<span style="color: gold">${this.getEffect().desc}</span>
${i18next.t('singularity.toString.costNextLevel')}: ${format(costNextLevel, 0, true)} Golden Quarks.
${i18next.t('general.spent')} Quarks: ${format(this.goldenQuarksInvested, 0, true)}`
${i18next.t('singularity.toString.costNextLevel', { n: format(costNextLevel, 0, true) })}
${i18next.t('singularity.toString.spent', { n: format(this.goldenQuarksInvested, 0, true) })}`
}

public updateUpgradeHTML(): void {
Expand Down
20 changes: 15 additions & 5 deletions translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -1110,6 +1110,7 @@
},
"noCubesOpened": "OK. No cubes opened.",
"howManyCubesOpen": "How many cubes would you like to open? You have {{x}}! \nYou can input a percentage of cubes to open, for example: \"50%\" or \"100%\". \nYou can start the input with \"-\" (put in a negative value) to put in a value, that will be saved, which means you open all cubes except the specified number (also works with %).",
"total": "You have {{amount}} Wow! Cubes =)",
"validation": {
"notEnough": "You don't have enough cubes to open!",
"negative": "You can't open a negative amount of cubes.",
Expand Down Expand Up @@ -1628,7 +1629,8 @@
},
"toString": {
"noMinimum": "No minimal Singularity to purchase required",
"costNextLevel": "Cost for next level"
"costNextLevel": "Cost for next level: {{n}} Golden Quarks.",
"spent": "Quarks spent: {{n}}"
},
"data": {
"goldenQuarks1": {
Expand Down Expand Up @@ -2106,7 +2108,8 @@
"v297hotfix1Sing": "You have loaded into the version 2.9.7 hotfix 1! Your uncapped resource singularity upgrades have been refunded! Sorry for the inconvenience."
},
"languageChange": "Changing the language requires a reload! Would you like to reload now?",
"exportYourGame": "You haven't exported your game in a while, you better export it soon or you could lose it!"
"exportYourGame": "You haven't exported your game in a while, you better export it soon or you could lose it!",
"generateSummary": "Generate Savefile Stats Summary"
},
"upgrades": {
"descriptions": {
Expand Down Expand Up @@ -2443,7 +2446,8 @@
"ingameAntSacTimer": "In-Game Ant Sacrifice Timer: +<<var(--red-text-color);|{{value}}>> seconds",
"realAntSacTimer": "Real-Life Ant Sacrifice Timer: +<<var(--red-text-color);|{{value}}>> seconds",
"currentAscensionTimer": "Current Ascension Timer: +<<gold|{{value}}>> seconds",
"exportQuarks": "Export Quarks: +<<goldenrod|{{value}}>>"
"exportQuarks": "Export Quarks: +<<goldenrod|{{value}}>>",
"exit": "That's cool. Take me to the game!"
},
"corruptions": {
"names": {
Expand Down Expand Up @@ -2668,7 +2672,8 @@
"multiBuy": "Purchased {{n}} levels, thanks to Multi Buy!"
},
"toString": {
"costNextLevel": "Cost for next level",
"costNextLevel": "Cost for next level: {{n}} Octeracts",
"spent": "Spent Octeracts: {{n}}",
"becomeAffordable": "(Affordable in {{n}})"
},
"data": {
Expand Down Expand Up @@ -3222,6 +3227,7 @@
"effect": "Effect:",
"powder": "Powder:",
"warps": "Warps:",
"bonusCapacity": "Hepteract capacities are currently multiplied by {{multiplier}}. Expansions cost what they would if this multiplier were 1.",
"descriptions": {
"chronos": {
"effect": "This hepteract bends time, in your favor. +0.06% Ascension Speed per Chronos Hepteract.",
Expand Down Expand Up @@ -3429,7 +3435,11 @@
},
"history": {
"perSecondOn": "Per second: ON",
"perSecondOff": "Per second: OFF"
"perSecondOff": "Per second: OFF",
"resetGains": "Here's what you got from your last resets (except challenges):",
"antGains": "Your sacrifices got you the following:",
"ascensionGains": "Your last ascensions got you the following:",
"singularityGains": "Your last singularities got you the following:"
},
"event": {
"aprilFools": {
Expand Down
Loading