dbader / dbader/schedule

zh locale missing keys in msgstr

Open Beginner friendly
#279 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
12.3k
Forks
999
PR merge metrics
No merged PRs in 30d

Description

When trying to run: `django-admin compilemessages`

I get these messages:
```
/schedule/locale/zh/LC_MESSAGES/django.po:135: a format specification for argument 'title' doesn't exist in 'msgstr'
/schedule/locale/zh/LC_MESSAGES/django.po:172: a format specification for argument 'end' doesn't exist in 'msgstr'
```

Locale problem strings are:
```
#: occurrence.py:14
#, python-format
msgid "%(start)s to %(end)s"
msgstr "(开始)到(结束)"
```
and
```
#: models.py:310
#, python-format
msgid "%(title)s: %(start)s-%(end)s"
msgstr "月(开始-结束): %(start)s-%(end)s"
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Open schedule/locale/zh/LC_MESSAGES/django.po and inspect the entries around lines 135 and 172, comparing each msgstr with its msgid placeholders. Run django-admin compilemessages before and after the translation update; done means the zh catalog compiles without the reported format-specification errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
localization
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
65/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.