mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2024-12-26 23:24:13 +08:00
something (#1115)
This commit is contained in:
parent
3dc87ffc91
commit
a350f003d9
8
.github/workflows/build.yml
vendored
8
.github/workflows/build.yml
vendored
@ -2,9 +2,9 @@ name: build
|
||||
|
||||
on:
|
||||
push:
|
||||
paths: [ '.github/workflows/build.yml','build.py', 'LunaTranslator/**' , 'plugins/**' ]
|
||||
paths: [ '.github/workflows/build.yml','src/**']
|
||||
pull_request:
|
||||
paths: [ '.github/workflows/build.yml','build.py', 'LunaTranslator/**' , 'plugins/**']
|
||||
paths: [ '.github/workflows/build.yml','src/**']
|
||||
|
||||
jobs:
|
||||
build:
|
||||
@ -36,8 +36,8 @@ jobs:
|
||||
|
||||
- name: Run build script
|
||||
run: |
|
||||
python build.py ${{ matrix.architecture }} 3.7.9
|
||||
python src/build.py ${{ matrix.architecture }} 3.7.9
|
||||
- uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: ${{ matrix.fname }}
|
||||
path: build/${{ matrix.fname }}.zip
|
||||
path: src/build/${{ matrix.fname }}.zip
|
||||
|
8
.github/workflows/release.yml
vendored
8
.github/workflows/release.yml
vendored
@ -35,7 +35,7 @@ jobs:
|
||||
python-version: '3.11'
|
||||
- name: Run build script
|
||||
run: |
|
||||
python build.py ${{ matrix.architecture }} 3.7.9
|
||||
python src/build.py ${{ matrix.architecture }} 3.7.9
|
||||
# - name: Generate attestation for artifact
|
||||
# uses: actions/attest-build-provenance@v1
|
||||
# with:
|
||||
@ -47,13 +47,13 @@ jobs:
|
||||
|
||||
- name: loadversion
|
||||
id: loadversion
|
||||
run: python build.py loadversion | Out-File -FilePath $Env:GITHUB_OUTPUT -Encoding utf8 -Append
|
||||
run: python src/build.py loadversion | Out-File -FilePath $Env:GITHUB_OUTPUT -Encoding utf8 -Append
|
||||
- name: Release LunaTranslator
|
||||
uses: softprops/action-gh-release@v2
|
||||
with:
|
||||
tag_name: ${{ steps.loadversion.outputs.version }}
|
||||
files: |
|
||||
build/${{ matrix.fname }}.zip
|
||||
build/${{ matrix.fname }}.exe
|
||||
src/build/${{ matrix.fname }}.zip
|
||||
src/build/${{ matrix.fname }}.exe
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
24
.gitignore
vendored
24
.gitignore
vendored
@ -1,7 +1,4 @@
|
||||
LunaTranslator/userconfig
|
||||
LunaTranslator/userconfig1
|
||||
|
||||
lunatranslator/cache
|
||||
*.pyc
|
||||
*.pyc
|
||||
*.pyc
|
||||
@ -22,25 +19,6 @@ Thumbs.db
|
||||
*.wav
|
||||
build/
|
||||
|
||||
plugins/libs/webview2
|
||||
plugins/builds
|
||||
plugins/build
|
||||
temp/
|
||||
|
||||
|
||||
LunaTranslator/files/plugins
|
||||
LunaTranslator/files/ocr
|
||||
LunaTranslator/files/data
|
||||
LunaTranslator/chrome_cache
|
||||
plugins/.vscode/settings.json
|
||||
|
||||
LunaTranslator/files/themes
|
||||
LunaTranslator/LunaTranslator/rendertext/luna.png
|
||||
LunaTranslator/run37.bat
|
||||
LunaTranslator/run3732.bat
|
||||
LunaTranslator/run38.bat
|
||||
LunaTranslator/run3832.bat
|
||||
LunaTranslator/logs
|
||||
LunaTranslator/LunaTranslator/.vscode/settings.json
|
||||
.vscode/settings.json
|
||||
LunaTranslator/translation_record
|
||||
.vscode/settings.json
|
18
.gitmodules
vendored
18
.gitmodules
vendored
@ -1,12 +1,12 @@
|
||||
[submodule "plugins/libs/wil"]
|
||||
path = plugins/libs/wil
|
||||
[submodule "src/plugins/libs/wil"]
|
||||
path = src/plugins/libs/wil
|
||||
url = https://github.com/microsoft/wil.git
|
||||
[submodule "plugins/libs/tinymp3"]
|
||||
path = plugins/libs/tinymp3
|
||||
url = https://github.com/cpuimage/tinymp3
|
||||
[submodule "plugins/libs/rapidfuzz-cpp"]
|
||||
path = plugins/libs/rapidfuzz-cpp
|
||||
[submodule "src/plugins/libs/rapidfuzz-cpp"]
|
||||
path = src/plugins/libs/rapidfuzz-cpp
|
||||
url = https://github.com/rapidfuzz/rapidfuzz-cpp
|
||||
[submodule "plugins/libs/wechat-ocr"]
|
||||
path = plugins/libs/wechat-ocr
|
||||
[submodule "src/plugins/libs/wechat-ocr"]
|
||||
path = src/plugins/libs/wechat-ocr
|
||||
url = https://github.com/swigger/wechat-ocr
|
||||
[submodule "src/plugins/libs/tinymp3"]
|
||||
path = src/plugins/libs/tinymp3
|
||||
url = https://github.com/HIllya51/tinymp3
|
||||
|
@ -9,7 +9,7 @@
|
||||
### [使用说明](https://docs.lunatranslator.org/#/zh/) [视频教程](https://space.bilibili.com/592120404/video) <a href="https://qm.qq.com/q/I5rr3uEpi2"><img src="https://img.shields.io/badge/QQ群-963119821-FF007C"></a> <a href="https://discord.com/invite/ErtDwVeAbB"><img src="https://img.shields.io/discord/1262692128031772733?label=Discord&logo=discord&color=FF007C"></a>
|
||||
|
||||
|
||||
### 简体中文 | [English](README_en.md) | [Русский язык](README_ru.md) | [Other Language](otherlang.md)
|
||||
### 简体中文 | [English](docs/other/README_en.md) | [Русский язык](docs/other/README_ru.md) | [Other Language](docs/other/otherlang.md)
|
||||
|
||||
> **一款galgame翻译器**
|
||||
|
||||
@ -93,5 +93,5 @@
|
||||
|
||||
如果你感觉该软件对你有帮助,欢迎微信扫码赞助,谢谢,么么哒~
|
||||
|
||||
<img src='.\\LunaTranslator\\files\\zan.jpg' style="height: 400px !important;">
|
||||
<img src='.\\src\\files\\zan.jpg' style="height: 400px !important;">
|
||||
|
||||
|
@ -9,7 +9,7 @@
|
||||
### [User Manual](https://docs.lunatranslator.org/#/zh/) <a href="https://discord.com/invite/ErtDwVeAbB"><img src="https://img.shields.io/discord/1262692128031772733?label=Discord&logo=discord&color=FF007C"></a>
|
||||
|
||||
|
||||
### [简体中文](README.md) | English | [Русский язык](README_ru.md) | [Other Language](otherlang.md)
|
||||
### [简体中文](../../README.md) | English | [Русский язык](README_ru.md) | [Other Language](otherlang.md)
|
||||
|
||||
|
||||
> **A galgame translation tool**
|
@ -9,7 +9,7 @@
|
||||
### [Инструкция по использованию](https://docs.lunatranslator.org/#/ru/) <a href="https://discord.com/invite/ErtDwVeAbB"><img src="https://img.shields.io/discord/1262692128031772733?label=Discord&logo=discord&color=FF007C"></a>
|
||||
|
||||
|
||||
### [简体中文](README.md) | [English](README_en.md) | Русский язык | [Other Language](otherlang.md)
|
||||
### [简体中文](../../README.md) | [English](README_en.md) | Русский язык | [Other Language](otherlang.md)
|
||||
|
||||
|
||||
> **Транслятор для galgame**
|
8
docs/other/otherlang.md
Normal file
8
docs/other/otherlang.md
Normal file
@ -0,0 +1,8 @@
|
||||
|
||||
Now this program supports [简体中文]() | [日本語](../../src/files/lang/ja.json) | [繁體中文](../../src/files/lang/cht.json) | [English](../../src/files/lang/en.json) | [Русский язык](../../src/files/lang/ru.json) | [Español](../../src/files/lang/es.json) | [한국어](../../src/files/lang/ko.json) | [Français](../../src/files/lang/fr.json) | [Tiếng Việt](../../src/files/lang/vi.json) | [Türkçe](../../src/files/lang/tr.json) | [Polski](../../src/files/lang/pl.json) | [Українська Мова](../../src/files/lang/uk.json) | [Italiano](../../src/files/lang/it.json) | [ภาษาไทย](../../src/files/lang/th.json) | [Deutsch](../../src/files/lang/de.json) | [Svenska](../../src/files/lang/sv.json) | [Nederlands](../../src/files/lang/nl.json) | [Čeština](../../src/files/lang/cs.json) | [Português](../../src/files/lang/pt.json)
|
||||
|
||||
Most of them are machine translated from Chinese.
|
||||
|
||||
You can ask for other language support of machine translation, or you can translate manually to get more accurate translation.
|
||||
|
||||
To translate manually, you can access the directory [files/lang](../../src/files/lang) to find the language file of you language, and adjust the unsatisfactory translations.
|
@ -1,8 +0,0 @@
|
||||
|
||||
Now this program supports [简体中文]() | [日本語](LunaTranslator/files/lang/ja.json) | [繁體中文](LunaTranslator/files/lang/cht.json) | [English](LunaTranslator/files/lang/en.json) | [Русский язык](LunaTranslator/files/lang/ru.json) | [Español](LunaTranslator/files/lang/es.json) | [한국어](LunaTranslator/files/lang/ko.json) | [Français](LunaTranslator/files/lang/fr.json) | [Tiếng Việt](LunaTranslator/files/lang/vi.json) | [Türkçe](LunaTranslator/files/lang/tr.json) | [Polski](LunaTranslator/files/lang/pl.json) | [Українська Мова](LunaTranslator/files/lang/uk.json) | [Italiano](LunaTranslator/files/lang/it.json) | [ภาษาไทย](LunaTranslator/files/lang/th.json) | [Deutsch](LunaTranslator/files/lang/de.json) | [Svenska](LunaTranslator/files/lang/sv.json) | [Nederlands](LunaTranslator/files/lang/nl.json) | [Čeština](LunaTranslator/files/lang/cs.json) | [Português](LunaTranslator/files/lang/pt.json)
|
||||
|
||||
Most of them are machine translated from Chinese.
|
||||
|
||||
You can ask for other language support of machine translation, or you can translate manually to get more accurate translation.
|
||||
|
||||
To translate manually, you can access the directory [files/lang](LunaTranslator/files/lang) to find the language file of you language, and adjust the unsatisfactory translations.
|
@ -1 +0,0 @@
|
||||
Subproject commit ec76d84b950b68e5c3e2a06bc3d62f28bd06e19f
|
@ -1 +0,0 @@
|
||||
Subproject commit e60e004e13069eb9ea54ace08c3760da179f125d
|
@ -1,15 +0,0 @@
|
||||
import shutil,sys
|
||||
x86=int(sys.argv[1])
|
||||
if x86:
|
||||
shutil.copy('../builds/_x86/shareddllproxy32.exe','../../LunaTranslator/files/plugins')
|
||||
shutil.copy('../builds/_x86/loopbackaudio.dll','../../LunaTranslator/files/plugins/DLL32')
|
||||
shutil.copy('../builds/_x86/winrtutils32.dll','../../LunaTranslator/files/plugins/DLL32')
|
||||
shutil.copy('../builds/_x86/winsharedutils32.dll','../../LunaTranslator/files/plugins/DLL32')
|
||||
shutil.copy('../builds/_x86/wcocr.dll','../../LunaTranslator/files/plugins/DLL32')
|
||||
else:
|
||||
shutil.copy('../builds/_x64/shareddllproxy64.exe','../../LunaTranslator/files/plugins')
|
||||
shutil.copy('../builds/_x64/loopbackaudio.dll','../../LunaTranslator/files/plugins/DLL64')
|
||||
shutil.copy('../builds/_x64/hookmagpie.dll','../../LunaTranslator/files/plugins')
|
||||
shutil.copy('../builds/_x64/winrtutils64.dll','../../LunaTranslator/files/plugins/DLL64')
|
||||
shutil.copy('../builds/_x64/winsharedutils64.dll','../../LunaTranslator/files/plugins/DLL64')
|
||||
shutil.copy('../builds/_x64/wcocr.dll','../../LunaTranslator/files/plugins/DLL64')
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user