Fix localization of QML code
ClosedPublic

Authored by yurchor on Aug 26 2018, 7:15 AM.

Details

Summary

The current code contains untranslatable messages and word puzzles [1]. This patch tries to resolve them.

[1] https://techbase.kde.org/Development/Tutorials/Localization/i18n_Mistakes#Pitfall_.232:_Word_Puzzles

Test Plan

Extraction works fine, but compilability and applicability to the real world plasmoid have not been tested yet.

Diff Detail

Repository
R846 Mycroft Plasma integration
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
yurchor created this revision.Aug 26 2018, 7:15 AM
Restricted Application added a project: Plasma. · View Herald TranscriptAug 26 2018, 7:15 AM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
yurchor requested review of this revision.Aug 26 2018, 7:15 AM
huftis added a subscriber: huftis.Aug 26 2018, 9:29 AM

You could take the opportunity to change the ‘French’ punctuation in the three "%1 : %2" strings to proper English punctuation, i.e. "%1: %2".

yurchor updated this revision to Diff 40458.Aug 26 2018, 9:35 AM

Getting rid of French punctuation

lueck added a subscriber: lueck.Aug 26 2018, 9:54 AM

probably the strings with "%1 : %2" need context for propr tarnslation

plasmoid/contents/ui/CurrentWeatherType.qml
191

missing Unit?

219

missing Unit?

247

missing Unit?

plasmoid/contents/ui/DashWeatherDelegate.qml
189

missing Unit and context for %1, %2?

239

missing Unit and context for %1, %2?

453

missing context for D + T

579

missing context for D + T

plasmoid/contents/ui/PlacesDelegate.qml
106

missing context for mtrs

yurchor updated this revision to Diff 40460.Aug 26 2018, 10:27 AM

Adding more context to the messages

lueck accepted this revision.Aug 28 2018, 5:24 AM
This revision is now accepted and ready to land.Aug 28 2018, 5:24 AM
This revision was automatically updated to reflect the committed changes.