Skip to content

Commit

Permalink
<fix> fix unable to replace font style when the style font use gui.xxx
Browse files Browse the repository at this point in the history
update version to v2.2.6
  • Loading branch information
anonymousException committed Apr 29, 2024
1 parent 7b6c659 commit b98c318
Show file tree
Hide file tree
Showing 30 changed files with 33 additions and 38 deletions.
Binary file modified src/qm/arabic.qm
Binary file not shown.
Binary file modified src/qm/bengali.qm
Binary file not shown.
Binary file modified src/qm/chinese.qm
Binary file not shown.
Binary file modified src/qm/french.qm
Binary file not shown.
Binary file modified src/qm/german.qm
Binary file not shown.
Binary file modified src/qm/hindi.qm
Binary file not shown.
Binary file modified src/qm/japanese.qm
Binary file not shown.
Binary file modified src/qm/korean.qm
Binary file not shown.
Binary file modified src/qm/portuguese.qm
Binary file not shown.
Binary file modified src/qm/russian.qm
Binary file not shown.
Binary file modified src/qm/spanish.qm
Binary file not shown.
Binary file modified src/qm/turkish.qm
Binary file not shown.
Binary file modified src/qm/urdu.qm
Binary file not shown.
13 changes: 4 additions & 9 deletions src/renpy_fonts.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def ExtractStyleFontList(data, file=None):
font_line = ''
for _i, e in enumerate(i):
if _i != 0:
if 'font "' in e or "font '" in e:
if 'font ' in e:
font_line = e
flag = True
continue
Expand Down Expand Up @@ -118,15 +118,10 @@ def ExtractStyleFontListFromDirectory(p):


def ExtractFontContent(data):
tag = '"'
index = data.find('font "')
index = data.find('font ')
if index == -1:
index = data.find("font '")
tag = "'"
if index == -1:
return data
index2 = data[index + 6:].find(tag) + index + 6 + 1
return data[index:index2]
return data
return data[index:]


def GenGuiFontsOriginal(p, tl_name, font_path):
Expand Down
4 changes: 2 additions & 2 deletions src/ts/arabic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1180,8 +1180,8 @@
</message>
<message>
<location filename="../ui.ui" line="78"/>
<source>Version 2.2.5</source>
<translation>الإصدار2.2.5</translation>
<source>Version 2.2.6</source>
<translation>الإصدار2.2.6</translation>
</message>
<message>
<location filename="../ui.ui" line="113"/>
Expand Down
4 changes: 2 additions & 2 deletions src/ts/bengali.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1180,8 +1180,8 @@
</message>
<message>
<location filename="../ui.ui" line="78"/>
<source>Version 2.2.5</source>
<translation>সংস্করণ 2.2.5</translation>
<source>Version 2.2.6</source>
<translation>সংস্করণ 2.2.6</translation>
</message>
<message>
<location filename="../ui.ui" line="113"/>
Expand Down
4 changes: 2 additions & 2 deletions src/ts/chinese.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1178,8 +1178,8 @@
</message>
<message>
<location filename="../ui.ui" line="78"/>
<source>Version 2.2.5</source>
<translation>版本 2.2.5</translation>
<source>Version 2.2.6</source>
<translation>版本 2.2.6</translation>
</message>
<message>
<location filename="../ui.ui" line="113"/>
Expand Down
2 changes: 1 addition & 1 deletion src/ts/default.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1253,7 +1253,7 @@
</message>
<message>
<location filename="../ui.ui" line="78"/>
<source>Version 2.2.5</source>
<source>Version 2.2.6</source>
<translation type="unfinished"></translation>
</message>
<message>
Expand Down
4 changes: 2 additions & 2 deletions src/ts/french.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1180,8 +1180,8 @@
</message>
<message>
<location filename="../ui.ui" line="78"/>
<source>Version 2.2.5</source>
<translation>Version 2.2.5</translation>
<source>Version 2.2.6</source>
<translation>Version 2.2.6</translation>
</message>
<message>
<location filename="../ui.ui" line="113"/>
Expand Down
4 changes: 2 additions & 2 deletions src/ts/german.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1288,8 +1288,8 @@
</message>
<message>
<location filename="../ui.ui" line="78"/>
<source>Version 2.2.5</source>
<translation>Version 2.2.5</translation>
<source>Version 2.2.6</source>
<translation>Version 2.2.6</translation>
</message>
<message>
<location filename="../ui.ui" line="391"/>
Expand Down
4 changes: 2 additions & 2 deletions src/ts/hindi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1180,8 +1180,8 @@
</message>
<message>
<location filename="../ui.ui" line="78"/>
<source>Version 2.2.5</source>
<translation>संस्करण 2.2.5</translation>
<source>Version 2.2.6</source>
<translation>संस्करण 2.2.6</translation>
</message>
<message>
<location filename="../ui.ui" line="113"/>
Expand Down
4 changes: 2 additions & 2 deletions src/ts/japanese.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1174,8 +1174,8 @@
</message>
<message>
<location filename="../ui.ui" line="78"/>
<source>Version 2.2.5</source>
<translation>バージョン2.2.5</translation>
<source>Version 2.2.6</source>
<translation>バージョン2.2.6</translation>
</message>
<message>
<location filename="../ui.ui" line="113"/>
Expand Down
4 changes: 2 additions & 2 deletions src/ts/korean.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1288,8 +1288,8 @@
</message>
<message>
<location filename="../ui.ui" line="78"/>
<source>Version 2.2.5</source>
<translation>버전 2.2.5</translation>
<source>Version 2.2.6</source>
<translation>버전 2.2.6</translation>
</message>
<message>
<location filename="../ui.ui" line="391"/>
Expand Down
4 changes: 2 additions & 2 deletions src/ts/portuguese.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1180,8 +1180,8 @@
</message>
<message>
<location filename="../ui.ui" line="78"/>
<source>Version 2.2.5</source>
<translation>Versão 2.2.5</translation>
<source>Version 2.2.6</source>
<translation>Versão 2.2.6</translation>
</message>
<message>
<location filename="../ui.ui" line="113"/>
Expand Down
4 changes: 2 additions & 2 deletions src/ts/russian.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1180,8 +1180,8 @@
</message>
<message>
<location filename="../ui.ui" line="78"/>
<source>Version 2.2.5</source>
<translation>Версия 2.2.5</translation>
<source>Version 2.2.6</source>
<translation>Версия 2.2.6</translation>
</message>
<message>
<location filename="../ui.ui" line="113"/>
Expand Down
4 changes: 2 additions & 2 deletions src/ts/spanish.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1180,8 +1180,8 @@
</message>
<message>
<location filename="../ui.ui" line="78"/>
<source>Version 2.2.5</source>
<translation>Versión 2.2.5</translation>
<source>Version 2.2.6</source>
<translation>Versión 2.2.6</translation>
</message>
<message>
<location filename="../ui.ui" line="113"/>
Expand Down
4 changes: 2 additions & 2 deletions src/ts/turkish.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1265,8 +1265,8 @@
</message>
<message>
<location filename="../ui.ui" line="78"/>
<source>Version 2.2.5</source>
<translation>Sürüm 2.2.5</translation>
<source>Version 2.2.6</source>
<translation>Sürüm 2.2.6</translation>
</message>
<message>
<location filename="../ui.ui" line="391"/>
Expand Down
4 changes: 2 additions & 2 deletions src/ts/urdu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1180,8 +1180,8 @@
</message>
<message>
<location filename="../ui.ui" line="78"/>
<source>Version 2.2.5</source>
<translation>ورژن 2.2.5</translation>
<source>Version 2.2.6</source>
<translation>ورژن 2.2.6</translation>
</message>
<message>
<location filename="../ui.ui" line="113"/>
Expand Down
2 changes: 1 addition & 1 deletion src/ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ def retranslateUi(self, MainWindow):
self.actionpack_game_files.setText(QCoreApplication.translate("MainWindow", u"pack game files", None))
self.clearLogBtn.setText(QCoreApplication.translate("MainWindow", u"clear log", None))
self.copyrightLabel.setText(QCoreApplication.translate("MainWindow", u"\u00a92024 Last moment,All rights reserved.", None))
self.versionLabel.setText(QCoreApplication.translate("MainWindow", u"Version 2.2.5", None))
self.versionLabel.setText(QCoreApplication.translate("MainWindow", u"Version 2.2.6", None))
self.translateBtn.setText(QCoreApplication.translate("MainWindow", u"translate", None))
self.selectFilesBtn.setText(QCoreApplication.translate("MainWindow", u"...", None))
self.label_2.setText(QCoreApplication.translate("MainWindow", u"directory", None))
Expand Down
2 changes: 1 addition & 1 deletion src/ui.ui
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
</size>
</property>
<property name="text">
<string>Version 2.2.5</string>
<string>Version 2.2.6</string>
</property>
</widget>
</item>
Expand Down

0 comments on commit b98c318

Please sign in to comment.