Add possibility to change the language
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user