Removed the context from the translatable text messages, because that is not necessary anymore.

This commit is contained in:
依瑪貓 2020-08-07 00:05:05 +08:00
parent f6c6ee7fe4
commit 75cc6b2d00
16 changed files with 78 additions and 116 deletions

View File

@ -7,8 +7,8 @@ msgid ""
msgstr ""
"Project-Id-Version: mia-js 1.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-08-06 23:47+0800\n"
"PO-Revision-Date: 2020-08-06 23:48+0800\n"
"POT-Creation-Date: 2020-08-06 23:59+0800\n"
"PO-Revision-Date: 2020-08-07 00:01+0800\n"
"Last-Translator: imacat <imacat@mail.imacat.idv.tw>\n"
"Language-Team: Traditional Chinese <imacat@mail.imacat.idv.tw>\n"
"Language: Traditional Chinese\n"
@ -148,7 +148,6 @@ msgstr "資產負債表"
#: accounting/templates/accounting/journal.html:62
#: accounting/templates/accounting/ledger.html:75
#: accounting/templates/accounting/trial-balance.html:62
msgctxt "Period|"
msgid "Period"
msgstr "期間"
@ -522,7 +521,6 @@ msgstr "現金支出傳票"
#: accounting/templates/accounting/transactions/sort.html:43
#: accounting/templates/accounting/transactions/transfer/form.html:44
#: accounting/templates/accounting/transactions/transfer/view.html:72
msgctxt "Navigation|"
msgid "Back"
msgstr "回上頁"
@ -576,7 +574,6 @@ msgstr "您真的要刪掉這張現金支出傳票嗎?"
#: accounting/templates/accounting/transactions/expense/view.html:76
#: accounting/templates/accounting/transactions/income/view.html:76
#: accounting/templates/accounting/transactions/transfer/view.html:76
msgctxt "Navigation|"
msgid "Edit"
msgstr "編輯"
@ -601,7 +598,6 @@ msgstr "當天沒有其他會計傳票。"
#: accounting/templates/accounting/transactions/transfer/view.html:86
#: accounting/templates/accounting/transactions/transfer/view.html:97
#: accounting/templates/accounting/transactions/transfer/view.html:102
msgctxt "Navigation|"
msgid "Sort"
msgstr "排序"
@ -609,14 +605,12 @@ msgstr "排序"
#: accounting/templates/accounting/transactions/expense/view.html:111
#: accounting/templates/accounting/transactions/income/view.html:91
#: accounting/templates/accounting/transactions/income/view.html:111
msgctxt "Navigation|"
msgid "To Transfer"
msgstr "改轉帳"
#: accounting/templates/accounting/transactions/expense/view.html:117
#: accounting/templates/accounting/transactions/income/view.html:117
#: accounting/templates/accounting/transactions/transfer/view.html:109
msgctxt "Navigation|"
msgid "Delete"
msgstr "刪除"

View File

@ -59,7 +59,7 @@ First written: 2020/7/20
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#period-modal">
<i class="far fa-calendar-alt"></i>
<span class="d-none d-md-inline">{{ period.description }}</span>
<span class="d-md-none">{% trans "Period" context "Period|" as text %}{{ text|force_escape }}</span>
<span class="d-md-none">{{ _("Period")|force_escape }}</span>
</button>
</div>

View File

@ -79,7 +79,7 @@ First written: 2020/7/1
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#period-modal">
<i class="far fa-calendar-alt"></i>
<span class="d-none d-md-inline">{{ period.description }}</span>
<span class="d-md-none">{% trans "Period" context "Period|" as text %}{{ text|force_escape }}</span>
<span class="d-md-none">{{ _("Period")|force_escape }}</span>
</button>
</div>

View File

@ -59,7 +59,7 @@ First written: 2020/7/19
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#period-modal">
<i class="far fa-calendar-alt"></i>
<span class="d-none d-md-inline">{{ period.description }}</span>
<span class="d-md-none">{% trans "Period" context "Period|" as text %}{{ text|force_escape }}</span>
<span class="d-md-none">{{ _("Period")|force_escape }}</span>
</button>
</div>

View File

@ -59,7 +59,7 @@ First written: 2020/7/17
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#period-modal">
<i class="far fa-calendar-alt"></i>
<span class="d-none d-md-inline">{{ period.description }}</span>
<span class="d-md-none">{% trans "Period" context "Period|" as text %}{{ text|force_escape }}</span>
<span class="d-md-none">{{ _("Period")|force_escape }}</span>
</button>
</div>

View File

@ -72,7 +72,7 @@ First written: 2020/7/16
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#period-modal">
<i class="far fa-calendar-alt"></i>
<span class="d-none d-md-inline">{{ period.description }}</span>
<span class="d-md-none">{% trans "Period" context "Period|" as text %}{{ text|force_escape }}</span>
<span class="d-md-none">{{ _("Period")|force_escape }}</span>
</button>
</div>

View File

@ -41,7 +41,7 @@ First written: 2020/7/23
<div class="btn-group btn-actions">
<a class="btn btn-primary" role="button" href="{% if item.transaction %}{% url_keep_return "accounting:transactions.show" "expense" item.transaction %}{% elif request.GET.r %}{{ request.GET.r }}{% else %}{% url "accounting:home" %}{% endif %}">
<i class="fas fa-chevron-circle-left"></i>
{% trans "Back" context "Navigation|" as text %}{{ text|force_escape }}
{{ _("Back")|force_escape }}
</a>
</div>

View File

@ -69,26 +69,26 @@ First written: 2020/7/23
<div class="btn-group btn-actions">
<a class="btn btn-primary" role="button" href="{% if "r" in request.GET %}{{ request.GET.r }}{% else %}{% url "accounting:home" %}{% endif %}">
<i class="fas fa-chevron-circle-left"></i>
{% trans "Back" context "Navigation|" as text %}{{ text|force_escape }}
{{ _("Back")|force_escape }}
</a>
<a class="btn btn-primary" role="button" href="{% url_keep_return "accounting:transactions.edit" "expense" item %}">
<i class="fas fa-edit"></i>
{% trans "Edit" context "Navigation|" as text %}{{ text|force_escape }}
{{ _("Edit")|force_escape }}
</a>
{% if not item.has_many_same_day %}
<button type="button" class="btn btn-secondary d-none d-sm-inline" disabled="disabled" title="{{ _("There is no other transaction at the same day.")|force_escape }}">
<i class="fas fa-sort"></i>
{% trans "Sort" context "Navigation|" as text %}{{ text|force_escape }}
{{ _("Sort")|force_escape }}
</button>
{% else %}
<a class="btn btn-primary d-none d-sm-inline" role="button" href="{% url_with_return "accounting:transactions.sort" item.date %}">
<i class="fas fa-sort"></i>
{% trans "Sort" context "Navigation|" as text %}{{ text|force_escape }}
{{ _("Sort")|force_escape }}
</a>
{% endif %}
<a class="btn btn-primary d-none d-sm-inline" href="{% url_keep_return "accounting:transactions.show" "transfer" item %}">
<i class="fas fa-exchange-alt"></i>
{% trans "To Transfer" context "Navigation|" as text %}{{ text|force_escape }}
{{ _("To Transfer")|force_escape }}
</a>
<div class="btn-group d-sm-none">
<button class="btn btn-primary dropdown-toggle" type="button" data-toggle="dropdown">
@ -98,23 +98,23 @@ First written: 2020/7/23
{% if not item.has_many_same_day %}
<span class="dropdown-item disabled" title="{{ _("There is no other transaction at the same day.")|force_escape }}">
<i class="fas fa-sort"></i>
{% trans "Sort" context "Navigation|" as text %}{{ text|force_escape }}
{{ _("Sort")|force_escape }}
</span>
{% else %}
<a class="dropdown-item" href="{% url_with_return "accounting:transactions.sort" item.date %}">
<i class="fas fa-sort"></i>
{% trans "Sort" context "Navigation|" as text %}{{ text|force_escape }}
{{ _("Sort")|force_escape }}
</a>
{% endif %}
<a class="dropdown-item" href="{% url_keep_return "accounting:transactions.show" "transfer" item %}">
<i class="fas fa-exchange-alt"></i>
{% trans "To Transfer" context "Navigation|" as text %}{{ text|force_escape }}
{{ _("To Transfer")|force_escape }}
</a>
</div>
</div>
<button type="button" class="btn btn-danger" data-toggle="modal" data-target="#del-modal">
<i class="fas fa-trash"></i>
{% trans "Delete" context "Navigation|" as text %}{{ text|force_escape }}
{{ _("Delete")|force_escape }}
</button>
</div>

View File

@ -41,7 +41,7 @@ First written: 2020/7/23
<div class="btn-group btn-actions">
<a class="btn btn-primary" role="button" href="{% if item.transaction %}{% url_keep_return "accounting:transactions.show" "income" item.transaction %}{% elif request.GET.r %}{{ request.GET.r }}{% else %}{% url "accounting:home" %}{% endif %}">
<i class="fas fa-chevron-circle-left"></i>
{% trans "Back" context "Navigation|" as text %}{{ text|force_escape }}
{{ _("Back")|force_escape }}
</a>
</div>

View File

@ -69,26 +69,26 @@ First written: 2020/7/23
<div class="btn-group btn-actions">
<a class="btn btn-primary" role="button" href="{% if "r" in request.GET %}{{ request.GET.r }}{% else %}{% url "accounting:home" %}{% endif %}">
<i class="fas fa-chevron-circle-left"></i>
{% trans "Back" context "Navigation|" as text %}{{ text|force_escape }}
{{ _("Back")|force_escape }}
</a>
<a class="btn btn-primary" role="button" href="{% url_keep_return "accounting:transactions.edit" "income" item %}">
<i class="fas fa-edit"></i>
{% trans "Edit" context "Navigation|" as text %}{{ text|force_escape }}
{{ _("Edit")|force_escape }}
</a>
{% if not item.has_many_same_day %}
<button type="button" class="btn btn-secondary d-none d-sm-inline" disabled="disabled" title="{{ _("There is no other transaction at the same day.")|force_escape }}">
<i class="fas fa-sort"></i>
{% trans "Sort" context "Navigation|" as text %}{{ text|force_escape }}
{{ _("Sort")|force_escape }}
</button>
{% else %}
<a class="btn btn-primary d-none d-sm-inline" role="button" href="{% url_with_return "accounting:transactions.sort" item.date %}">
<i class="fas fa-sort"></i>
{% trans "Sort" context "Navigation|" as text %}{{ text|force_escape }}
{{ _("Sort")|force_escape }}
</a>
{% endif %}
<a class="btn btn-primary d-none d-sm-inline" href="{% url_keep_return "accounting:transactions.show" "transfer" item %}">
<i class="fas fa-exchange-alt"></i>
{% trans "To Transfer" context "Navigation|" as text %}{{ text|force_escape }}
{{ _("To Transfer")|force_escape }}
</a>
<div class="btn-group d-sm-none">
<button class="btn btn-primary dropdown-toggle" type="button" data-toggle="dropdown">
@ -98,23 +98,23 @@ First written: 2020/7/23
{% if not item.has_many_same_day %}
<span class="dropdown-item disabled" title="{{ _("There is no other transaction at the same day.")|force_escape }}">
<i class="fas fa-sort"></i>
{% trans "Sort" context "Navigation|" as text %}{{ text|force_escape }}
{{ _("Sort")|force_escape }}
</span>
{% else %}
<a class="dropdown-item" href="{% url_with_return "accounting:transactions.sort" item.date %}">
<i class="fas fa-sort"></i>
{% trans "Sort" context "Navigation|" as text %}{{ text|force_escape }}
{{ _("Sort")|force_escape }}
</a>
{% endif %}
<a class="dropdown-item" href="{% url_keep_return "accounting:transactions.show" "transfer" item %}">
<i class="fas fa-exchange-alt"></i>
{% trans "To Transfer" context "Navigation|" as text %}{{ text|force_escape }}
{{ _("To Transfer")|force_escape }}
</a>
</div>
</div>
<button type="button" class="btn btn-danger" data-toggle="modal" data-target="#del-modal">
<i class="fas fa-trash"></i>
{% trans "Delete" context "Navigation|" as text %}{{ text|force_escape }}
{{ _("Delete")|force_escape }}
</button>
</div>

View File

@ -40,7 +40,7 @@ First written: 2020/8/6
<div class="btn-group btn-actions">
<a class="btn btn-primary" role="button" href="{% if "r" in request.GET %}{{ request.GET.r }}{% else %}{% url "accounting:home" %}{% endif %}">
<i class="fas fa-chevron-circle-left"></i>
{% trans "Back" context "Navigation|" as text %}{{ text|force_escape }}
{{ _("Back")|force_escape }}
</a>
</div>

View File

@ -41,7 +41,7 @@ First written: 2020/7/23
<div class="btn-group btn-actions">
<a class="btn btn-primary" role="button" href="{% if item.transaction %}{% url_keep_return "accounting:transactions.show" "transfer" item.transaction %}{% elif request.GET.r %}{{ request.GET.r }}{% else %}{% url "accounting:home" %}{% endif %}">
<i class="fas fa-chevron-circle-left"></i>
{% trans "Back" context "Navigation|" as text %}{{ text|force_escape }}
{{ _("Back")|force_escape }}
</a>
</div>

View File

@ -69,21 +69,21 @@ First written: 2020/7/23
<div class="btn-group btn-actions">
<a class="btn btn-primary" role="button" href="{% if "r" in request.GET %}{{ request.GET.r }}{% else %}{% url "accounting:home" %}{% endif %}">
<i class="fas fa-chevron-circle-left"></i>
{% trans "Back" context "Navigation|" as text %}{{ text|force_escape }}
{{ _("Back")|force_escape }}
</a>
<a class="btn btn-primary" role="button" href="{% url_keep_return "accounting:transactions.edit" "transfer" item %}">
<i class="fas fa-edit"></i>
{% trans "Edit" context "Navigation|" as text %}{{ text|force_escape }}
{{ _("Edit")|force_escape }}
</a>
{% if not item.has_many_same_day %}
<button type="button" class="btn btn-secondary d-none d-sm-inline" disabled="disabled" title="{{ _("There is no other transaction at the same day.")|force_escape }}">
<i class="fas fa-sort"></i>
{% trans "Sort" context "Navigation|" as text %}{{ text|force_escape }}
{{ _("Sort")|force_escape }}
</button>
{% else %}
<a class="btn btn-primary d-none d-sm-inline" role="button" href="{% url_with_return "accounting:transactions.sort" item.date %}">
<i class="fas fa-sort"></i>
{% trans "Sort" context "Navigation|" as text %}{{ text|force_escape }}
{{ _("Sort")|force_escape }}
</a>
{% endif %}
<div class="btn-group d-sm-none">
@ -94,19 +94,19 @@ First written: 2020/7/23
{% if not item.has_many_same_day %}
<span class="dropdown-item disabled" title="{{ _("There is no other transaction at the same day.")|force_escape }}">
<i class="fas fa-sort"></i>
{% trans "Sort" context "Navigation|" as text %}{{ text|force_escape }}
{{ _("Sort")|force_escape }}
</span>
{% else %}
<a class="dropdown-item" href="{% url_with_return "accounting:transactions.sort" item.date %}">
<i class="fas fa-sort"></i>
{% trans "Sort" context "Navigation|" as text %}{{ text|force_escape }}
{{ _("Sort")|force_escape }}
</a>
{% endif %}
</div>
</div>
<button type="button" class="btn btn-danger" data-toggle="modal" data-target="#del-modal">
<i class="fas fa-trash"></i>
{% trans "Delete" context "Navigation|" as text %}{{ text|force_escape }}
{{ _("Delete")|force_escape }}
</button>
</div>

View File

@ -59,7 +59,7 @@ First written: 2020/7/19
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#period-modal">
<i class="far fa-calendar-alt"></i>
<span class="d-none d-md-inline">{{ period.description }}</span>
<span class="d-md-none">{% trans "Period" context "Period|" as text %}{{ text|force_escape }}</span>
<span class="d-md-none">{{ _("Period")|force_escape }}</span>
</button>
</div>

View File

@ -7,8 +7,8 @@ msgid ""
msgstr ""
"Project-Id-Version: mia 1.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-08-06 23:47+0800\n"
"PO-Revision-Date: 2020-08-06 01:46+0800\n"
"POT-Creation-Date: 2020-08-06 23:59+0800\n"
"PO-Revision-Date: 2020-08-07 00:01+0800\n"
"Last-Translator: imacat <imacat@mail.imacat.idv.tw>\n"
"Language-Team: Traditional Chinese <imacat@mail.imacat.idv.tw>\n"
"Language: Traditional Chinese\n"
@ -37,112 +37,81 @@ msgid "All Time"
msgstr "全部"
#: mia_core/period.py:583 mia_core/period.py:616
#: mia_core/templates/mia_core/include/period-chooser.html:60
#: mia_core/templatetags/mia_core.py:213
msgid "This Month"
msgstr "這個月"
#: mia_core/period.py:624 mia_core/templatetags/mia_core.py:220
#: mia_core/period.py:624
#: mia_core/templates/mia_core/include/period-chooser.html:63
#: mia_core/templatetags/mia_core.py:220
msgid "Last Month"
msgstr "上個月"
#: mia_core/period.py:639
#: mia_core/templates/mia_core/include/period-chooser.html:76
msgid "This Year"
msgstr "今年"
#: mia_core/period.py:641
#: mia_core/templates/mia_core/include/period-chooser.html:79
msgid "Last Year"
msgstr "去年"
#: mia_core/period.py:656 mia_core/templatetags/mia_core.py:193
#: mia_core/period.py:656
#: mia_core/templates/mia_core/include/period-chooser.html:95
#: mia_core/templatetags/mia_core.py:193
msgid "Today"
msgstr "今天"
#: mia_core/period.py:658 mia_core/templatetags/mia_core.py:195
#: mia_core/period.py:658
#: mia_core/templates/mia_core/include/period-chooser.html:98
#: mia_core/templatetags/mia_core.py:195
msgid "Yesterday"
msgstr "昨天"
#: mia_core/templates/mia_core/include/period-chooser.html:37
msgctxt "Period|"
msgid "Choosing Your Period"
msgstr "選擇時間區間"
#: mia_core/templates/mia_core/include/period-chooser.html:46
msgctxt "Period|"
#: mia_core/templates/mia_core/include/period-chooser.html:45
msgid "Month"
msgstr "月"
#: mia_core/templates/mia_core/include/period-chooser.html:49
msgctxt "Period|"
#: mia_core/templates/mia_core/include/period-chooser.html:48
msgid "Year"
msgstr "年"
#: mia_core/templates/mia_core/include/period-chooser.html:52
msgctxt "Period|"
#: mia_core/templates/mia_core/include/period-chooser.html:51
msgid "Day"
msgstr "日"
#: mia_core/templates/mia_core/include/period-chooser.html:55
msgctxt "Period|"
#: mia_core/templates/mia_core/include/period-chooser.html:54
msgid "Custom"
msgstr "自訂"
#: mia_core/templates/mia_core/include/period-chooser.html:61
msgctxt "Period|"
msgid "This Month"
msgstr "這個月"
#: mia_core/templates/mia_core/include/period-chooser.html:64
msgctxt "Period|"
msgid "Last Month"
msgstr "上個月"
#: mia_core/templates/mia_core/include/period-chooser.html:67
msgctxt "Period|"
#: mia_core/templates/mia_core/include/period-chooser.html:66
msgid "Since Last Month"
msgstr "上個月至今"
#: mia_core/templates/mia_core/include/period-chooser.html:77
msgctxt "Period|"
msgid "This Year"
msgstr "今年"
#: mia_core/templates/mia_core/include/period-chooser.html:80
msgctxt "Period|"
msgid "Last Year"
msgstr "去年"
#: mia_core/templates/mia_core/include/period-chooser.html:96
msgctxt "Period|"
msgid "Today"
msgstr "今天"
#: mia_core/templates/mia_core/include/period-chooser.html:99
msgctxt "Period|"
msgid "Yesterday"
msgstr "昨天"
#: mia_core/templates/mia_core/include/period-chooser.html:104
msgctxt "Period|"
#: mia_core/templates/mia_core/include/period-chooser.html:103
msgid "Date:"
msgstr "日期:"
#: mia_core/templates/mia_core/include/period-chooser.html:108
#: mia_core/templates/mia_core/include/period-chooser.html:126
#: mia_core/templates/mia_core/include/period-chooser.html:107
#: mia_core/templates/mia_core/include/period-chooser.html:125
msgid "Confirm"
msgstr "確定"
#: mia_core/templates/mia_core/include/period-chooser.html:114
msgctxt "Period|"
#: mia_core/templates/mia_core/include/period-chooser.html:113
msgid "All"
msgstr "全部"
#: mia_core/templates/mia_core/include/period-chooser.html:118
msgctxt "Period|"
#: mia_core/templates/mia_core/include/period-chooser.html:117
msgid "From:"
msgstr "從:"
#: mia_core/templates/mia_core/include/period-chooser.html:122
msgctxt "Period|"
#: mia_core/templates/mia_core/include/period-chooser.html:121
msgid "To:"
msgstr "到:"

View File

@ -34,8 +34,7 @@ First written: 2020/7/10
<div class="modal-header">
<h4 class="modal-title">
<i class="far fa-calendar-alt"></i>
{% trans "Choosing Your Period" context "Period|" as text %}
{{ text|force_escape }}
{{ _("Choosing Your Period")|force_escape }}
</h4>
<button type="button" class="close" data-dismiss="modal">&times;</button>
</div>
@ -43,28 +42,28 @@ First written: 2020/7/10
<!-- Modal body -->
<ul class="nav nav-tabs">
<li class="nav-item">
<span id="period-tab-month" class="period-tab nav-link active">{% trans "Month" context "Period|" as text %}{{ text|force_escape }}</span>
<span id="period-tab-month" class="period-tab nav-link active">{{ _("Month")|force_escape }}</span>
</li>
<li class="nav-item">
<span id="period-tab-year" class="period-tab nav-link">{% trans "Year" context "Period|" as text %}{{ text|force_escape }}</span>
<span id="period-tab-year" class="period-tab nav-link">{{ _("Year")|force_escape }}</span>
</li>
<li class="nav-item">
<span id="period-tab-day" class="period-tab nav-link">{% trans "Day" context "Period|" as text %}{{ text|force_escape }}</span>
<span id="period-tab-day" class="period-tab nav-link">{{ _("Day")|force_escape }}</span>
</li>
<li class="nav-item">
<span id="period-tab-custom" class="period-tab nav-link">{% trans "Custom" context "Period|" as text %}{{ text|force_escape }}</span>
<span id="period-tab-custom" class="period-tab nav-link">{{ _("Custom")|force_escape }}</span>
</li>
</ul>
<div id="period-content-month" class="period-content modal-body">
<div class="period-shortcuts">
{% if period.this_month is not None %}
<a class="btn btn-primary" role="button" href="{% url_period period.this_month %}">{% trans "This Month" context "Period|" as text %}{{ text|force_escape }}</a>
<a class="btn btn-primary" role="button" href="{% url_period period.this_month %}">{{ _("This Month")|force_escape }}</a>
{% endif %}
{% if period.last_month is not None %}
<a class="btn btn-primary" role="button" href="{% url_period period.last_month %}">{% trans "Last Month" context "Period|" as text %}{{ text|force_escape }}</a>
<a class="btn btn-primary" role="button" href="{% url_period period.last_month %}">{{ _("Last Month")|force_escape }}</a>
{% endif %}
{% if period.since_last_month is not None %}
<a class="btn btn-primary" role="button" href="{% url_period period.since_last_month %}">{% trans "Since Last Month" context "Period|" as text %}{{ text|force_escape }}</a>
<a class="btn btn-primary" role="button" href="{% url_period period.since_last_month %}">{{ _("Since Last Month")|force_escape }}</a>
{% endif %}
</div>
{% if period.has_months_to_choose %}
@ -74,10 +73,10 @@ First written: 2020/7/10
<div id="period-content-year" class="period-content modal-body d-none">
<div class="period-shortcuts">
{% if period.this_year is not None %}
<a class="btn btn-primary" role="button" href="{% url_period period.this_year %}">{% trans "This Year" context "Period|" as text %}{{ text|force_escape }}</a>
<a class="btn btn-primary" role="button" href="{% url_period period.this_year %}">{{ _("This Year")|force_escape }}</a>
{% endif %}
{% if period.last_year is not None %}
<a class="btn btn-primary" role="button" href="{% url_period period.last_year %}">{% trans "Last Year" context "Period|" as text %}{{ text|force_escape }}</a>
<a class="btn btn-primary" role="button" href="{% url_period period.last_year %}">{{ _("Last Year")|force_escape }}</a>
{% endif %}
</div>
{% if period.has_years_to_choose %}
@ -93,15 +92,15 @@ First written: 2020/7/10
<div id="period-content-day" class="period-content modal-body d-none">
<div class="period-shortcuts">
{% if period.today is not None %}
<a class="btn btn-primary" role="button" href="{% url_period period.today %}">{% trans "Today" context "Period|" as text %}{{ text|force_escape }}</a>
<a class="btn btn-primary" role="button" href="{% url_period period.today %}">{{ _("Today")|force_escape }}</a>
{% endif %}
{% if period.yesterday is not None %}
<a class="btn btn-primary" role="button" href="{% url_period period.yesterday %}">{% trans "Yesterday" context "Period|" as text %}{{ text|force_escape }}</a>
<a class="btn btn-primary" role="button" href="{% url_period period.yesterday %}">{{ _("Yesterday")|force_escape }}</a>
{% endif %}
</div>
{% if period.has_days_to_choose %}
<div>
<label for="day-picker">{% trans "Date:" context "Period|" as text %}{{ text|force_escape }}</label>
<label for="day-picker">{{ _("Date:")|force_escape }}</label>
<input id="day-picker" type="date" value="{{ period.chosen_day }}" min="{{ period.data_start }}" max="{{ period.data_end }}" required="required" />
</div>
<div>
@ -111,15 +110,15 @@ First written: 2020/7/10
</div>
<div id="period-content-custom" class="period-content modal-body d-none">
<div class="period-shortcuts">
<a class="btn btn-primary" role="button" href="{% url_period "-" %}">{% trans "All" context "Period|" as text %}{{ text|force_escape }}</a>
<a class="btn btn-primary" role="button" href="{% url_period "-" %}">{{ _("All")|force_escape }}</a>
</div>
{% if period.has_days_to_choose %}
<div>
<label for="period-start">{% trans "From:" context "Period|" as text %}{{ text|force_escape }}</label>
<label for="period-start">{{ _("From:")|force_escape }}</label>
<input id="period-start" type="date" value="{{ period.chosen_start }}" min="{{ period.data_start }}" max="{{ period.chosen_end }}" required="required" />
</div>
<div>
<label for="period-end">{% trans "To:" context "Period|" as text %}{{ text|force_escape }}</label>
<label for="period-end">{{ _("To:")|force_escape }}</label>
<input id="period-end" type="date" value="{{ period.chosen_end }}" min="{{ period.chosen_start }}" max="{{ period.data_end }}" required="required" />
</div>
<div>