summaryrefslogtreecommitdiff
path: root/web/viewsjs
diff options
context:
space:
mode:
authorJochen Topf <jochen@topf.org>2012-01-25 09:39:03 +0100
committerJochen Topf <jochen@topf.org>2012-01-25 09:39:03 +0100
commitb8ffeb2230639bbb3ed05cb04ec13c08d1866c16 (patch)
tree96fe7139faeefca28860eb4565c526be1f2ebb16 /web/viewsjs
parentd3699717c6c7df498d4efb82d88e071802553de3 (diff)
downloadtaginfo-b8ffeb2230639bbb3ed05cb04ec13c08d1866c16.tar
taginfo-b8ffeb2230639bbb3ed05cb04ec13c08d1866c16.tar.gz
Remove special case for I18N texts for Javascript
Diffstat (limited to 'web/viewsjs')
-rw-r--r--web/viewsjs/texts.js.erb33
1 files changed, 33 insertions, 0 deletions
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
+%>;