How to rename filename from traditional chinese to simplified chinese and vice versa?

Hi,

As topic, is there a rename script or plugin to achieve this? It is troublesome to do with 3rd party app.

Thanks.

I don't think there is any. Since this is a delicate matter, it would be maybe the best to have a dedicated tool included in a script, which maybe would be possible, depending on your 3rd party app.

One option is the Clipboard button/menu at the bottom of the Rename dialog. That lets you get a list of all the current names in text format, which you could paste into a translation tool, translate, and then put back into the Rename dialog to rename all the files at once.

Streamlining it more might be possible via scripting, but would need a translation tool or service that you can access via the script in some way (be it running a program or calling a web API).

Wow, this rename preset is at github, thanks will have a look. This could improve quality of life. I saw the dictionary for words switching there. This also means DOpus can do a lot of things, yet not so sluggish when using.

Hmm, i downloaded the .js script from github. After installing, there is error at script management status.
DOpus1

Script log showed: Script does not implement any known events and was unloaded.

How to solve it?

Win11 24H2 and scripts that include files don't mix well currently.

Move the inc*.js files into the main script as a workaround.

Similar here.

Hmm not really, i just asked ChatGPT :laughing:. I am using W11 24h2 too.

Just add the function to initialize the script then ok already.

// Function to initialize the script
function OnInit(initData) {
initData.name = "Trad to Simplified";
initData.version = "1.0";
initData.default_enable = true;
initData.min_version = "12.0"; // Minimum version of Directory Opus required

// Register the Rename event
var cmd = initData.AddCommand();
cmd.name = "Trad to Simplified";
cmd.method = "OnGetNewName";
cmd.desc = "Convert Traditional Chinese file names to Simplified Chinese";
cmd.label = "Traditional to Simplified";
cmd.template = ""; // No input parameters needed

}

DOpus2

If it’s a Rename Script theb you shouldn’t add an OnInit method, and it goes into the Rename dialog (not into Settings > Scripts; that’s for script add-ins).

See the Rename Scripts part of this post:

I see, thanks finally get it to work. Just copy paste all the wordings into Edit Script under rename dialog.