<div dir="ltr"><div>Hi everyone,</div><div><br></div><div>I have some translation-related questions for the external tools plugin. Currently some things are certainly wrong.</div><div><br></div><div>1. Messages.sh</div><div>We have default tools in a file compiled into Kate, see:</div><div><a href="https://invent.kde.org/kde/kate/blob/master/addons/externaltools/defaultexternaltoolsrc">https://invent.kde.org/kde/kate/blob/master/addons/externaltools/defaultexternaltoolsrc</a></div><div>In short, this is a ini-like file. Entries that need translation are:</div><div>name=...</div><div>category=...</div><div>The rest must not be translated. Still, I am pretty sure we are missing a line or so in the Message.sh extraction script:</div><div><a href="https://invent.kde.org/kde/kate/blob/master/addons/externaltools/Messages.sh">https://invent.kde.org/kde/kate/blob/master/addons/externaltools/Messages.sh</a></div><div><br></div><div>Can one of you clarify how to do this properly?</div><div><br></div><div>2. ui.rc</div><div>The xmlgui file is located here:<br></div><div><a href="https://invent.kde.org/kde/kate/blob/master/addons/externaltools/ui.rc">https://invent.kde.org/kde/kate/blob/master/addons/externaltools/ui.rc</a></div><div>The contents to be discussed is:<br></div><div><gui name="externaltools" library="externaltoolsplugin" version="1"></div><div><br></div><div>In other plugins, I can also find an attribute "translationDomain", e.g.:</div><div><a href="https://invent.kde.org/kde/kate/blob/master/addons/lspclient/ui.rc">https://invent.kde.org/kde/kate/blob/master/addons/lspclient/ui.rc</a></div><div><br></div><div>My CMakeLists.txt file located at</div><div><a href="https://invent.kde.org/kde/kate/blob/master/addons/externaltools/CMakeLists.txt">https://invent.kde.org/kde/kate/blob/master/addons/externaltools/CMakeLists.txt</a></div><div>contains this:</div><div>target_compile_definitions(externaltoolsplugin PRIVATE TRANSLATION_DOMAIN="kateexternaltoolsplugin")</div><div><br></div><div>Am I missing the translationDomain in the ui.rc file?</div><div><br></div><div>Any hints are welcome.</div><div><br></div><div>Best regards</div><div>Dominik<br></div></div>