summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Mueller <thomas.mueller@tmit.eu>2012-08-26 02:05:28 +0200
committerThomas Mueller <thomas.mueller@tmit.eu>2012-08-26 02:17:28 +0200
commit8e090d8f67c9a4a641b3e3750d8ebe76e2cd9465 (patch)
tree1072111ee7eefe63a68fbf3f62205f34f15f0cbc
parenta1a38622747dee803a56df6dea33d47e1cc3907a (diff)
downloadnextcloud-server-8e090d8f67c9a4a641b3e3750d8ebe76e2cd9465.tar.gz
nextcloud-server-8e090d8f67c9a4a641b3e3750d8ebe76e2cd9465.zip
added translation for odfviewer
-rw-r--r--apps/files_odfviewer/js/viewer.js2
-rw-r--r--apps/files_odfviewer/l10n/ignorelist8
-rw-r--r--l10n/.tx/config6
-rw-r--r--l10n/templates/files_odfviewer.pot22
4 files changed, 37 insertions, 1 deletions
diff --git a/apps/files_odfviewer/js/viewer.js b/apps/files_odfviewer/js/viewer.js
index 586da126872..9455a9a0a0c 100644
--- a/apps/files_odfviewer/js/viewer.js
+++ b/apps/files_odfviewer/js/viewer.js
@@ -6,7 +6,7 @@ function viewOdf(dir, file) {
// odf action toolbar
var odfToolbarHtml =
'<div id="odf-toolbar">' +
- '<input type="button" id="odf_close" value="Close">' +
+ '<input type="button" id="odf_close">'+t('files_odfviewer','Close')+
'</div>';
$('#controls').append(odfToolbarHtml);
diff --git a/apps/files_odfviewer/l10n/ignorelist b/apps/files_odfviewer/l10n/ignorelist
new file mode 100644
index 00000000000..96ae631a0dd
--- /dev/null
+++ b/apps/files_odfviewer/l10n/ignorelist
@@ -0,0 +1,8 @@
+src/webodf/webodf/tests/core/Base64Tests.js
+src/webodf/webodf/tests/core/CursorTests.js
+src/webodf/webodf/tests/gui/CaretTests.js
+src/webodf/webodf/tests/gui/SelectionMoverTests.js
+src/webodf/webodf/tests/core/PointWalkerTests.js
+src/webodf/webodf/tests/core/ZipTests.js
+src/webodf/webodf/tests/xmldom/XPathTests.js
+src/webodf/webodf/tests/core/RuntimeTests.js
diff --git a/l10n/.tx/config b/l10n/.tx/config
index 25c20cb8e70..325eb151d67 100644
--- a/l10n/.tx/config
+++ b/l10n/.tx/config
@@ -120,3 +120,9 @@ source_file = templates/impress.pot
source_lang = en
type = PO
+[owncloud.impress]
+file_filter = <lang>/files_odfviewer.po
+source_file = templates/files_odfviewer.pot
+source_lang = en
+type = PO
+
diff --git a/l10n/templates/files_odfviewer.pot b/l10n/templates/files_odfviewer.pot
new file mode 100644
index 00000000000..ed337291084
--- /dev/null
+++ b/l10n/templates/files_odfviewer.pot
@@ -0,0 +1,22 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
+#
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2012-08-26 01:49+0200\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
+"Language-Team: LANGUAGE <LL@li.org>\n"
+"Language: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=CHARSET\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#: js/viewer.js:9
+msgid "Close"
+msgstr ""