Skip to content

Instantly share code, notes, and snippets.

@kayintveen
Created May 10, 2016 11:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kayintveen/291984c5986474fba236a4290dc5d36d to your computer and use it in GitHub Desktop.
Save kayintveen/291984c5986474fba236a4290dc5d36d to your computer and use it in GitHub Desktop.
Install langyage packs for NL_NL dutch translations German de_DE and Danisch da_DK
cd <your document root>
cd ./var
/bin/rm source_nl_NL.csv
wget http://107.170.242.99/var/2.0.2/source_nl_NL.csv
/bin/rm source_de_DE.csv
wget http://107.170.242.99/var/2.0.2/source_de_DE.csv
/bin/rm source_da_DK.csv
wget http://107.170.242.99/var/2.0.2/source_da_DK.csv
cd ..
find . -name js-translation.json -exec rm -rf {} \;
cd app
php ../bin/magento i18n:pack --mode=replace -d ../var/source_nl_NL.csv . nl_NL
php ../bin/magento i18n:pack --mode=replace -d ../var/source_da_DK.csv . da_DK
php ../bin/magento i18n:pack --mode=replace -d ../var/source_de_DE.csv . de_DE
cd ..
php bin/magento setup:static-content:deploy en_US
php bin/magento setup:static-content:deploy nl_NL
php bin/magento setup:static-content:deploy da_DK
php bin/magento setup:static-content:deploy de_DE
php bin/magento indexer:reindex
php bin/magento cache:clean
php bin/magento cache:flush
chown -R apache. .
find . -type d -exec chmod 770 {} \; && find . -type f -exec chmod 660 {} \; && chmod u+x bin/magento
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment