MrBlue
Generates localization files for other languages using existing plugin localization

Supported Games
GameServerKingsGameServerKings
depends on

Localize utilizes the Translation API plugin with configured service to generate language files in additional languages using the default language strings from a plugin on command.

Permissions

  • localize.use -- Allows player to use localize command

Commands

  • localize <plugin name> <language code (ex. de)>
    Replace <plugin name> with a valid plugin name and <language code> with a two letter language short code
    Example: localize keywords de
  • localize <plugin name> <language code (ex. de)> <overwrite (true)>
    Same as above command, except with a 3rd argument to forcefully overwrite existing localization if it already exists

Localization

{
  "CommandLocalize": "localize",
  "NotAllowed": "You are not allowed to use the '{0}' command",
  "LocalizationExists": "Localization already exists for '{0}'",
  "PluginNotFound": "Plugin '{0}' could not be found or is not loaded",
  "SameLanguage": "Cannot localize to and from the same language ('{0}' and '{1}')",
  "StringsToTranslate": "Translating {0} strings from '{1}'",
  "StringsTranslated": "Translated {0} strings to '{1}'",
  "TranslationFailed": "Translation failed else nothing to translate. Please try again later",
  "UsageLocalize": "Usage: {0} <plugin name> <language code>"
}

MIT License, with distribution exclusivity for uMod.org


Copyright (c) 2020 Wulf


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.