D25849: Ensure the dialog title is correct with an uninitialised engine

Nathaniel Graham noreply at phabricator.kde.org
Tue Dec 10 15:04:41 GMT 2019


ngraham requested changes to this revision.
ngraham added inline comments.
This revision now requires changes to proceed.

INLINE COMMENTS

> Dialog.qml:55
>      property string downloadNewWhat: engine.name
> -    title: i18n("Download New %1", component.downloadNewWhat)
> +    title: i18n("Download New %1", (component.downloadNewWhat.length > 0 ? component.downloadNewWhat : i18nc("Used to contruct the dialog's title (which will become Download New Stuff)", "Stuff")))
>  

For readability's sake and to avoid nested `i18n()` calls which would cause string puzzles, I would do it like this:

  title: component.downloadNewWhat.length === 0 ? i18n("Download new stuff"): i18n("Download New %1," component.downloadNewWhat)

also "stuff" lol

REPOSITORY
  R304 KNewStuff

REVISION DETAIL
  https://phabricator.kde.org/D25849

To: leinir, #frameworks, #knewstuff, ngraham
Cc: kde-frameworks-devel, LeGast00n, GB_2, michaelh, ngraham, bruns
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20191210/05ec71be/attachment.html>


More information about the Kde-frameworks-devel mailing list