Bug 877697
| Summary: | throws of new GoneException are not translated | ||
|---|---|---|---|
| Product: | [Community] Candlepin (Migrated to Jira) | Reporter: | John Sefler <jsefler> |
| Component: | candlepin | Assignee: | Bryan Kearney <bkearney> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Katello QA List <katello-qa-list> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 0.9 | CC: | bkearney, mreid |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2014-09-29 19:05:13 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | |||
| Bug Blocks: | 863175 | ||
|
Description
John Sefler
2012-11-18 03:17:48 UTC
Absolutely correct, I've tried to detail the necessary updates over several string bzs against CP, such as https://bugzilla.redhat.com/show_bug.cgi?id=876764 commit 89549da37fcc7888fc1c1c91b2a45efdde15d8a9
Author: Bryan Kearney <bkearney>
Date: Mon Nov 26 21:32:29 2012 -0500
877697: Localize the GoneException.
Verifying Version...
[root@jsefler-f14-candlepin candlepin]# git show-ref | grep master
10bc5f9576fc9168c357db9e7877343a01a48155 refs/heads/master
[root@jsefler-f14-candlepin candlepin]# pwd
/root/candlepin
[root@jsefler-f14-candlepin candlepin]# grep -r "new GoneException" * -A1
src/main/java/org/candlepin/auth/interceptor/SecurityInterceptor.java: throw new GoneException(i18n.tr("Consumer {0} has been deleted", key), key);
src/main/java/org/candlepin/auth/interceptor/SecurityInterceptor.java- }
--
src/main/java/org/candlepin/resteasy/interceptor/ConsumerAuth.java: throw new GoneException(
src/main/java/org/candlepin/resteasy/interceptor/ConsumerAuth.java- i18n.tr("Consumer {0} has been deleted", consumerUuid), consumerUuid);
--
src/main/java/org/candlepin/resource/UserResource.java: throw new GoneException(i18n.tr("User {0} not found", username), username);
src/main/java/org/candlepin/resource/UserResource.java- }
--
src/main/java/org/candlepin/resource/HypervisorResource.java: throw new GoneException(
src/main/java/org/candlepin/resource/HypervisorResource.java- i18n.tr("Hypervisor {0} has been deleted previously",
[root@jsefler-f14-candlepin candlepin]#
VERIFIED: All of the instatiated GoneException now wrap their message in i18n.tr(...)
[root@jsefler-f14-candlepin candlepin]# grep "Consumer {0} has been deleted" po/keys.pot
msgid "Consumer {0} has been deleted"
[root@jsefler-f14-candlepin candlepin]# grep "User {0} not found" po/keys.pot
msgid "User {0} not found"
[root@jsefler-f14-candlepin candlepin]# grep "Hypervisor {0} has been deleted previously" po/keys.pot
msgid "Hypervisor {0} has been deleted previously"
VERIFIED that these GoneException messages have been extracted for translation.
These bugs were fixed during 7.0 but not moved to CLOSED. They have been delivered |