Изменен путь к директории po

This commit is contained in:
Derinhelm
2021-06-07 16:36:01 +03:00
parent fbd033e6ef
commit bb8e1365bb
4 changed files with 9 additions and 5 deletions

View File

@@ -1,9 +1,10 @@
import gettext
import os
import tkinter as tk
from user import User
import message
gettext.install("todo", localedir="po")
gettext.install("todo", os.path.join(os.path.dirname(__file__), "po"))
class LoginFrame(tk.Frame):

View File

@@ -1,7 +1,8 @@
from tkinter import messagebox as mb
import gettext
import os
from tkinter import messagebox as mb
gettext.install("todo", localedir="po")
gettext.install("todo", os.path.join(os.path.dirname(__file__), "po"))
TITLE_INFO_BOX = _("Сообщение!")
MESSAGE_INVALID_LOGIN = _("Неправильный логин или пароль")

View File

@@ -1,13 +1,14 @@
#!/usr/bin/env python3
import gettext
import os
import sys
import tkinter as tk
from login import LoginFrame
from workspace import WorkSpaceFrame
from user import User
gettext.install("todo", localedir="po")
gettext.install("todo", os.path.join(os.path.dirname(__file__), "po"))
if "win" in sys.platform.lower():
DEFAULT_URL = "http://localhost:8000"

View File

@@ -1,7 +1,8 @@
import gettext
import os
import tkinter as tk
gettext.install("todo", localedir="po")
gettext.install("todo", os.path.join(os.path.dirname(__file__), "po"))
def str_time(time):