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

Bugfix: Go back to %d formatting to use existing translations #382

Merged
merged 2 commits into from
Sep 17, 2021

Conversation

wutschel
Copy link
Contributor

@wutschel wutschel commented Sep 2, 2021

Description

While reviewing #380 I recognized a regression which was caused when removing compile warnings during the initial iOS 14 migration end of 2020. This caused two texts -- displaying the amount of search results and the amount of "more" items -- not being translated correctly anymore as the related localized strings contain the formatting "%d". This PR goes back to the old formatting and resolves the warnings through casting to int. As a result the existing translations are again in use.

Screenshots (French): https://abload.de/img/bildschirmfoto2021-09kwkad.png

Second change removes a superfluous string which is not needed as the text is overwritten with the desired text for the current state of the pull-down-sync menu when displayed. This allows to remove the related translation for German as well.

Remark: I am not removing the superfluous text strings in the German localized file as this is done as part of the cleanup inside #380.

Summary for release notes

Bugfix: Fix some translations while search and in more items view

Fixes a regression caused by removing compile warning while migrating to iOS 14.
It is not needed to set this default text. The title will be set to the desired state (e.g. "Pull to sync with XBMC...") before shown for the first time.
@kambala-decapitator kambala-decapitator added this to the 1.8 milestone Sep 13, 2021
@kambala-decapitator kambala-decapitator merged commit f32dcea into xbmc:master Sep 17, 2021
@wutschel wutschel deleted the fix_strings branch September 18, 2021 21:20
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.

None yet

2 participants