<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof ContentPasted1 ContentPasted2">
I am looking for a way in Python to get the translation of a string that is translated in QGIS core.  I know how to create and use my own translation files in a QGIS plugin.  But now I want to use a string that is already translated in QGIS core.<br>
<br>
In for example the file "qgis_nl.ts" I found the translated value for "Loading Plugins":<br>
<pre class="ContentPasted0">    <message>
        <location filename="../src/app/qgspluginregistry.cpp" line="410"/>
        <source>Loading Plugins</source>
        <translation>Plug-ins laden</translation>
    </message></pre>
But I want to use that translation in a Python plugin.  Does anybody know what the way is to get the translation of a core string using Python?</div>
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof ContentPasted1 ContentPasted2">
<br>
</div>
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof ContentPasted1 ContentPasted2">
<br>
</div>
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof ContentPasted1 ContentPasted2">
Michel Stuyts<br>
</div>
</body>
</html>