Removed the context from the translatable text messages in the accounting application, because it is not needed now.

This commit is contained in:
2020-08-06 00:41:29 +08:00
parent 518b49ee65
commit 86dfe993a4
24 changed files with 575 additions and 771 deletions

View File

@ -29,7 +29,7 @@ from django.db.models import Q, Sum, Case, When, F, Count, Max, Min, Value, \
from django.db.models.functions import StrIndex, Left
from django.urls import reverse
from django.utils import timezone
from django.utils.translation import pgettext
from django.utils.translation import gettext as _
from .forms import TransactionForm, RecordForm
from .models import Account, Transaction, Record
@ -258,8 +258,7 @@ def get_cash_accounts():
.order_by("code"))
accounts.insert(0, Account(
code="0",
title=pgettext(
"Accounting|", "current assets and liabilities"),
title=_("current assets and liabilities"),
))
return accounts