This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

sRGB
#6
I removed most of the translation stuff from the code years ago.
In Qt translation works basically like this:
a. each text that should be ranslatable needs to be marked as such.
b. then a base translation file is created.
c. using qt linguist one can than translate this file into translation (ts) files for different languages. This also requires the .ui (user interface) design files.
d. the application would let the user select which translation to use.

One could do the translation without qt linguist. by editing the .ts file.
The .ts file is a simple xml file with messtage-elements like this.
    <message>
        <location filename="Frontend/MainHelper/UI/AVStats.ui"/>
        <source>AVStats</source>
        <translation>A/V Statistik</translation>
    </message>
a "location": the file where the text is in
a "source": the source text that gets translated
and the "translation", the new translated text.

Main annoyance with this is that the source-text also includes any formating:
    <message>
        <location filename="Frontend/MainHelper/UI/AVStats.ui"/>
        <source>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt;
&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;
p, li { white-space: pre-wrap; }
&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; ; font-weight:400; font-style:normal;&quot;&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-weight:600; text-decoration: underline; &quot;&gt;Video:&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;This shows the video informations detected for the currently selected video stream.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
        <translation type="unfinished"></translation>
    </message>
so it's a bit of annoying.

For the fun of it I created a translation file for the current source code (which isn't properly prepared for this), so you can see what it looks like.

-> Translation Hybrid probably won't happen any time soon since it would require that I go through the whole code prepare it so at least the translation files get created properly and only strings that should be translated are inside the files.

Cu Selur

Ps.: iirc the old translation thread was in the old forum.selur.de forum years ago.


Attached Files
.7z   translation.7z (Size: 269,46 KB / Downloads: 141)
----
Dev versions are in the 'experimental'-folder of my GoogleDrive, which is linked on the download page.
Reply


Messages In This Thread
sRGB - by karthauzi - 05.09.2022, 18:28
RE: sRGB - by Selur - 05.09.2022, 18:49
RE: sRGB - by karthauzi - 05.09.2022, 18:52
RE: sRGB - by Selur - 05.09.2022, 18:54
RE: sRGB - by karthauzi - 05.09.2022, 20:17
RE: sRGB - by Selur - 05.09.2022, 21:00

Forum Jump:


Users browsing this thread: 1 Guest(s)