\
\
@@ -58,6 +58,8 @@ my.Map = Backbone.View.extend({
// this will be the Leaflet L.Map object (setup below)
this.map = null;
+ this.initializeI18n(options.locale || 'en');
+
var stateData = _.extend({
geomField: null,
lonField: null,
@@ -173,7 +175,7 @@ my.Map = Backbone.View.extend({
// Also sets up the editor fields and the map if necessary.
render: function() {
var self = this;
- var htmls = Mustache.render(this.template, this.model.toTemplateJSON());
+ var htmls = Mustache.render(this.template, _.extend(this.model.toTemplateJSON(), this.MustacheFormatter()));
this.$el.html(htmls);
this.$map = this.$el.find('.panel.map');
this.redraw();
@@ -505,7 +507,7 @@ my.Map = Backbone.View.extend({
}
});
-my.MapMenu = Backbone.View.extend({
+my.MapMenu = Backbone.I18nView.extend({
className: 'editor',
template: ' \
@@ -588,7 +590,7 @@ my.MapMenu = Backbone.View.extend({
// Also sets up the editor fields and the map if necessary.
render: function() {
var self = this;
- var htmls = Mustache.render(this.template, this.model.toTemplateJSON());
+ var htmls = Mustache.render(this.template, _.extend(this.model.toTemplateJSON(), this.MustacheFormatter()));
this.$el.html(htmls);
if (this._geomReady() && this.model.fields.length){
diff --git a/src/view.multiview.js b/src/view.multiview.js
index 319c81b2..34255462 100644
--- a/src/view.multiview.js
+++ b/src/view.multiview.js
@@ -108,9 +108,7 @@ my.MultiView = Backbone.I18nView.extend({
\
\