翻译保存器

This commit is contained in:
bgArray 2022-03-28 23:12:24 +08:00
parent 5011efcdee
commit 91446bfd81
22 changed files with 110 additions and 4 deletions

3
.idea/.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
# Default ignored files
/shelf/
/workspace.xml

12
.idea/Musicreater.iml Normal file
View File

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="PYTHON_MODULE" version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$" />
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
<component name="PyDocumentationSettings">
<option name="format" value="PLAIN" />
<option name="myDocStringFormat" value="Plain" />
</component>
</module>

View File

@ -0,0 +1,47 @@
<component name="InspectionProjectProfileManager">
<profile version="1.0">
<option name="myName" value="Project Default" />
<inspection_tool class="LongLine" enabled="true" level="WEAK WARNING" enabled_by_default="true" />
<inspection_tool class="PyArgumentEqualDefaultInspection" enabled="true" level="WEAK WARNING" enabled_by_default="true" />
<inspection_tool class="PyAugmentAssignmentInspection" enabled="true" level="WEAK WARNING" enabled_by_default="true" />
<inspection_tool class="PyClassicStyleClassInspection" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="PyCompatibilityInspection" enabled="false" level="WARNING" enabled_by_default="false">
<option name="ourVersions">
<value>
<list size="1">
<item index="0" class="java.lang.String" itemvalue="3.10" />
</list>
</value>
</option>
</inspection_tool>
<inspection_tool class="PyMandatoryEncodingInspection" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="PyMissingTypeHintsInspection" enabled="true" level="WEAK WARNING" enabled_by_default="true" />
<inspection_tool class="PyPep8Inspection" enabled="true" level="WEAK WARNING" enabled_by_default="true">
<option name="ignoredErrors">
<list>
<option value="E501" />
</list>
</option>
</inspection_tool>
<inspection_tool class="PyPep8NamingInspection" enabled="true" level="WEAK WARNING" enabled_by_default="true">
<option name="ignoredErrors">
<list>
<option value="N802" />
<option value="N803" />
<option value="N806" />
<option value="N813" />
<option value="N801" />
</list>
</option>
</inspection_tool>
<inspection_tool class="PyUnboundLocalVariableInspection" enabled="false" level="WARNING" enabled_by_default="false" />
<inspection_tool class="PyUnresolvedReferencesInspection" enabled="true" level="WARNING" enabled_by_default="true">
<option name="ignoredIdentifiers">
<list>
<option value="list.__getitem__" />
<option value="list.split" />
</list>
</option>
</inspection_tool>
</profile>
</component>

View File

@ -0,0 +1,6 @@
<component name="InspectionProjectProfileManager">
<settings>
<option name="USE_PROJECT_PROFILE" value="false" />
<version value="1.0" />
</settings>
</component>

4
.idea/misc.xml Normal file
View File

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.9" project-jdk-type="Python SDK" />
</project>

8
.idea/modules.xml Normal file
View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/Musicreater.iml" filepath="$PROJECT_DIR$/.idea/Musicreater.iml" />
</modules>
</component>
</project>

6
.idea/vcs.xml Normal file
View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="Git" />
</component>
</project>

View File

@ -1,5 +1,13 @@
zh-CN zh-ME
简体中文 中国大陆 喵喵文 中国大陆
Simplified Chinese, Chinese Mainland Meow Catsese, China Mainland
简体中文 中国大陆 喵喵喵~ 祖国喵~
金羿,Email EillesWan@outlook.com,QQ 2647547478
音创创喵~
音·创 Musicreater
音创创喵的主人们
凌天之云创新我的世界开发团队\n×\n凌天之云创新计算机应用软件开发团队
~ 主人们 ~
~ 爸爸妈妈们 ~
好哒~

View File

@ -84,6 +84,7 @@ def __loadLanguage(languageFilename: str):
from msctLib.log import log from msctLib.log import log
log(f'丢失对于 {line[0]} 的本地化文本', 'WARRING') log(f'丢失对于 {line[0]} 的本地化文本', 'WARRING')
langkeys = _text.keys() langkeys = _text.keys()
# print(_text)
return _text return _text
@ -180,6 +181,8 @@ if __name__ == '__main__':
Translatetextbar.edit_redo() Translatetextbar.edit_redo()
Translatetextbar.bind("<Control-y>", ctrlY) Translatetextbar.bind("<Control-y>", ctrlY)
Translatetextbar.bind("<Control-s>", _autoSave)
tk.Button(Translaterame, text='保存', command=_autoSave).pack(side='bottom', fill='x') tk.Button(Translaterame, text='保存', command=_autoSave).pack(side='bottom', fill='x')
tk.Label(Orignrame, text='中文原文').pack(side='top') tk.Label(Orignrame, text='中文原文').pack(side='top')

View File

@ -0,0 +1 @@
22:56:14-[ERROR] 无法找到本地化文本LANGLOCALNAME

View File

@ -0,0 +1 @@
22:57:35-[ERROR] 无法找到本地化文本LANGLOCALNAME

View File

@ -0,0 +1 @@
22:59:36-[ERROR] 无法找到本地化文本LANGLOCALNAME

View File

@ -0,0 +1 @@
23:08:19-[ERROR] 无法找到本地化文本LANGLOCALNAME

View File

@ -0,0 +1 @@
23:08:51-[ERROR] 无法找到本地化文本LANGLOCALNAME

View File

@ -0,0 +1 @@
23:09:24-[ERROR] 无法找到本地化文本LANGLOCALNAME

View File

@ -0,0 +1 @@
23:09:42-[ERROR] 无法找到本地化文本LANGLOCALNAME

View File

@ -0,0 +1 @@
23:10:49-[ERROR] 无法找到本地化文本LANGLOCALNAME

View File

@ -0,0 +1 @@
23:11:14-[ERROR] 无法找到本地化文本LANGLOCALNAME

Binary file not shown.

Binary file not shown.