ONOS-6730: Topo View i18n:
- augmented UiMessageHandler base class to allow injection of
localization bundles, so that the handler can look up localized
text when composing data to ship to the client.
- i18n'd the Summary Panel in Topo view.
Change-Id: I15010d1e2fcce72e3133a9ce40e51510c8f5146f
diff --git a/web/gui/src/main/webapp/app/view/topo/topoInst.js b/web/gui/src/main/webapp/app/view/topo/topoInst.js
index 4e89822..63d49fa 100644
--- a/web/gui/src/main/webapp/app/view/topo/topoInst.js
+++ b/web/gui/src/main/webapp/app/view/topo/topoInst.js
@@ -47,7 +47,7 @@
// function to be replaced by the localization bundle function
var topoLion = function (x) {
- return '#tinst#' + x + '#';
+ return '#tis#' + x + '#';
};
@@ -317,11 +317,6 @@
return on;
}
- // invoked after the localization bundle has been received from the server
- function setLionBundle(bundle) {
- topoLion = bundle;
- }
-
// ==========================
angular.module('ovTopo')
@@ -353,7 +348,7 @@
hide: hideInsts,
toggle: toggleInsts,
showMaster: function () { return oiShowMaster; },
- setLionBundle: setLionBundle,
+ setLionBundle: function (bundle) { topoLion = bundle; },
};
}]);
}());