From acac241e4dc89aec931e62344446c01bb3fb4e6d Mon Sep 17 00:00:00 2001 From: Ben Kyd Date: Sat, 3 Apr 2021 23:04:48 +0100 Subject: [PATCH] removed dangling spaces --- client/public/game/lobbies.js | 8 ++++---- data/README.md | 2 ++ data/locale.json | 12 ++++++------ 3 files changed, 12 insertions(+), 10 deletions(-) diff --git a/client/public/game/lobbies.js b/client/public/game/lobbies.js index 21e2080..c19ef86 100644 --- a/client/public/game/lobbies.js +++ b/client/public/game/lobbies.js @@ -133,10 +133,10 @@ socket.on('lobby-create-error', obj => { const errorDiv = document.createElement('div'); errorDiv.id = 'lobby-error'; - errorDiv.innerHTML = localeString('error-bold') + localeString('error-creating-lobby') + JSON.stringify(args); + errorDiv.innerHTML = localeString('error-bold') + localeString('error-creating-lobby') + ' ' + JSON.stringify(args); errorDiv.classList.add('red'); CreateLobbyBlock.appendChild(errorDiv); - pageLog(localeString('error-bold') + localeString('error-creating-lobby') + JSON.stringify(args)); + pageLog(localeString('error-bold') + localeString('error-creating-lobby') + ' ' + JSON.stringify(args)); }); @@ -194,10 +194,10 @@ socket.on('lobby-join-error', obj => { const errorDiv = document.createElement('div'); errorDiv.id = 'lobby-error'; - errorDiv.innerHTML = localeString('error-bold') + localeString('error-lobby-joining') + JSON.stringify(obj); + errorDiv.innerHTML = localeString('error-bold') + localeString('error-lobby-joining') + ' ' + JSON.stringify(obj); errorDiv.classList.add('red'); JoinLobbyBlock.appendChild(errorDiv); - pageLog(localeString('error-bold') + localeString('error-lobby-joining') + JSON.stringify(obj)); + pageLog(localeString('error-bold') + localeString('error-lobby-joining') + ' ' + JSON.stringify(obj)); }); socket.on('lobby-update', obj => { diff --git a/data/README.md b/data/README.md index e08a67f..9cb8895 100644 --- a/data/README.md +++ b/data/README.md @@ -8,4 +8,6 @@ Locales are defined by their locale code, the translations are seperated by a co Sometimes context clues may be neccesary for an accurate translation, everything after a semicolon won't be interpreted by the parser, therefore context clues can be given. These will be defined in the english (en) file +```Code:Translation/Text;Context``` + Capitalisation is also important, if the english words are capitalised, the translations need to be capitalised in the same (if it makes sense) place diff --git a/data/locale.json b/data/locale.json index 639003c..3b9c6a5 100644 --- a/data/locale.json +++ b/data/locale.json @@ -271,9 +271,9 @@ "pt": "Um nome é obrigatório" }, "error-creating-lobby": { - "en": "An error occurred while creating the lobby ", - "es": "Ocurrió un error al crear el lobby ", - "pt": "Ocorreu um erro ao criar o lobby " + "en": "An error occurred while creating the lobby", + "es": "Ocurrió un error al crear el lobby", + "pt": "Ocorreu um erro ao criar o lobby" }, "error-lobby-id-required": { "en": "A lobby ID is required", @@ -281,8 +281,8 @@ "pt": "É necessário um lobby ID" }, "error-lobby-joining": { - "en": "An error occurred while joining the lobby ", - "es": "Ocurrió un error al conectarse al lobby ", - "pt": "Ocorreu um erro ao entrar no lobby " + "en": "An error occurred while joining the lobby", + "es": "Ocurrió un error al conectarse al lobby", + "pt": "Ocorreu um erro ao entrar no lobby" } }