summaryrefslogtreecommitdiffstats
path: root/l10n/rm-old.sh
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-08-26 12:19:58 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2015-08-26 12:19:58 +0200
commit3773c69f01c5d2e7c695cd31b8000742c589bef8 (patch)
tree3305afa3ce97404ec1e876bd1f982cf064ee905f /l10n/rm-old.sh
parent40203d7d1e7b55f2b0eb32c1ad36ada2b060d987 (diff)
downloadnextcloud-server-3773c69f01c5d2e7c695cd31b8000742c589bef8.tar.gz
nextcloud-server-3773c69f01c5d2e7c695cd31b8000742c589bef8.zip
Adding simple script to remove language files from core
Diffstat (limited to 'l10n/rm-old.sh')
-rw-r--r--l10n/rm-old.sh24
1 files changed, 24 insertions, 0 deletions
diff --git a/l10n/rm-old.sh b/l10n/rm-old.sh
new file mode 100644
index 00000000000..30e4509db25
--- /dev/null
+++ b/l10n/rm-old.sh
@@ -0,0 +1,24 @@
+#!/bin/bash
+
+lang=(ach ady af_ZA ak am_ET ar ast az bal be bg_BG bn_BD bn_IN bs ca cs_CZ cy_GB da de de_AT de_DE el en_GB en@pirate eo es es_AR es_CL es_MX et_EE eu fa fi_FI fil fr fy_NL gl gu he hi hr hu_HU hy ia id io is it ja jv ka_GE km kn ko ku_IQ la lb lo lt_LT lv mg mk ml ml_IN mn mr ms_MY mt_MT my_MM nb_NO nds ne nl nn_NO nqo oc or_IN pa pl pt_BR pt_PT ro ru si_LK sk_SK sl sq sr sr@latin su sv sw_KE ta_IN ta_LK te tg_TJ th_TH tl_PH tr tzl tzm ug uk ur_PK uz vi yo zh_CN zh_HK zh_TW)
+
+ignore=""
+
+for fignore in "${lang[@]}"; do
+ ignore=${ignore}"-not -name ${fignore}.js -not -name ${fignore}.json "
+done
+
+
+find ../lib/l10n -type f $ignore -delete
+find ../settings/l10n -type f $ignore -delete
+find ../core/l10n -type f $ignore -delete
+find ../apps/files/l10n -type f $ignore -delete
+find ../apps/encryption/l10n -type f $ignore -delete
+find ../apps/files_external/l10n -type f $ignore -delete
+find ../apps/files_sharing/l10n -type f $ignore -delete
+find ../apps/files_trashbin/l10n -type f $ignore -delete
+find ../apps/files_versions/l10n -type f $ignore -delete
+find ../apps/user_ldap/l10n -type f $ignore -delete
+find ../apps/user_webdavauth/l10n -type f $ignore -delete
+
+