Исправлен баг потери локализации

This commit is contained in:
Derinhelm
2021-06-08 10:25:29 +03:00
parent 57f2f72856
commit cac9d14d52
4 changed files with 94 additions and 29 deletions

35
dodo.py
View File

@@ -1,36 +1,19 @@
#!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():
"""Create bynary wheel distribution"""
return {
'actions': ["""pybabel compile -D todo -i frontend/po/eng/LC_MESSAGES/todo.po -o frontend/po/eng/LC_MESSAGES/todo.mo"""],
'file_dep': ['frontend/po/eng/LC_MESSAGES/todo.po'],
'targets': ['frontend/po/eng/LC_MESSAGES/todo.mo']
"actions": [
"""pybabel compile -D todo -i frontend/po/eng/LC_MESSAGES/todo.po -o 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():
"""Create bynary wheel distribution"""
return {
'actions': ['python3 -m build -w'],
'task_dep': ['mo']
}
return {"actions": ["python3 -m build -w"], "task_dep": ["mo"]}