From: Ævar Arnfjörð Bjarmason Date: Sat, 6 Jun 2009 17:57:08 +0000 (+0000) Subject: Implement a hack so that we can interpolate JavaScript variables in X-Git-Tag: live~7173 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/b653ace377aa47d2b0eba08e5c6f0dcd7622f00b Implement a hack so that we can interpolate JavaScript variables in translation strings from Ruby, doing the string replacement lient-side instead of on the server. This partially solves ticket:1919. I still have to move the rest of the JS functions over to the new system. --- diff --git a/app/views/browse/start.rjs b/app/views/browse/start.rjs index c5247066e..244456f11 100644 --- a/app/views/browse/start.rjs +++ b/app/views/browse/start.rjs @@ -131,7 +131,7 @@ page << < '{{num_features}}')}", { num_features: browseFeatureList.length }))); div.appendChild(p); var input = document.createElement("input"); @@ -486,6 +486,22 @@ page << <