Bug 1246869 - No translation in frescobaldi package
Summary: No translation in frescobaldi package
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: frescobaldi
Version: 22
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
Assignee: Gwyn Ciesla
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-07-26 13:59 UTC by dominique
Modified: 2015-09-24 08:24 UTC (History)
4 users (show)

Fixed In Version: 2.18.1-2.fc22
Clone Of:
Environment:
Last Closed: 2015-09-21 10:48:37 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description dominique 2015-07-26 13:59:13 UTC
Description of problem:
I install frescobaldi, but there is no translation available.

But I look in the rpm source and I can see that the .mo file is present in frescobaldi_app/po.

For test I rebuild with rpmbuild, but there are no .mo files in usr/lib/python2.7/site-packages/frescobaldi_app/po.

I look the spec and I see that : 
.....................................
## File lists
# Create the lang file. %%find_lang does not handle .po files
for file in %{buildroot}%{python_sitelib}/%{name}_app/po/*.mo; do
    bn=$(basename $file)
    language=$(basename $file|cut -f 2 -d _|sed 's|\..*||')
    echo %%lang\($language\) %{python_sitelib}/%{name}_app/po/$bn >> frescobaldi.lang
    done

...................
%files -f %{name}.lang
%doc ChangeLog COPYING README* THANKS TODO
%{_bindir}/%{name}
%{python_sitelib}/%{name}_app
# the following is in our lang file
%exclude %{python_sitelib}/%{name}_app/po/*.mo
%{python_sitelib}/%{name}-%{version}-py2.7.egg-info
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
%{_mandir}/man1/*

For test I modify the line : 

%exclude %{python_sitelib}/%{name}_app/po/*.mo

by: 
%{python_sitelib}/%{name}_app/po/*.mo

I rebuild with this new spec, compilation work with warning (package .mo listed twice)

I install this new rpm and I have the translation.

Can you rebuild a package with a new spec and with translation ?

Comment 1 Yoann Le Bars 2015-07-26 14:57:11 UTC
Adding myself to the CC users.

Comment 2 Fedora Update System 2015-09-15 15:39:08 UTC
frescobaldi-2.18.1-2.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2015-15914

Comment 3 Fedora Update System 2015-09-15 15:40:34 UTC
frescobaldi-2.18.1-2.fc22 has been submitted as an update to Fedora 22. https://bodhi.fedoraproject.org/updates/FEDORA-2015-15915

Comment 4 Fedora Update System 2015-09-15 22:56:13 UTC
frescobaldi-2.18.1-2.fc22 has been pushed to the Fedora 22 testing repository. If problems still persist, please make note of it in this bug report.\nIf you want to test the update, you can install it with \n su -c 'yum --enablerepo=updates-testing update frescobaldi'. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-15915

Comment 5 Fedora Update System 2015-09-16 04:52:58 UTC
frescobaldi-2.18.1-2.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report.\nIf you want to test the update, you can install it with \n su -c 'yum --enablerepo=updates-testing update frescobaldi'. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-15914

Comment 6 Fedora Update System 2015-09-21 10:48:36 UTC
frescobaldi-2.18.1-2.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.

Comment 7 Fedora Update System 2015-09-24 08:24:50 UTC
frescobaldi-2.18.1-2.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.