From f05d30525aa1a3e5e2ec76a4096f7fd430b0e6c5 Mon Sep 17 00:00:00 2001 From: Marcos Date: Mon, 7 Apr 2025 21:27:23 +0100 Subject: [PATCH] fix support to language --- README.md | 4 ++++ lang/en.json | 12 ++++++++++++ lang/pt-BR.json | 12 ++++++++++++ templates/actor/actor-character-sheet.hbs | 12 ++++++------ templates/actor/parts/actor-inventory.hbs | 8 ++++---- templates/sidebar/luck-tracker.hbs | 6 +++--- 6 files changed, 41 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index 2c0f7dc..2908c26 100644 --- a/README.md +++ b/README.md @@ -42,6 +42,10 @@ This system is supported by [Tria Editora](https://triaeditora.com.br/), the pub ![Tria Editora](README/triaeditora.png) +# Language Support + +- English: Thank you to @sirkerry + # Licenses - **Logo and Content**: The Punkapocalypitc logo and content is Copyright © and Trademarked by Schwalb Entertainment, LLC. The parts of this project protected under this copyright may not be distributed commercially or freely. This includes art, logo, and copyright text sourced from the Punkapocalyptic tabletop RPG. - **Source Code**: All source code (javascript, hbs, scss, as well as system templates and the like), are licenced under the GNU General Public License v3.0. diff --git a/lang/en.json b/lang/en.json index 67785d7..bc25fb2 100644 --- a/lang/en.json +++ b/lang/en.json @@ -27,6 +27,11 @@ "Temporary": "Temporary Effects", "Toggle": "Toggle effect" }, + "Fortune": { + "Message": "The Party's Fortune", + "RollFortune": "Make a fortune roll for the session", + "ShowPlayers": "Show Fortune to Players" + }, "Item": { "specialActivity": {"long": "Special Activity", "abbr": "SA" }, "Spell": { @@ -99,6 +104,7 @@ "Water": { "long": "Water", "abbr": "water" } }, "SheetLabels": { + "Ability": "Ability", "Abilities": "Abilities", "Actor": "Punkapocalyptic Actor Sheet", "Acessories": "Accessories", @@ -106,8 +112,10 @@ "Background": "Background", "Benefits": "Benefits", "Damage": "Damage", + "Defense": "Defense", "Description": "Description", "Effects": "Effects", + "Equipped": "Equipped", "HealthCurrent": "Current Health", "HealthMax": "Max Health", "Inventory": "Inventory", @@ -115,9 +123,13 @@ "MPG": "MPG", "Main": "Main", "Mission": "Mission", + "MissionUpgrade": "Upgrade Mission", "Mojo": "Mojo", + "MojoCurrent": "Current Mojo", + "MojoMax": "Max Mojo", "Mutations": "Mutations", "Name": "Name", + "Notes": "Notes and other shit", "Paths": "Paths", "Preferidos": "Favorites", "Price": "Price", diff --git a/lang/pt-BR.json b/lang/pt-BR.json index 2ba8afc..2ab7524 100644 --- a/lang/pt-BR.json +++ b/lang/pt-BR.json @@ -27,6 +27,11 @@ "Temporary": "Efeitos temporários", "Toggle": "Alternar efeito" }, + "Fortune": { + "Message": "Essa é sua sorte do seu grupo", + "RollFortune": "Rolar a Sorte para essa sessão", + "ShowPlayers": "Mostrar ao Jogadores" + }, "Item": { "specialActivity": {"long": "Atividade Especial", "abbr": "AE" }, "Spell": { @@ -99,6 +104,7 @@ "Water": { "long": "Água", "abbr": "agua" } }, "SheetLabels": { + "Ability": "Habilidade", "Abilities": "Habilidades", "Actor": "Punkapocalyptic Actor Sheet", "Acessories": "Acessórios", @@ -106,8 +112,10 @@ "Background": "Histórico", "Benefits": "Benefícios", "Damage": "Dano", + "Defense": "Defesa", "Description": "Descrição", "Effects": "Efeitos", + "Equipped": "Equipado", "HealthCurrent": "Vida Atual", "HealthMax": "Vida Máxima", "Inventory": "Coisas", @@ -115,9 +123,13 @@ "MPG": "Km/L", "Main": "Principal", "Mission": "Missão", + "MissionUpgrade": "Próxima Missão", "Mojo": "Mojo", + "MojoCurrent": "Mojo Atual", + "MojoMax": "Mojo Total", "Mutations": "Mutações", "Name": "Nome", + "Notes": "Anotacões e outras Merdas", "Paths": "Caminhos", "Preferidos": "Preferidos", "Price": "Preço", diff --git a/templates/actor/actor-character-sheet.hbs b/templates/actor/actor-character-sheet.hbs index 8e5d365..87e0c8c 100644 --- a/templates/actor/actor-character-sheet.hbs +++ b/templates/actor/actor-character-sheet.hbs @@ -53,7 +53,7 @@ {{/each}}
-
+ style="z-index:9999;" data-tooltip="{{localize "PUNKAPOCALYPITIC.SheetLabels.MojoCurrent"}}" /> + height: 30px;" data-tooltip="{{localize "PUNKAPOCALYPTIC.SheetLabels.MojoMax"}}" />
@@ -161,7 +161,7 @@ background-repeat: no-repeat; "> - + data-tooltip="{{localize "PUNKAPOCALYPTIC.SheetLabels.HealthCurrent"}}">

/

{{system.health.max}}

@@ -322,7 +322,7 @@
{{> "systems/punkapocalyptic/templates/actor/parts/actor-background.hbs"}}
-

Anotacões e outras Merdas

+

{{localize "PUNKAPOCALYPTIC.SheetLabels.Notes"}}

{{editor enrichedBiography target="system.biography" engine="prosemirror" button=true editable=editable class="bold-text" }}
diff --git a/templates/actor/parts/actor-inventory.hbs b/templates/actor/parts/actor-inventory.hbs index b62f653..6c59189 100644 --- a/templates/actor/parts/actor-inventory.hbs +++ b/templates/actor/parts/actor-inventory.hbs @@ -1,9 +1,9 @@
  1. -
    {{localize 'Name'}}
    -
    {{localize 'Equipado'}}
    -
    {{localize 'Abilidade'}}
    -
    {{localize 'Dano'}}
    +
    {{localize 'PUNKAPOCALYPTIC.SheetLabels.Name'}}
    +
    {{localize 'PUNKAPOCALYPTIC.SheetLabels.Equipped'}}
    +
    {{localize 'PUNKAPOCALYPTIC.SheetLabels.Ability'}}
    +
    {{localize 'PUNKAPOCALYPTIC.SheetLabels.Damage'}}