fix i18n for IPFilter plugin settings

Review Request #130070 - Created April 8, 2017 and submitted

Information
Alexander Trufanov
ktorrent
master
Reviewers
ktorrent
aacid

There is a problem with ki18np() for QSpinBox in IPFilter preferences UI. This preferences page is visible if you switch on IPFilter module in plugins and go to the settings. It was:
like that

And now it's:
1

2

5

23

Bcs QSpinBox' setSuffix() doesn't support plural mode of ki18n (known limitation) I've replaced if with KPluralHandlingSpinBox from KTextWidgets. It's supported since 5.0 and KTorrent requires 5.15 so no additional restrictions on dependencies.

P.S. I would change ki18np() to ki18ncp() and add some context but I left it as is to reuse already translated strings.


  
Alexander Trufanov
Alexander Trufanov
Albert Astals Cid
Alexander Trufanov
Review request changed

Status: Closed (submitted)

Change Summary:

Submitted with commit f93c2f36ef85a3629bf4377d0b0333e00b08c23b by Alexander Trufanov to branch master.
Loading...