fixed pt-br translation and extra string identifiers

Fixed some grammatical errors on the Brazilian Portuguese translation and added a few string identifiers to expand the translation of this module.
release
Eduardo Freire 2022-09-23 17:42:27 -03:00
parent d4181d347e
commit 126a264d87
4 changed files with 184 additions and 125 deletions

View File

@ -1493,48 +1493,48 @@ class CompendiumBrowser extends Application {
tool: game.i18n.localize("DND5E.ItemTypeTool"),
weapon: game.i18n.localize("DND5E.ItemTypeWeapon")
});
this.addItemFilter(game.i18n.localize("CMPBrowser.general"), "Packs", 'matchedPacks', 'select',
this.addItemFilter(game.i18n.localize("CMPBrowser.general"), game.i18n.localize("CMPBrowser.ItemsPacks"), 'matchedPacks', 'select',
{
burglar: "Burglar's Pack",
diplomat: "Diplomat's Pack",
dungeoneer: "Dungeoneer's Pack",
entertainer: "Entertainer's Pack",
explorer: "Explorer's Pack",
monsterhunter: "Monster Hunter's Pack",
priest: "Priest's Pack",
scholar: "Scholar's Pack",
burglar: game.i18n.localize("CMPBrowser.ItemsPacksBurglar"),
diplomat: game.i18n.localize("CMPBrowser.ItemsPacksDiplomat"),
dungeoneer: game.i18n.localize("CMPBrowser.ItemsPacksDungeoneer"),
entertainer: game.i18n.localize("CMPBrowser.ItemsPacksEntertainer"),
explorer: game.i18n.localize("CMPBrowser.ItemsPacksExplorer"),
monsterhunter: game.i18n.localize("CMPBrowser.ItemsPacksMonsterHunter"),
priest: game.i18n.localize("CMPBrowser.ItemsPacksPriest"),
scholar: game.i18n.localize("CMPBrowser.ItemsPacksScholar"),
}, true
);
if (CompendiumBrowser.isFoundryV10Plus) {
this.addItemFilter("Game Mechanics", game.i18n.localize("DND5E.ItemActivationCost"), 'system.activation.type', 'select', CONFIG.DND5E.abilityActivationTypes);
this.addItemFilter(game.i18n.localize("CMPBrowser.GameMechanics"), game.i18n.localize("DND5E.ItemActivationCost"), 'system.activation.type', 'select', CONFIG.DND5E.abilityActivationTypes);
}
else {
this.addItemFilter("Game Mechanics", game.i18n.localize("DND5E.ItemActivationCost"), 'data.activation.type', 'select', CONFIG.DND5E.abilityActivationTypes);
this.addItemFilter(game.i18n.localize("CMPBrowser.GameMechanics"), game.i18n.localize("DND5E.ItemActivationCost"), 'data.activation.type', 'select', CONFIG.DND5E.abilityActivationTypes);
}
this.addItemFilter("Game Mechanics", game.i18n.localize("CMPBrowser.damageType"), 'damageTypes', 'select', CONFIG.DND5E.damageTypes);
this.addItemFilter("Game Mechanics", "Uses Resources", 'usesRessources', 'bool');
this.addItemFilter(game.i18n.localize("CMPBrowser.GameMechanics"), game.i18n.localize("CMPBrowser.damageType"), 'damageTypes', 'select', CONFIG.DND5E.damageTypes);
this.addItemFilter(game.i18n.localize("CMPBrowser.GameMechanics"), game.i18n.localize("CMPBrowser.UsesResources"), 'usesRessources', 'bool');
if (CompendiumBrowser.isFoundryV10Plus) {
this.addItemFilter("Item Subtype", "Weapon", 'system.weaponType', 'text', CONFIG.DND5E.weaponTypes);
this.addItemFilter("Item Subtype", "Equipment", 'system.armor.type', 'text', CONFIG.DND5E.equipmentTypes);
this.addItemFilter("Item Subtype", "Consumable", 'system.consumableType', 'text', CONFIG.DND5E.consumableTypes);
this.addItemFilter(game.i18n.localize("CMPBrowser.ItemSubtype"), game.i18n.localize("DND5E.ItemTypeWeapon"), 'system.weaponType', 'text', CONFIG.DND5E.weaponTypes);
this.addItemFilter(game.i18n.localize("CMPBrowser.ItemSubtype"), game.i18n.localize("DND5E.ItemTypeEquipment"), 'system.armor.type', 'text', CONFIG.DND5E.equipmentTypes);
this.addItemFilter(game.i18n.localize("CMPBrowser.ItemSubtype"), game.i18n.localize("DND5E.ItemTypeConsumable"), 'system.consumableType', 'text', CONFIG.DND5E.consumableTypes);
}
else {
this.addItemFilter("Item Subtype", "Weapon", 'data.weaponType', 'text', CONFIG.DND5E.weaponTypes);
this.addItemFilter("Item Subtype", "Equipment", 'data.armor.type', 'text', CONFIG.DND5E.equipmentTypes);
this.addItemFilter("Item Subtype", "Consumable", 'data.consumableType', 'text', CONFIG.DND5E.consumableTypes);
this.addItemFilter(game.i18n.localize("CMPBrowser.ItemSubtype"), game.i18n.localize("DND5E.ItemTypeWeapon"), 'data.weaponType', 'text', CONFIG.DND5E.weaponTypes);
this.addItemFilter(game.i18n.localize("CMPBrowser.ItemSubtype"), game.i18n.localize("DND5E.ItemTypeEquipment"), 'data.armor.type', 'text', CONFIG.DND5E.equipmentTypes);
this.addItemFilter(game.i18n.localize("CMPBrowser.ItemSubtype"), game.i18n.localize("DND5E.ItemTypeConsumable"), 'data.consumableType', 'text', CONFIG.DND5E.consumableTypes);
}
//0.7.2c: Fix rarity encoding (uses camelcase names)
this.addItemFilter("Magic Items", "Rarity", 'data.rarity', 'select',
this.addItemFilter(game.i18n.localize("CMPBrowser.MagicItems"), game.i18n.localize("CMPBrowser.Rarity"), 'data.rarity', 'select',
{
common: "Common",
uncommon: "Uncommon",
rare: "Rare",
veryRare: "Very Rare",
legendary: "Legendary"
common: game.i18n.localize("CMPBrowser.RarityCommon"),
uncommon: game.i18n.localize("CMPBrowser.RarityUncommon"),
rare: game.i18n.localize("CMPBrowser.RarityRare"),
veryRare: game.i18n.localize("CMPBrowser.RarityVeryRare"),
legendary: game.i18n.localize("CMPBrowser.RarityLegendary")
});
}
@ -1552,28 +1552,28 @@ class CompendiumBrowser extends Application {
this.addFeatFilter(game.i18n.localize("CMPBrowser.general"), game.i18n.localize("CMPBrowser.class"), 'classRequirement', 'select',
{
artificer: game.i18n.localize("CMPBrowser.artificer"),
barbarian: "Barbarian",
barbarian: game.i18n.localize("CMPBrowser.barbarian"),
bard: game.i18n.localize("CMPBrowser.bard"),
cleric: game.i18n.localize("CMPBrowser.cleric"),
druid: game.i18n.localize("CMPBrowser.druid"),
fighter: "Fighter",
monk: "Monk",
fighter: game.i18n.localize("CMPBrowser.fighter"),
monk: game.i18n.localize("CMPBrowser.monk"),
paladin: game.i18n.localize("CMPBrowser.paladin"),
ranger: game.i18n.localize("CMPBrowser.ranger"),
rogue: "Rogue",
rogue: game.i18n.localize("CMPBrowser.rogue"),
sorcerer: game.i18n.localize("CMPBrowser.sorcerer"),
warlock: game.i18n.localize("CMPBrowser.warlock"),
wizard: game.i18n.localize("CMPBrowser.wizard")
}, true);
if (CompendiumBrowser.isFoundryV10Plus) {
this.addFeatFilter("Game Mechanics", game.i18n.localize("DND5E.ItemActivationCost"), 'system.activation.type', 'select', CONFIG.DND5E.abilityActivationTypes);
this.addFeatFilter(game.i18n.localize("CMPBrowser.GameMechanics"), game.i18n.localize("DND5E.ItemActivationCost"), 'system.activation.type', 'select', CONFIG.DND5E.abilityActivationTypes);
}
else {
this.addFeatFilter("Game Mechanics", game.i18n.localize("DND5E.ItemActivationCost"), 'data.activation.type', 'select', CONFIG.DND5E.abilityActivationTypes);
this.addFeatFilter(game.i18n.localize("CMPBrowser.GameMechanics"), game.i18n.localize("DND5E.ItemActivationCost"), 'data.activation.type', 'select', CONFIG.DND5E.abilityActivationTypes);
}
this.addFeatFilter("Game Mechanics", game.i18n.localize("CMPBrowser.damageType"), 'damageTypes', 'select', CONFIG.DND5E.damageTypes);
this.addFeatFilter("Game Mechanics", "Uses Resources", 'usesRessources', 'bool');
this.addFeatFilter(game.i18n.localize("CMPBrowser.GameMechanics"), game.i18n.localize("CMPBrowser.damageType"), 'damageTypes', 'select', CONFIG.DND5E.damageTypes);
this.addFeatFilter(game.i18n.localize("CMPBrowser.GameMechanics"), game.i18n.localize("CMPBrowser.UsesResources"), 'usesRessources', 'bool');
}

View File

@ -4,6 +4,8 @@
"CMPBrowser.cr": "Challenge Rating",
"CMPBrowser.generalSettings": "General Settings",
"CMPBrowser.allowSpellAcc": "Allow Players Access to the spell browser",
"CMPBrowser.allowFeatAcc": "Allow Players Access to the feat browser",
"CMPBrowser.allowItemAcc": "Allow Players Access to the item browser",
"CMPBrowser.allowNpcAcc": "Allow Players Access to the npc browser",
"CMPBrowser.compSettingsSpell": "Item Compendium Settings",
"CMPBrowser.compSettingsNpc": "NPC Compendium Settings",
@ -21,13 +23,36 @@
"CMPBrowser.reaction": "Reaction",
"CMPBrowser.spellType": "Spell Type",
"CMPBrowser.damageType": "Damage Type",
"CMPBrowser.UsesResources": "Uses Resources",
"CMPBrowser.GameMechanics": "Game Mechanics",
"CMPBrowser.ItemSubtype": "Item Subtype",
"CMPBrowser.Rarity": "Rarity",
"CMPBrowser.RarityCommon": "Common",
"CMPBrowser.RarityUncommon": "Uncommon",
"CMPBrowser.RarityRare": "Rare",
"CMPBrowser.RarityVeryRare": "Very Rare",
"CMPBrowser.RarityLegendary": "Legendary",
"CMPBrowser.MagicItems": "Magic Items",
"CMPBrowser.ItemsPacks": "Packs",
"CMPBrowser.ItemsPacksBurglar": "Burglar's Pack",
"CMPBrowser.ItemsPacksDiplomat": "Diplomat's Pack",
"CMPBrowser.ItemsPacksDungeoneer": "Dungeoneer's Pack",
"CMPBrowser.ItemsPacksEntertainer": "Entertainer's Pack",
"CMPBrowser.ItemsPacksExplorer": "Explorer's Pack",
"CMPBrowser.ItemsPacksMonsterHunter": "Monster Hunter's Pack",
"CMPBrowser.ItemsPacksPriest": "Priest's Pack",
"CMPBrowser.ItemsPacksScholar": "Scholar's Pack",
"CMPBrowser.class": "Class",
"CMPBrowser.artificer": "Artificer",
"CMPBrowser.barbarian": "Barbarian",
"CMPBrowser.bard": "Bard",
"CMPBrowser.cleric": "Cleric",
"CMPBrowser.druid": "Druid",
"CMPBrowser.fighter": "Fighter",
"CMPBrowser.monk": "Monk",
"CMPBrowser.paladin": "Paladin",
"CMPBrowser.ranger": "Ranger",
"CMPBrowser.rogue": "Rogue",
"CMPBrowser.sorcerer": "Sorcerer",
"CMPBrowser.warlock": "Warlock",
"CMPBrowser.wizard": "Wizard",

View File

@ -3,14 +3,16 @@
"CMPBrowser.sortBy": "Classificar por",
"CMPBrowser.cr": "Nivel de Desafio",
"CMPBrowser.generalSettings": "Configurações Gerais",
"CMPBrowser.allowSpellAcc":"Permite o acesso dos jogadores ao navegador de magias",
"CMPBrowser.allowSpellAcc": "Permite o acesso dos jogadores ao navegador de Magias",
"CMPBrowser.allowFeatAcc": "Permite o acesso dos jogadores ao navegador de Características",
"CMPBrowser.allowItemAcc": "Permite o acesso dos jogadores ao navegador de Itens",
"CMPBrowser.allowNpcAcc": "Permite o acesso dos jogadores ao navegador de NPCs",
"CMPBrowser.compSettingsSpell": "Configuração de Compêndio de Itens",
"CMPBrowser.compSettingsNpc": "Configuração de Compêndio de NPCs",
"CMPBrowser.load": "Carregar",
"CMPBrowser.lvl": "Nivel",
"CMPBrowser.ritual": "Ritual",
"CMPBrowser.concentration":"Concentraçãon",
"CMPBrowser.concentration": "Concentração",
"CMPBrowser.verbal": "Verbal",
"CMPBrowser.somatic": "Somático",
"CMPBrowser.material": "Material",
@ -21,14 +23,37 @@
"CMPBrowser.reaction": "Reação",
"CMPBrowser.spellType": "Tipo da Magia",
"CMPBrowser.damageType": "Tipo de Dano",
"CMPBrowser.UsesResources": "Usa Recursos",
"CMPBrowser.GameMechanics": "Mecânicas do Jogo",
"CMPBrowser.ItemSubtype": "Tipo do Item",
"CMPBrowser.Rarity": "Raridade",
"CMPBrowser.RarityCommon": "Comum",
"CMPBrowser.RarityUncommon": "Incomum",
"CMPBrowser.RarityRare": "Raro",
"CMPBrowser.RarityVeryRare": "Muito Raro",
"CMPBrowser.RarityLegendary": "Lendário",
"CMPBrowser.MagicItems": "Itens Mágicos",
"CMPBrowser.ItemsPacks": "Kits de Equipamentos",
"CMPBrowser.ItemsPacksBurglar": "Kit de Assaltante",
"CMPBrowser.ItemsPacksDiplomat": "Kit de Diplomata",
"CMPBrowser.ItemsPacksDungeoneer": "Kit de Explorador",
"CMPBrowser.ItemsPacksEntertainer": "Kit de Artista",
"CMPBrowser.ItemsPacksExplorer": "Kit de Aventureiro",
"CMPBrowser.ItemsPacksMonsterHunter": "Monster Hunter's Pack",
"CMPBrowser.ItemsPacksPriest": "Kit de Sacerdote",
"CMPBrowser.ItemsPacksScholar": "Kit de Erudito",
"CMPBrowser.class": "Classe",
"CMPBrowser.artificer": "Artífice",
"CMPBrowser.barbarian": "Bárbaro",
"CMPBrowser.bard": "Bardo",
"CMPBrowser.cleric":"Clerigo",
"CMPBrowser.cleric": "Clérigo",
"CMPBrowser.druid": "Druida",
"CMPBrowser.fighter": "Guerreiro",
"CMPBrowser.monk": "Monge",
"CMPBrowser.paladin": "Paladino",
"CMPBrowser.ranger": "Guardião",
"CMPBrowser.sorcerer":"Geiticeiro",
"CMPBrowser.rogue": "Ladino",
"CMPBrowser.sorcerer": "Feiticeiro",
"CMPBrowser.warlock": "Bruxo",
"CMPBrowser.wizard": "Mago",
"CMPBrowser.general": "Geral",
@ -45,7 +70,7 @@
"CMPBrowser.elemental": "Elemental",
"CMPBrowser.fey": "Feérico",
"CMPBrowser.fiend": "Ínfero",
"CMPBrowser.giant": "Giante",
"CMPBrowser.giant": "Gigante",
"CMPBrowser.humanoid": "Humanoide",
"CMPBrowser.monstrosity": "Monstruosidade",
"CMPBrowser.ooze": "Gosma",
@ -55,7 +80,16 @@
"CMPBrowser.dmgInteraction": "Interação do Dano",
"CMPBrowser.dmgDealt": "Dano Causado",
"CMPBrowser.size": "Tamanho",
"CMPBrowser.spellBrowser":"Navegador de Magias",
"CMPBrowser.npcBrowser":"Navegador de NPC",
"CMPBrowser.settings":"Configurações"
"CMPBrowser.Tab.SpellBrowser": "Navegador de Magias",
"CMPBrowser.Tab.FeatBrowser": "Navegador de Características",
"CMPBrowser.Tab.ItemBrowser": "Navegador de Itens",
"CMPBrowser.Tab.NPCBrowser": "Navegador de NPC",
"CMPBrowser.Tab.Settings": "Configurações",
"CMPBrowser.SETTING.Maxload.NAME": "Capacidade máxima",
"CMPBrowser.SETTING.Maxload.HINT": "Número máximo de magias, características, itens ou NPCs a serem exibidos; para ver mais use os filtros. Essa configuração é usada para gerenciar memória e capacidade do servidor.",
"CMPBrowser.LOADING.Message": "Carregando...{numLoaded} {itemType}s",
"CMPBrowser.LOADED.Message": "{numLoaded} {itemType}s carregados(as)",
"CMPBrowser.LOADED.MaxLoaded": "(máximo exibido; para ver mais, use os filtros)",
"CMPBrowser.Filters.ResetFilters": "Redefinir Filtros"
}

View File

@ -7,11 +7,11 @@
</label>
<label>
<input data-setting="allow-feat-browser" type="checkbox" {{#if settings.allowFeatBrowser}}checked{{/if}}>
<h4>Allow Players Access to the feat browser</h4>
<h4>{{localize "CMPBrowser.allowFeatAcc"}}</h4>
</label>
<label>
<input data-setting="allow-item-browser" type="checkbox" {{#if settings.allowItemBrowser}}checked{{/if}}>
<h4>Allow Players Access to the item browser</h4>
<h4>{{localize "CMPBrowser.allowItemAcc"}}</h4>
</label>
<label>
<input data-setting="allow-npc-browser" type="checkbox" {{#if settings.allowNpcBrowser}}checked{{/if}}>