source: titan/po/de/LC_MESSAGES/make.sh

Last change on this file was 25957, checked in by obi, 7 years ago

fix po building

  • Property svn:executable set to *
File size: 2.1 KB
Line 
1#####
2#echo "### translation" > source.titan/po/de/LC_MESSAGES/titan.po
3#cat source.titan/skin/default/skin.xml source.titan/titan/plugins/mc/skin.xml source.titan/titan/plugins/aafpanel/skin.xml source.titan/titan/plugins/networkbrowser/skin.xml | sed 's/title="/title=/' | sed 's/title=/\ntitle=!/' | grep title= | sed 's/bordercol=/\n/' | sed 's/valign=/\n/'  |sed 's/posy=/\n/' | sed 's/parent=/\n/' | sed 's/halign=/\n/' | sed 's/type=/\n/' | sed 's/name=/\n/' | sed 's/func=/\n/'| sed 's/progresscol=/\n/'| grep ^title= | sed "s#\".*##" | sort -u |  sed 's/title=!/msgid "/' | tr '\n' '#' | sed 's/#\+/\"\nmsgstr \"translation\"\n\ /g' | sed 's/ "/"/' | sed 's/ "/"/' | sed 's/ msgid/msgid/' | sed 's/msgid\"/msgid "/'  >> source.titan/po/de/LC_MESSAGES/titan.po
4#cat source.titan/skin/default/skin.xml source.titan/titan/plugins/mc/skin.xml source.titan/titan/plugins/aafpanel/skin.xml source.titan/titan/plugins/networkbrowser/skin.xml | sed 's/text="/text=/' | sed 's/text=/\ntext=!/' | grep text= | sed 's/bordercol=/\n/' | sed 's/valign=/\n/'  |sed 's/posy=/\n/' | sed 's/parent=/\n/' | sed 's/halign=/\n/' | sed 's/type=/\n/' | sed 's/name=/\n/' | sed 's/func=/\n/'| sed 's/progresscol=/\n/'| grep ^text= | sed "s#\".*##" | sort -u | sed 's/text=!/msgid "/' | tr '\n' '#' | sed 's/#\+/\"\nmsgstr \"translation\"\n\ /g' | sed 's/ "/"/' | sed 's/ "/"/' | sed 's/ msgid/msgid/' >> source.titan/po/de/LC_MESSAGES/titan.po
5#####
6
7#iconv -f ISO-8859-1 -t UTF-8 $HOME/flashimg/source.titan/po/de/LC_MESSAGES/titan.po_auto.po > $HOME/flashimg/source.titan/po/de/LC_MESSAGES/titan.po_auto.po.utf
8
9SEARCH=`cat $HOME/flashimg/source.titan/po/de/LC_MESSAGES/titan.po_auto.po | grep -n "MIME-Version: 1.0" | cut -d":" -f1`
10CUT=`expr $SEARCH + 1`
11
12cat $HOME/flashimg/source.titan/po/de/LC_MESSAGES/titan.po_auto.po | sed "1,"$CUT"d" > $HOME/flashimg/source.titan/po/de/LC_MESSAGES/titan.po
13
14echo msgfmt -v $HOME/flashimg/source.titan/po/de/LC_MESSAGES/titan.po -o $HOME/flashimg/source.titan/po/de/LC_MESSAGES/titan.mo
15msgfmt -v $HOME/flashimg/source.titan/po/de/LC_MESSAGES/titan.po -o $HOME/flashimg/source.titan/po/de/LC_MESSAGES/titan.mo
Note: See TracBrowser for help on using the repository browser.