[katello-devel] Setting a user's preferred locale via cli

Lukas Zapletal lzap at redhat.com
Thu Aug 2 08:30:23 UTC 2012


On Wed, Aug 01, 2012 at 11:19:47PM -0700, Michael McCune wrote:
> no way todo it now but it wouldn't be that hard to add.  Just file
> an RFE and we can triage it appropriately.  patches happily accepted
> :)
>

Well, why to introduce new option when you can do this in UNIX:

LC_ALL=fr katello environment list

What CLI does it sends this locale to the server so the Katello server
returns all data in French (well not data but all constants there).
It should also switch over to French in this case (for all messages and
column names for example - CLI is localized of course).

You have discovered a bug, Og. While it should work, what we do in our
source code base is we always get system's default locale (in my case
English). So we do not take user's setting into effect.

So I filed new bug: https://bugzilla.redhat.com/show_bug.cgi?id=845198

We will not introduce new option you recommend (if you filed a RFE
please close it), but we will rather fix this one. Then it should work
the usual way (e.g. if I as Czech ssh into a box with English system
locale, ssh in the default configuration will switch my environment to
Czech, so Katello CLI will work in Czech for me).

Nice find, especially when your default one is English (I guess :-)

LZ

-- 
Later,

 Lukas "lzap" Zapletal
 #katello #systemengine




More information about the katello-devel mailing list