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

Fix description string extraction #45627

Merged
merged 1 commit into from
Nov 25, 2020

Conversation

anothersimulacrum
Copy link
Member

Summary

SUMMARY: None

Purpose of change

Don't add 7000 new unnecessary strings for translation.

Describe the solution

Reusing needs_plural for extracting plural descriptions was a bad idea - it means that all the item descriptions were erroneously marked as needing plural forms.

Add a new category for types neeeding plural descriptions, and use this instead.

Testing

Reviewing lang/po/cataclysm-dda.pot when updated with both versions of this show that this does not add plural forms for item descriptions.
Also tested live on Transifex (my bad)!
image
image

Additional context

This should also fix the flake8 linting issue.

@anothersimulacrum anothersimulacrum added <Bugfix> This is a fix for a bug (or closes open issue) [Python] Code made in Python Translation I18n labels Nov 25, 2020
Reusing needs_plural for extracting plural descriptions was a bad idea -
it means that all the item descriptions were erroneously marked as
needing plural forms.

Add a new category for types neeeding plural descriptions, and use this
instead.
@ZhilkinSerg ZhilkinSerg merged commit a66cf52 into CleverRaven:master Nov 25, 2020
@anothersimulacrum anothersimulacrum deleted the fix-strings branch November 25, 2020 17:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
<Bugfix> This is a fix for a bug (or closes open issue) [Python] Code made in Python Translation I18n
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants