Description of problem: As described in comment 1663388#c10, there are missing translations from candlepin. More specifically: 1 "Not supported by a valid subscription." 2 "The requested usage preference "Test" is not provided by a currently consumed subscription." 3 "The requested add-on "test" is not provided by a currently consumed subscription." 4 "The service level preference "Unavailable" is not provided by a currently consumed subscription." Version-Release number of selected component (if applicable): - Probably most candlepin versions, but surely anything after 3.0 - A subman version available in RHEL 8.4, e.g. 1.28.3 How reproducible: 100% Steps to Reproduce: 1. Add at least one installed product cert in your local machine 1. Set some syspurpose preference values locally (usage, role, addon, sla) 2. Run the status command with a language, e.g. "LANG=zh_CN.UTF-8 subscription-manager status" against Candlepin Actual results: +-------------------------------------------+ 系统状态详情 +-------------------------------------------+ 总体状态:无效 <================= TRANSLATED Red Hat Enterprise Linux for Real Time: - Not supported by a valid subscription. <======= NOT TRANSLATED Red Hat Enterprise Linux for x86_64: - Not supported by a valid subscription. <======= NOT TRANSLATED 系统目的状态:不匹配 <================= TRANSLATED - The requested usage preference "Test" is not provided by a currently consumed subscription. <======= NOT TRANSLATED - The requested add-on "test" is not provided by a currently consumed subscription. <======= NOT TRANSLATED - The service level preference "Unavailable" is not provided by a currently consumed subscription. <======= NOT TRANSLATED Expected results: Expected all of the strings noted above to be translated Additional info: Notes for dev who will pick this up: - The syspurpose related strings such as "The service level preference "whatever" is not provided by a currently consumed subscription" are not translated because we try to translate them at runtime (by using this method https://github.com/candlepin/candlepin/blob/419f9e66e0f970241c4106274e83859c365783be/server/src/main/java/org/candlepin/policy/SystemPurposeComplianceStatus.java#L268) but this won't work unless we have them marked as translated at compile time. Please see StatusReasonMessageGenerator.java as an example on how to do this. - The "Not supported by a valid subscription." string is a different case. It seems to be marked as translatable, and it is extracted normally, but still does not get translated. We need more investigation here.
- Regarding the Syspurpose mismatch strings 'The requested {usage/add-on/service level} preference "X" is not provided by a currently consumed subscription.', those are fixed by the solution. - Regarding the 'Not supported by a valid subscription.' string though, we cannot reproduce this issue on the latest subman and candlepin: [nmoumoul@localhost candlepinmain]$ sudo subscription-manager version server type: Red Hat Subscription Management subscription management server: 4.1.0-1 subscription management rules: 5.41 subscription-manager: 1.28.2-1.fc33 [nmoumoul@localhost candlepinmain]$ for L in en_US fr_FR ja_JP ko_KR zh_CN; do echo ""; echo "# sudo LANG=$L.UTF-8 subscription-manager status"; sudo LANG=$L.UTF-8 subscription-manager status; done; # sudo LANG=en_US.UTF-8 subscription-manager status +-------------------------------------------+ System Status Details +-------------------------------------------+ Overall Status: Invalid SP Addon 3 bits: - Not supported by a valid subscription. System Purpose Status: Not Specified # sudo LANG=fr_FR.UTF-8 subscription-manager status +-------------------------------------------+ Détails du statut du système +-------------------------------------------+ Statut général : Invalide SP Addon 3 bits: - Non pris en charge par un abonnement valide. System Purpose Status: Not Specified # sudo LANG=ja_JP.UTF-8 subscription-manager status +-------------------------------------------+ システムのステータス詳細 +-------------------------------------------+ 全体のステータス: 無効 SP Addon 3 bits: - 有効なサブスクリプションでサポートされていません。 System Purpose Status: Not Specified # sudo LANG=ko_KR.UTF-8 subscription-manager status +-------------------------------------------+ 시스템 상태 정보 +-------------------------------------------+ 전체 상태: 유효하지 않음 SP Addon 3 bits: - 유효한 서브스크립션에 의해 지원되지 않습니다. System Purpose Status: Not Specified # sudo LANG=zh_CN.UTF-8 subscription-manager status +-------------------------------------------+ 系统状态详情 +-------------------------------------------+ 总体状态:无效 SP Addon 3 bits: - 有效订阅不支持。 System Purpose Status: Not Specified
*** Bug 1742389 has been marked as a duplicate of this bug. ***