From 9a62fcfe7d976a4d8906efe4272ed9aaaca7423b Mon Sep 17 00:00:00 2001 From: Andras Timar Date: Wed, 22 Jun 2016 08:55:54 +0200 Subject: [PATCH] remove WebODF l10n --- js/locale.js | 48 ------------------------------------------------ src/locale.sh | 18 ------------------ 2 files changed, 66 deletions(-) delete mode 100644 js/locale.js delete mode 100755 src/locale.sh diff --git a/js/locale.js b/js/locale.js deleted file mode 100644 index eb9a5740..00000000 --- a/js/locale.js +++ /dev/null @@ -1,48 +0,0 @@ -t('richdocuments', 'Align Left'); -t('richdocuments', 'Alignment'); -t('richdocuments', 'Align Right'); -t('richdocuments', 'Annotate'); -t('richdocuments', 'Background'); -t('richdocuments', 'Bold'); -t('richdocuments', 'Bottom'); -t('richdocuments', 'Cancel'); -t('richdocuments', 'Center'); -t('richdocuments', 'Clone'); -t('richdocuments', 'Clone this Style'); -t('richdocuments', 'Close'); -t('richdocuments', 'Color'); -t('richdocuments', 'Create'); -t('richdocuments', 'Decrease Indent'); -t('richdocuments', 'Default Style'); -t('richdocuments', 'Delete'); -t('richdocuments', 'Family'); -t('richdocuments', 'Font'); -t('richdocuments', 'Font Effects'); -t('richdocuments', 'Format'); -t('richdocuments', 'Increase Indent'); -t('richdocuments', 'Insert Image'); -t('richdocuments', 'Invite Members'); -t('richdocuments', 'Italic'); -t('richdocuments', 'Justified'); -t('richdocuments', 'Justify'); -t('richdocuments', 'Left'); -t('richdocuments', 'Loading'); -t('richdocuments', 'Members'); -t('richdocuments', 'New Name:'); -t('richdocuments', 'OK'); -t('richdocuments', 'Open'); -t('richdocuments', 'Options'); -t('richdocuments', 'Paragraph...'); -t('richdocuments', 'Paragraph Styles'); -t('richdocuments', 'Redo'); -t('richdocuments', 'Right'); -t('richdocuments', 'Save'); -t('richdocuments', 'Size'); -t('richdocuments', 'Spacing'); -t('richdocuments', 'Strikethrough'); -t('richdocuments', 'Style'); -t('richdocuments', 'Text'); -t('richdocuments', 'Top'); -t('richdocuments', 'Underline'); -t('richdocuments', 'Undo'); -t('richdocuments', 'Unknown Author'); diff --git a/src/locale.sh b/src/locale.sh deleted file mode 100755 index 1a5dbd93..00000000 --- a/src/locale.sh +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/bash -#extracts strings for translation - -if [ ! -e "README.md" ]; then - echo "Call me in the toplevel dir of OwnCloud Documents." - exit 1 -fi - -JS_PATH=js/ -WEBODF_PATH=js/3rdparty/webodf/ - -TMP=/tmp/documents-locale.js - -grep -ohEr "tr\([\"|'][^\"|']*[\"|']\)" ${WEBODF_PATH} | sed -e "s/\"/'/g" -e "s/^tr(/t('documents',\ /" -e "s/\$/;/" > ${TMP} - -grep -ohEr "text-i18n=[\"|'][^\"|']*[\"|']" ${WEBODF_PATH} | sed -e "s/\"/'/g" -e "s/^text-i18n=/t('documents',\ /" -e "s/\$/);/" >> ${TMP} - -sort ${TMP} | uniq > ${JS_PATH}locale.js \ No newline at end of file