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

"%.2f" usage in PO files #110

Closed
ghost opened this issue Oct 6, 2019 · 2 comments
Closed

"%.2f" usage in PO files #110

ghost opened this issue Oct 6, 2019 · 2 comments

Comments

@ghost
Copy link

ghost commented Oct 6, 2019

I think Dennis does not handle this kind (%.2f etc) usage correctly.

%f is the format specifier used for float data type in the functions printf and scanf . By default it will display values upto 6 digits after the decimal point but , writing %.1f or %.2f will reduce the precision to 1 or 2 digits respectively.Hope that helps

https://www.quora.com/What-is-the-meaning-of-1f-2f-in-c

When I testing my GIMP translation It gave this warning:

E104: bad format character: %.

Actual code is here:

1154:#. value description and new value shown in the status bar
1155:#: ../app/actions/actions.c:617
1156:#, c-format
1157:msgid "%s: %.2f"
1158:msgstr "%s: %.2f"
@ghost
Copy link
Author

ghost commented Oct 6, 2019

I think these warnings are wrong too.

E104: bad format character: %l

12860:#: ../app/core/gimpbrush-load.c:254
12861:#, c-format
12862:msgid "Invalid header data in '%s': Brush name is too long: %lu"
12863:msgstr "'%s' içinde geçersiz başlık verisi: Fırça adı çok uzun: %lu"

E104: bad format character: %-

23441:#: ../app/tools/gimprotatetool.c:251
23442:#, c-format
23443:msgctxt "undo-type"
23444:msgid "Rotate by %-3.3g° around (%g, %g)"
23445:msgstr "Etrafında %-3.3g° ile döndür (%g, %g)"

@willkg
Copy link
Member

willkg commented Oct 7, 2019

I suspect this is a duplicate of #58. Can you add information there for examples and test cases? Thank you!

@willkg willkg closed this as completed Oct 7, 2019
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

No branches or pull requests

1 participant