add missing 'Add tribe' pl translation to warStatsGenerator.js
This commit is contained in:
parent
40ac4dd97d
commit
3d46e660c9
|
@ -671,12 +671,12 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
// ==UserScript==
|
||||
// @name Extended Map Popup
|
||||
// @name Extended map popup
|
||||
// @namespace https://github.com/tribalwarshelp/scripts
|
||||
// @updateURL https://raw.githubusercontent.com/tribalwarshelp/scripts/master/dist/extendedMapPopup.js
|
||||
// @downloadURL https://raw.githubusercontent.com/tribalwarshelp/scripts/master/dist/extendedMapPopup.js
|
||||
// @version 0.6.1
|
||||
// @description Extended Map Popup
|
||||
// @description Extended map popup
|
||||
// @author Kichiyaki http://dawid-wysokinski.pl/
|
||||
// @match *://*/game.php*screen=map*
|
||||
// @grant none
|
||||
|
|
|
@ -1104,12 +1104,12 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|||
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
||||
|
||||
// ==UserScript==
|
||||
// @name Extended Player Profile
|
||||
// @name Extended player profile
|
||||
// @namespace https://github.com/tribalwarshelp/scripts
|
||||
// @updateURL https://raw.githubusercontent.com/tribalwarshelp/scripts/master/dist/extendedPlayerProfile.js
|
||||
// @downloadURL https://raw.githubusercontent.com/tribalwarshelp/scripts/master/dist/extendedPlayerProfile.js
|
||||
// @version 1.1.3
|
||||
// @description Extended Player Profile
|
||||
// @description Extended player profile
|
||||
// @author Kichiyaki http://dawid-wysokinski.pl/
|
||||
// @match *://*/game.php*screen=info_player*
|
||||
// @grant none
|
||||
|
|
|
@ -1740,12 +1740,12 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
// ==UserScript==
|
||||
// @name Extended Tribe Profile
|
||||
// @name Extended tribe profile
|
||||
// @namespace https://github.com/tribalwarshelp/scripts
|
||||
// @updateURL https://raw.githubusercontent.com/tribalwarshelp/scripts/master/dist/extendedTribeProfile.js
|
||||
// @downloadURL https://raw.githubusercontent.com/tribalwarshelp/scripts/master/dist/extendedTribeProfile.js
|
||||
// @version 1.0.8
|
||||
// @description Extended Tribe Profile
|
||||
// @description Extended tribe profile
|
||||
// @author Kichiyaki http://dawid-wysokinski.pl/
|
||||
// @match *://*/game.php*screen=info_ally*
|
||||
// @grant none
|
||||
|
|
|
@ -800,12 +800,12 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
// ==UserScript==
|
||||
// @name Extended Village Profile
|
||||
// @name Extended village profile
|
||||
// @namespace https://github.com/tribalwarshelp/scripts
|
||||
// @updateURL https://raw.githubusercontent.com/tribalwarshelp/scripts/master/dist/extendedVillageProfile.js
|
||||
// @downloadURL https://raw.githubusercontent.com/tribalwarshelp/scripts/master/dist/extendedVillageProfile.js
|
||||
// @version 0.6.9
|
||||
// @description Extended Village Profile
|
||||
// @description Extended village profile
|
||||
// @author Kichiyaki http://dawid-wysokinski.pl/
|
||||
// @match *://*/game.php*screen=info_village*
|
||||
// @grant none
|
||||
|
|
|
@ -262,12 +262,12 @@ var _wait = _interopRequireDefault(require("./utils/wait"));
|
|||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
||||
|
||||
// ==UserScript==
|
||||
// @name 'In A Day' Tribe Ranking Generator
|
||||
// @name 'In A Day' tribe ranking generator
|
||||
// @namespace https://github.com/tribalwarshelp/scripts
|
||||
// @updateURL https://raw.githubusercontent.com/tribalwarshelp/scripts/master/dist/inADayTribeRankingGenerator.js
|
||||
// @downloadURL https://raw.githubusercontent.com/tribalwarshelp/scripts/master/dist/inADayTribeRankingGenerator.js
|
||||
// @version 0.2.0
|
||||
// @description 'In A Day' Tribe Ranking Generator
|
||||
// @description 'In A Day' tribe ranking generator
|
||||
// @author Kichiyaki http://dawid-wysokinski.pl/
|
||||
// @match *://*/game.php*screen=ranking*mode=in_a_day*
|
||||
// @grant none
|
||||
|
|
|
@ -214,12 +214,12 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
// ==UserScript==
|
||||
// @name Map Coords Picker
|
||||
// @name Map coords picker
|
||||
// @namespace https://github.com/tribalwarshelp/scripts
|
||||
// @updateURL https://raw.githubusercontent.com/tribalwarshelp/scripts/master/dist/mapCoordsPicker.js
|
||||
// @downloadURL https://raw.githubusercontent.com/tribalwarshelp/scripts/master/dist/mapCoordsPicker.js
|
||||
// @version 0.7.1
|
||||
// @description Map Coords Picker
|
||||
// @description Map coords picker
|
||||
// @author Kichiyaki http://dawid-wysokinski.pl/
|
||||
// @match *://*/game.php*screen=map*
|
||||
// @grant none
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -177,8 +177,9 @@ const translations = {
|
|||
notEnoughTribesSideTwo: 'Musisz dodać jakiekolwiek plemię do strony 2.',
|
||||
from: 'Od',
|
||||
to: 'Do',
|
||||
warStatsGenerator: 'Generator Statystyk Wojennych',
|
||||
generateWarStats: 'Wygeneruj statystyki wojenne'
|
||||
warStatsGenerator: 'Generator statystyk wojennych',
|
||||
generateWarStats: 'Wygeneruj statystyki wojenne',
|
||||
addTribe: 'Dodaj plemię'
|
||||
},
|
||||
en_DK: {
|
||||
conquers: 'Conquers',
|
||||
|
@ -191,8 +192,9 @@ const translations = {
|
|||
notEnoughTribesSideTwo: 'Not enough tribes added to the side two.',
|
||||
from: 'From',
|
||||
to: 'To',
|
||||
warStatsGenerator: 'War Stats Generator',
|
||||
generateWarStats: 'Generate war stats'
|
||||
warStatsGenerator: 'War stats generator',
|
||||
generateWarStats: 'Generate war stats',
|
||||
addTribe: 'Add tribe'
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -273,12 +275,12 @@ function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj;
|
|||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
||||
|
||||
// ==UserScript==
|
||||
// @name War Stats Generator
|
||||
// @name War stats generator
|
||||
// @namespace https://github.com/tribalwarshelp/scripts
|
||||
// @updateURL https://raw.githubusercontent.com/tribalwarshelp/scripts/master/dist/warStatsGenerator.js
|
||||
// @downloadURL https://raw.githubusercontent.com/tribalwarshelp/scripts/master/dist/warStatsGenerator.js
|
||||
// @version 0.2.6
|
||||
// @description War Stats Generator
|
||||
// @version 0.2.7
|
||||
// @description War stats generator
|
||||
// @author Kichiyaki http://dawid-wysokinski.pl/
|
||||
// @match *://*/game.php*screen=ranking*mode=wars*
|
||||
// @grant none
|
||||
|
@ -404,7 +406,7 @@ const handleFormSubmit = async e => {
|
|||
};
|
||||
|
||||
const showWarStatsForm = e => {
|
||||
const html = "\n <form>\n <div id=\"".concat(RESULT_CONTAINER_ID, "\">\n </div>\n <div style=\"margin-bottom: 10px;\">\n <div id=\"").concat(FROM_INPUT_ID, "\">\n <label>").concat(translations.from, ": </label>\n <input type=\"date\" required />\n <input type=\"time\" required />\n </div>\n <div id=\"").concat(TO_INPUT_ID, "\">\n <label>").concat(translations.to, ": </label>\n <input type=\"date\" required />\n <input type=\"time\" required />\n </div>\n </div>\n <div style=\"display: flex; justify-content: space-between; margin-bottom: 10px;\">\n <div>\n <h3>").concat(translations.sideOne, "</h3>\n <div id=\"").concat(SIDE_ONE_INPUT_CONTAINER_ID, "\">\n </div>\n <button id=\"").concat(SIDE_ONE_BUTTON_ID, "\" class=\"btn\" type=\"button\">Add Tribe</button>\n </div>\n <div style=\"margin: 0 5px;\"></div>\n <div>\n <h3>").concat(translations.sideTwo, "</h3>\n <div id=\"").concat(SIDE_TWO_INPUT_CONTAINER_ID, "\">\n </div>\n <button id=\"").concat(SIDE_TWO_BUTTON_ID, "\" class=\"btn\" type=\"button\">Add tribe</button>\n </div>\n </div>\n <div style=\"text-align: center;\">\n <button class=\"btn\" type=\"submit\">").concat(translations.generateWarStats, "</button>\n </div>\n </form>\n ");
|
||||
const html = "\n <form>\n <div id=\"".concat(RESULT_CONTAINER_ID, "\">\n </div>\n <div style=\"margin-bottom: 10px;\">\n <div id=\"").concat(FROM_INPUT_ID, "\">\n <label>").concat(translations.from, ": </label>\n <input type=\"date\" required />\n <input type=\"time\" required />\n </div>\n <div id=\"").concat(TO_INPUT_ID, "\">\n <label>").concat(translations.to, ": </label>\n <input type=\"date\" required />\n <input type=\"time\" required />\n </div>\n </div>\n <div style=\"display: flex; justify-content: space-between; margin-bottom: 10px;\">\n <div>\n <h3>").concat(translations.sideOne, "</h3>\n <div id=\"").concat(SIDE_ONE_INPUT_CONTAINER_ID, "\">\n </div>\n <button id=\"").concat(SIDE_ONE_BUTTON_ID, "\" class=\"btn\" type=\"button\">").concat(translations.addTribe, "</button>\n </div>\n <div style=\"margin: 0 5px;\"></div>\n <div>\n <h3>").concat(translations.sideTwo, "</h3>\n <div id=\"").concat(SIDE_TWO_INPUT_CONTAINER_ID, "\">\n </div>\n <button id=\"").concat(SIDE_TWO_BUTTON_ID, "\" class=\"btn\" type=\"button\">").concat(translations.addTribe, "</button>\n </div>\n </div>\n <div style=\"text-align: center;\">\n <button class=\"btn\" type=\"submit\">").concat(translations.generateWarStats, "</button>\n </div>\n </form>\n ");
|
||||
(0, _showPopup.default)({
|
||||
title: translations.warStatsGenerator,
|
||||
id: 'warStats',
|
||||
|
|
|
@ -12,6 +12,7 @@ const translations = {
|
|||
to: 'Do',
|
||||
warStatsGenerator: 'Generator statystyk wojennych',
|
||||
generateWarStats: 'Wygeneruj statystyki wojenne',
|
||||
addTribe: 'Dodaj plemię',
|
||||
},
|
||||
en_DK: {
|
||||
conquers: 'Conquers',
|
||||
|
@ -26,6 +27,7 @@ const translations = {
|
|||
to: 'To',
|
||||
warStatsGenerator: 'War stats generator',
|
||||
generateWarStats: 'Generate war stats',
|
||||
addTribe: 'Add tribe',
|
||||
},
|
||||
};
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@ import showPopup, { POPUP_SELECTOR } from './utils/showPopup';
|
|||
// @namespace https://github.com/tribalwarshelp/scripts
|
||||
// @updateURL https://raw.githubusercontent.com/tribalwarshelp/scripts/master/dist/warStatsGenerator.js
|
||||
// @downloadURL https://raw.githubusercontent.com/tribalwarshelp/scripts/master/dist/warStatsGenerator.js
|
||||
// @version 0.2.6
|
||||
// @version 0.2.7
|
||||
// @description War stats generator
|
||||
// @author Kichiyaki http://dawid-wysokinski.pl/
|
||||
// @match *://*/game.php*screen=ranking*mode=wars*
|
||||
|
@ -203,14 +203,14 @@ const showWarStatsForm = (e) => {
|
|||
<h3>${translations.sideOne}</h3>
|
||||
<div id="${SIDE_ONE_INPUT_CONTAINER_ID}">
|
||||
</div>
|
||||
<button id="${SIDE_ONE_BUTTON_ID}" class="btn" type="button">Add Tribe</button>
|
||||
<button id="${SIDE_ONE_BUTTON_ID}" class="btn" type="button">${translations.addTribe}</button>
|
||||
</div>
|
||||
<div style="margin: 0 5px;"></div>
|
||||
<div>
|
||||
<h3>${translations.sideTwo}</h3>
|
||||
<div id="${SIDE_TWO_INPUT_CONTAINER_ID}">
|
||||
</div>
|
||||
<button id="${SIDE_TWO_BUTTON_ID}" class="btn" type="button">Add tribe</button>
|
||||
<button id="${SIDE_TWO_BUTTON_ID}" class="btn" type="button">${translations.addTribe}</button>
|
||||
</div>
|
||||
</div>
|
||||
<div style="text-align: center;">
|
||||
|
|
Reference in New Issue