Sha256: 70f7e6b050740f5b9bf211022e0ff561cf496165dd9ac7051f8cd6a886d2510d
Contents?: true
Size: 981 Bytes
Versions: 3
Compression:
Stored size: 981 Bytes
Contents
require_relative "../utils/project" module Lang def self.get(key) lang = {} lang["en"] = { version: "Teuton : %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_params: "\nGlobal parameters:\n", created_params: "\nCreated during execution:\n" } lang["es"] = { version: "Teuton : %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_params: "\nParámetros globales que pueden ser modificados:\n", created_params: "\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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
teuton-2.9.2 | lib/teuton/readme/lang.rb |
teuton-2.9.1 | lib/teuton/readme/lang.rb |
teuton-2.9.0 | lib/teuton/readme/lang.rb |