diff --git a/extensions/firefox/.gitignore b/extensions/firefox/.gitignore index 3eb92306c..08a23850c 100644 --- a/extensions/firefox/.gitignore +++ b/extensions/firefox/.gitignore @@ -1 +1,2 @@ content/ +metadata.inc diff --git a/extensions/firefox/components/PdfStreamConverter.js b/extensions/firefox/components/PdfStreamConverter.js index f4b5b7712..af9cf41b8 100644 --- a/extensions/firefox/components/PdfStreamConverter.js +++ b/extensions/firefox/components/PdfStreamConverter.js @@ -58,6 +58,9 @@ ChromeActions.prototype = { return '{}'; return application.prefs.getValue(EXT_PREFIX + '.database', '{}'); }, + getLocale: function() { + return application.prefs.getValue('general.useragent.locale', 'en-US'); + }, pdfBugEnabled: function() { return application.prefs.getValue(EXT_PREFIX + '.pdfBugEnabled', false); } diff --git a/extensions/firefox/install.rdf b/extensions/firefox/install.rdf index 0a0d813b2..d7eea9319 100644 --- a/extensions/firefox/install.rdf +++ b/extensions/firefox/install.rdf @@ -5,6 +5,7 @@ uriloader@pdf.js + PDF Viewer PDFJSSCRIPT_VERSION diff --git a/extensions/firefox/install.rdf.in b/extensions/firefox/install.rdf.in index feab3e7ad..084d6dc2d 100644 --- a/extensions/firefox/install.rdf.in +++ b/extensions/firefox/install.rdf.in @@ -7,6 +7,7 @@ uriloader@pdf.js + PDF Viewer PDFJSSCRIPT_VERSION diff --git a/external/webL10n/README.md b/external/webL10n/README.md new file mode 100644 index 000000000..52995522c --- /dev/null +++ b/external/webL10n/README.md @@ -0,0 +1,3 @@ +The source code for the library can be found at + + https://github.com/fabi1cazenave/webL10n diff --git a/external/webL10n/l10n.js b/external/webL10n/l10n.js new file mode 100644 index 000000000..f6c11c178 --- /dev/null +++ b/external/webL10n/l10n.js @@ -0,0 +1,322 @@ +/* Copyright (c) 2011-2012 Fabien Cazenave, Mozilla. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to + * deal in the Software without restriction, including without limitation the + * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + * IN THE SOFTWARE. + */ +/* + Additional modifications for PDF.js project: + - Loading resources from + + @@ -43,11 +46,11 @@
- -
@@ -65,20 +68,20 @@
-
-
-
- + @@ -88,40 +91,40 @@ - - Bookmark + Current View
-
-
- + + + + @@ -142,22 +145,22 @@
-
Loading... 0%
+
Loading... 0%