Skip to content

Commit

Permalink
<feature> improve font replace template which greatly solve the squar…
Browse files Browse the repository at this point in the history
…e symbols problem

update version to v2.3.3
  • Loading branch information
anonymousException committed Jun 4, 2024
1 parent 54c5359 commit a1c11f2
Show file tree
Hide file tree
Showing 30 changed files with 40 additions and 30 deletions.
12 changes: 11 additions & 1 deletion src/font_style_template.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
init python early hide:
old_load_face = renpy.text.font.load_face

def my_load_face(fn):
if renpy.game.preferences.language == "{tl_name}":
fn = "{font_path}"
return old_load_face(fn)

renpy.text.font.load_face = my_load_face

translate {tl_name} python:
import os
import sys
Expand All @@ -9,4 +19,4 @@ translate {tl_name} python:

font_path = "{font_path}"
#replace defined font
change_font(font_path)
change_font(font_path)
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.
4 changes: 2 additions & 2 deletions src/ts/arabic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1185,8 +1185,8 @@
</message>
<message>
<location filename="../ui.ui" line="78"/>
<source>Version 2.3.2</source>
<translation>الإصدار2.3.2</translation>
<source>Version 2.3.3</source>
<translation>الإصدار2.3.3</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 @@ -1185,8 +1185,8 @@
</message>
<message>
<location filename="../ui.ui" line="78"/>
<source>Version 2.3.2</source>
<translation>সংস্করণ 2.3.2</translation>
<source>Version 2.3.3</source>
<translation>সংস্করণ 2.3.3</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 @@ -1183,8 +1183,8 @@
</message>
<message>
<location filename="../ui.ui" line="78"/>
<source>Version 2.3.2</source>
<translation>版本 2.3.2</translation>
<source>Version 2.3.3</source>
<translation>版本 2.3.3</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 @@ -1258,7 +1258,7 @@
</message>
<message>
<location filename="../ui.ui" line="78"/>
<source>Version 2.3.2</source>
<source>Version 2.3.3</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 @@ -1185,8 +1185,8 @@
</message>
<message>
<location filename="../ui.ui" line="78"/>
<source>Version 2.3.2</source>
<translation>Version 2.3.2</translation>
<source>Version 2.3.3</source>
<translation>Version 2.3.3</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 @@ -1293,8 +1293,8 @@
</message>
<message>
<location filename="../ui.ui" line="78"/>
<source>Version 2.3.2</source>
<translation>Version 2.3.2</translation>
<source>Version 2.3.3</source>
<translation>Version 2.3.3</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 @@ -1185,8 +1185,8 @@
</message>
<message>
<location filename="../ui.ui" line="78"/>
<source>Version 2.3.2</source>
<translation>संस्करण 2.3.2</translation>
<source>Version 2.3.3</source>
<translation>संस्करण 2.3.3</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 @@ -1179,8 +1179,8 @@
</message>
<message>
<location filename="../ui.ui" line="78"/>
<source>Version 2.3.2</source>
<translation>バージョン2.3.2</translation>
<source>Version 2.3.3</source>
<translation>バージョン2.3.3</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 @@ -1293,8 +1293,8 @@
</message>
<message>
<location filename="../ui.ui" line="78"/>
<source>Version 2.3.2</source>
<translation>버전 2.3.2</translation>
<source>Version 2.3.3</source>
<translation>버전 2.3.3</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 @@ -1185,8 +1185,8 @@
</message>
<message>
<location filename="../ui.ui" line="78"/>
<source>Version 2.3.2</source>
<translation>Versão 2.3.2</translation>
<source>Version 2.3.3</source>
<translation>Versão 2.3.3</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 @@ -1185,8 +1185,8 @@
</message>
<message>
<location filename="../ui.ui" line="78"/>
<source>Version 2.3.2</source>
<translation>Версия 2.3.2</translation>
<source>Version 2.3.3</source>
<translation>Версия 2.3.3</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 @@ -1185,8 +1185,8 @@
</message>
<message>
<location filename="../ui.ui" line="78"/>
<source>Version 2.3.2</source>
<translation>Versión 2.3.2</translation>
<source>Version 2.3.3</source>
<translation>Versión 2.3.3</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 @@ -1270,8 +1270,8 @@
</message>
<message>
<location filename="../ui.ui" line="78"/>
<source>Version 2.3.2</source>
<translation>Sürüm 2.3.2</translation>
<source>Version 2.3.3</source>
<translation>Sürüm 2.3.3</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 @@ -1185,8 +1185,8 @@
</message>
<message>
<location filename="../ui.ui" line="78"/>
<source>Version 2.3.2</source>
<translation>ورژن 2.3.2</translation>
<source>Version 2.3.3</source>
<translation>ورژن 2.3.3</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.3.2", None))
self.versionLabel.setText(QCoreApplication.translate("MainWindow", u"Version 2.3.3", 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.3.2</string>
<string>Version 2.3.3</string>
</property>
</widget>
</item>
Expand Down

0 comments on commit a1c11f2

Please sign in to comment.