update readme.md and screenshots/extendedVillageProfile.png, translate some fields from extendedVillageProfile into Polish
This commit is contained in:
parent
cb2dc9344f
commit
2ef4ca71d4
|
@ -313,7 +313,7 @@ const translations = {
|
||||||
pl_PL: {
|
pl_PL: {
|
||||||
ennobledAt: 'Podbita o',
|
ennobledAt: 'Podbita o',
|
||||||
never: 'Nigdy',
|
never: 'Nigdy',
|
||||||
possibleLoyalty: 'Możliwe poparcie',
|
possibleLoyalty: 'Prawdopodobne poparcie',
|
||||||
canSendNoble: 'Można wysłać szlachcica',
|
canSendNoble: 'Można wysłać szlachcica',
|
||||||
yes: 'Tak',
|
yes: 'Tak',
|
||||||
no: 'Nie'
|
no: 'Nie'
|
||||||
|
@ -675,7 +675,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/extendedMapPopup.js
|
// @updateURL https://raw.githubusercontent.com/tribalwarshelp/scripts/master/dist/extendedMapPopup.js
|
||||||
// @downloadURL https://raw.githubusercontent.com/tribalwarshelp/scripts/master/dist/extendedMapPopup.js
|
// @downloadURL https://raw.githubusercontent.com/tribalwarshelp/scripts/master/dist/extendedMapPopup.js
|
||||||
// @version 0.6.0
|
// @version 0.6.1
|
||||||
// @description Extended Map Popup
|
// @description Extended Map Popup
|
||||||
// @author Kichiyaki http://dawid-wysokinski.pl/
|
// @author Kichiyaki http://dawid-wysokinski.pl/
|
||||||
// @match *://*/game.php*screen=map*
|
// @match *://*/game.php*screen=map*
|
||||||
|
@ -736,7 +736,8 @@ const loadVillageData = async function loadVillageData(id) {
|
||||||
server: SERVER,
|
server: SERVER,
|
||||||
filter: {
|
filter: {
|
||||||
villageID: [id],
|
villageID: [id],
|
||||||
sort: 'ennobledAt DESC'
|
sort: 'ennobledAt DESC',
|
||||||
|
limit: 1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -172,6 +172,8 @@ const translations = {
|
||||||
mySupport: 'Moje wsparcie',
|
mySupport: 'Moje wsparcie',
|
||||||
allySupport: 'Wsparcie plemienia',
|
allySupport: 'Wsparcie plemienia',
|
||||||
total: 'Łącznie',
|
total: 'Łącznie',
|
||||||
|
possibleLoyalty: 'Prawdopodobne poparcie',
|
||||||
|
ennobledAt: 'Podbita o',
|
||||||
action: {
|
action: {
|
||||||
showEnnoblements: 'Pokaż przejęcia',
|
showEnnoblements: 'Pokaż przejęcia',
|
||||||
countIncomingSupport: 'Policz nadchodzące wsparcie'
|
countIncomingSupport: 'Policz nadchodzące wsparcie'
|
||||||
|
@ -183,6 +185,8 @@ const translations = {
|
||||||
mySupport: 'My support',
|
mySupport: 'My support',
|
||||||
allySupport: 'Ally support',
|
allySupport: 'Ally support',
|
||||||
total: 'Total',
|
total: 'Total',
|
||||||
|
possibleLoyalty: 'Possible loyalty',
|
||||||
|
ennobledAt: 'Ennobled at',
|
||||||
action: {
|
action: {
|
||||||
showEnnoblements: 'Show ennoblements',
|
showEnnoblements: 'Show ennoblements',
|
||||||
countIncomingSupport: 'Count incoming support'
|
countIncomingSupport: 'Count incoming support'
|
||||||
|
@ -797,7 +801,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/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.6.7
|
// @version 0.6.8
|
||||||
// @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*
|
||||||
|
@ -853,7 +857,8 @@ const loadPageData = async () => {
|
||||||
server: SERVER,
|
server: SERVER,
|
||||||
filter: {
|
filter: {
|
||||||
villageID: [VILLAGE_ID],
|
villageID: [VILLAGE_ID],
|
||||||
sort: 'ennobledAt DESC'
|
sort: 'ennobledAt DESC',
|
||||||
|
limit: 1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -1037,12 +1042,12 @@ const renderAdditionalInfo = function renderAdditionalInfo() {
|
||||||
const firstEnnoblement = ennoblements && Array.isArray(ennoblements.items) && ennoblements.items[0] ? ennoblements.items[0] : undefined;
|
const firstEnnoblement = ennoblements && Array.isArray(ennoblements.items) && ennoblements.items[0] ? ennoblements.items[0] : undefined;
|
||||||
renderTr({
|
renderTr({
|
||||||
id: 'loyalty',
|
id: 'loyalty',
|
||||||
title: 'Possible loyalty:',
|
title: "".concat(translations.possibleLoyalty, ":"),
|
||||||
data: firstEnnoblement ? (0, _countLoyalty.default)(new Date(firstEnnoblement.ennobledAt), config.speed) : 100
|
data: firstEnnoblement ? (0, _countLoyalty.default)(new Date(firstEnnoblement.ennobledAt), config.speed) : 100
|
||||||
});
|
});
|
||||||
renderTr({
|
renderTr({
|
||||||
id: 'ennobledAt',
|
id: 'ennobledAt',
|
||||||
title: 'Ennobled at:',
|
title: "".concat(translations.ennobledAt, ":"),
|
||||||
data: firstEnnoblement ? (0, _formatDate.default)(firstEnnoblement.ennobledAt) : 'Never'
|
data: firstEnnoblement ? (0, _formatDate.default)(firstEnnoblement.ennobledAt) : 'Never'
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
13
readme.md
13
readme.md
|
@ -32,7 +32,7 @@ This script shows you the latest ennoblements from your server. Works in real-ti
|
||||||
|
|
||||||
[Code](https://raw.githubusercontent.com/tribalwarshelp/scripts/master/dist/extendedPlayerProfile.js)
|
[Code](https://raw.githubusercontent.com/tribalwarshelp/scripts/master/dist/extendedPlayerProfile.js)
|
||||||
|
|
||||||
This script adds a lot of useful actions and pieces of information to the player profile.
|
This script adds many useful actions and pieces of information to the player profile.
|
||||||
|
|
||||||
- Daily growth
|
- Daily growth
|
||||||
- Best rank
|
- Best rank
|
||||||
|
@ -57,7 +57,7 @@ New actions:
|
||||||
|
|
||||||
[Code](https://raw.githubusercontent.com/tribalwarshelp/scripts/master/dist/extendedTribeProfile.js)
|
[Code](https://raw.githubusercontent.com/tribalwarshelp/scripts/master/dist/extendedTribeProfile.js)
|
||||||
|
|
||||||
This script adds a lot of useful actions and pieces of information to the tribe profile.
|
This script adds many useful actions and pieces of information to the tribe profile.
|
||||||
|
|
||||||
- Dominance
|
- Dominance
|
||||||
- Best rank
|
- Best rank
|
||||||
|
@ -82,7 +82,12 @@ New actions:
|
||||||
|
|
||||||
[Code](https://raw.githubusercontent.com/tribalwarshelp/scripts/master/dist/extendedVillageProfile.js)
|
[Code](https://raw.githubusercontent.com/tribalwarshelp/scripts/master/dist/extendedVillageProfile.js)
|
||||||
|
|
||||||
This script adds new actions:
|
This script adds new actions and pieces of information to the village profile.
|
||||||
|
|
||||||
|
- Possible loyalty
|
||||||
|
- Last ennoble date
|
||||||
|
|
||||||
|
New actions:
|
||||||
|
|
||||||
- Show ennoblements
|
- Show ennoblements
|
||||||
- Count incoming support
|
- Count incoming support
|
||||||
|
@ -110,7 +115,7 @@ Adds to map screen new functionality to search bonus barbarian villages easily.
|
||||||
Adds to popup:
|
Adds to popup:
|
||||||
|
|
||||||
- Information about possible loyalty
|
- Information about possible loyalty
|
||||||
- Ennoble date
|
- Last ennoble date
|
||||||
- Information if you can send noble from the current village
|
- Information if you can send noble from the current village
|
||||||
- Unit arrival time
|
- Unit arrival time
|
||||||
|
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 41 KiB After Width: | Height: | Size: 48 KiB |
|
@ -14,7 +14,7 @@ import countLoyalty from './utils/countLoyalty';
|
||||||
// @namespace https://github.com/tribalwarshelp/scripts
|
// @namespace https://github.com/tribalwarshelp/scripts
|
||||||
// @updateURL https://raw.githubusercontent.com/tribalwarshelp/scripts/master/dist/extendedMapPopup.js
|
// @updateURL https://raw.githubusercontent.com/tribalwarshelp/scripts/master/dist/extendedMapPopup.js
|
||||||
// @downloadURL https://raw.githubusercontent.com/tribalwarshelp/scripts/master/dist/extendedMapPopup.js
|
// @downloadURL https://raw.githubusercontent.com/tribalwarshelp/scripts/master/dist/extendedMapPopup.js
|
||||||
// @version 0.6.0
|
// @version 0.6.1
|
||||||
// @description Extended Map Popup
|
// @description Extended Map Popup
|
||||||
// @author Kichiyaki http://dawid-wysokinski.pl/
|
// @author Kichiyaki http://dawid-wysokinski.pl/
|
||||||
// @match *://*/game.php*screen=map*
|
// @match *://*/game.php*screen=map*
|
||||||
|
@ -141,6 +141,7 @@ const loadVillageData = async (id, { cacheOnly = false } = {}) => {
|
||||||
filter: {
|
filter: {
|
||||||
villageID: [id],
|
villageID: [id],
|
||||||
sort: 'ennobledAt DESC',
|
sort: 'ennobledAt DESC',
|
||||||
|
limit: 1,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
|
@ -15,7 +15,7 @@ import showEnnoblementsPopup from './common/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.6.7
|
// @version 0.6.8
|
||||||
// @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*
|
||||||
|
@ -168,6 +168,7 @@ const loadPageData = async () => {
|
||||||
filter: {
|
filter: {
|
||||||
villageID: [VILLAGE_ID],
|
villageID: [VILLAGE_ID],
|
||||||
sort: 'ennobledAt DESC',
|
sort: 'ennobledAt DESC',
|
||||||
|
limit: 1,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
@ -375,14 +376,14 @@ const renderAdditionalInfo = ({ config, ennoblements } = {}) => {
|
||||||
: undefined;
|
: undefined;
|
||||||
renderTr({
|
renderTr({
|
||||||
id: 'loyalty',
|
id: 'loyalty',
|
||||||
title: 'Possible loyalty:',
|
title: `${translations.possibleLoyalty}:`,
|
||||||
data: firstEnnoblement
|
data: firstEnnoblement
|
||||||
? countLoyalty(new Date(firstEnnoblement.ennobledAt), config.speed)
|
? countLoyalty(new Date(firstEnnoblement.ennobledAt), config.speed)
|
||||||
: 100,
|
: 100,
|
||||||
});
|
});
|
||||||
renderTr({
|
renderTr({
|
||||||
id: 'ennobledAt',
|
id: 'ennobledAt',
|
||||||
title: 'Ennobled at:',
|
title: `${translations.ennobledAt}:`,
|
||||||
data: firstEnnoblement ? formatDate(firstEnnoblement.ennobledAt) : 'Never',
|
data: firstEnnoblement ? formatDate(firstEnnoblement.ennobledAt) : 'Never',
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
|
@ -2,7 +2,7 @@ const translations = {
|
||||||
pl_PL: {
|
pl_PL: {
|
||||||
ennobledAt: 'Podbita o',
|
ennobledAt: 'Podbita o',
|
||||||
never: 'Nigdy',
|
never: 'Nigdy',
|
||||||
possibleLoyalty: 'Możliwe poparcie',
|
possibleLoyalty: 'Prawdopodobne poparcie',
|
||||||
canSendNoble: 'Można wysłać szlachcica',
|
canSendNoble: 'Można wysłać szlachcica',
|
||||||
yes: 'Tak',
|
yes: 'Tak',
|
||||||
no: 'Nie',
|
no: 'Nie',
|
||||||
|
|
|
@ -5,6 +5,8 @@ const translations = {
|
||||||
mySupport: 'Moje wsparcie',
|
mySupport: 'Moje wsparcie',
|
||||||
allySupport: 'Wsparcie plemienia',
|
allySupport: 'Wsparcie plemienia',
|
||||||
total: 'Łącznie',
|
total: 'Łącznie',
|
||||||
|
possibleLoyalty: 'Prawdopodobne poparcie',
|
||||||
|
ennobledAt: 'Podbita o',
|
||||||
action: {
|
action: {
|
||||||
showEnnoblements: 'Pokaż przejęcia',
|
showEnnoblements: 'Pokaż przejęcia',
|
||||||
countIncomingSupport: 'Policz nadchodzące wsparcie',
|
countIncomingSupport: 'Policz nadchodzące wsparcie',
|
||||||
|
@ -16,6 +18,8 @@ const translations = {
|
||||||
mySupport: 'My support',
|
mySupport: 'My support',
|
||||||
allySupport: 'Ally support',
|
allySupport: 'Ally support',
|
||||||
total: 'Total',
|
total: 'Total',
|
||||||
|
possibleLoyalty: 'Possible loyalty',
|
||||||
|
ennobledAt: 'Ennobled at',
|
||||||
action: {
|
action: {
|
||||||
showEnnoblements: 'Show ennoblements',
|
showEnnoblements: 'Show ennoblements',
|
||||||
countIncomingSupport: 'Count incoming support',
|
countIncomingSupport: 'Count incoming support',
|
||||||
|
|
Reference in New Issue