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

over-translate in [sd-webui-prompt-highlight] #30

Open
a2569875 opened this issue May 9, 2023 · 2 comments
Open

over-translate in [sd-webui-prompt-highlight] #30

a2569875 opened this issue May 9, 2023 · 2 comments

Comments

@a2569875
Copy link

a2569875 commented May 9, 2023

Sorry, your plugin tends to over-translate the syntax highlighting feature of the sd-webui-prompt-highlight extension. Could you please help add the sd-webui-prompt-highlight extension to the exclusion list for translation?

不好意思,你的插件在翻译文字时会把 sd-webui-prompt-highlight語法高亮功能給過度翻譯 (语法高亮用于提示词,不应当被翻译)。因此,能否请您把sd-webui-prompt-highlight的元素加入到翻譯的排除清單ignore_selector呢?

just turn

  const ignore_selector = [
    '.bilingual__trans_wrapper', // self
    '.resultsFlexContainer', // tag-autocomplete

into

  const ignore_selector = [
    '.bilingual__trans_wrapper', // self
	'.ace_line',
	'.ace_prompttoken',
    '.resultsFlexContainer', // tag-autocomplete

in javascript/bilingual_localization.js
thank you.

@aaronkingdom
Copy link

在设置里设置一下添加自定义排除清单被, 自己改原文件不好吧, 更新会不会被覆盖没了

@a2569875
Copy link
Author

a2569875 commented May 22, 2023

在设置里设置一下添加自定义排除清单被, 自己改原文件不好吧, 更新会不会被覆盖没了

@aaronkingdom 不是,我是希望作者直接正式加進程式碼裡面,因為我看到排除清單裡面有tag-autocomplete這個擴充功能的排除項,所以沒道理sd-webui-prompt-highlight擴充功能就不能加排除項。

bluelovers added a commit to bluelovers/sd-webui-bilingual-localization that referenced this issue May 31, 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

2 participants