Bug 487256

Summary: Publican does not find Common Content if the country code is missing
Product: [Community] Publican Reporter: Ruediger Landmann <rlandman>
Component: publicanAssignee: Jeff Fearn <jfearn>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 1.6CC: jfearn, mmcallis, publican-list
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 0.43 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-02-24 23:49:28 EST Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Description Ruediger Landmann 2009-02-24 22:50:43 EST
Description of problem:
If the makefile specifies a language but omits its country code, Publican does not find the Common Content for that language. 

How reproducible:
100%

Steps to Reproduce:
1. Take any book that currently builds in Publican that includes at least one language other than the book's XML_LANG that has Common Content in Publican (for example, French)
2. rename the folder containing that language's .po files, removing the dash and the country code (rename fr-FR to fr)
3. make the same change to that language's OTHER_LANGS entry in the makefile
4. make the book
  
Actual results:
Publican will not find the Common Content for that language ("Conventions" and "Feedback") and will therefore use the Common Content for the book's XML_LANG instead.

Expected results:
Even if no country code is specified, Publican should find and use the Common Content for that language.
Comment 1 Jeff Fearn 2009-02-24 23:49:28 EST
Added  ll sym-links  to ll-CC.

e.g. fr -> fr-FR

This change requires brands to be rebuilt as well.
Comment 2 Fedora Update System 2009-03-18 19:57:18 EDT
publican-fedora-0.18-0.fc10,publican-0.44-0.fc10 has been submitted as an update for Fedora 10.
http://admin.fedoraproject.org/updates/publican-fedora-0.18-0.fc10,publican-0.44-0.fc10
Comment 3 Fedora Update System 2009-03-26 10:53:27 EDT
publican-fedora-0.18-0.fc10, publican-0.44-0.fc10 has been pushed to the Fedora 10 stable repository.  If problems still persist, please make note of it in this bug report.