describe("Check translations", function () {
var $ = mkws.$;
+
// handle html entities, "Zurück" => "Zurück"
var M = function (string) {
- return $("<span/>").html(mkws.M(string)).text()
+ var text = $("<span/>").html(mkws.M(string)).text()
+ debug("translate check for: " + text);
+ return text;
};
var lang = function () {
return mkws.config.lang
expect($(list[2]).text()).toBe(M("Authors"));
});
- it("facets navigation", function () {
+ it("facets navigation/filter", function () {
var list = $(".mkws-navi > span");
expect(list.length).toBe(2);