

[Makefile] Convert Traditional Chinese PO file to Simplified Chinese via OpenCC
source link: http://siongui.github.io/2016/03/12/makefile-convert-zhtw-po-file-to-zhcn/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

[Makefile] Convert Traditional Chinese PO file to Simplified Chinese via OpenCC
March 12, 2016
Convert Traditional Chinese PO file to Simplified Chinese via OpenCC and sed in Makefile.
twpo2cn: @echo "\033[92mCheck if OpenCC exists ...\033[0m" @[ -x $(shell command -v opencc 2> /dev/null) ] || sudo apt-get install opencc @echo "\033[92mCreating zh_CN PO from zh_TW PO ...\033[0m" @[ -d $(LOCALE_DIR)/zh_CN/LC_MESSAGES/ ] || mkdir -p $(LOCALE_DIR)/zh_CN/LC_MESSAGES/ @opencc -c zht2zhs.ini -i $(LOCALE_DIR)/zh_TW/LC_MESSAGES/messages.po -o $(LOCALE_DIR)/zh_CN/LC_MESSAGES/messages.po @sed 's/zh_TW/zh_CN/' -i $(LOCALE_DIR)/zh_CN/LC_MESSAGES/messages.po
Tested on Ubuntu Linux 15.10, opencc 0.4.3-2build1, GNU make 4.0-8.2.
References:
Recommend
-
15
近日在公司遇到一个需求,因为准备要推出海外版产品,所以需要将所有的简体文字转换为繁体文字。一开始是改了表面的文字,但是后面发现很多提示语也需要去改,所以找了一个工具去对所有 .m 文件进行批量文字转换。 OpenCC OpenCC 正好符合我的...
-
3
Build Issue of OpenCC Go binding on Ubuntu Linux 16.10 December 22, 2016...
-
9
Online Conversion of Traditional and Simplified Chinese in Go/GopherJS Fe...
-
10
OpenCC is a tool (both online and offline) for conversion Traditional and Simplified Chinese. In this post, we will write a Go program to use
-
10
gojianfan is a converter implemented in Golang for conversion of Traditional and Simplified Chinese. It is a very primitive, and based on
-
9
OpenCC is a tool (both online and offline) for conversion Traditional and Simplified Chinese. In this post, we will write a Python program to use
-
24
[JavaScript] Conversion of Traditional and Simplified Chinese October...
-
2
Automatically convert Traditional Chinese (zh_TW)
-
11
In this post, we will write a Python script to automatically convert Traditional Chinese (...
-
5
[JavaScript] Button For Traditional/Simplified Chinese Conversion on Website ...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK