Skip to content

Commit

Permalink
src:fixed configuration retention error caused by localization multi-…
Browse files Browse the repository at this point in the history
…language issues

Signed-off-by: xiaoming <2014500726@smail.xtu.edu.cn>
  • Loading branch information
QQxiaoming committed Oct 10, 2023
1 parent b27a708 commit 8a80d52
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 40 deletions.
2 changes: 1 addition & 1 deletion build_deb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ QT_DIR=/opt/Qt6.2.0/6.2.0/gcc_64
# 定义版本号
TTFVIEWER_MAJARVERSION="0"
TTFVIEWER_SUBVERSION="2"
TTFVIEWER_REVISION="5"
TTFVIEWER_REVISION="6"
###############################################################################


Expand Down
2 changes: 1 addition & 1 deletion build_dmg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ QT_DIR=/opt/Qt6.2.0/6.2.0/gcc_64
# 定义版本号
TTFVIEWER_MAJARVERSION="0"
TTFVIEWER_SUBVERSION="2"
TTFVIEWER_REVISION="5"
TTFVIEWER_REVISION="6"
###############################################################################


Expand Down
2 changes: 1 addition & 1 deletion build_setup.bat
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ set "QT_TOOLS_DIR=C:/Qt/Qt6.2.0/Tools/mingw810_32/bin"
:: 定义Inno Setup目录
set "INNO_SETUP_DIR=C:/Program Files (x86)/Inno Setup 6"
:: 定义版本号
set "TTFVIEWER_VERSION=0.2.5"
set "TTFVIEWER_VERSION=0.2.6"
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::


Expand Down
16 changes: 3 additions & 13 deletions lang/ttfviewer_en_US.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,6 @@
<source>TTF Format</source>
<translation></translation>
</message>
<message>
<location filename="../src/UI_TTFviewer.ui" line="85"/>
<source>ttf</source>
<translation></translation>
</message>
<message>
<location filename="../src/UI_TTFviewer.ui" line="90"/>
<source>ttf_verbose</source>
<translation></translation>
</message>
<message>
<location filename="../src/UI_TTFviewer.ui" line="106"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p align=&quot;center&quot;&gt;Width&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
Expand Down Expand Up @@ -73,7 +63,7 @@
</message>
<message>
<location filename="../src/UI_TTFviewer.ui" line="282"/>
<location filename="../src/TTFviewer.cpp" line="426"/>
<location filename="../src/TTFviewer.cpp" line="439"/>
<source>About</source>
<translation></translation>
</message>
Expand All @@ -83,7 +73,7 @@
<translation></translation>
</message>
<message>
<location filename="../src/TTFviewer.cpp" line="412"/>
<location filename="../src/TTFviewer.cpp" line="425"/>
<source>1.Select parameters on the main interface.
2.Click Open File or Folder to parse the image data and display the image.
3.Used in the image display interface
Expand All @@ -95,7 +85,7 @@
<translation></translation>
</message>
<message>
<location filename="../src/TTFviewer.cpp" line="427"/>
<location filename="../src/TTFviewer.cpp" line="440"/>
<source>&lt;p&gt;Version&lt;/p&gt;&lt;p&gt;&amp;nbsp;%1&lt;/p&gt;&lt;p&gt;Commit&lt;/p&gt;&lt;p&gt;&amp;nbsp;%2&lt;/p&gt;&lt;p&gt;Author&lt;/p&gt;&lt;p&gt;&amp;nbsp;qiaoqm@aliyun.com&lt;/p&gt;&lt;p&gt;Website&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;a href=&apos;https://github.com/QQxiaoming/TTFviewer&apos;&gt;https://github.com/QQxiaoming&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;a href=&apos;https://gitee.com/QQxiaoming/TTFviewer&apos;&gt;https://gitee.com/QQxiaoming&lt;/a&gt;&lt;/p&gt;</source>
<translation></translation>
</message>
Expand Down
14 changes: 4 additions & 10 deletions lang/ttfviewer_ja_JP.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,8 @@
<translation>TTF形式</translation>
</message>
<message>
<location filename="../src/UI_TTFviewer.ui" line="85"/>
<source>ttf</source>
<translation></translation>
</message>
<message>
<location filename="../src/UI_TTFviewer.ui" line="90"/>
<source>ttf_verbose</source>
<translation>ttf アノテーション情報を含む</translation>
<translation type="vanished">ttf アノテーション情報を含む</translation>
</message>
<message>
<location filename="../src/UI_TTFviewer.ui" line="106"/>
Expand Down Expand Up @@ -73,7 +67,7 @@
</message>
<message>
<location filename="../src/UI_TTFviewer.ui" line="282"/>
<location filename="../src/TTFviewer.cpp" line="426"/>
<location filename="../src/TTFviewer.cpp" line="439"/>
<source>About</source>
<translation>について</translation>
</message>
Expand All @@ -83,7 +77,7 @@
<translation>Qtについて</translation>
</message>
<message>
<location filename="../src/TTFviewer.cpp" line="412"/>
<location filename="../src/TTFviewer.cpp" line="425"/>
<source>1.Select parameters on the main interface.
2.Click Open File or Folder to parse the image data and display the image.
3.Used in the image display interface
Expand All @@ -102,7 +96,7 @@
- 中クリックすると、画像の元のサイズが表示されます。</translation>
</message>
<message>
<location filename="../src/TTFviewer.cpp" line="427"/>
<location filename="../src/TTFviewer.cpp" line="440"/>
<source>&lt;p&gt;Version&lt;/p&gt;&lt;p&gt;&amp;nbsp;%1&lt;/p&gt;&lt;p&gt;Commit&lt;/p&gt;&lt;p&gt;&amp;nbsp;%2&lt;/p&gt;&lt;p&gt;Author&lt;/p&gt;&lt;p&gt;&amp;nbsp;qiaoqm@aliyun.com&lt;/p&gt;&lt;p&gt;Website&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;a href=&apos;https://github.com/QQxiaoming/TTFviewer&apos;&gt;https://github.com/QQxiaoming&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;a href=&apos;https://gitee.com/QQxiaoming/TTFviewer&apos;&gt;https://gitee.com/QQxiaoming&lt;/a&gt;&lt;/p&gt;</source>
<translation>&lt;p&gt;バージョン&lt;/p&gt;&lt;p&gt;&amp;nbsp;%1&lt;/p&gt;&lt;p&gt;コミット&lt;/p&gt;&lt;p&gt;&amp;nbsp;%2&lt;/p&gt;&lt;p&gt;開発者&lt;/p&gt;&lt;p&gt;&amp;nbsp;qiaoqm@aliyun.com&lt;/p&gt;&lt;p&gt;ウェブサイト&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;a href=&apos;https://github.com/QQxiaoming/TTFviewer&apos;&gt;https://github.com/QQxiaoming&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;a href=&apos;https://gitee.com/QQxiaoming/TTFviewer&apos;&gt;https://gitee.com/QQxiaoming&lt;/a&gt;&lt;/p&gt;</translation>
</message>
Expand Down
14 changes: 4 additions & 10 deletions lang/ttfviewer_zh_CN.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,8 @@
<translation>TTF格式</translation>
</message>
<message>
<location filename="../src/UI_TTFviewer.ui" line="85"/>
<source>ttf</source>
<translation></translation>
</message>
<message>
<location filename="../src/UI_TTFviewer.ui" line="90"/>
<source>ttf_verbose</source>
<translation>ttf 带标注信息</translation>
<translation type="vanished">ttf 带标注信息</translation>
</message>
<message>
<location filename="../src/UI_TTFviewer.ui" line="106"/>
Expand Down Expand Up @@ -73,7 +67,7 @@
</message>
<message>
<location filename="../src/UI_TTFviewer.ui" line="282"/>
<location filename="../src/TTFviewer.cpp" line="426"/>
<location filename="../src/TTFviewer.cpp" line="439"/>
<source>About</source>
<translation>关于</translation>
</message>
Expand All @@ -83,7 +77,7 @@
<translation>关于Qt</translation>
</message>
<message>
<location filename="../src/TTFviewer.cpp" line="412"/>
<location filename="../src/TTFviewer.cpp" line="425"/>
<source>1.Select parameters on the main interface.
2.Click Open File or Folder to parse the image data and display the image.
3.Used in the image display interface
Expand All @@ -102,7 +96,7 @@
- 单击鼠标中键可显示图像的原始尺寸。</translation>
</message>
<message>
<location filename="../src/TTFviewer.cpp" line="427"/>
<location filename="../src/TTFviewer.cpp" line="440"/>
<source>&lt;p&gt;Version&lt;/p&gt;&lt;p&gt;&amp;nbsp;%1&lt;/p&gt;&lt;p&gt;Commit&lt;/p&gt;&lt;p&gt;&amp;nbsp;%2&lt;/p&gt;&lt;p&gt;Author&lt;/p&gt;&lt;p&gt;&amp;nbsp;qiaoqm@aliyun.com&lt;/p&gt;&lt;p&gt;Website&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;a href=&apos;https://github.com/QQxiaoming/TTFviewer&apos;&gt;https://github.com/QQxiaoming&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;a href=&apos;https://gitee.com/QQxiaoming/TTFviewer&apos;&gt;https://gitee.com/QQxiaoming&lt;/a&gt;&lt;/p&gt;</source>
<translation>&lt;p&gt;版本&lt;/p&gt;&lt;p&gt;&amp;nbsp;%1&lt;/p&gt;&lt;p&gt;提交&lt;/p&gt;&lt;p&gt;&amp;nbsp;%2&lt;/p&gt;&lt;p&gt;作者&lt;/p&gt;&lt;p&gt;&amp;nbsp;qiaoqm@aliyun.com&lt;/p&gt;&lt;p&gt;主页&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;a href=&apos;https://github.com/QQxiaoming/TTFviewer&apos;&gt;https://github.com/QQxiaoming&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;a href=&apos;https://gitee.com/QQxiaoming/TTFviewer&apos;&gt;https://gitee.com/QQxiaoming&lt;/a&gt;&lt;/p&gt;</translation>
</message>
Expand Down
2 changes: 1 addition & 1 deletion partform_unix.pri
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
# 定义freetype2 lib路径
FREETPE2_DIR=/home/qqm/Desktop/ttfviewer/depend/freetype
# 定义版本号路径
TTFVIEWER_VERSION=0.2.5
TTFVIEWER_VERSION=0.2.6
###############################################################################
2 changes: 1 addition & 1 deletion partform_win32.pri
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
# 定义freetype2 lib路径
FREETPE2_DIR=D:\ttfviewer\depend\freetype
# 定义版本号路径
TTFVIEWER_VERSION=0.2.5
TTFVIEWER_VERSION=0.2.6
###############################################################################
4 changes: 2 additions & 2 deletions src/UI_TTFviewer.ui
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,12 @@
<widget class="QComboBox" name="TTFFormat_ComboBox">
<item>
<property name="text">
<string>ttf</string>
<string notr="true">ttf</string>
</property>
</item>
<item>
<property name="text">
<string>ttf_verbose</string>
<string notr="true">ttf_verbose</string>
</property>
</item>
</widget>
Expand Down

0 comments on commit 8a80d52

Please sign in to comment.