Bug 968925
| Summary: | RFE: "publican update_po" - Localized revision number generation | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Community] PressGang CCMS | Reporter: | Yuko Katabami <ykatabam> | ||||
| Component: | CCMS-Core | Assignee: | Lee Newson <lnewson> | ||||
| Status: | CLOSED CURRENTRELEASE | QA Contact: | |||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | 1.0 | CC: | irooskov, lnewson, mcaspers | ||||
| Target Milestone: | --- | ||||||
| Target Release: | 1.2 | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2013-10-17 23:49:43 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: | 1013825 | ||||||
| Attachments: |
|
||||||
|
Description
Yuko Katabami
2013-05-30 09:50:05 UTC
Created attachment 754747 [details]
Localization revision number is a subnumber based on the en-US revision number
Comment on attachment 754747 [details]
Localization revision number is a subnumber based on the en-US revision number
In this screenshot, 3.2-37 is the most current en-US revision number, and we needed to manually create 3.2.37.1 for our localized version.
Thanks Yuko for providing so much detail. Just fixing the version and components up for now. As for some basic details getting it to generate the revision history entry will be trivial, however what we will need to figure out is how to store and get the revision history message to be stored. Added in 1.2-SNAPSHOT build 201310081705. Server: Added the new TranslatedTopicSecondOrderData table to store the additional xml for each TranslatedTopic. Updated the REST Factories and entity model to hold the new parameter. When a new TranslatedTopicData is created it will attempt to get the previous TranslatedTopicData's Additional XML and insert it into the newly created TranslatedTopicData. UI: TranslatedTopics now have the ability to display additional xml and have it merged into the rendered view. This can also be turned off by unchecking the "Merge Additional XML" checkbox. Builder: The builder has been updated to merge the additional content into the original XML. This is done by using the same logic that publican uses. CLI: Added the "add-revision" command to provide a fairly similar user experience to publican. This command will add a revision to a Content Specifications revision history. The command has the following options: --date <DATE> The date for the revision entry. --email <EMAIL> The email of the author for the revision entry. --firstname <FIRSTNAME> The firstname of the author for the revision entry. --lang <LOCALE> What locale the revision should be added to. --rev-message <MESSAGE> Add a message for the revision entry. --revnumber <REVNUMBER> The revnumber for the revision entry. --surname <SURNAME> The surname of the author for the revision entry. The "firstname", "surname", "email" and "rev-message" options are all mandatory parameters. "rev-message" can be specified multiple times to include multiple revision messages. The "firstname", "surname" and "email" can be set in the [defaults] section of csprocessor.ini to save having to enter those parameters each time. eg: [defaults] firstname=Lee surname=Newson email=lnewson Fixed in 1.2-SNAPSHOT build 201310161533 The add-revision command will now add to the proper revision history entry instead of just the latest version. I also fixed an issue where it wasn't taking into account revision numbers with leading zeros ie "1.2-01" When adding a localised revision message to a content spec, the message will appear: a. Against the specific revision of the revision history topic if one is specified in the content spec pushed to Zanata. For example, if the spec includes "Revision History = [1234 rev:9876]", any localised revision history messages will be added to revision 9876 of topic 1234. b. Against the latest revision of the revision history topic to be pushed into Zanata. For example, of the content specification includes "Revision History = [1234]", and revision 9999 was the latest revision of topic 1234 to be pushed to Zanata, the localised revision history message would be added to revision 9999 of topic 1234. Just realised when I was talking to Matt that I forgot to mention in comment #14 that when builds are done an editor link for the additional XML is also added to the topics. |