<div dir="rtl"><div dir="ltr">Hello all.</div><div dir="ltr"><br></div><div dir="ltr">After doing some investigation about a problem, I came into an issue in loading correct translations in Frameworks (that has the “_qt” suffix in translation system).</div><div dir="ltr">Previously, I had my LANGUAGE enviroment variable containing “ar”, which is because I added Arabic in my “Language” KCM (without knowing that I don't need it if the locale is alread set to Arabic).<br></div><div dir="ltr">This was normal and things was translated well. Today I removed that “ar” because it's not needed, and all applications (Qt, KDE, Gnome, other KF5s) worked except for those frameworks which are using QM files (the ones with “_qt” suffix). The translation isn't loaded and strings are shown in English.</div><div dir="ltr"><br></div><div dir="ltr">I've made this very small Python script to test it. Notice the untranslated B (Bytes) and the translated one (بايت). The number 20 (in result is ٢٠) is localized correctly using the QLocale class, meaning that the locale is set properly.</div><div dir="ltr"><div dir="ltr"><br></div><div dir="ltr">printvar LANGUAGE</div><div dir="ltr">Result >>> ''</div><div dir="ltr"><br></div><div dir="ltr">BEGIN PYTHON3 CODE:</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">from PyQt5.QtCore import *<br>from PyQt5.QtWidgets import *<br>from PyKF5 import KCoreAddons<br>app = QApplication([""])<br>format = KCoreAddons.KFormat()<br>format.formatByteSize(20)<br>Result >>> '٢٠ B'</blockquote>END PYTHON3 CODE</div><div dir="ltr"><br><div dir="ltr">LANGUAGE=ar</div><div dir="ltr"><br></div><div dir="ltr">BEGIN PYTHON3 CODE:</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">from PyQt5.QtCore import *<br>from PyQt5.QtWidgets import *<br>from PyKF5 import KCoreAddons<br>app = QApplication([""])<br>format = KCoreAddons.KFormat()<br>format.formatByteSize(20)<br>Result >>> '٢٠ بايت'</blockquote>END PYTHON3 CODE</div><div dir="ltr"><br></div><div dir="ltr"><br></div><div dir="ltr">Regards,</div><div dir="ltr">Safa</div><div dir="ltr"><br></div><div dir="ltr">P.S.: I am not subscribed to the list, please CC me.</div><div dir="ltr"><br></div></div>