Bug 487256

Summary: Publican does not find Common Content if the country code is missing
Product: [Community] Publican Reporter: Ruediger Landmann <rlandman+disabled>
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-25 04:49:28 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Ruediger Landmann 2009-02-25 03:50:43 UTC
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-25 04:49:28 UTC
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 23:57:18 UTC
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 14:53:27 UTC
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.