MrGlockenspiel / activate-linux

The "Activate Windows" watermark ported to Linux
GNU General Public License v3.0
4.4k stars 92 forks source link

Chinese support #89

Closed Bit0r closed 2 years ago

Bit0r commented 2 years ago

I hope it can support Chinese. I know the corresponding code, but I don't understand how to obtain the environment language.

// I didn't find an API like getlocale()
if (strcmp(getlocale(), "zh_CN") == 0) {
    title = "激活 Linux";
    subtitle = "转到“设置”以激活 Linux。";
}
randomtwdude commented 2 years ago

Traditional Chinese version: title = "啟用Linux"; subtitle = "移至[設定]以啟用Linux。"

Ruby-Dragon commented 2 years ago

You can use the custom text i think

xrh0905 commented 2 years ago

Have you try the LC.ALL? zh_CN.UTF8 I think

BeautyyuYanli commented 2 years ago

Hi, please check my fork if you need it.

ps. you can also specify the title & subtitle by flags. see activate-linux -h

MrGlockenspiel commented 2 years ago

This is now merged

Closing this :+1: