Created
September 18, 2010 06:54
-
-
Save mattrude/585438 to your computer and use it in GitHub Desktop.
Translating WordPress
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd /var/www/therudes.com/wp-content/languages/ | |
rm -rf * | |
for a in `echo 'fr_FR de_DE pt_PT da_DK it_IT ru_RU'` | |
do | |
wget http://svn.automattic.com/wordpress-i18n/$a/tags/3.0.1/messages/$a.mo | |
wget http://svn.automattic.com/wordpress-i18n/$a/tags/3.0.1/messages/$a.po | |
wget http://svn.automattic.com/wordpress-i18n/$a/tags/3.0.1/messages/ms-$a.mo | |
wget http://svn.automattic.com/wordpress-i18n/$a/tags/3.0.1/messages/ms-$a.po | |
done | |
for a in `echo 'es_ES cs fi'` | |
do | |
wget http://svn.automattic.com/wordpress-i18n/$a/tags/3.0/messages/$a.mo | |
wget http://svn.automattic.com/wordpress-i18n/$a/tags/3.0/messages/$a.po | |
wget http://svn.automattic.com/wordpress-i18n/$a/tags/3.0/messages/ms-$a.mo | |
wget http://svn.automattic.com/wordpress-i18n/$a/tags/3.0/messages/ms-$a.po | |
done | |
wget http://svn.automattic.com/wordpress-i18n/nl/trunk/messages/nl_NL.po | |
wget http://svn.automattic.com/wordpress-i18n/nl/trunk/messages/nl_NL.mo | |
############################################################################# | |
cd /var/www/therudes.com/wp-content/plugins/random-image-block/ | |
rm -rf languages | |
mkdir languages | |
xgettext --keyword=__ --keyword=_e --from-code=php --language=php *.php \ | |
--package-version=1.o --package-name=safecss --output=languages/mdr-network.pot | |
cd languages/ | |
sed --in-place mdr-network.pot --expression='s/YEAR-MO-DA HO:MI+ZONE/2010-09-18 14:57-0500/' | |
sed --in-place mdr-network.pot --expression='s/FULL NAME <EMAIL@ADDRESS>/Matt Rude <[email protected]>/' | |
sed --in-place mdr-network.pot --expression='s/LANGUAGE <[email protected]>/Matt Rude <[email protected]>/' | |
sed --in-place mdr-network.pot --expression='s/CHARSET/UTF-8/' | |
for a in `echo 'fr es de pt it ru nl cs da fi'` | |
do | |
rm -rf $a.* | |
curl -F [email protected] \ | |
-F language=$a \ | |
-F output=pofile \ | |
http://pepipopum.dixo.net \ | |
--output $a.po | |
done | |
mv fr.po fr_FR.po # French | |
mv es.po es_ES.po # Spanish | |
mv de.po de_DE.po # German | |
mv pt.po pt_PT.po # Portuguese | |
mv it.po it_IT.po # Italian | |
mv ru.po ru_RU.po # Russian | |
mv da.po da_DK.po # Danish | |
mv nl.po nl_NL.po # Dutch | |
mv cs.po cs_CZ.po # Czech | |
mv fi.po fi_FI.po # Finnish | |
msgfmt fr_FR.po | |
msgfmt es_ES.po | |
msgfmt de_DE.po | |
msgfmt pt_PT.po | |
msgfmt it_IT.po | |
msgfmt ru_RU.po | |
msgfmt da_DK.po | |
msgfmt nl_NL.po | |
msgfmt cs_CZ.po | |
msgfmt fi_FI.po |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment