Spanish translations for intro messages and some menus. Added Empty (save file) to lang files

This commit is contained in:
rnicar 2024-05-03 20:54:20 +02:00
parent 9fc6bdde21
commit 03c10364ec
7 changed files with 23 additions and 14 deletions

View File

@ -39,5 +39,6 @@ export const menu: SimpleTranslationEntries = {
"weeklyRankings": "Weekly Rankings", "weeklyRankings": "Weekly Rankings",
"noRankings": "No Rankings", "noRankings": "No Rankings",
"loading": "Loading…", "loading": "Loading…",
"playersOnline": "Players Online" "playersOnline": "Players Online",
"empty":"Empty",
} as const; } as const;

View File

@ -39,5 +39,6 @@ export const menu: SimpleTranslationEntries = {
"weeklyRankings": "Weekly Rankings", "weeklyRankings": "Weekly Rankings",
"noRankings": "No Rankings", "noRankings": "No Rankings",
"loading": "Loading…", "loading": "Loading…",
"playersOnline": "Players Online" "playersOnline": "Players Online",
"empty":"Empty",
} as const; } as const;

View File

@ -19,9 +19,10 @@ export const menu: SimpleTranslationEntries = {
"boyOrGirl": "¿Eres un chico o una chica?", "boyOrGirl": "¿Eres un chico o una chica?",
"boy": "Chico", "boy": "Chico",
"girl": "Chica", "girl": "Chica",
"dailyRankings": "Daily Rankings", "dailyRankings": "Rankings diarios",
"weeklyRankings": "Weekly Rankings", "weeklyRankings": "Rankings semanales",
"noRankings": "No Rankings", "noRankings": "Sin rankings",
"loading": "Loading…", "loading": "Cargando…",
"playersOnline": "Players Online" "playersOnline": "Jugadores en línea",
"empty":"Vacío",
} as const; } as const;

View File

@ -1,10 +1,13 @@
import { SimpleTranslationEntries } from "#app/plugins/i18n"; import { SimpleTranslationEntries } from "#app/plugins/i18n";
export const tutorial: SimpleTranslationEntries = { export const tutorial: SimpleTranslationEntries = {
"intro": `Welcome to PokéRogue! This is a battle-focused Pokémon fangame with roguelite elements. "intro": `¡Bienvenido/a a PokéRogue! Este es un fangame de Pokémon centrado en el combate con elementos roguelite.
$This game is not monetized and we claim no ownership of Pokémon nor of the copyrighted assets used. $Este juego no está monetizado y no reclamamos ningún derecho de propiedad sobre Pokémon ni sobre ninguno de
$The game is a work in progress, but fully playable.\nFor bug reports, please use the Discord community. $los recursos con copyright utilizados.
$If the game runs slowly, please ensure 'Hardware Acceleration' is turned on in your browser settings.`, $El juego está en proceso, pero es completamente jugable.\nPara reportar bugs, por favor, hazlo en nuestra
$comunidad de Discord.
$Si el juego va lento, por favor, asegúrate de que tienes activada la opción 'Aceleración de gráficos' en los
$ajustes de tu navegador.`,
"accessMenu": `To access the menu, press M or Escape while awaiting input.\nThe menu contains settings and various features.`, "accessMenu": `To access the menu, press M or Escape while awaiting input.\nThe menu contains settings and various features.`,

View File

@ -34,5 +34,6 @@ export const menu: SimpleTranslationEntries = {
"weeklyRankings": "Classement de la Semaine", "weeklyRankings": "Classement de la Semaine",
"noRankings": "Pas de Classement", "noRankings": "Pas de Classement",
"loading": "Chargement…", "loading": "Chargement…",
"playersOnline": "Joueurs Connectés" "playersOnline": "Joueurs Connectés",
"empty":"Empty",
} as const; } as const;

View File

@ -39,5 +39,6 @@ export const menu: SimpleTranslationEntries = {
"weeklyRankings": "Weekly Rankings", "weeklyRankings": "Weekly Rankings",
"noRankings": "No Rankings", "noRankings": "No Rankings",
"loading": "Loading…", "loading": "Loading…",
"playersOnline": "Players Online" "playersOnline": "Players Online",
"empty":"Empty",
} as const; } as const;

View File

@ -8,6 +8,7 @@ import * as Utils from "../utils";
import PokemonData from "../system/pokemon-data"; import PokemonData from "../system/pokemon-data";
import { PokemonHeldItemModifier } from "../modifier/modifier"; import { PokemonHeldItemModifier } from "../modifier/modifier";
import MessageUiHandler from "./message-ui-handler"; import MessageUiHandler from "./message-ui-handler";
import i18next from "i18next";
const sessionSlotCount = 5; const sessionSlotCount = 5;
@ -314,7 +315,7 @@ class SessionSlot extends Phaser.GameObjects.Container {
this.scene.gameData.getSession(this.slotId).then(async sessionData => { this.scene.gameData.getSession(this.slotId).then(async sessionData => {
if (!sessionData) { if (!sessionData) {
this.hasData = false; this.hasData = false;
this.loadingLabel.setText('Empty'); this.loadingLabel.setText(i18next.t("menu:empty"));
resolve(false); resolve(false);
return; return;
} }