[katello-devel] CLI client and locale

Bryan Kearney bkearney at redhat.com
Fri May 20 13:39:34 UTC 2011


On 05/20/2011 08:28 AM, Lukas Zapletal wrote:
> Hello,
>
> I am just curious what are the plans about CLI and locale. My intuition
> tells me the CLI should send user's current locale in the headers and
> our API controller should parse the header just like UI controller do.
> The locale should be set properly and gettext should then translate
> everything (e.g. error messages).
>
> So the result would be:
>
> LC_ALL=en katello some bad command
> Fatal error - cannot be done !!!
>
> LC_ALL=jp katello some bad command
> 組織の隣にあるボ - ックスをオンにして信頼を追 !!!
>
> Comments?
>
> PS - Well I was cheating. Cannot speak Japanese. I pasted this from a
> bugreport [*] without a clue what does it mean :-)
>
> [*] - https://bugzilla.redhat.com/show_bug.cgi?id=706318
>
Yes, I agree locale should be passed up. I will put this on the backlog.

-- bk




More information about the katello-devel mailing list