Commit 14b784bb authored by Kristof Csillag's avatar Kristof Csillag

Add support for actually using Gettext in Annotator.

(For now, only with customized English text.)
parent 0125ec0e
...@@ -17,6 +17,7 @@ class Annotator.Host extends Annotator ...@@ -17,6 +17,7 @@ class Annotator.Host extends Annotator
tick: false tick: false
constructor: (element, options) -> constructor: (element, options) ->
Gettext.prototype.parse_locale_data annotator_locale_data
super super
@app = @options.app @app = @options.app
......
...@@ -52,6 +52,7 @@ class Hypothesis extends Annotator ...@@ -52,6 +52,7 @@ class Hypothesis extends Annotator
this.$inject = ['$document', '$location', '$rootScope', '$route', 'drafts'] this.$inject = ['$document', '$location', '$rootScope', '$route', 'drafts']
constructor: ($document, $location, $rootScope, $route, drafts) -> constructor: ($document, $location, $rootScope, $route, drafts) ->
Gettext.prototype.parse_locale_data annotator_locale_data
super ($document.find 'body') super ($document.find 'body')
# Load plugins # Load plugins
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment