Add support for viewing the translation source with a custom editor
ClosedPublic

Authored by habacker on Feb 3 2019, 12:46 PM.

Details

Summary

By jumping to the corresponding line number, the finding of corresponding
i18n calls is accelerated.

FIXED-IN:18.12.2
BUG:403743

Test Plan

tested on linux

Diff Detail

Repository
R456 Lokalize
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
habacker requested review of this revision.Feb 3 2019, 12:46 PM
habacker created this revision.
sdepiets added inline comments.Feb 5 2019, 2:31 AM
src/prefs/lokalize.kcfg
95

I don't think this should be enabled by default, you can't assume the user has Kate installed

ppeter requested changes to this revision.Feb 5 2019, 4:44 AM
ppeter added a subscriber: ppeter.
ppeter added inline comments.
src/prefs/prefs_general.ui
84

I think those strings need to be translatable... I had read https://techbase.kde.org/Development/Tutorials/Localization/i18n and didn't see any I18N function here.

If the strings is translatable but I don't know, just ignore it ;)

This revision now requires changes to proceed.Feb 5 2019, 4:44 AM
sdepiets added inline comments.Feb 5 2019, 4:47 AM
src/prefs/prefs_general.ui
84

Strings in ui files are automatically picked up for translation so this is not an issue.

ppeter added a comment.Feb 5 2019, 4:48 AM

Oh, no. Just ignore requested changes flag, I had do something wrong :/

src/prefs/prefs_general.ui
84

Oh. Thanks for replying. :)

habacker updated this revision to Diff 50908.Feb 5 2019, 7:27 AM
  • Set CustomEditorEnabled default value to false
habacker marked 4 inline comments as done.Feb 5 2019, 7:28 AM
sdepiets accepted this revision.Feb 5 2019, 10:00 AM

Thank you

This revision was not accepted when it landed; it landed in state Needs Review.Feb 5 2019, 10:09 AM
This revision was automatically updated to reflect the committed changes.

This revision was not accepted when it landed; it landed in state Needs Review.

This is surprising because sdiepets accepted the request shortly before - I filed a bug report https://phabricator.kde.org/T10443

It was not accepted, because ppeter's vote was still a rejection. Don't worry about that message. In the future, @ppeter , please use "Resign from review" function, or explicitly accept the review.