update readme.md and screenshots/extendedVillageProfile.png, translate some fields from extendedVillageProfile into Polish

This commit is contained in:
Dawid Wysokiński 2020-08-13 11:28:03 +02:00
parent cb2dc9344f
commit 2ef4ca71d4
10 changed files with 37 additions and 20 deletions

View File

@ -313,7 +313,7 @@ const translations = {
pl_PL: {
ennobledAt: 'Podbita o',
never: 'Nigdy',
possibleLoyalty: 'Możliwe poparcie',
possibleLoyalty: 'Prawdopodobne poparcie',
canSendNoble: 'Można wysłać szlachcica',
yes: 'Tak',
no: 'Nie'
@ -675,7 +675,7 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
// @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.0
// @version 0.6.1
// @description Extended Map Popup
// @author Kichiyaki http://dawid-wysokinski.pl/
// @match *://*/game.php*screen=map*
@ -736,7 +736,8 @@ const loadVillageData = async function loadVillageData(id) {
server: SERVER,
filter: {
villageID: [id],
sort: 'ennobledAt DESC'
sort: 'ennobledAt DESC',
limit: 1
}
}
});

View File

@ -172,6 +172,8 @@ const translations = {
mySupport: 'Moje wsparcie',
allySupport: 'Wsparcie plemienia',
total: 'Łącznie',
possibleLoyalty: 'Prawdopodobne poparcie',
ennobledAt: 'Podbita o',
action: {
showEnnoblements: 'Pokaż przejęcia',
countIncomingSupport: 'Policz nadchodzące wsparcie'
@ -183,6 +185,8 @@ const translations = {
mySupport: 'My support',
allySupport: 'Ally support',
total: 'Total',
possibleLoyalty: 'Possible loyalty',
ennobledAt: 'Ennobled at',
action: {
showEnnoblements: 'Show ennoblements',
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
// @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.7
// @version 0.6.8
// @description Extended Village Profile
// @author Kichiyaki http://dawid-wysokinski.pl/
// @match *://*/game.php*screen=info_village*
@ -853,7 +857,8 @@ const loadPageData = async () => {
server: SERVER,
filter: {
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;
renderTr({
id: 'loyalty',
title: 'Possible loyalty:',
title: "".concat(translations.possibleLoyalty, ":"),
data: firstEnnoblement ? (0, _countLoyalty.default)(new Date(firstEnnoblement.ennobledAt), config.speed) : 100
});
renderTr({
id: 'ennobledAt',
title: 'Ennobled at:',
title: "".concat(translations.ennobledAt, ":"),
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

View File

@ -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)
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
- Best rank
@ -57,7 +57,7 @@ New actions:
[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
- Best rank
@ -82,7 +82,12 @@ New actions:
[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
- Count incoming support
@ -110,7 +115,7 @@ Adds to map screen new functionality to search bonus barbarian villages easily.
Adds to popup:
- Information about possible loyalty
- Ennoble date
- Last ennoble date
- Information if you can send noble from the current village
- Unit arrival time

Binary file not shown.

Before

Width:  |  Height:  |  Size: 41 KiB

After

Width:  |  Height:  |  Size: 48 KiB

View File

@ -14,7 +14,7 @@ import countLoyalty from './utils/countLoyalty';
// @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.0
// @version 0.6.1
// @description Extended Map Popup
// @author Kichiyaki http://dawid-wysokinski.pl/
// @match *://*/game.php*screen=map*
@ -141,6 +141,7 @@ const loadVillageData = async (id, { cacheOnly = false } = {}) => {
filter: {
villageID: [id],
sort: 'ennobledAt DESC',
limit: 1,
},
},
});

View File

@ -15,7 +15,7 @@ import showEnnoblementsPopup from './common/showEnnoblementsPopup';
// @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.7
// @version 0.6.8
// @description Extended Village Profile
// @author Kichiyaki http://dawid-wysokinski.pl/
// @match *://*/game.php*screen=info_village*
@ -168,6 +168,7 @@ const loadPageData = async () => {
filter: {
villageID: [VILLAGE_ID],
sort: 'ennobledAt DESC',
limit: 1,
},
},
});
@ -375,14 +376,14 @@ const renderAdditionalInfo = ({ config, ennoblements } = {}) => {
: undefined;
renderTr({
id: 'loyalty',
title: 'Possible loyalty:',
title: `${translations.possibleLoyalty}:`,
data: firstEnnoblement
? countLoyalty(new Date(firstEnnoblement.ennobledAt), config.speed)
: 100,
});
renderTr({
id: 'ennobledAt',
title: 'Ennobled at:',
title: `${translations.ennobledAt}:`,
data: firstEnnoblement ? formatDate(firstEnnoblement.ennobledAt) : 'Never',
});
};

View File

@ -2,7 +2,7 @@ const translations = {
pl_PL: {
ennobledAt: 'Podbita o',
never: 'Nigdy',
possibleLoyalty: 'Możliwe poparcie',
possibleLoyalty: 'Prawdopodobne poparcie',
canSendNoble: 'Można wysłać szlachcica',
yes: 'Tak',
no: 'Nie',

View File

@ -5,6 +5,8 @@ const translations = {
mySupport: 'Moje wsparcie',
allySupport: 'Wsparcie plemienia',
total: 'Łącznie',
possibleLoyalty: 'Prawdopodobne poparcie',
ennobledAt: 'Podbita o',
action: {
showEnnoblements: 'Pokaż przejęcia',
countIncomingSupport: 'Policz nadchodzące wsparcie',
@ -16,6 +18,8 @@ const translations = {
mySupport: 'My support',
allySupport: 'Ally support',
total: 'Total',
possibleLoyalty: 'Possible loyalty',
ennobledAt: 'Ennobled at',
action: {
showEnnoblements: 'Show ennoblements',
countIncomingSupport: 'Count incoming support',