Merge pull request #27 from AlekseyLobanov/fix
Исправлен баг потери локализации
This commit was merged in pull request #27.
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -48,7 +48,6 @@ coverage.xml
|
|||||||
# Translations
|
# Translations
|
||||||
*.mo
|
*.mo
|
||||||
*.pot
|
*.pot
|
||||||
*.po
|
|
||||||
|
|
||||||
# Django stuff:
|
# Django stuff:
|
||||||
*.log
|
*.log
|
||||||
|
|||||||
@@ -34,12 +34,12 @@
|
|||||||
### Frontend
|
### Frontend
|
||||||
Интерфейс на русском языке
|
Интерфейс на русском языке
|
||||||
```bash
|
```bash
|
||||||
python3 todo_tk.py
|
python3 -m frontend
|
||||||
```
|
```
|
||||||
|
|
||||||
Интерфейс на английском языке
|
Интерфейс на английском языке
|
||||||
```bash
|
```bash
|
||||||
LANG=eng python3 todo_tk.py
|
LANG=eng python3 -m frontend
|
||||||
```
|
```
|
||||||
|
|
||||||
### backend
|
### backend
|
||||||
|
|||||||
35
dodo.py
35
dodo.py
@@ -1,36 +1,19 @@
|
|||||||
#!usr/bin/env python3
|
#!usr/bin/env python3
|
||||||
'''
|
"""
|
||||||
'''
|
"""
|
||||||
|
|
||||||
import glob
|
|
||||||
|
|
||||||
def task_pot():
|
|
||||||
"""Create bynary wheel distribution"""
|
|
||||||
return {
|
|
||||||
'actions': ["""pybabel extract -o todo.pot frontend"""],
|
|
||||||
'file_dep': glob.glob('frontend/*.py'),
|
|
||||||
'targets': ['todo.pot']
|
|
||||||
}
|
|
||||||
|
|
||||||
def task_po():
|
|
||||||
"""Create bynary wheel distribution"""
|
|
||||||
return {
|
|
||||||
'actions': ["""pybabel update -D todo -d frontend/po -i todo.pot"""],
|
|
||||||
'file_dep': ['todo.pot'],
|
|
||||||
'targets': ['frontend/po/eng/LC_MESSAGES/todo.po']
|
|
||||||
}
|
|
||||||
|
|
||||||
def task_mo():
|
def task_mo():
|
||||||
"""Create bynary wheel distribution"""
|
"""Create bynary wheel distribution"""
|
||||||
return {
|
return {
|
||||||
'actions': ["""pybabel compile -D todo -i frontend/po/eng/LC_MESSAGES/todo.po -o frontend/po/eng/LC_MESSAGES/todo.mo"""],
|
"actions": [
|
||||||
'file_dep': ['frontend/po/eng/LC_MESSAGES/todo.po'],
|
"""pybabel compile -D todo -i frontend/po/eng/LC_MESSAGES/todo.po -o frontend/po/eng/LC_MESSAGES/todo.mo"""
|
||||||
'targets': ['frontend/po/eng/LC_MESSAGES/todo.mo']
|
],
|
||||||
|
"file_dep": ["frontend/po/eng/LC_MESSAGES/todo.po"],
|
||||||
|
"targets": ["frontend/po/eng/LC_MESSAGES/todo.mo"],
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
def task_wheel():
|
def task_wheel():
|
||||||
"""Create bynary wheel distribution"""
|
"""Create bynary wheel distribution"""
|
||||||
return {
|
return {"actions": ["python3 -m build -w"], "task_dep": ["mo"]}
|
||||||
'actions': ['python3 -m build -w'],
|
|
||||||
'task_dep': ['mo']
|
|
||||||
}
|
|
||||||
|
|||||||
83
frontend/po/eng/LC_MESSAGES/todo.po
Normal file
83
frontend/po/eng/LC_MESSAGES/todo.po
Normal file
@@ -0,0 +1,83 @@
|
|||||||
|
# English (United States) translations for PROJECT.
|
||||||
|
# Copyright (C) 2021 ORGANIZATION
|
||||||
|
# This file is distributed under the same license as the PROJECT project.
|
||||||
|
# FIRST AUTHOR <EMAIL@ADDRESS>, 2021.
|
||||||
|
#
|
||||||
|
msgid ""
|
||||||
|
msgstr ""
|
||||||
|
"Project-Id-Version: PROJECT VERSION\n"
|
||||||
|
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
|
||||||
|
"POT-Creation-Date: 2021-06-06 23:42+0300\n"
|
||||||
|
"PO-Revision-Date: 2021-06-07 00:24+0300\n"
|
||||||
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||||
|
"Language: en_US\n"
|
||||||
|
"Language-Team: en_US <LL@li.org>\n"
|
||||||
|
"Plural-Forms: nplurals=2; plural=(n != 1)\n"
|
||||||
|
"MIME-Version: 1.0\n"
|
||||||
|
"Content-Type: text/plain; charset=utf-8\n"
|
||||||
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
|
"Generated-By: Babel 2.8.1\n"
|
||||||
|
|
||||||
|
#: todo_tk.py:20
|
||||||
|
msgid "Приложение для планирования"
|
||||||
|
msgstr "ToDo Application"
|
||||||
|
|
||||||
|
#: message.py:6
|
||||||
|
msgid "Сообщение!"
|
||||||
|
msgstr "Message!"
|
||||||
|
|
||||||
|
#: message.py:7
|
||||||
|
msgid "Неправильный логин или пароль"
|
||||||
|
msgstr "Wrong login or password"
|
||||||
|
|
||||||
|
#: message.py:8
|
||||||
|
msgid "Сдесь могло быть ваше сообщение"
|
||||||
|
msgstr "This could have been your message"
|
||||||
|
|
||||||
|
#: login.py:63
|
||||||
|
msgid "Введите логин"
|
||||||
|
msgstr "Enter your username"
|
||||||
|
|
||||||
|
#: login.py:71
|
||||||
|
msgid "Введите пароль"
|
||||||
|
msgstr "Enter your password"
|
||||||
|
|
||||||
|
#: login.py:78
|
||||||
|
msgid "Войти"
|
||||||
|
msgstr "Enter"
|
||||||
|
|
||||||
|
#: workspace.py:17
|
||||||
|
msgid "Не реализовано"
|
||||||
|
msgstr "Not implemented"
|
||||||
|
|
||||||
|
#: workspace.py:25
|
||||||
|
msgid "Текст"
|
||||||
|
msgstr "Text"
|
||||||
|
|
||||||
|
#: workspace.py:28
|
||||||
|
msgid "Выполнено"
|
||||||
|
msgstr "Done"
|
||||||
|
|
||||||
|
#: workspace.py:31
|
||||||
|
msgid "Создано"
|
||||||
|
msgstr "Created"
|
||||||
|
|
||||||
|
#: workspace.py:60
|
||||||
|
msgid "Удалить"
|
||||||
|
msgstr "Delete"
|
||||||
|
|
||||||
|
#: workspace.py:88
|
||||||
|
msgid "Добавить заметку"
|
||||||
|
msgstr "Add note"
|
||||||
|
|
||||||
|
#: workspace.py:91
|
||||||
|
msgid "Удалить лист"
|
||||||
|
msgstr "Delete list"
|
||||||
|
|
||||||
|
#: workspace.py:149
|
||||||
|
msgid "Запомнить меня"
|
||||||
|
msgstr "Remember me"
|
||||||
|
|
||||||
|
#: workspace.py:158
|
||||||
|
msgid "Добавить лист"
|
||||||
|
msgstr "Add list"
|
||||||
Reference in New Issue
Block a user