| Summary: | Exif scene type ‘Portrait’ and ‘Landscape’ strings need message context | ||
|---|---|---|---|
| Product: | [Applications] krita | Reporter: | Karl Ove Hufthammer <karl> |
| Component: | Translation | Assignee: | Karl Ove Hufthammer <karl> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | halla |
| Priority: | NOR | ||
| Version First Reported In: | git master (please specify the git hash!) | ||
| Target Milestone: | --- | ||
| Platform: | Other | ||
| OS: | Linux | ||
| Latest Commit: | https://invent.kde.org/kde/krita/commit/b4e1710021ce78ef103db3435298d6093a2a8bf7 | Version Fixed/Implemented In: | |
| Sentry Crash Report: | |||
|
Description
Karl Ove Hufthammer
2019-07-29 08:29:31 UTC
How do we add context for strings in ui files? (In reply to Boudewijn Rempt from comment #1) > How do we add context for strings in ui files? That’s what I was wondering (otherwise, I could have tried to fix it myself). But I just did some searching, and found this: https://api.kde.org/frameworks/ki18n/html/prg_guide.html > When Qt Designer is used to build the user interface, the -tr option of > uic should be used to pass UI strings through Ki18n's tr2i18n function > (see also link_ui). This function is the equivalent of i18n or i18nc, > based on whether the second argument is null or not. If a string in the > .ui file has the attribute comment=, its value will be automatically used > as the context argument. (In Qt Designer, this is the disambiguation > property of a string.) Alternatively, strings can be passed to Ki18n's > tr2xi18n function (see kuit_markup). So I can try to add comments, and see if that works. Git commit b4e1710021ce78ef103db3435298d6093a2a8bf7 by Karl Ove Hufthammer. Committed on 29/07/2019 at 09:22. Pushed by rempt into branch 'master'. Add message context for scene types ‘Portrait’ and ‘Landscape’ In the Exif metadata, the ‘Portrait’ and ‘Landscapes’ strings mean actual photos of people and landscape, but in the rest of the Krita UI, they mean vertical/horizontal paper orientation. This adds ‘msgctxt’ info for the Exif strings, so that they can translated differently than the paper orientation strings. M +2 -2 plugins/extensions/metadataeditor/editors/exif.ui https://invent.kde.org/kde/krita/commit/b4e1710021ce78ef103db3435298d6093a2a8bf7 |