Sha256: 7372d161258842b58bbea583f02dcb8381b4754291ac609e40be42934a0ef7b1

Contents?: true

Size: 1.08 KB

Versions: 5

Compression:

Stored size: 1.08 KB

Contents

require_relative "../utils/project"

module Lang
  def self.get(key)
    lang = {}
    lang["en"] = {
      version: "Teuton version : %s",
      testname: "Test unit name : %s",
      date: "Date           : %s",
      hosts: "\n### Required hosts\n",
      params: "\n### Required params\n",
      goto: "\nGo to [%s](#required-hosts) host, and do next:\n",
      global: "\nGlobal parameters that can be modified:\n",
      created: "\nParams created during challenge execution:\n"
    }
    lang["es"] = {
      version: "Versión de Teuton : %s",
      testname: "Nombre del test   : %s",
      date: "Fecha             : %s",
      hosts: "\n### Máquinas que se necesitan\n",
      params: "\n### Parámetros de necesarios\n",
      goto: "\nIr a la máquina [%s](#required-hosts), y hacer lo siguiente:\n",
      global: "\nParámetros globales que pueden ser modificados:\n",
      created: "\nParámetros creados durante la ejecución del reto:\n"
    }
    # locale = Application.instance.options["lang"].downcase
    locale = Project.value[:options]["lang"].downcase
    lang[locale][key]
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
teuton-2.8.0 lib/teuton/readme/lang.rb
teuton-2.7.3 lib/teuton/readme/lang.rb
teuton-2.7.2 lib/teuton/readme/lang.rb
teuton-2.7.1 lib/teuton/readme/lang.rb
teuton-2.7.0 lib/teuton/readme/lang.rb