Add possibility to change the language

This commit is contained in:
Yohann D'ANELLO
2020-11-27 20:53:24 +01:00
parent 2498fd2a61
commit 4287b4f045
5 changed files with 30 additions and 8 deletions

View File

@ -2,6 +2,7 @@
# SPDX-License-Identifier: GPL-3.0-or-later
import json
import locale
import os
from typing import Any, Generator
@ -35,6 +36,7 @@ class Settings:
self.KEY_ENTER = \
['\n', 'Touche pour valider un menu']
self.TEXTURE_PACK = ['ascii', 'Pack de textures utilisé']
self.LOCALE = [locale.getlocale()[0][:2], 'Langue']
def __getattribute__(self, item: str) -> Any:
superattribute = super().__getattribute__(item)