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

Translations update from Hosted Weblate #5366

Merged
merged 2 commits into from
Apr 4, 2024
Merged
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
16 changes: 8 additions & 8 deletions content/adventures/sl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ adventures:
story_text_2: "## Odstrani iz\nČe lahko objekte dodajate na seznam, jih lahko seveda tudi odstranite. To storite z ukazom `{remove} {from}`.\n"
example_code_2: "```\nživali {is} pes, mačka, kenguru\nnajman_ljuba {is} {ask} Katere živali ne marate najbolj?\n{remove} najman_ljuba {from} živali\n{print} Jaz izberem živali {at} {random}\n```\n"
story_text_3: "#### Vaja\nPreizkusite nove ukaze v tej virtualni restavraciji. Na seznam dodajte okus, katerega ima obiskovalec rad, in odstranite okuse, na katere je alergičen.\n"
example_code_3: "```\n{print} Mystery milkshake\nflavors {is} strawberry, chocolate, vanilla\nhope {is} {ask} What flavor are you hoping for?\n_\nallergies {is} {ask} Are you allergic to any flavors?\n_\n{print} You get a flavors {at} {random} milkshake\n```\n"
example_code_3: "```\n{print} Skrivnosten napitek\nokusi {is} jagoda, čokolada, vanilija\nupanje {is} {ask} Na kakšen okus upate?\n_\nalergije {is} {ask} Ali ste alergični na katere koli okuse?\n_\n{print} Dobiš napitek z okusom {at} {random} okusi\n```\n"
and_or_command:
name: '{and} & {or}'
default_save_name: in ali
Expand Down Expand Up @@ -98,21 +98,21 @@ adventures:
levels:
17:
story_text: "Blackjack je preprosta igra s kartami, pri kateri se morate čim bolj približati 21 točkam. Dobite dve karti. Vsaka karta je vredna toliko kot kaže njena številčna vrednost, karte slikami (fant, kraljica in kralj) pa so vredne 10 točk.\nAs je vreden 1 ali 11 točk (lahko izberete). Delilec, vaš nasprotnik, prav tako dobi dve karti.\nČe želite, lahko dobite še eno kartico in njene točke bodo dodane vašemu skupnemu seštevku. Delilec se tudi lahko odloči za drugo karto.\nVendar pazite, da ne dobite več kot 21 točk, ker če jih dobite, izgubite!\nIgralec, ki se najbolj približa 21, ne da bi ga presegel, zmaga!\nZabavajte se!\n\n### Vaja\nTa koda deluje dobro, vendar je zelo dolga in okorna. Ali jo lahko skrajšate z uporabo funkcij?\n"
example_code: "```\n{print} 'BLACKJACK'\ncards = [2, 3, 4, 5, 6, 7, 8, 9, 10, 'Jack', 'Queen','King', 'Ace']\npoints = 0\ndealer_points = 0\ncard_1 = cards[{random}]\ncard_2 = cards[{random}]\ncard_3 = cards [{random}]\ndealer_card_1 = cards[{random}]\ndealer_card_2 = cards[{random}]\ndealer_card_3 = cards[{random}]\n# Points for card 1\n{if} card_1 == 'Jack' {or} card_1 == 'Queen' {or} card_1 == 'King':\n points = points + 10\n{elif} card_1 == 'Ace':\n points = points + 11\n{else}:\n points = points + card_1\n# Points for card 2\n{if} card_2 == 'Jack' {or} card_2 == 'Queen' {or} card_2 == 'King':\n points = points + 10\n{elif} card_2 == 'Ace':\n points = points + 11\n{else}:\n points = points + card_2\n# Points for dealer card 1\n{if} dealer_card_1 == 'Jack' {or} dealer_card_1 == 'Queen' {or} dealer_card_1 == 'King':\n dealer_points = dealer_points + 10\n{elif} dealer_card_1 == 'Ace':\n dealer_points = dealer_points + 11\n{else}:\n dealer_points = dealer_points + dealer_card_1\n# Points for dealer card 2\n{if} dealer_card_2 == 'Jack' {or} dealer_card_2 == 'Queen' {or} dealer_card_2 == 'King':\n dealer_points = dealer_points + 10\n{elif} dealer_card_2 == 'Ace':\n dealer_points = dealer_points + 11\n{else}:\n dealer_points = dealer_points + dealer_card_2\n# Two Aces\n{if} card_1 == 'Ace' {and} card_2 == 'Ace':\n points = 12\n{if} dealer_card_1 == 'Ace' {and} dealer_card_2 == 'Ace':\n dealer_points = 12\n# Scoreboard\n{print} 'You have a ' card_1 ' and a ' card_2 ' (' points ' points)'\n{print} 'The dealer has a ' dealer_card_1 ' and a ' dealer_card_2 ' (' dealer_points ' points)'\n# Extra card for the player\nhit = {ask} 'Do you want an extra card?'\n{if} hit == 'yes':\n {if} card_3 == 'Jack' {or} card_3 == 'Queen' {or} card_3 == 'King':\n points = points + 10\n {elif} card_3 == 'Ace':\n {if} points > 11:\n points = points + 1\n {else}:\n points = points + 11\n {else}:\n points = points + card_3\n {print} 'You get an extra ' card_3 ' (' points ' points)'\n{else}:\n {print} 'No extra cards'\n# Winner\n{if} points > 21 {or} dealer_points > points {or} dealer_points == 21:\n {print} 'You lose'\n{elif} dealer_points < 17:\n {print} 'The dealer takes an extra card. It is a... ' dealer_card_3\n {if} dealer_card_3 == 'Jack' {or} dealer_card_3 == 'Queen' {or} dealer_card_3 == 'King':\n dealer_points = dealer_points + 10\n {elif} dealer_card_3 == 'Ace':\n {if} dealer_points < 11:\n dealer_points = dealer_points + 11\n {else}:\n dealer_points = dealer_points + 1\n {else}:\n dealer_points = dealer_points + dealer_card_3\n {print} 'The dealer has ' dealer_points ' points now'\n {if} dealer_points < 21 {and} dealer_points > points:\n {print} 'You lose'\n {else}:\n {print} 'You win'\n{elif} points > dealer_points {and} points < 21:\n {print} 'You win!'\n```\n"
example_code: "```\n{print} 'BLACKJACK'\nkarte = [2, 3, 4, 5, 6, 7, 8, 9, 10, 'Fant', 'Kraljica','Kralj', 'As']\ntočke = 0\ndelilečeve_točke = 0\nkarta_1 = karte[{random}]\nkarta_2 = karte[{random}]\nkarta_3 = karte [{random}]\ndelilčeva_karta_1 = karte[{random}]\ndelilčeva_karta_2 = karte[{random}]\ndelilčeva_karta_3 = karte[{random}]\n# Točke za karto 1\n{if} karta_1 == 'Fant' {or} karta_1 == 'Kraljica' {or} karta_1 == 'Kralj':\n točke = točke + 10\n{elif} karta_1 == 'As':\n točke = točke + 11\n{else}:\n točke = točke + karta_1\n# Točke za karto 2\n{if} karta_2 == 'Fant' {or} karta_2 == 'Kraljica' {or} karta_2 == 'Kralj':\n točke = točke + 10\n{elif} karta_2 == 'As':\n točke = točke + 11\n{else}:\n točke = točke + karta_2\n# Točke za delilčevo karto_1\n{if} delilčeva_karta_1 == 'Fant' {or} delilčeva_karta_1 == 'Kraljica' {or} delilčeva_karta_1 == 'Kralj':\n delilečeve_točke = delilečeve_točke + 10\n{elif} delilčeva_karta_1 == 'As':\n delilečeve_točke = delilečeve_točke + 11\n{else}:\n delilečeve_točke = delilečeve_točke + delilčeva_karta_1\n# Točke za delilčevo karto_2\n{if} delilčeva_karta_2 == 'Fant' {or} delilčeva_karta_2 == 'Kraljica' {or} delilčeva_karta_2 == 'Kralj':\n delilečeve_točke = delilečeve_točke + 10\n{elif} delilčeva_karta_2 == 'As':\n delilečeve_točke = delilečeve_točke + 11\n{else}:\n delilečeve_točke = delilečeve_točke + delilčeva_karta_2\n# Dva Asa\n{if} karta_1 == 'As' {and} karta_2 == 'As':\n točke = 12\n{if} delilčeva_karta_1 == 'As' {and} delilčeva_karta_2 == 'As':\n delilečeve_točke = 12\n# Točkovanje\n{print} 'Vi imate ' karta_1 ' and a ' karta_2 ' (' točke ' točke)'\n{print} 'Delilec ima ' delilčeva_karta_1 ' and a ' delilčeva_karta_2 ' (' delilečeve_točke ' točke)'\n# Dodatna karta za igralca\ndodaj = {ask} 'Ali želite še eno karto?'\n{if} dodaj == 'yes':\n {if} karta_3 == 'Fant' {or} karta_3 == 'Kraljica' {or} karta_3 == 'Kralj':\n točke = točke + 10\n {elif} karta_3 == 'As':\n {if} točke > 11:\n točke = točke + 1\n {else}:\n točke = točke + 11\n {else}:\n točke = točke + karta_3\n {print} 'Dobite dodatno karto ' karta_3 ' (' točke ' točke)'\n{else}:\n {print} 'Brez dodatne karte'\n# Zmagovalec\n{if} točke > 21 {or} delilečeve_točke > točke {or} delilečeve_točke == 21:\n {print} 'Izgubili ste'\n{elif} delilečeve_točke < 17:\n {print} 'Delilec izbere dodatno karto. Dobil je... ' delilčeva_karta_3\n {if} delilčeva_karta_3 == 'Fant' {or} delilčeva_karta_3 == 'Kraljica' {or} delilčeva_karta_3 == 'Kralj':\n delilečeve_točke = delilečeve_točke + 10\n {elif} delilčeva_karta_3 == 'As':\n {if} delilečeve_točke < 11:\n delilečeve_točke = delilečeve_točke + 11\n {else}:\n delilečeve_točke = delilečeve_točke + 1\n {else}:\n delilečeve_točke = delilečeve_točke + delilčeva_karta_3\n {print} 'Delilec ima sedaj ' delilečeve_točke ' točk'\n {if} delilečeve_točke < 21 {and} delilečeve_točke > točke:\n {print} 'Izgubili ste'\n {else}:\n {print} 'Zmagali ste!'\n{elif} točke > delilečeve_točke {and} točke < 21:\n {print} 'Zmagali ste!'\n```\n"
calculator:
name: Kalkulator
default_save_name: Kalkulator
description: Ustvarite kalkulator
levels:
6:
story_text: "Zdaj, ko znate računati, lahko sami naredite kalkulator!\n"
example_code: "```\nnumber_1 = {ask} 'Fill in the first number:'\nnumber_2 = {ask} 'Fill in the second number:'\ncorrect_answer = number_1 * number_2\n{print} number_1 ' times ' number_2 ' is ' correct_answer\n```\n"
story_text_2: "### Exercise\nThe calculator above will calculate the answer for you, but you can also make a program to test your own maths skills, like this:\nFill in the blanks to make it complete!\n"
example_code_2: "```\ncorrect_answer = 11 * 27\nanswer = {ask} 'How much is 11 times 27?'\n{if} answer {is} _ {print} 'good job!'\n{else} {print} 'Wrong! It was ' _\n```\n"
story_text_3: "**Extra** You can also let the computer do random products on its own using `{random}`.\n"
example_code_3: "```\nnumbers = 1, 2, 3, 4, 5, 6, 7, 8, 9, 10\nnumber_1 = _\nnumber_2 = _\ncorrect_answer = number_1 * number_2\ngiven_answer = {ask} 'What is ' number_1 ' times ' number_2 '?'\n{if} _\n{else} _\n```"
example_code: "```\nštevilka_1 = {ask} 'Vnesite prvo številko:'\nštevilka_2 = {ask} 'Vnesite drugo številko:'\npravilen_odgovor = številka_1 * številka_2\n{print} številka_1 ' krat ' številka_2 ' je ' pravilen_odgovor\n```\n"
story_text_2: "### Vaja\nZgornji kalkulator bo namesto vas izračunal odgovor, lahko pa naredite tudi program za preverjanje lastnih matematičnih sposobnosti, kot je ta:\nIzpolnite prazna polja, da bo dokončana!\n"
example_code_2: "```\npravilen_odgovor = 11 * 27\nodgovor = {ask} 'Koliko je 11 krat 27?'\n{if} answer {is} _ {print} 'Dobro opravljeno!'\n{else} {print} 'Narobe, odgovor je ' _\n```\n"
story_text_3: "**Dodatno** Računalniku lahko tudi dovolite, da sam naredi naključne izdelke z uporabo `{random}`.\n"
example_code_3: "```\nštevilke = 1, 2, 3, 4, 5, 6, 7, 8, 9, 10\nštevilka_1 = _\nštevilka_2 = _\npravilen_odgovor = številka_1 * številka_2\npodan_odgovor = {ask} 'Koliko je ' številka_1' krat ' številka_2'?'\n{if} _\n{else} _\n```"
9:
story_text: "In a previous level you've created a calculator, in this level you can expand that code so it asks multiple questions.\n\n### Exercise 1\nCan you finish line 10 to get the code to work?\n\n### Exercise 2\nGive the player feedback when they enter an answer, like `{print} 'Correct!'` or `{print} 'Wrong! The correct answer is ' correct_answer`.\n"
story_text: "Na prejšnji stopnji ste ustvarili kalkulator, na tej stopnji pa lahko to kodo razširite, tako da postavlja več vprašanj.\n\n### Vaja 1\nAli lahko končate vrstico 10, da bo koda delovala?\n\n### Vaja 2\nPosredujte igralcu povratne informacije, ko vnese odgovor, na primer `{print} 'Pravilno!'` ali pa `{print} 'Napačno! Pravilen odgovor je ' pravilen_odgovor`.\n"
example_code: "```\nscore = 0\n{repeat} 10 {times}\n numbers = 1, 2, 3, 4, 5, 6, 7, 8, 9, 10\n number_1 = numbers {at} {random}\n number_2 = numbers {at} {random}\n correct_answer = number_1 * number_2\n {print} 'What is ' number_1 ' times ' number_2 '?'\n answer = {ask} 'Type your answer here...'\n {print} 'Your answer is ' answer\n {if} _ {is} _\n score = score + 1\n{print} 'Great job! Your score is... ' score ' out of 10!'\n```\n"
10:
story_text: "This calculator game helps you practise your tables of multiplication!\n### Exercise\nFill in the blanks. We want this program to ask the player these questions:\n```\nHow much is 1 times 1?\nHow much is 1 times 2?\nHow much is 1 times 3?\nHow much is 2 times 1?\nHow much is 2 times 2?\nHow much is 2 times 3?\nHow much is 3 times 1?\nHow much is 3 times 2?\nHow much is 3 times 3?\n_\n```\n"
Expand Down
Loading