Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PreTranslation相关 #2

Open
chihya72 opened this issue May 28, 2024 · 5 comments
Open

PreTranslation相关 #2

chihya72 opened this issue May 28, 2024 · 5 comments

Comments

@chihya72
Copy link

请问为什么有一些在PreTranslation中翻译过的剧情对话进游戏里是有中文的,有一些又没有呢
fktn1
fktn7

@Badmingrams
Copy link

可以先确认一下本地的脚本和依赖是不是最新版本。如果是的话,搜索一下resource中生成的对应的txt文件,看看对应的字符串是否正常。如果不正常的话我这边可以来确认一下

@WangEdward

This comment was marked as resolved.

@chinosk6
Copy link
Owner

chinosk6 commented Jun 3, 2024

可以先确认一下本地的脚本和依赖是不是最新版本。如果是的话,搜索一下resource中生成的对应的txt文件,看看对应的字符串是否正常。如果不正常的话我这边可以来确认一下

很奇怪,我使用的这个仓库 CI 构建的 apk 档案;其中 /assets 目录下有 gakumas-local 这个文件夹,其中也有 GakumasTranslationData 的内容,但这个文件夹的 local-files/resource 下只有一个 adv_dear_fktn_001.txt,并且 GakumasPreTranslation 和 gakuen-adapted-translation-data 这两个 submodules 的文件夹并不存在,不知道是为什么。

可能是我的使用方法不对吗 还是说要手动把 GakumasTranslationData pull 下来后跑一下 merge.py 🤔

Downloads/app-debug/assets 
➜ tree . 
.
├── gakumas-local
│   ├── README.md
│   ├── local-files
│   │   ├── MO-UDShinGo-SC-Gb4-M.otf
│   │   ├── generic.json
│   │   ├── localization.json
│   │   └── resource
│   │       └── adv_dear_fktn_001.txt
│   ├── merge.py
│   ├── requirements.txt
│   └── version.txt
└── xposed_init

4 directories, 9 files

variant.mergeAssetsProvider.configure { mergeAssetsTask ->
mergeAssetsTask.doLast {
delete(fileTree(dir: mergeAssetsTask.outputDir, includes: ['gakumas-local/gakuen-adapted-translation-data/**',
'gakumas-local/GakumasPreTranslation/**']))
}
}

GakumasPreTranslationgakuen-adapted-translation-data 两个仓库只是做预翻译,不是成品,仅做开发用,因此不会被打包。resource 内的 txt 示例才是插件支持的本地化文件。

@WangEdward

This comment was marked as resolved.

@Badmingrams
Copy link

GakumasPreTranslationgakuen-adapted-translation-data 两个仓库只是做预翻译,不是成品,仅做开发用,因此不会被打包。resource 内的 txt 示例才是插件支持的本地化文件。

感谢回复,所以目前可使用的剧情翻译成品只有 adv_dear_fktn_001.txt 这一个是吗?

你需要把两个翻译仓库拉下来,把游戏resource文本放在新建的raw文件夹内,然后运行merge.py

CyleAR added a commit to CyleAR/idolypride-addon that referenced this issue Jul 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants