Yakonche / rollercoin-profit-calculator

Calculator that allows you to determine which cryptocurrency is the most profitable to "mine" on the rollercoin.com website
https://rollercoin.com/?r=k2tlquen
MIT License
3 stars 0 forks source link

Added different translations #1

Closed Yakonche closed 3 years ago

Yakonche commented 3 years ago

Addition of the possibility of choosing between several languages, associated with different currencies (just modify the end of the url of the Coingecko API for this). The software will have to ask in 1st which language the user wishes. Here's an example piece of code that should help you imagine what the list should look like :

langs = [
    {"name": "English (USD) - $"},
    {"name": "English (GBP) - £"},
    {"name": "Français (EUR) - €"}
]
print()
    for number, lang in enumerate(langs):
        print(
            "\t {}: {}".format(number + 1, lang['name'])
        )
    lang = input("\n Please choose language / currency (default is 1) : ") or "1"

Well, it's obviously wrong, but that gives you a little idea of what it should look like. Here is a screenshot from kf2-magicked-admin, it should look like something like this : https://i.imgur.com/udyFvJe.png

@th3-z