Hide Forgot
Description of problem: Calls that katello make to backend services, such as candlepin, need to send the user's locale setting. This is to insure that any resulting messages are translated. Easiest testcase: 1. upload a manifest from distributor X 2. switch user locale to Japanese 'ja' 3. upload a manifest from distributor Y 4. Note that if the error message displayed is fully translated
With candlepin DEBUG set in candlepin.conf log4j.logger.org.candlepin=DEBUG Checking /var/log/tomcat6/catalina.out you should see accept-language ====Headers==== authorization: Basic YWRtaW46YWRtaW4= user-agent: curl/7.21.7 (x86_64-redhat-linux-gnu) libcurl/7.21.7 NSS/3.13.1.0 zlib/1.2.5 libidn/1.22 libssh2/1.2.7 host: localhost:8443 accept: */* accept-language: ja_JP ====Headers====
QA Verified - setting various language options and loading pages indicates that the accept-language directive is getting properly sent in headers. [root@deploy12 ~]# tail -f /var/log/tomcat6/catalina.out|grep "language" accept-language: en accept-language: en accept-language: zh_CN accept-language: zh_CN