From 0deeeeca5ef58b3695f7a5d2df8bd287e77616a1 Mon Sep 17 00:00:00 2001 From: Emil Date: Tue, 20 Mar 2018 15:57:50 +0100 Subject: [PATCH] Add Swedish as supported language. (#109) --- .../co/aikar/commands/CommandManager.java | 2 +- languages/core/acf-core_sv.properties | 41 +++++++++++++++++++ .../minecraft/acf-minecraft_sv.properties | 38 +++++++++++++++++ 3 files changed, 80 insertions(+), 1 deletion(-) create mode 100644 languages/core/acf-core_sv.properties create mode 100644 languages/minecraft/acf-minecraft_sv.properties diff --git a/core/src/main/java/co/aikar/commands/CommandManager.java b/core/src/main/java/co/aikar/commands/CommandManager.java index 9a90d738..b206bd05 100644 --- a/core/src/main/java/co/aikar/commands/CommandManager.java +++ b/core/src/main/java/co/aikar/commands/CommandManager.java @@ -75,7 +75,7 @@ public abstract class CommandManager < protected boolean usePerIssuerLocale = false; protected List> localeChangedCallbacks = Lists.newArrayList(); - protected Set supportedLanguages = Sets.newHashSet(Locales.ENGLISH, Locales.GERMAN, Locales.SPANISH, Locales.CZECH, Locales.PORTUGUESE); + protected Set supportedLanguages = Sets.newHashSet(Locales.ENGLISH, Locales.GERMAN, Locales.SPANISH, Locales.CZECH, Locales.PORTUGUESE, Locales.SWEDISH); protected Map formatters = new IdentityHashMap<>(); protected MF defaultFormatter; protected int defaultHelpPerPage = 10; diff --git a/languages/core/acf-core_sv.properties b/languages/core/acf-core_sv.properties new file mode 100644 index 00000000..0b8a15b0 --- /dev/null +++ b/languages/core/acf-core_sv.properties @@ -0,0 +1,41 @@ +# Copyright (c) 2016-2017 Daniel Ennis (Aikar) - MIT License +# +# Permission is hereby granted, free of charge, to any person obtaining +# a copy of this software and associated documentation files (the +# "Software"), to deal in the Software without restriction, including +# without limitation the rights to use, copy, modify, merge, publish, +# distribute, sublicense, and/or sell copies of the Software, and to +# permit persons to whom the Software is furnished to do so, subject to +# the following conditions: +# +# The above copyright notice and this permission notice shall be +# included in all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +# + +acf-core.permission_denied = Du har inte tillåtelse till att använda det kommandot. +acf-core.error_generic_logged = Ett fel uppstod. Problemet har loggats. +acf-core.unknown_command = Okänt kommando, använd /help +acf-core.invalid_syntax = Användning: {command} {syntax} +acf-core.error_prefix = Fel: {message} +acf-core.error_performing_command = Ett fel uppstod vid utförandet av kommandot. +acf-core.info_message = {message} +acf-core.please_specify_one_of = Fel: Ange en av ({valid}). +acf-core.must_be_a_number = Fel: {num} måste vara ett nummer. +acf-core.must_be_min_length = Fel: Måste vara minst {min} bokstäver lång. +acf-core.must_be_max_length = Fel: Måste vara högst {max} bokstäver lång. +acf-core.please_specify_at_most = Fel: Ange en summa som är högst {max}. +acf-core.please_specify_at_least = Fel: Ange en summa som är minst {min}. +acf-core.not_allowed_on_console = Fel: Konsoller kan inte utföra det här kommandot. +acf-core.could_not_find_player = Fel: Kunde inte hitta en spelare med namnet: {search} +acf-core.help_format = {command} {parameters} {separator} {description} +acf-core.no_command_matched_search = Inget kommando matchade {search}. +acf-core.help_page_information = - Visar sida {page} av {totalpages} ({results} results). +acf-core.help_no_results = Fel: Inga fler resultat. diff --git a/languages/minecraft/acf-minecraft_sv.properties b/languages/minecraft/acf-minecraft_sv.properties new file mode 100644 index 00000000..2e8ec72f --- /dev/null +++ b/languages/minecraft/acf-minecraft_sv.properties @@ -0,0 +1,38 @@ +# +# Copyright (c) 2016-2017 Daniel Ennis (Aikar) - MIT License +# +# Permission is hereby granted, free of charge, to any person obtaining +# a copy of this software and associated documentation files (the +# "Software"), to deal in the Software without restriction, including +# without limitation the rights to use, copy, modify, merge, publish, +# distribute, sublicense, and/or sell copies of the Software, and to +# permit persons to whom the Software is furnished to do so, subject to +# the following conditions: +# +# The above copyright notice and this permission notice shall be +# included in all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +# + +acf-minecraft.invalid_world = Fel: Den världen finns inte. +acf-minecraft.you_must_be_holding_item = Fel: Du måste ha ett föremål i din hand! +acf-minecraft.player_is_vanished_confirm = \ + Varning: {vanished} är osynlig.\n\ + För att bekräfta åtgärden, lägg till :confirm i slutet av namnet.\n\ + Ex: {vanished}:confirm +acf-minecraft.username_too_short = Fel: Användarnamnet är för kort, det måste vara minst tre bokstäver. +acf-minecraft.is_not_a_valid_name = Fel: {name} är inte ett giltigt namn. +acf-minecraft.multiple_players_match = Fel: Flera spelare matchade {search} ({all}), var mer specifik. +acf-minecraft.no_player_found_server = Ingen spelare som matchar {search} är ansluten till servern. +acf-minecraft.no_player_found_offline = Kunde inte hitta någon spelare som matchar {search}. +acf-minecraft.no_player_found = Kunde inte hitta någon spelare som matchar {search}. +acf-minecraft.location_please_specify_world = Fel: Ange en värld. Till exempel: world:x,y,z. +acf-minecraft.location_please_specify_xyz = Fel: Ange x,y,z. Till exempel: world:x,y,z. +acf-minecraft.location_console_not_relative = Fel: Konsoller kan inte använda relativa koordinater.