2014-10-17 13:44:19 -06:00
|
|
|
#!/bin/bash
|
|
|
|
#
|
|
|
|
# This script assumes a linux environment
|
|
|
|
|
|
|
|
echo "*** uBlock: Importing from Crowdin archive"
|
2014-11-16 09:41:20 -07:00
|
|
|
|
|
|
|
SRC=~/Downloads/crowdin
|
|
|
|
rm -r $SRC
|
|
|
|
unzip -q ~/Downloads/ublock.zip -d $SRC
|
|
|
|
|
|
|
|
DES=./src/_locales
|
|
|
|
cp $SRC/ar/messages.json $DES/ar/messages.json
|
2015-01-29 07:43:26 -07:00
|
|
|
cp $SRC/bg/messages.json $DES/bg/messages.json
|
2015-07-05 06:04:24 -06:00
|
|
|
cp $SRC/bn/messages.json $DES/bn/messages.json
|
2015-01-02 17:07:08 -07:00
|
|
|
cp $SRC/ca/messages.json $DES/ca/messages.json
|
2014-11-16 09:41:20 -07:00
|
|
|
cp $SRC/cs/messages.json $DES/cs/messages.json
|
|
|
|
cp $SRC/da/messages.json $DES/da/messages.json
|
2014-12-01 07:27:08 -07:00
|
|
|
cp $SRC/de/messages.json $DES/de/messages.json
|
2014-11-16 09:41:20 -07:00
|
|
|
cp $SRC/el/messages.json $DES/el/messages.json
|
2015-12-13 07:51:25 -07:00
|
|
|
cp $SRC/eo/messages.json $DES/eo/messages.json
|
2014-11-16 09:41:20 -07:00
|
|
|
cp $SRC/es-ES/messages.json $DES/es/messages.json
|
|
|
|
cp $SRC/et/messages.json $DES/et/messages.json
|
2015-09-12 09:00:57 -06:00
|
|
|
cp $SRC/eu/messages.json $DES/eu/messages.json
|
2015-01-29 23:04:28 -07:00
|
|
|
cp $SRC/fa/messages.json $DES/fa/messages.json
|
2014-11-16 09:41:20 -07:00
|
|
|
cp $SRC/fi/messages.json $DES/fi/messages.json
|
2014-12-04 07:56:21 -07:00
|
|
|
cp $SRC/fil/messages.json $DES/fil/messages.json
|
2014-12-01 07:27:08 -07:00
|
|
|
cp $SRC/fr/messages.json $DES/fr/messages.json
|
2015-04-23 06:49:02 -06:00
|
|
|
cp $SRC/fy-NL/messages.json $DES/fy/messages.json
|
2015-05-26 14:49:49 -06:00
|
|
|
cp $SRC/gl/messages.json $DES/gl/messages.json
|
2014-11-16 09:41:20 -07:00
|
|
|
cp $SRC/he/messages.json $DES/he/messages.json
|
|
|
|
cp $SRC/hi/messages.json $DES/hi/messages.json
|
|
|
|
cp $SRC/hr/messages.json $DES/hr/messages.json
|
|
|
|
cp $SRC/hu/messages.json $DES/hu/messages.json
|
|
|
|
cp $SRC/id/messages.json $DES/id/messages.json
|
|
|
|
cp $SRC/it/messages.json $DES/it/messages.json
|
|
|
|
cp $SRC/ja/messages.json $DES/ja/messages.json
|
2015-01-29 07:43:26 -07:00
|
|
|
cp $SRC/ko/messages.json $DES/ko/messages.json
|
2015-03-13 15:27:25 -06:00
|
|
|
cp $SRC/lt/messages.json $DES/lt/messages.json
|
2015-01-28 07:10:26 -07:00
|
|
|
cp $SRC/lv/messages.json $DES/lv/messages.json
|
2014-11-16 09:41:20 -07:00
|
|
|
cp $SRC/mr/messages.json $DES/mr/messages.json
|
2015-07-05 06:04:24 -06:00
|
|
|
#cp $SRC/ms/messages.json $DES/ms/messages.json
|
2014-11-16 09:41:20 -07:00
|
|
|
cp $SRC/no/messages.json $DES/nb/messages.json
|
|
|
|
cp $SRC/nl/messages.json $DES/nl/messages.json
|
|
|
|
cp $SRC/pl/messages.json $DES/pl/messages.json
|
|
|
|
cp $SRC/pt-BR/messages.json $DES/pt_BR/messages.json
|
|
|
|
cp $SRC/pt-PT/messages.json $DES/pt_PT/messages.json
|
|
|
|
cp $SRC/ro/messages.json $DES/ro/messages.json
|
|
|
|
cp $SRC/ru/messages.json $DES/ru/messages.json
|
2015-03-14 09:15:04 -06:00
|
|
|
cp $SRC/sk/messages.json $DES/sk/messages.json
|
2015-03-13 15:27:25 -06:00
|
|
|
cp $SRC/sl/messages.json $DES/sl/messages.json
|
2015-02-15 12:55:01 -07:00
|
|
|
cp $SRC/sq/messages.json $DES/sq/messages.json
|
2015-03-13 15:27:25 -06:00
|
|
|
cp $SRC/sr/messages.json $DES/sr/messages.json
|
2014-11-16 09:41:20 -07:00
|
|
|
cp $SRC/sv-SE/messages.json $DES/sv/messages.json
|
2015-07-12 17:08:39 -06:00
|
|
|
cp $SRC/ta/messages.json $DES/ta/messages.json
|
2015-03-13 15:21:00 -06:00
|
|
|
cp $SRC/te/messages.json $DES/te/messages.json
|
2014-11-16 09:41:20 -07:00
|
|
|
cp $SRC/tr/messages.json $DES/tr/messages.json
|
|
|
|
cp $SRC/uk/messages.json $DES/uk/messages.json
|
|
|
|
cp $SRC/vi/messages.json $DES/vi/messages.json
|
|
|
|
cp $SRC/zh-CN/messages.json $DES/zh_CN/messages.json
|
2014-12-21 12:25:16 -07:00
|
|
|
cp $SRC/zh-TW/messages.json $DES/zh_TW/messages.json
|
2014-10-17 13:44:19 -06:00
|
|
|
|
|
|
|
#
|
|
|
|
|
2014-11-16 09:41:20 -07:00
|
|
|
DES=./dist/description
|
|
|
|
cp $SRC/ar/description.txt $DES/description-ar.txt
|
2015-01-29 07:43:26 -07:00
|
|
|
cp $SRC/bg/description.txt $DES/description-bg.txt
|
2015-07-05 06:04:24 -06:00
|
|
|
cp $SRC/bn/description.txt $DES/description-bn.txt
|
2015-01-02 17:07:08 -07:00
|
|
|
cp $SRC/ca/description.txt $DES/description-ca.txt
|
2014-11-16 09:41:20 -07:00
|
|
|
cp $SRC/cs/description.txt $DES/description-cs.txt
|
|
|
|
cp $SRC/da/description.txt $DES/description-da.txt
|
2014-12-01 07:27:08 -07:00
|
|
|
cp $SRC/de/description.txt $DES/description-de.txt
|
2015-01-29 07:43:26 -07:00
|
|
|
cp $SRC/el/description.txt $DES/description-el.txt
|
2015-12-13 07:51:25 -07:00
|
|
|
cp $SRC/eo/description.txt $DES/description-eo.txt
|
2014-11-16 09:41:20 -07:00
|
|
|
cp $SRC/es-ES/description.txt $DES/description-es.txt
|
|
|
|
cp $SRC/et/description.txt $DES/description-et.txt
|
2015-09-12 09:00:57 -06:00
|
|
|
cp $SRC/eu/description.txt $DES/description-eu.txt
|
2015-01-29 23:04:28 -07:00
|
|
|
cp $SRC/fa/description.txt $DES/description-fa.txt
|
2014-11-16 09:41:20 -07:00
|
|
|
cp $SRC/fi/description.txt $DES/description-fi.txt
|
2014-12-04 07:56:21 -07:00
|
|
|
cp $SRC/fil/description.txt $DES/description-fil.txt
|
2014-12-01 07:27:08 -07:00
|
|
|
cp $SRC/fr/description.txt $DES/description-fr.txt
|
2015-04-23 06:49:02 -06:00
|
|
|
cp $SRC/fy-NL/description.txt $DES/description-fy.txt
|
2015-05-26 14:49:49 -06:00
|
|
|
cp $SRC/gl/description.txt $DES/description-gl.txt
|
2014-11-16 09:41:20 -07:00
|
|
|
cp $SRC/he/description.txt $DES/description-he.txt
|
|
|
|
cp $SRC/hr/description.txt $DES/description-hr.txt
|
|
|
|
cp $SRC/hu/description.txt $DES/description-hu.txt
|
|
|
|
cp $SRC/id/description.txt $DES/description-id.txt
|
|
|
|
cp $SRC/it/description.txt $DES/description-it.txt
|
2014-11-26 12:34:48 -07:00
|
|
|
cp $SRC/ja/description.txt $DES/description-ja.txt
|
2015-01-29 07:43:26 -07:00
|
|
|
cp $SRC/ko/description.txt $DES/description-ko.txt
|
2015-03-13 15:27:25 -06:00
|
|
|
cp $SRC/lt/description.txt $DES/description-lt.txt
|
2015-01-28 07:10:26 -07:00
|
|
|
cp $SRC/lv/description.txt $DES/description-lv.txt
|
2015-07-05 06:04:24 -06:00
|
|
|
cp $SRC/ms/description.txt $DES/description-ms.txt
|
2015-01-29 07:43:26 -07:00
|
|
|
#cp $SRC/mr/description.txt $DES/description-mr.txt
|
2014-11-16 09:41:20 -07:00
|
|
|
cp $SRC/no/description.txt $DES/description-no.txt
|
|
|
|
cp $SRC/nl/description.txt $DES/description-nl.txt
|
|
|
|
cp $SRC/pl/description.txt $DES/description-pl.txt
|
|
|
|
cp $SRC/pt-BR/description.txt $DES/description-pt_BR.txt
|
|
|
|
cp $SRC/pt-PT/description.txt $DES/description-pt_PT.txt
|
|
|
|
cp $SRC/ro/description.txt $DES/description-ro.txt
|
|
|
|
cp $SRC/ru/description.txt $DES/description-ru.txt
|
2015-03-14 09:15:04 -06:00
|
|
|
cp $SRC/sk/description.txt $DES/description-sk.txt
|
2015-03-13 15:27:25 -06:00
|
|
|
cp $SRC/sl/description.txt $DES/description-sl.txt
|
2015-02-16 19:19:28 -07:00
|
|
|
cp $SRC/sq/description.txt $DES/description-sq.txt
|
2015-03-13 15:27:25 -06:00
|
|
|
cp $SRC/sr/description.txt $DES/description-sr.txt
|
2014-11-16 09:41:20 -07:00
|
|
|
cp $SRC/sv-SE/description.txt $DES/description-sv.txt
|
2015-07-12 17:08:39 -06:00
|
|
|
cp $SRC/ta/description.txt $DES/description-ta.txt
|
2015-03-13 15:21:00 -06:00
|
|
|
cp $SRC/te/description.txt $DES/description-te.txt
|
2014-11-16 09:41:20 -07:00
|
|
|
cp $SRC/tr/description.txt $DES/description-tr.txt
|
|
|
|
cp $SRC/uk/description.txt $DES/description-uk.txt
|
2015-01-26 06:38:19 -07:00
|
|
|
cp $SRC/vi/description.txt $DES/description-vi.txt
|
2014-11-16 09:41:20 -07:00
|
|
|
cp $SRC/zh-CN/description.txt $DES/description-zh_CN.txt
|
2015-07-05 06:04:24 -06:00
|
|
|
cp $SRC/zh-TW/description.txt $DES/description-zh_TW.txt
|
2014-10-17 13:44:19 -06:00
|
|
|
|
|
|
|
#
|
|
|
|
|
2014-11-16 09:41:20 -07:00
|
|
|
rm -r $SRC
|
2014-10-17 13:44:19 -06:00
|
|
|
echo "*** uBlock: Import done."
|