diff --git a/extensions/phonetic/module/MOD-INF/controller.js b/extensions/phonetic/module/MOD-INF/controller.js index 5328e5d41..6d652f685 100644 --- a/extensions/phonetic/module/MOD-INF/controller.js +++ b/extensions/phonetic/module/MOD-INF/controller.js @@ -45,6 +45,16 @@ function init() { // Similarly, we could register new distances like this: // Packages.com.google.refine.clustering.knn.DistanceFactory.put("my-distance", new Packages.org.openrefine.mydistances.MyDistance()); + + /* + * Resources: just some javascript to load the localized strings + */ + ClientSideResourceManager.addPaths( + "project/scripts", + module, + [ + "scripts/load-language.js", + ] + ); + } - - diff --git a/extensions/phonetic/module/langs/translation-en.json b/extensions/phonetic/module/langs/translation-en.json new file mode 100644 index 000000000..5cd9e72e6 --- /dev/null +++ b/extensions/phonetic/module/langs/translation-en.json @@ -0,0 +1,4 @@ +{ + "clustering-keyers/beider-morse": "Beider-Morse", + "clustering-keyers/daitch-mokotoff": "Daitch-Mokotoff" +} diff --git a/extensions/phonetic/module/macros.vm b/extensions/phonetic/module/macros.vm new file mode 100644 index 000000000..18a83bfce --- /dev/null +++ b/extensions/phonetic/module/macros.vm @@ -0,0 +1,14 @@ +#* + This file contains common velocity macros used in all .vt files. + For Velocity documentation, see: + + http://velocity.apache.org/engine/releases/velocity-1.5/user-guide.html +*# + +#macro( makeAList $list ) +