<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Detecting N++ UI Language]]></title><description><![CDATA[<p dir="auto">I’m considering adding multi-language support to the MultiReplace Plugin.</p>
<p dir="auto">Initially, I was surprised to find that there’s no API to retrieve the current localization language. I discovered that the nativeLang.xml file in %APPDATA%\Notepad++\ stores the current language used. Currently, I’m thinking of locating this file to determine the language, but is there a better way to do this? It seems somewhat like an unsupported hack to me. But i don’t want uncouple this setting from Notepad++ Settings.</p>
<p dir="auto">Are there any ideas of other Plugins supporting different languages?</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/25287/detecting-n-ui-language</link><generator>RSS for Node</generator><lastBuildDate>Tue, 09 Jun 2026 05:23:55 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/25287.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 30 Dec 2023 14:50:36 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Detecting N++ UI Language on Sat, 30 Dec 2023 19:14:58 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/rdipardo" aria-label="Profile: rdipardo">@<bdi>rdipardo</bdi></a><br />
Delphi is one of my favorites 😉 it reminds me of my first big project from the early 90s. I’ve even managed to save the code on my GitHub.</p>
<p dir="auto">Your MultiLanguage implementation indicates that keeping the language snippets in a flat structure should suffice. I also don’t see any additional value in complicating it with XML.</p>
<p dir="auto">Thanks for sharing!</p>
]]></description><link>https://community.notepad-plus-plus.org/post/91532</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/91532</guid><dc:creator><![CDATA[Thomas Knoefel]]></dc:creator><pubDate>Sat, 30 Dec 2023 19:14:58 GMT</pubDate></item><item><title><![CDATA[Reply to Detecting N++ UI Language on Sat, 30 Dec 2023 17:25:10 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/thomas-knoefel" aria-label="Profile: Thomas-Knoefel">@<bdi>Thomas-Knoefel</bdi></a> said in <a href="/post/91522">Detecting N++ UI Language</a>:</p>
<blockquote>
<p dir="auto">Are there any ideas of other Plugins supporting different languages?</p>
</blockquote>
<p dir="auto">See <a href="https://github.com/rdipardo/nppHTMLTag/issues/5" rel="nofollow ugc">https://github.com/rdipardo/nppHTMLTag/issues/5</a></p>
<p dir="auto">In case Delphi is all Greek to you (😉), what <a href="https://github.com/rdipardo/nppHTMLTag/blob/dd05730d68eba196b584d34a6c7ccd81d2e3bfe8/src/LibNppPlugin/LocalizedNppPlugin.pas" rel="nofollow ugc">this does</a> is look for <code>nativeLang.xml</code>, parse the attribute value of <code>/NotepadPlus/Native-Langue[@filename]</code> (<em>sic</em>), strip off the <code>*.xml</code> extension, then use the value to index <a href="https://github.com/rdipardo/nppHTMLTag/blob/dd05730d68eba196b584d34a6c7ccd81d2e3bfe8/dat/HTMLTag-translations.ini" rel="nofollow ugc">a dictionary</a> of localized menu titles.</p>
<p dir="auto">Very much a work in progress that I won’t be getting around to anytime soon.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/91528</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/91528</guid><dc:creator><![CDATA[rdipardo]]></dc:creator><pubDate>Sat, 30 Dec 2023 17:25:10 GMT</pubDate></item><item><title><![CDATA[Reply to Detecting N++ UI Language on Sat, 30 Dec 2023 16:14:19 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: PeterJones">@<bdi>PeterJones</bdi></a><br />
Thank you, Peter, for confirming that my findings are correct. In any case, I will provide a fallback in English language if anything changes within the N++ config files or their names in further N++ versions.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/91524</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/91524</guid><dc:creator><![CDATA[Thomas Knoefel]]></dc:creator><pubDate>Sat, 30 Dec 2023 16:14:19 GMT</pubDate></item><item><title><![CDATA[Reply to Detecting N++ UI Language on Sat, 30 Dec 2023 15:57:25 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/thomas-knoefel" aria-label="Profile: Thomas-Knoefel">@<bdi>Thomas-Knoefel</bdi></a> said in <a href="/post/91522">Detecting N++ UI Language</a>:</p>
<blockquote>
<p dir="auto">seems somewhat like an unsupported hack to me</p>
</blockquote>
<p dir="auto">The developer did not anticipate plugin authors wanting to know about or influence the current NPP configuration.</p>
<p dir="auto">To help with your hack, <a href="https://npp-user-manual.org/docs/plugin-communication/#2070-nppm-getpluginsconfigdir" rel="nofollow ugc">NPPM_GETPLUGINSCPNFIGDIR</a> gets you <code>...\plugins\config</code> in the appropriate appdata/portable/settingsDir location, so doing <code>..\..</code> from there will get you to the right directory for NPP config files, regardless of install/config mode.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/91523</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/91523</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Sat, 30 Dec 2023 15:57:25 GMT</pubDate></item></channel></rss>