Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ua translation #277

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion qpanel/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ def setup_logging():
# babel
@babel.localeselector
def get_locale():
langs = ['en', 'es', 'de', 'pt_BR', 'ru']
langs = ['en', 'es', 'de', 'pt_BR', 'ru', 'uk_UA']
browser = request.accept_languages.best_match(langs)
try:
return session['language']
Expand Down
1 change: 1 addition & 0 deletions qpanel/templates/language_selector.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@
<option value="ru">{{ _('Russian') }}</option>
<option value="pt_BR">{{ _('Portuguese') }}</option>
<option value="fr_FR">{{ _('French') }}</option>
<option value="uk_UA">{{ _('Ukrainian') }}</option>
</select>
</li>
1 change: 1 addition & 0 deletions qpanel/themes/qpanel/templates/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@
<a class="dropdown-item language" data-value="ru" href="#">{{ _('Russian')}}</a>
<a class="dropdown-item language" data-value="pt_BR" href="#">{{ _('Portuguese')}}</a>
<a class="dropdown-item language" data-value="fr_FR" href="#">{{ _('French')}}</a>
<a class="dropdown-item language" data-value="uk_UA" href="#">{{ _('Ukrainian')}}</a>
</div>
</li>
</ul>
Expand Down
5 changes: 5 additions & 0 deletions qpanel/translations/messages.pot
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,11 @@ msgstr ""
msgid "French"
msgstr ""

#: qpanel/templates/language_selector.html:9
#: qpanel/themes/qpanel/templates/header.html:67
msgid "Ukrainian"
msgstr ""

#: qpanel/templates/login.html:2
msgid "Login"
msgstr ""
Expand Down
12 changes: 6 additions & 6 deletions qpanel/translations/ru/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ msgstr "Действия"
#: qpanel/themes/qpanel/templates/queue.html:84
#: qpanel/themes/qpanel/templates/queue.html:270
msgid "Spy"
msgstr "Шпион"
msgstr "Шпионить"

#: qpanel/templates/queue.html:52 qpanel/templates/queue.html:199
#: qpanel/themes/qpanel/templates/queue.html:85
Expand Down Expand Up @@ -390,7 +390,7 @@ msgstr "Вы не указали номер"
#: qpanel/templates/queue.html:308
#: qpanel/themes/qpanel/templates/queue.html:384
msgid "Try..."
msgstr "Пробую..."
msgstr "Попробовать..."

#: qpanel/templates/row_general_data.html:10 qpanel/templates/stats.html:51
msgid "Attended calls."
Expand Down Expand Up @@ -434,7 +434,7 @@ msgstr "От:"

#: qpanel/templates/stats.html:20 qpanel/themes/qpanel/templates/stats.html:43
msgid "To:"
msgstr "Кому:"
msgstr "До:"

#: qpanel/templates/stats.html:38 qpanel/themes/qpanel/templates/stats.html:116
msgid "Inbound"
Expand All @@ -454,15 +454,15 @@ msgstr "Состояние"

#: qpanel/themes/qpanel/templates/footer.html:12
msgid "About Us"
msgstr ""
msgstr "О нас"

#: qpanel/themes/qpanel/templates/header.html:15
msgid "Home"
msgstr ""
msgstr "Домой"

#: qpanel/themes/qpanel/templates/header.html:57
msgid "Language"
msgstr ""
msgstr "Язык"

#: qpanel/themes/qpanel/templates/row_general_data.html:87
#: qpanel/themes/qpanel/templates/stats.html:133
Expand Down
Loading