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 polish translation causing a runtime error #2349

Merged
merged 1 commit into from
Jun 9, 2021
Merged

Fix polish translation causing a runtime error #2349

merged 1 commit into from
Jun 9, 2021

Conversation

maszczyn
Copy link
Contributor

@maszczyn maszczyn commented Jun 9, 2021

It seems that PL translations provide 3 variants, depending on :count param value, but the "short year" translation provides only two, which causes a runtime error.

I don't know PHP, so I am not able to provide (in reasonable time) reproduction steps other than the actual use where I spotted the problem. Sample manifestation of the bug is described in the following issue:
firefly-iii/firefly-iii#4845

Sample manifestation of the bug is described in the followin issue:
firefly-iii/firefly-iii#4845
Copy link
Collaborator

@kylekatarnls kylekatarnls left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks 🙏

@kylekatarnls kylekatarnls added bug translation Rely to internationalization labels Jun 9, 2021
@kylekatarnls kylekatarnls added this to the 2.50.0 milestone Jun 9, 2021
@kylekatarnls
Copy link
Collaborator

Indeed, no translation should have only 2 plural form in PL files.

@codecov-commenter
Copy link

Codecov Report

Merging #2349 (7e10b90) into master (93d9db9) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##            master     #2349   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          886       886           
  Lines         9191      9191           
=========================================
  Hits          9191      9191           
Impacted Files Coverage Δ
src/Carbon/Lang/pl.php 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 93d9db9...7e10b90. Read the comment docs.

@kylekatarnls kylekatarnls merged commit a940e55 into briannesbitt:master Jun 9, 2021
@maszczyn maszczyn deleted the fix/pl_translation branch June 10, 2021 09:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug translation Rely to internationalization
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants