Skip to content

Commit 351e4ed

Browse files
author
navrkald
committed
This is first release.
It is not finished as I would wish but it must be enough. Main issues are repaired and main functionality is finished. Hope there are not any errors or inconsistency. (Lets God's will be done...)
1 parent e1667bb commit 351e4ed

File tree

6 files changed

+109
-108
lines changed

6 files changed

+109
-108
lines changed
4.42 KB
Binary file not shown.

RegularConvertor/RegularConvertor_cs_CZ.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,15 @@ p, li { white-space: pre-wrap; }
175175
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:10pt;"><br /></p>
176176
<p align="center" style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:10pt;"><br /></p>
177177
&lt;p align=&quot;center&quot; 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-size:10pt;&quot;&gt;Pokračujte prosím &lt;/span&gt;&lt;span style=&quot; font-size:10pt; font-weight:600;&quot;&gt;výběrem módu a konverze&lt;/span&gt;&lt;span style=&quot; font-size:10pt;&quot;&gt; nebo &lt;/span&gt;&lt;span style=&quot; font-size:10pt; font-weight:600;&quot;&gt;výběrem příkladu&lt;/span&gt;&lt;span style=&quot; font-size:10pt;&quot;&gt;.&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
178-
<translation type="unfinished"></translation>
178+
<translation type="unfinished">&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt;
179+
&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;
180+
p, li { white-space: pre-wrap; }
181+
&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:&apos;Sans Serif&apos;; font-size:9pt; font-weight:400; font-style:normal;&quot;&gt;
182+
&lt;p align=&quot;center&quot; 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-size:12pt;&quot;&gt;Výtejte v programu Regular Convertor!&lt;/span&gt;&lt;/p&gt;
183+
&lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:12pt;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
184+
&lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:10pt;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
185+
&lt;p align=&quot;center&quot; style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:10pt;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
186+
&lt;p align=&quot;center&quot; 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-size:10pt;&quot;&gt;Pokračujte prosím &lt;/span&gt;&lt;span style=&quot; font-size:10pt; font-weight:600;&quot;&gt;výběrem módu a konverze&lt;/span&gt;&lt;span style=&quot; font-size:10pt;&quot;&gt; nebo &lt;/span&gt;&lt;span style=&quot; font-size:10pt; font-weight:600;&quot;&gt;výběrem příkladu&lt;/span&gt;&lt;span style=&quot; font-size:10pt;&quot;&gt;.&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
179187
</message>
180188
<message>
181189
<location filename="mainwindow.ui" line="55"/>

RegularConvertor/main.cpp

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -14,27 +14,6 @@ int main(int argc, char *argv[])
1414
MainWindow w;
1515
w.show();
1616

17-
// kódování pro lokalizaci bude UTF-8
18-
//QTextCodec::setCodecForTr(QTextCodec::codecForName("utf8"));
19-
20-
QTranslator t;
21-
22-
/* načteme překlad podle aktuální locale ze souboru ve tvaru:
23-
* název programu + podtržítko + jazyk_země
24-
* kde jazyk je dvoumístný kód jazyka (ISO 639) malými písmeny a
25-
* země je dvoumístný kód země (ISO 3166) velkými písmeny, např. cs_CZ
26-
*/
27-
//t.load( app.applicationName() + "_" + QLocale::system().name() );
28-
29-
if(t.load(":/translations/language/RegularConvertor_cs_CZ.qm"))
30-
qDebug() << "Překlad úspěšně načten.";
31-
else
32-
qDebug() << "Překlad nenačten!";
33-
34-
35-
// a přiřadíme jej k této instanci programu
36-
a.installTranslator(&t);
37-
3817

3918
return a.exec();
4019
}

0 commit comments

Comments
 (0)