translate showEnnoblementsPopup into Polish
This commit is contained in:
parent
57df4d01f0
commit
6f8fcb1794
38
dist/extendedPlayerProfile.js
vendored
38
dist/extendedPlayerProfile.js
vendored
|
@ -287,6 +287,33 @@ var _default = function _default() {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
exports.default = _default;
|
||||||
|
},{}],"tKRp":[function(require,module,exports) {
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
Object.defineProperty(exports, "__esModule", {
|
||||||
|
value: true
|
||||||
|
});
|
||||||
|
exports.default = void 0;
|
||||||
|
const translations = {
|
||||||
|
pl_PL: {
|
||||||
|
date: 'Data',
|
||||||
|
newOwner: 'Nowy właściciel',
|
||||||
|
oldOwner: 'Stary właściciel',
|
||||||
|
village: 'Wioska',
|
||||||
|
title: 'Przejęcia'
|
||||||
|
},
|
||||||
|
en_DK: {
|
||||||
|
date: 'Date',
|
||||||
|
newOwner: 'New owner',
|
||||||
|
oldOwner: 'Old owner',
|
||||||
|
village: 'Village',
|
||||||
|
title: 'Ennoblements'
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
var _default = () => translations[window.game_data.locale] || translations.en_DK;
|
||||||
|
|
||||||
exports.default = _default;
|
exports.default = _default;
|
||||||
},{}],"fCHX":[function(require,module,exports) {
|
},{}],"fCHX":[function(require,module,exports) {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
@ -569,6 +596,8 @@ Object.defineProperty(exports, "__esModule", {
|
||||||
});
|
});
|
||||||
exports.default = void 0;
|
exports.default = void 0;
|
||||||
|
|
||||||
|
var _showEnnoblementsPopup = _interopRequireDefault(require("../i18n/showEnnoblementsPopup"));
|
||||||
|
|
||||||
var _pagination = require("./pagination");
|
var _pagination = require("./pagination");
|
||||||
|
|
||||||
var _showPopup = _interopRequireDefault(require("./showPopup"));
|
var _showPopup = _interopRequireDefault(require("./showPopup"));
|
||||||
|
@ -580,6 +609,7 @@ var _tribalwars = require("./tribalwars");
|
||||||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
||||||
|
|
||||||
const PAGINATION_CONTAINER_ID = 'ennoblementsPagination';
|
const PAGINATION_CONTAINER_ID = 'ennoblementsPagination';
|
||||||
|
const translations = (0, _showEnnoblementsPopup.default)();
|
||||||
|
|
||||||
const getPlayerTd = (player, tribe) => {
|
const getPlayerTd = (player, tribe) => {
|
||||||
if (player) {
|
if (player) {
|
||||||
|
@ -600,7 +630,7 @@ var _default = function _default(e, ennoblements) {
|
||||||
limit,
|
limit,
|
||||||
currentPage
|
currentPage
|
||||||
});
|
});
|
||||||
const html = "\n <div style=\"".concat((0, _pagination.getContainerStyles)(), "\" id=\"").concat(PAGINATION_CONTAINER_ID, "\">\n ").concat(paginationItems.join(''), "\n </div>\n <table class=\"vis\" style=\"border-collapse: separate; border-spacing: 2px; width: 100%;\">\n <tbody>\n <tr>\n <th>\n Date\n </th>\n <th>\n Village\n </th>\n <th>\n New Owner\n </th>\n <th>\n Old Owner\n </th>\n </tr>\n ").concat(ennoblements.items.map(ennoblement => {
|
const html = "\n <div style=\"".concat((0, _pagination.getContainerStyles)(), "\" id=\"").concat(PAGINATION_CONTAINER_ID, "\">\n ").concat(paginationItems.join(''), "\n </div>\n <table class=\"vis\" style=\"border-collapse: separate; border-spacing: 2px; width: 100%;\">\n <tbody>\n <tr>\n <th>\n ").concat(translations.date, "\n </th>\n <th>\n ").concat(translations.village, "\n </th>\n <th>\n ").concat(translations.newOwner, "\n </th>\n <th>\n ").concat(translations.oldOwner, "\n </th>\n </tr>\n ").concat(ennoblements.items.map(ennoblement => {
|
||||||
let rowHTML = '<tr>' + "<td>".concat((0, _formatDate.default)(ennoblement.ennobledAt), "</td>");
|
let rowHTML = '<tr>' + "<td>".concat((0, _formatDate.default)(ennoblement.ennobledAt), "</td>");
|
||||||
|
|
||||||
if (ennoblement.village) {
|
if (ennoblement.village) {
|
||||||
|
@ -615,7 +645,7 @@ var _default = function _default(e, ennoblements) {
|
||||||
}).join(''), "\n </tbody>\n </table>\n ");
|
}).join(''), "\n </tbody>\n </table>\n ");
|
||||||
(0, _showPopup.default)({
|
(0, _showPopup.default)({
|
||||||
e,
|
e,
|
||||||
title: "Ennoblements",
|
title: translations.title,
|
||||||
id: 'ennoblements',
|
id: 'ennoblements',
|
||||||
html
|
html
|
||||||
});
|
});
|
||||||
|
@ -625,7 +655,7 @@ var _default = function _default(e, ennoblements) {
|
||||||
};
|
};
|
||||||
|
|
||||||
exports.default = _default;
|
exports.default = _default;
|
||||||
},{"./pagination":"fCHX","./showPopup":"chDM","./formatDate":"V6Mf","./tribalwars":"fHHP"}],"VYL5":[function(require,module,exports) {
|
},{"../i18n/showEnnoblementsPopup":"tKRp","./pagination":"fCHX","./showPopup":"chDM","./formatDate":"V6Mf","./tribalwars":"fHHP"}],"VYL5":[function(require,module,exports) {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
Object.defineProperty(exports, "__esModule", {
|
Object.defineProperty(exports, "__esModule", {
|
||||||
|
@ -981,7 +1011,7 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
||||||
// @namespace https://github.com/tribalwarshelp/scripts
|
// @namespace https://github.com/tribalwarshelp/scripts
|
||||||
// @updateURL https://raw.githubusercontent.com/tribalwarshelp/scripts/master/dist/extendedPlayerProfile.js
|
// @updateURL https://raw.githubusercontent.com/tribalwarshelp/scripts/master/dist/extendedPlayerProfile.js
|
||||||
// @downloadURL https://raw.githubusercontent.com/tribalwarshelp/scripts/master/dist/extendedPlayerProfile.js
|
// @downloadURL https://raw.githubusercontent.com/tribalwarshelp/scripts/master/dist/extendedPlayerProfile.js
|
||||||
// @version 1.0.4
|
// @version 1.0.5
|
||||||
// @description Extended Player Profile
|
// @description Extended Player Profile
|
||||||
// @author Kichiyaki http://dawid-wysokinski.pl/
|
// @author Kichiyaki http://dawid-wysokinski.pl/
|
||||||
// @match *://*/game.php*screen=info_player*
|
// @match *://*/game.php*screen=info_player*
|
||||||
|
|
40
dist/extendedTribeProfile.js
vendored
40
dist/extendedTribeProfile.js
vendored
|
@ -1104,7 +1104,34 @@ var _default = (container, stats) => {
|
||||||
};
|
};
|
||||||
|
|
||||||
exports.default = _default;
|
exports.default = _default;
|
||||||
},{"../i18n/renderTodaysStats":"l9PO","./isNil":"yQib"}],"chDM":[function(require,module,exports) {
|
},{"../i18n/renderTodaysStats":"l9PO","./isNil":"yQib"}],"tKRp":[function(require,module,exports) {
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
Object.defineProperty(exports, "__esModule", {
|
||||||
|
value: true
|
||||||
|
});
|
||||||
|
exports.default = void 0;
|
||||||
|
const translations = {
|
||||||
|
pl_PL: {
|
||||||
|
date: 'Data',
|
||||||
|
newOwner: 'Nowy właściciel',
|
||||||
|
oldOwner: 'Stary właściciel',
|
||||||
|
village: 'Wioska',
|
||||||
|
title: 'Przejęcia'
|
||||||
|
},
|
||||||
|
en_DK: {
|
||||||
|
date: 'Date',
|
||||||
|
newOwner: 'New owner',
|
||||||
|
oldOwner: 'Old owner',
|
||||||
|
village: 'Village',
|
||||||
|
title: 'Ennoblements'
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
var _default = () => translations[window.game_data.locale] || translations.en_DK;
|
||||||
|
|
||||||
|
exports.default = _default;
|
||||||
|
},{}],"chDM":[function(require,module,exports) {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
Object.defineProperty(exports, "__esModule", {
|
Object.defineProperty(exports, "__esModule", {
|
||||||
|
@ -1344,6 +1371,8 @@ Object.defineProperty(exports, "__esModule", {
|
||||||
});
|
});
|
||||||
exports.default = void 0;
|
exports.default = void 0;
|
||||||
|
|
||||||
|
var _showEnnoblementsPopup = _interopRequireDefault(require("../i18n/showEnnoblementsPopup"));
|
||||||
|
|
||||||
var _pagination = require("./pagination");
|
var _pagination = require("./pagination");
|
||||||
|
|
||||||
var _showPopup = _interopRequireDefault(require("./showPopup"));
|
var _showPopup = _interopRequireDefault(require("./showPopup"));
|
||||||
|
@ -1355,6 +1384,7 @@ var _tribalwars = require("./tribalwars");
|
||||||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
||||||
|
|
||||||
const PAGINATION_CONTAINER_ID = 'ennoblementsPagination';
|
const PAGINATION_CONTAINER_ID = 'ennoblementsPagination';
|
||||||
|
const translations = (0, _showEnnoblementsPopup.default)();
|
||||||
|
|
||||||
const getPlayerTd = (player, tribe) => {
|
const getPlayerTd = (player, tribe) => {
|
||||||
if (player) {
|
if (player) {
|
||||||
|
@ -1375,7 +1405,7 @@ var _default = function _default(e, ennoblements) {
|
||||||
limit,
|
limit,
|
||||||
currentPage
|
currentPage
|
||||||
});
|
});
|
||||||
const html = "\n <div style=\"".concat((0, _pagination.getContainerStyles)(), "\" id=\"").concat(PAGINATION_CONTAINER_ID, "\">\n ").concat(paginationItems.join(''), "\n </div>\n <table class=\"vis\" style=\"border-collapse: separate; border-spacing: 2px; width: 100%;\">\n <tbody>\n <tr>\n <th>\n Date\n </th>\n <th>\n Village\n </th>\n <th>\n New Owner\n </th>\n <th>\n Old Owner\n </th>\n </tr>\n ").concat(ennoblements.items.map(ennoblement => {
|
const html = "\n <div style=\"".concat((0, _pagination.getContainerStyles)(), "\" id=\"").concat(PAGINATION_CONTAINER_ID, "\">\n ").concat(paginationItems.join(''), "\n </div>\n <table class=\"vis\" style=\"border-collapse: separate; border-spacing: 2px; width: 100%;\">\n <tbody>\n <tr>\n <th>\n ").concat(translations.date, "\n </th>\n <th>\n ").concat(translations.village, "\n </th>\n <th>\n ").concat(translations.newOwner, "\n </th>\n <th>\n ").concat(translations.oldOwner, "\n </th>\n </tr>\n ").concat(ennoblements.items.map(ennoblement => {
|
||||||
let rowHTML = '<tr>' + "<td>".concat((0, _formatDate.default)(ennoblement.ennobledAt), "</td>");
|
let rowHTML = '<tr>' + "<td>".concat((0, _formatDate.default)(ennoblement.ennobledAt), "</td>");
|
||||||
|
|
||||||
if (ennoblement.village) {
|
if (ennoblement.village) {
|
||||||
|
@ -1390,7 +1420,7 @@ var _default = function _default(e, ennoblements) {
|
||||||
}).join(''), "\n </tbody>\n </table>\n ");
|
}).join(''), "\n </tbody>\n </table>\n ");
|
||||||
(0, _showPopup.default)({
|
(0, _showPopup.default)({
|
||||||
e,
|
e,
|
||||||
title: "Ennoblements",
|
title: translations.title,
|
||||||
id: 'ennoblements',
|
id: 'ennoblements',
|
||||||
html
|
html
|
||||||
});
|
});
|
||||||
|
@ -1400,7 +1430,7 @@ var _default = function _default(e, ennoblements) {
|
||||||
};
|
};
|
||||||
|
|
||||||
exports.default = _default;
|
exports.default = _default;
|
||||||
},{"./pagination":"fCHX","./showPopup":"chDM","./formatDate":"V6Mf","./tribalwars":"fHHP"}],"VYL5":[function(require,module,exports) {
|
},{"../i18n/showEnnoblementsPopup":"tKRp","./pagination":"fCHX","./showPopup":"chDM","./formatDate":"V6Mf","./tribalwars":"fHHP"}],"VYL5":[function(require,module,exports) {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
Object.defineProperty(exports, "__esModule", {
|
Object.defineProperty(exports, "__esModule", {
|
||||||
|
@ -1685,7 +1715,7 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
||||||
// @namespace https://github.com/tribalwarshelp/scripts
|
// @namespace https://github.com/tribalwarshelp/scripts
|
||||||
// @updateURL https://raw.githubusercontent.com/tribalwarshelp/scripts/master/dist/extendedTribeProfile.js
|
// @updateURL https://raw.githubusercontent.com/tribalwarshelp/scripts/master/dist/extendedTribeProfile.js
|
||||||
// @downloadURL https://raw.githubusercontent.com/tribalwarshelp/scripts/master/dist/extendedTribeProfile.js
|
// @downloadURL https://raw.githubusercontent.com/tribalwarshelp/scripts/master/dist/extendedTribeProfile.js
|
||||||
// @version 0.9.1
|
// @version 0.9.2
|
||||||
// @description Extended Tribe Profile
|
// @description Extended Tribe Profile
|
||||||
// @author Kichiyaki http://dawid-wysokinski.pl/
|
// @author Kichiyaki http://dawid-wysokinski.pl/
|
||||||
// @match *://*/game.php*screen=info_ally*
|
// @match *://*/game.php*screen=info_ally*
|
||||||
|
|
38
dist/extendedVillageProfile.js
vendored
38
dist/extendedVillageProfile.js
vendored
|
@ -258,6 +258,33 @@ exports.default = void 0;
|
||||||
|
|
||||||
var _default = url => parseInt(new URLSearchParams(url).get('id'));
|
var _default = url => parseInt(new URLSearchParams(url).get('id'));
|
||||||
|
|
||||||
|
exports.default = _default;
|
||||||
|
},{}],"tKRp":[function(require,module,exports) {
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
Object.defineProperty(exports, "__esModule", {
|
||||||
|
value: true
|
||||||
|
});
|
||||||
|
exports.default = void 0;
|
||||||
|
const translations = {
|
||||||
|
pl_PL: {
|
||||||
|
date: 'Data',
|
||||||
|
newOwner: 'Nowy właściciel',
|
||||||
|
oldOwner: 'Stary właściciel',
|
||||||
|
village: 'Wioska',
|
||||||
|
title: 'Przejęcia'
|
||||||
|
},
|
||||||
|
en_DK: {
|
||||||
|
date: 'Date',
|
||||||
|
newOwner: 'New owner',
|
||||||
|
oldOwner: 'Old owner',
|
||||||
|
village: 'Village',
|
||||||
|
title: 'Ennoblements'
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
var _default = () => translations[window.game_data.locale] || translations.en_DK;
|
||||||
|
|
||||||
exports.default = _default;
|
exports.default = _default;
|
||||||
},{}],"chDM":[function(require,module,exports) {
|
},{}],"chDM":[function(require,module,exports) {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
@ -488,6 +515,8 @@ Object.defineProperty(exports, "__esModule", {
|
||||||
});
|
});
|
||||||
exports.default = void 0;
|
exports.default = void 0;
|
||||||
|
|
||||||
|
var _showEnnoblementsPopup = _interopRequireDefault(require("../i18n/showEnnoblementsPopup"));
|
||||||
|
|
||||||
var _pagination = require("./pagination");
|
var _pagination = require("./pagination");
|
||||||
|
|
||||||
var _showPopup = _interopRequireDefault(require("./showPopup"));
|
var _showPopup = _interopRequireDefault(require("./showPopup"));
|
||||||
|
@ -499,6 +528,7 @@ var _tribalwars = require("./tribalwars");
|
||||||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
||||||
|
|
||||||
const PAGINATION_CONTAINER_ID = 'ennoblementsPagination';
|
const PAGINATION_CONTAINER_ID = 'ennoblementsPagination';
|
||||||
|
const translations = (0, _showEnnoblementsPopup.default)();
|
||||||
|
|
||||||
const getPlayerTd = (player, tribe) => {
|
const getPlayerTd = (player, tribe) => {
|
||||||
if (player) {
|
if (player) {
|
||||||
|
@ -519,7 +549,7 @@ var _default = function _default(e, ennoblements) {
|
||||||
limit,
|
limit,
|
||||||
currentPage
|
currentPage
|
||||||
});
|
});
|
||||||
const html = "\n <div style=\"".concat((0, _pagination.getContainerStyles)(), "\" id=\"").concat(PAGINATION_CONTAINER_ID, "\">\n ").concat(paginationItems.join(''), "\n </div>\n <table class=\"vis\" style=\"border-collapse: separate; border-spacing: 2px; width: 100%;\">\n <tbody>\n <tr>\n <th>\n Date\n </th>\n <th>\n Village\n </th>\n <th>\n New Owner\n </th>\n <th>\n Old Owner\n </th>\n </tr>\n ").concat(ennoblements.items.map(ennoblement => {
|
const html = "\n <div style=\"".concat((0, _pagination.getContainerStyles)(), "\" id=\"").concat(PAGINATION_CONTAINER_ID, "\">\n ").concat(paginationItems.join(''), "\n </div>\n <table class=\"vis\" style=\"border-collapse: separate; border-spacing: 2px; width: 100%;\">\n <tbody>\n <tr>\n <th>\n ").concat(translations.date, "\n </th>\n <th>\n ").concat(translations.village, "\n </th>\n <th>\n ").concat(translations.newOwner, "\n </th>\n <th>\n ").concat(translations.oldOwner, "\n </th>\n </tr>\n ").concat(ennoblements.items.map(ennoblement => {
|
||||||
let rowHTML = '<tr>' + "<td>".concat((0, _formatDate.default)(ennoblement.ennobledAt), "</td>");
|
let rowHTML = '<tr>' + "<td>".concat((0, _formatDate.default)(ennoblement.ennobledAt), "</td>");
|
||||||
|
|
||||||
if (ennoblement.village) {
|
if (ennoblement.village) {
|
||||||
|
@ -534,7 +564,7 @@ var _default = function _default(e, ennoblements) {
|
||||||
}).join(''), "\n </tbody>\n </table>\n ");
|
}).join(''), "\n </tbody>\n </table>\n ");
|
||||||
(0, _showPopup.default)({
|
(0, _showPopup.default)({
|
||||||
e,
|
e,
|
||||||
title: "Ennoblements",
|
title: translations.title,
|
||||||
id: 'ennoblements',
|
id: 'ennoblements',
|
||||||
html
|
html
|
||||||
});
|
});
|
||||||
|
@ -544,7 +574,7 @@ var _default = function _default(e, ennoblements) {
|
||||||
};
|
};
|
||||||
|
|
||||||
exports.default = _default;
|
exports.default = _default;
|
||||||
},{"./pagination":"fCHX","./showPopup":"chDM","./formatDate":"V6Mf","./tribalwars":"fHHP"}],"UdfQ":[function(require,module,exports) {
|
},{"../i18n/showEnnoblementsPopup":"tKRp","./pagination":"fCHX","./showPopup":"chDM","./formatDate":"V6Mf","./tribalwars":"fHHP"}],"UdfQ":[function(require,module,exports) {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
var _requestCreator = _interopRequireDefault(require("./libs/requestCreator"));
|
var _requestCreator = _interopRequireDefault(require("./libs/requestCreator"));
|
||||||
|
@ -564,7 +594,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
||||||
// @namespace https://github.com/tribalwarshelp/scripts
|
// @namespace https://github.com/tribalwarshelp/scripts
|
||||||
// @updateURL https://raw.githubusercontent.com/tribalwarshelp/scripts/master/dist/extendedVillageProfile.js
|
// @updateURL https://raw.githubusercontent.com/tribalwarshelp/scripts/master/dist/extendedVillageProfile.js
|
||||||
// @downloadURL https://raw.githubusercontent.com/tribalwarshelp/scripts/master/dist/extendedVillageProfile.js
|
// @downloadURL https://raw.githubusercontent.com/tribalwarshelp/scripts/master/dist/extendedVillageProfile.js
|
||||||
// @version 0.5.1
|
// @version 0.5.2
|
||||||
// @description Extended Village Profile
|
// @description Extended Village Profile
|
||||||
// @author Kichiyaki http://dawid-wysokinski.pl/
|
// @author Kichiyaki http://dawid-wysokinski.pl/
|
||||||
// @match *://*/game.php*screen=info_village*
|
// @match *://*/game.php*screen=info_village*
|
||||||
|
|
|
@ -21,7 +21,7 @@ import { setItem, getItem } from './utils/localStorage';
|
||||||
// @namespace https://github.com/tribalwarshelp/scripts
|
// @namespace https://github.com/tribalwarshelp/scripts
|
||||||
// @updateURL https://raw.githubusercontent.com/tribalwarshelp/scripts/master/dist/extendedPlayerProfile.js
|
// @updateURL https://raw.githubusercontent.com/tribalwarshelp/scripts/master/dist/extendedPlayerProfile.js
|
||||||
// @downloadURL https://raw.githubusercontent.com/tribalwarshelp/scripts/master/dist/extendedPlayerProfile.js
|
// @downloadURL https://raw.githubusercontent.com/tribalwarshelp/scripts/master/dist/extendedPlayerProfile.js
|
||||||
// @version 1.0.4
|
// @version 1.0.5
|
||||||
// @description Extended Player Profile
|
// @description Extended Player Profile
|
||||||
// @author Kichiyaki http://dawid-wysokinski.pl/
|
// @author Kichiyaki http://dawid-wysokinski.pl/
|
||||||
// @match *://*/game.php*screen=info_player*
|
// @match *://*/game.php*screen=info_player*
|
||||||
|
|
|
@ -23,7 +23,7 @@ import { formatPlayerURL as formatPlayerURLTribalWars } from './utils/tribalwars
|
||||||
// @namespace https://github.com/tribalwarshelp/scripts
|
// @namespace https://github.com/tribalwarshelp/scripts
|
||||||
// @updateURL https://raw.githubusercontent.com/tribalwarshelp/scripts/master/dist/extendedTribeProfile.js
|
// @updateURL https://raw.githubusercontent.com/tribalwarshelp/scripts/master/dist/extendedTribeProfile.js
|
||||||
// @downloadURL https://raw.githubusercontent.com/tribalwarshelp/scripts/master/dist/extendedTribeProfile.js
|
// @downloadURL https://raw.githubusercontent.com/tribalwarshelp/scripts/master/dist/extendedTribeProfile.js
|
||||||
// @version 0.9.1
|
// @version 0.9.2
|
||||||
// @description Extended Tribe Profile
|
// @description Extended Tribe Profile
|
||||||
// @author Kichiyaki http://dawid-wysokinski.pl/
|
// @author Kichiyaki http://dawid-wysokinski.pl/
|
||||||
// @match *://*/game.php*screen=info_ally*
|
// @match *://*/game.php*screen=info_ally*
|
||||||
|
|
|
@ -9,7 +9,7 @@ import showEnnoblementsPopup from './utils/showEnnoblementsPopup';
|
||||||
// @namespace https://github.com/tribalwarshelp/scripts
|
// @namespace https://github.com/tribalwarshelp/scripts
|
||||||
// @updateURL https://raw.githubusercontent.com/tribalwarshelp/scripts/master/dist/extendedVillageProfile.js
|
// @updateURL https://raw.githubusercontent.com/tribalwarshelp/scripts/master/dist/extendedVillageProfile.js
|
||||||
// @downloadURL https://raw.githubusercontent.com/tribalwarshelp/scripts/master/dist/extendedVillageProfile.js
|
// @downloadURL https://raw.githubusercontent.com/tribalwarshelp/scripts/master/dist/extendedVillageProfile.js
|
||||||
// @version 0.5.1
|
// @version 0.5.2
|
||||||
// @description Extended Village Profile
|
// @description Extended Village Profile
|
||||||
// @author Kichiyaki http://dawid-wysokinski.pl/
|
// @author Kichiyaki http://dawid-wysokinski.pl/
|
||||||
// @match *://*/game.php*screen=info_village*
|
// @match *://*/game.php*screen=info_village*
|
||||||
|
|
19
src/i18n/showEnnoblementsPopup.js
Normal file
19
src/i18n/showEnnoblementsPopup.js
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
const translations = {
|
||||||
|
pl_PL: {
|
||||||
|
date: 'Data',
|
||||||
|
newOwner: 'Nowy właściciel',
|
||||||
|
oldOwner: 'Stary właściciel',
|
||||||
|
village: 'Wioska',
|
||||||
|
title: 'Przejęcia',
|
||||||
|
},
|
||||||
|
en_DK: {
|
||||||
|
date: 'Date',
|
||||||
|
newOwner: 'New owner',
|
||||||
|
oldOwner: 'Old owner',
|
||||||
|
village: 'Village',
|
||||||
|
title: 'Ennoblements',
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
export default () =>
|
||||||
|
translations[window.game_data.locale] || translations.en_DK;
|
|
@ -1,3 +1,4 @@
|
||||||
|
import getTranslations from '../i18n/showEnnoblementsPopup';
|
||||||
import { generatePaginationItems, getContainerStyles } from './pagination';
|
import { generatePaginationItems, getContainerStyles } from './pagination';
|
||||||
import showPopup from './showPopup';
|
import showPopup from './showPopup';
|
||||||
import formatDate from './formatDate';
|
import formatDate from './formatDate';
|
||||||
|
@ -9,6 +10,7 @@ import {
|
||||||
} from './tribalwars';
|
} from './tribalwars';
|
||||||
|
|
||||||
const PAGINATION_CONTAINER_ID = 'ennoblementsPagination';
|
const PAGINATION_CONTAINER_ID = 'ennoblementsPagination';
|
||||||
|
const translations = getTranslations();
|
||||||
|
|
||||||
const getPlayerTd = (player, tribe) => {
|
const getPlayerTd = (player, tribe) => {
|
||||||
if (player) {
|
if (player) {
|
||||||
|
@ -39,16 +41,16 @@ export default (
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<th>
|
<th>
|
||||||
Date
|
${translations.date}
|
||||||
</th>
|
</th>
|
||||||
<th>
|
<th>
|
||||||
Village
|
${translations.village}
|
||||||
</th>
|
</th>
|
||||||
<th>
|
<th>
|
||||||
New Owner
|
${translations.newOwner}
|
||||||
</th>
|
</th>
|
||||||
<th>
|
<th>
|
||||||
Old Owner
|
${translations.oldOwner}
|
||||||
</th>
|
</th>
|
||||||
</tr>
|
</tr>
|
||||||
${ennoblements.items
|
${ennoblements.items
|
||||||
|
@ -85,7 +87,7 @@ export default (
|
||||||
|
|
||||||
showPopup({
|
showPopup({
|
||||||
e,
|
e,
|
||||||
title: `Ennoblements`,
|
title: translations.title,
|
||||||
id: 'ennoblements',
|
id: 'ennoblements',
|
||||||
html,
|
html,
|
||||||
});
|
});
|
||||||
|
|
Reference in New Issue
Block a user