The cli needs to pass the language to the conductor api so that error messages
the api returns are translated.
---
lib/aeolus_cli/model/base.rb | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
diff --git a/lib/aeolus_cli/model/base.rb b/lib/aeolus_cli/model/base.rb
index ae83808..0ea195c 100644
--- a/lib/aeolus_cli/model/base.rb
+++ b/lib/aeolus_cli/model/base.rb
@@ -37,6 +37,14 @@ module Aeolus
end
end
end
+
+ def headers()
+ result = {}
+ if !ENV['LANG'].nil? && ENV['LANG'].size >= 2
+ result['ACCEPT_LANGUAGE'] = ENV['LANG'][0,2]
+ end
+ result
+ end
end
# Active Resrouce Uses dashes instead of underscores, this method overrides to use
underscore
@@ -51,4 +59,4 @@ module Aeolus
end
end
end
-end
\ No newline at end of file
+end
--
1.7.6.4
Show replies by date