From 0153edff667868922618fff36949220a1ec6253e Mon Sep 17 00:00:00 2001 From: nishiki Date: Sun, 5 Jan 2014 12:56:52 +0100 Subject: [PATCH] fix translate --- i18n/en.yml | 6 +++--- i18n/fr.yml | 2 +- mpw | 1 - 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/i18n/en.yml b/i18n/en.yml index a4f94dd..2ef9d97 100644 --- a/i18n/en.yml +++ b/i18n/en.yml @@ -40,13 +40,13 @@ en: add: title: "Add a new item" name: "Enter the name: " - group: "Enter the group [default=NoGroup]: " + group: "Enter the group (optional): " server: "Enter the hostname or ip: " protocol: "Enter the protocol of the connection (ssh, http, other): " login: "Enter the login connection: " password: "Enter the the password: " - port: "Enter the connection port (optinal): " - comment: "Enter a comment (optinal): " + port: "Enter the connection port (optional): " + comment: "Enter a comment (optional): " valid: "Item has been added!" delete: ask: "Are you sure you want to remove the item %{id} ?" diff --git a/i18n/fr.yml b/i18n/fr.yml index 565022f..2ac20c5 100644 --- a/i18n/fr.yml +++ b/i18n/fr.yml @@ -40,7 +40,7 @@ fr: add: title: "Ajout d'un nouvel élément" name: "Entrez le nom: " - group: "Entrez le groupe [défaut=NoGroup]: " + group: "Entrez le groupe (optionnel): " server: "Entrez the hostname or ip: " protocol: "Entrez le protocole de connexion (ssh, http, other): " login: "Entrez l'identifiant de connexion: " diff --git a/mpw b/mpw index a06fd40..04da00e 100755 --- a/mpw +++ b/mpw @@ -12,7 +12,6 @@ require 'i18n' APP_ROOT = File.dirname(Pathname.new(__FILE__).realpath) require "#{APP_ROOT}/lib/Cli.rb" - lang = Locale::Tag.parse(ENV['LANG']).to_simple.to_s[0..1] I18n::Backend::Simple.send(:include, I18n::Backend::Fallbacks)