Merge pull request #956 from DavidKopal/main

Czech language update and added new cs_expanded.js mod for stuff like Replace, Pause etc
This commit is contained in:
slweeb 2025-01-24 11:04:27 -05:00 committed by GitHub
commit 588b39bf5e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 40 additions and 5 deletions

View File

@ -23,7 +23,7 @@
"shock":"Šok",
"paint":"Malovat",
"sand":"Písek",
"water":"Voda",
"water":"Voda",
"salt_water":"Slaná_Voda",
"sugar_water":"Sladká_Voda",
"seltzer":"Minerální_Voda",
@ -305,7 +305,7 @@
"crumb":"Drobek",
"baked_batter":"Dort",
"wheat":"Pšenice",
"candy":"Sladkosti",
"candy":"Sladkost",
"coffee_bean":"Kávové_Zrna",
"coffee_ground":"Mletá_Káva",
"nut":"Ořech",
@ -444,7 +444,7 @@
"supernova":"Supernova",
"cook":"Vařit",
"incinerate":"Spálit",
"room_temp":"Teplota_Pokoje",
"room_temp":"Pokojová_Teplota",
"positron":"Pozitron",
"tnt":"TNT",
"c4":"C-4",
@ -541,7 +541,11 @@
"tornado":"Tornádo",
"earthquake":"Zemětřesení",
"tsunami":"Tsunami",
"blaster":"Blaster",
"blaster":"Lazerová_Pistole",
"propane_ice":"Zrmzlý_Propan",
"molten_caustic_potash":"Rozteklý_Potaš"
"molten_caustic_potash":"Rozteklý_Potaš",
"spider": "Pavouk",
"web": "Pavučina",
"rice": "Rýže",
"midas_touch": "Midasův_Dotek"
}

31
mods/cs_expanded.js Normal file
View File

@ -0,0 +1,31 @@
// Made by Kopalecek (also known as davistudios or sylas)
/*
If you would want to use this to make stuff like de_expanded.js, just put "Based off cs_expanded" in a comment at the top. And remove the previous comments in general.
Ryan, if you see this, it would be great if you add ids for stuff like controls, the "Sandboxels Introduction" or menu items in like settings or mods.
*/
const reqCode = 'cs' // Change this to the lang code you want.
const menu = { // Just change the values in this.
pauseButton: 'Pauza',
resetButton: 'Reset',
replaceButton: 'Nahradit',
elemSelectButton: 'VE',
tpsButton: 'TZS',
infoButton: 'Info',
savesButton: 'Uložené',
modsButton: 'Módy',
settingsButton: 'Nastavení',
changelogButton: 'Změny',
}
if (langCode == reqCode) {
Object.keys(menu).forEach(key => {
document.getElementById(key).textContent = menu[key]
})
}