3 Star 2 Fork 0

Gitee 极速下载 / Tiny Tiny RSS

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/torne/Tiny-Tiny-RSS
克隆/下载
update-translations.sh 648 Bytes
一键复制 编辑 原始数据 按行查看 历史
Andrew Dolgov 提交于 2010-02-18 16:07 . update translations
#!/bin/sh
TEMPLATE=messages.pot
xgettext -kT_js_decl -kT_sprintf -kT_ngettext:1,2 -k__ -L PHP -o $TEMPLATE *.php modules/*.php help/*.php mobile/*.php
xgettext --from-code utf-8 -k__ -L Java -j -o $TEMPLATE *.js
update_lang() {
if [ -f $1.po ]; then
TMPFILE=/tmp/update-translations.$$
msgmerge -o $TMPFILE $1.po $TEMPLATE
mv $TMPFILE $1.po
msgfmt --statistics $1.po
msgfmt -o $1.mo $1.po
else
echo "Usage: $0 [-p|<basename>]"
fi
}
LANGS=`find locale -name 'messages.po'`
for lang in $LANGS; do
echo Updating $lang...
PO_BASENAME=`echo $lang | sed s/.po//`
update_lang $PO_BASENAME
done
#./utils/update-js-translations.sh
PHP
1
https://gitee.com/mirrors/tiny-tiny-rss.git
git@gitee.com:mirrors/tiny-tiny-rss.git
mirrors
tiny-tiny-rss
Tiny Tiny RSS
master

搜索帮助