Bug 1316777

Summary: .desktop files need to be translated to distinguish docs in different languages on the desktop
Product: [Community] Publican Reporter: Jens Petersen <petersen>
Component: publicanAssignee: Nobody <nobody>
Status: NEW --- QA Contact: Ruediger Landmann <rlandman>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: futureCC: cbredesen, rlandman
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: 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: 1316398    

Description Jens Petersen 2016-03-11 04:00:59 UTC
Description of problem:
Current it seems publican generates the same .desktop file fields
for all languages ie for all translations of a document.

This makes it hard (impossible) to tell which language one is
choosing when opening documentation from the desktop.

See for example bug 1316398.

Version-Release number of selected component (if applicable):
RHEL 7 docs

How reproducible:
100%

Actual results:
cat > Red_Hat_Enterprise_Linux-Release_Notes-7-ja-JP-7.desktop <<'EOF'
[Desktop Entry]
Name=Red_Hat_Enterprise_Linux 7: Release_Notes
Comment=Release Notes for Red Hat Enterprise Linux 7
Exec=xdg-open %{_docdir}/Red_Hat_Enterprise_Linux-Release_Notes-7-ja-JP-%{version}/index.html
Icon=Red_Hat_Enterprise_Linux-Release_Notes-7-ja-JP
Categories=Documentation;X-Red-Hat-Base;
Type=Application
Encoding=UTF-8
Terminal=false
EOF
```

compared to 

cat > Red_Hat_Enterprise_Linux-Release_Notes-7-en-US-7.desktop <<'EOF'
[Desktop Entry]
Name=Red_Hat_Enterprise_Linux 7: Release_Notes
Comment=Release Notes for Red Hat Enterprise Linux 7
Exec=xdg-open %{_docdir}/Red_Hat_Enterprise_Linux-Release_Notes-7-en-US-%{version}/index.html
Icon=Red_Hat_Enterprise_Linux-Release_Notes-7-en-US
Categories=Documentation;X-Red-Hat-Base;
Type=Application
Encoding=UTF-8
Terminal=false
EOF

ie the Name and Comment for the Japanese RelNotes is identical to the English one which makes it impossible to distinguish them on the desktop.

Expected results:
Red_Hat_Enterprise_Linux-Release_Notes-7-ja-JP-7.desktop should be changed to have Name and Comment based on the Japanese title for the release notes.