TranslationPlugin icon indicating copy to clipboard operation
TranslationPlugin copied to clipboard

Allow to specify source and target language for translation

Open RaptorCZ opened this issue 9 months ago • 5 comments

Feature/Enhancement Description

translate and replace needs a specified source language and target language, even though there is already an option to specify the target language. There are many situations when source language is not correctly detected and translation is not working.

Proposed Solution

Change Main language combo to Source language and add checkbox for autodetect feature next to it to keep current functionality. Change Target language combo to let user specify target for translation. Current content is not useful and is missleading in scope of target.

Additional Information

more info in https://github.com/YiiGuxing/TranslationPlugin/discussions/6295

RaptorCZ avatar Mar 19 '25 09:03 RaptorCZ

I will add a Source language option, and the Main language option still needs to be retained because the Source language option and the Target language option need to reference it.

YiiGuxing avatar Mar 19 '25 09:03 YiiGuxing

I will add a Source language option, and the Main language option still needs to be retained because the Source language option and the Target language option need to reference it.

I'm not sure what exactly Main language means for this plugin. If I want to translate something, I need source and target. What result shoud be for Main or English? What is Last used language? Not clear to me.

Image

RaptorCZ avatar Mar 19 '25 09:03 RaptorCZ

The main language is equivalent to the user's native language, and it will be used as the default language when the target language cannot be specified manually in some cases, such as document translation.

YiiGuxing avatar Mar 19 '25 09:03 YiiGuxing

I see, so the main functionality of this plugin is not to localize application to multiple other languages. It is more "translate anything to my language". So it should cover more scenarios if I can select source->target.

RaptorCZ avatar Mar 19 '25 10:03 RaptorCZ

This feature has been developed and is now ready for early access. If you encounter any issues during testing, feel free to provide feedback at any time.

TranslationPlugin-3.8.0-SNAPSHOT.250611.zip

Image
Image
Image

YiiGuxing avatar Jun 11 '25 07:06 YiiGuxing

This feature is very useful. When is it scheduled to be released?

buaazyl avatar Jul 16 '25 09:07 buaazyl

This feature is very useful. When is it scheduled to be released?

@buaazyl Version 3.8 still has two major features that are yet to be completed. They will be released together once development is finished. Unfortunately, I cannot promise a specific timeline, but you can use the SNAPSHOT version for now.

YiiGuxing avatar Jul 16 '25 09:07 YiiGuxing

@YiiGuxing 昨天安装了测试版本, 发现会导致 UI 卡顿, 但奇怪的是, 找不到 SlowOperations 相关的日志

yygutn avatar Aug 21 '25 03:08 yygutn

@YiiGuxing 昨天安装了测试版本, 发现会导致 UI 卡顿, 但奇怪的是, 找不到 SlowOperations 相关的日志

@yygutn 请问你安装的是上面的版本吗?怎么操作会导致卡顿?

YiiGuxing avatar Aug 21 '25 04:08 YiiGuxing

@YiiGuxing

TranslationPlugin-3.8.0-SNAPSHOT.250818.zip 我安装的是这个版本

重新 确认了一下, 应该是另外一个插件导致的

yygutn avatar Aug 21 '25 08:08 yygutn