Sha256: 79e4bc5169f15521cfa83fd80657b66bead15e2d312fcaca1cc491c5b60344b4

Contents?: true

Size: 1.04 KB

Versions: 2

Compression:

Stored size: 1.04 KB

Contents

require_relative "../application"

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
    lang[locale][key]
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
teuton-2.3.8 lib/teuton/readme/lang.rb
teuton-2.3.7 lib/teuton/readme/lang.rb