Bug 262032 - Singular form in "Hint Visibility Time:"
Summary: Singular form in "Hint Visibility Time:"
Status: RESOLVED NOT A BUG
Alias: None
Product: kigo
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Sascha Peilicke
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-04 04:38 UTC by André Marcelo Alvarenga
Modified: 2018-11-12 19:57 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description André Marcelo Alvarenga 2011-01-04 04:38:59 UTC
Version:           unspecified (using KDE 4.5.90) 
OS:                Linux

When "Hint Visibility Time:" is defined as 1,0, the message should be 'second'.

Reproducible: Always

Steps to Reproduce:
1 - Settings -> Configure Kigo...
2 - See in General dialog.

Actual Results:  
1,0 and 1,5 = seconds

Expected Results:  
1,0 and 1,5 = second
Comment 1 Andrew Crouthamel 2018-11-05 03:08:49 UTC
Dear Bug Submitter,

This bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? I am setting the status to NEEDSINFO pending your response, please change the Status back to REPORTED when you respond.

Thank you for helping us make KDE software even better for everyone!
Comment 2 André Marcelo Alvarenga 2018-11-11 02:27:55 UTC
I can reproduce with Kigo 0.6.0

Always in plural.


KDE Applications 18.08.2
KDE Frameworks 5.51.0
Qt 5.11.2
Comment 3 Albert Astals Cid 2018-11-11 10:34:51 UTC
Expected Results:  
1,0 and 1,5 = second

No, that's not how english works, decimal numbers are always plural.
Comment 4 André Marcelo Alvarenga 2018-11-11 16:44:18 UTC
Ok, is correct in english, but not in other languages, like Portuguese.

In Portuguese we use 1 second, 1,5 second (with comma, not dot), 2 seconds, 2,5 seconds.

There is no way to do this in .po file.

This string should allow plural and singular:

#. i18n: ectx: property (suffix), widget (QDoubleSpinBox, kcfg_HintVisibleTime)
#: gui/config/generalconfig.ui:163
#, kde-format
msgid " Seconds"
msgstr " segundos"
Comment 5 Albert Astals Cid 2018-11-11 17:44:46 UTC
Do you really say 1,67 segundo and not 1,67 segundos?

I tried reading https://pt.wikipedia.org/wiki/Gram%C3%A1tica_da_l%C3%ADngua_portuguesa but doesn't seem to say anything about decimal numbers. Do you know of any place that would mention it?

We've discussed this several times in various places and noone had found a langauge where decimal numbers where not always plural, it's weird portuguese does given all the neighbouring languages do not.
Comment 6 André Marcelo Alvarenga 2018-11-11 22:22:05 UTC
(In reply to Albert Astals Cid from comment #5)
> Do you really say 1,67 segundo and not 1,67 segundos?

Yes, the logics is: "Um segundo e 67 centésimos de segundo"

https://noticias.r7.com/blogs/portugues-de-brasileiro/plural-de-numero-decimal-tire-a-duvida-20140430/

This article explain differences between Brazil and Portugal:

https://www.flip.pt/Duvidas-Linguisticas/Duvida-Linguistica/DID/1881

I don't know about Portugal, but in Brazilian Portuguese singular is correct in this case.
Comment 7 Albert Astals Cid 2018-11-12 19:57:32 UTC
Ok then, you'll have to fix this using the translation scripting capabilities of ki18n. The code itself can't be fixed since basically no localization framework accounts for having different strings for numbers with decimals.

The problem is that i can't really find documentation for it, though i'm almost sure it did exist at some point. Please email Chusslove about it.