From b8ffeb2230639bbb3ed05cb04ec13c08d1866c16 Mon Sep 17 00:00:00 2001 From: Jochen Topf Date: Wed, 25 Jan 2012 09:39:03 +0100 Subject: Remove special case for I18N texts for Javascript --- web/viewsjs/texts.js.erb | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 web/viewsjs/texts.js.erb (limited to 'web/viewsjs') diff --git a/web/viewsjs/texts.js.erb b/web/viewsjs/texts.js.erb new file mode 100644 index 0000000..a123485 --- /dev/null +++ b/web/viewsjs/texts.js.erb @@ -0,0 +1,33 @@ +var texts = <%= + { + :flexigrid => { + :pagetext => @trans.t.flexigrid.pagetext, + :pagestat => @trans.t.flexigrid.pagestat, + :outof => @trans.t.flexigrid.outof, + :findtext => @trans.t.flexigrid.findtext, + :procmsg => @trans.t.flexigrid.procmsg, + :nomsg => @trans.t.flexigrid.nomsg, + :errormsg => @trans.t.flexigrid.errormsg, + }, + :misc => { + :values_less_than_one_percent => @trans.t.misc.values_less_than_one_percent, + :empty_string => @trans.t.misc.empty_string, + :all => @trans.t.misc.all, + }, + :osm => { + :key => @trans.t.osm.key, + :keys => @trans.t.osm.keys, + :value => @trans.t.osm.value, + :values => @trans.t.osm.values, + :tag => @trans.t.osm.tag, + :tags => @trans.t.osm.tags, + :node => @trans.t.osm.node, + :nodes => @trans.t.osm.nodes, + :way => @trans.t.osm.way, + :ways => @trans.t.osm.ways, + :relation => @trans.t.osm.relation, + :relations => @trans.t.osm.relations, + :all => @trans.t.osm.all + }, + }.to_json +%>; -- cgit v1.2.3