Skip to content

Commit

Permalink
feat: modify .po
Browse files Browse the repository at this point in the history
  • Loading branch information
rolin999 committed Nov 30, 2024
2 parents 1c174b3 + c8e1819 commit d2980fe
Show file tree
Hide file tree
Showing 3 changed files with 155 additions and 137 deletions.
2 changes: 1 addition & 1 deletion src/bk-user/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ test: ## 执行项目单元测试(pytest)
pytest --maxfail=1 -l --reuse-db tests --disable-warnings -vv

i18n-po: ## 将源代码 & 模版中的 message 采集到 django.po
python manage.py makemessages -d django -l zh_cn -e html,part -e py
python manage.py makemessages -d django -l zh_CN -e html,part -e py
python manage.py makemessages -d django -l en -e html,part -e py

i18n-mo: ## 将 django.po 文件编译成 django.mo 文件
Expand Down
12 changes: 3 additions & 9 deletions src/bk-user/locale/en/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -1925,9 +1925,7 @@ msgstr "The number of user Base DNs cannot exceed {}"

#: bkuser/plugins/ldap/models.py:88
msgid "用户 Base DN 不可重复或者是其他 DN 的祖先节点(后缀)"
msgstr ""
"The user Base DN cannot be repeated or the ancestor node (suffix) of other "
"DNs."
msgstr "The user Base DN cannot be repeated or the ancestor node (suffix) of other DNs."

#: bkuser/plugins/ldap/models.py:91
msgid "需要提供部门对象类"
Expand All @@ -1943,9 +1941,7 @@ msgstr "The number of department Base DNs cannot exceed {}"

#: bkuser/plugins/ldap/models.py:100
msgid "部门 Base DN 不可重复或者是其他 DN 的祖先节点(后缀)"
msgstr ""
"The department Base DN cannot be repeated or the ancestor node (suffix) of "
"other DNs."
msgstr "The department Base DN cannot be repeated or the ancestor node (suffix) of other DNs."

#: bkuser/plugins/ldap/models.py:123
msgid "需要提供用户组对象类"
Expand All @@ -1961,9 +1957,7 @@ msgstr "The number of user group Base DNs cannot exceed {}"

#: bkuser/plugins/ldap/models.py:132
msgid "用户组 Base DN 不可重复或者是其他 DN 的祖先节点(后缀)"
msgstr ""
"The user group Base DN cannot be repeated or the ancestor node (suffix) of "
"other DNs."
msgstr "The user group Base DN cannot be repeated or the ancestor node (suffix) of other DNs."

#: bkuser/plugins/ldap/models.py:135
msgid "用户组对象类为 groupOfNames 时,成员字段应为 member"
Expand Down
Loading

0 comments on commit d2980fe

Please sign in to comment.