Изменен путь к директории po
This commit is contained in:
@@ -1,9 +1,10 @@
|
|||||||
import gettext
|
import gettext
|
||||||
|
import os
|
||||||
import tkinter as tk
|
import tkinter as tk
|
||||||
from user import User
|
from user import User
|
||||||
import message
|
import message
|
||||||
|
|
||||||
gettext.install("todo", localedir="po")
|
gettext.install("todo", os.path.join(os.path.dirname(__file__), "po"))
|
||||||
|
|
||||||
|
|
||||||
class LoginFrame(tk.Frame):
|
class LoginFrame(tk.Frame):
|
||||||
|
|||||||
@@ -1,7 +1,8 @@
|
|||||||
from tkinter import messagebox as mb
|
|
||||||
import gettext
|
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 = _("Сообщение!")
|
TITLE_INFO_BOX = _("Сообщение!")
|
||||||
MESSAGE_INVALID_LOGIN = _("Неправильный логин или пароль")
|
MESSAGE_INVALID_LOGIN = _("Неправильный логин или пароль")
|
||||||
|
|||||||
@@ -1,13 +1,14 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
import gettext
|
import gettext
|
||||||
|
import os
|
||||||
import sys
|
import sys
|
||||||
import tkinter as tk
|
import tkinter as tk
|
||||||
from login import LoginFrame
|
from login import LoginFrame
|
||||||
from workspace import WorkSpaceFrame
|
from workspace import WorkSpaceFrame
|
||||||
from user import User
|
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():
|
if "win" in sys.platform.lower():
|
||||||
DEFAULT_URL = "http://localhost:8000"
|
DEFAULT_URL = "http://localhost:8000"
|
||||||
|
|||||||
@@ -1,7 +1,8 @@
|
|||||||
import gettext
|
import gettext
|
||||||
|
import os
|
||||||
import tkinter as tk
|
import tkinter as tk
|
||||||
|
|
||||||
gettext.install("todo", localedir="po")
|
gettext.install("todo", os.path.join(os.path.dirname(__file__), "po"))
|
||||||
|
|
||||||
|
|
||||||
def str_time(time):
|
def str_time(time):
|
||||||
|
|||||||
Reference in New Issue
Block a user