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

Store only one version of i18n strings #45

Merged
merged 1 commit into from
Nov 9, 2023

Conversation

boiko
Copy link
Contributor

@boiko boiko commented Nov 8, 2023

RPM files with multiple translated entries for strings would cause a crash when parsing, so packages with things like:

Summary: One package
Summary(pt_BR): Um pacote

would invoke the extract_string function with a count > 1.

Fully handling all of the i18n capabilities of RPM requires some re-work on the header handling, but for the sake of simplicity and to be able to parse those rpm files, all extra translated strings are discarded and only the first one is kept.

RPM files with multiple translated entries for strings would cause a crash when
parsing, so packages with things like:

Summary: One package
Summary(pt_BR): Um pacote

would invoke the extract_string function with a count > 1.

Fully handling all of the i18n capabilities of RPM requires some re-work on the
header handling, but for the sake of simplicity and to be able to parse those
rpm files, all extra translated strings are discarded and only the first one is
kept.
boiko added a commit to boiko/hackweek-applied-pase that referenced this pull request Nov 8, 2023
Hopefully the upstream change will be accepted/reworked:
srossross/rpmfile#45
@johnandersen777 johnandersen777 merged commit b274122 into srossross:master Nov 9, 2023
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants