FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora Packaging

 
 
LinkBack Thread Tools
 
Old 01-26-2011, 08:21 PM
Erik Blankinship
 
Default "No translations found" error in rpmbuild

In the %install of my spec file I do this:
Name: sunny

...
rm -rf $RPM_BUILD_ROOT
%{__python} setup.py install -01 --skip-build --root $RPM_BUILD_ROOT%find_lang %{name}

unfortunately, my rpmbuild dies with this error:"No translations found for sunny in /home/erikb/rpmbuild/BUILDROOT/sunny-1.0-1.i386"

Peeking into the BUILDROOT, I find I have these valid .mo and .po files with my translations in my buildroot (all copied over by my setup.py):BUILDROOT/sunny-1.0-1.i386/usr/share/sunny/locale/da/sunny.mo
BUILDROOT/sunny-1.0-1.i386/usr/share/sunny/locale/de/sunny.moBUILDROOT/sunny-1.0-1.i386/usr/share/sunny/po/da.poBUILDROOT/sunny-1.0-1.i386/usr/share/sunny/po/de.po

Any suggestions how to get the translations into my application? *I am not sure why rpmbuild is not finding the files it needs. *Thank you! *
(Note: if I remove %find_lang, my rpm builds successfully)
--
packaging mailing list
packaging@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/packaging
 
Old 01-26-2011, 09:01 PM
Michael Schwendt
 
Default "No translations found" error in rpmbuild

On Wed, 26 Jan 2011 16:21:43 -0500, Erik wrote:

> In the %install of my spec file I do this:
>
> Name: sunny
>
> ...
>
> rm -rf $RPM_BUILD_ROOT
> %{__python} setup.py install -01 --skip-build --root $RPM_BUILD_ROOT
> %find_lang %{name}
>
> unfortunately, my rpmbuild dies with this error:
> "No translations found for sunny in
> /home/erikb/rpmbuild/BUILDROOT/sunny-1.0-1.i386"
>
> Peeking into the BUILDROOT, I find I have these valid .mo and .po files with
> my translations in my buildroot (all copied over by my setup.py):
> BUILDROOT/sunny-1.0-1.i386/usr/share/sunny/locale/da/sunny.mo
> BUILDROOT/sunny-1.0-1.i386/usr/share/sunny/locale/de/sunny.mo
> BUILDROOT/sunny-1.0-1.i386/usr/share/sunny/po/da.po
> BUILDROOT/sunny-1.0-1.i386/usr/share/sunny/po/de.po
>
> Any suggestions how to get the translations into my application? I am not
> sure why rpmbuild is not finding the files it needs. Thank you!
>
> (Note: if I remove %find_lang, my rpm builds successfully)

Well, /usr/share/sunny/.... isn't the standard search path for message
object files. Plus the *.po files are source files not to be installed.
--
packaging mailing list
packaging@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/packaging
 
Old 01-26-2011, 09:21 PM
Erik Blankinship
 
Default "No translations found" error in rpmbuild

Well, /usr/share/sunny/.... isn't the standard search path for message

object files. Plus the *.po files are source files not to be installed.

Thanks. *I moved the .mo files to /usr/share and my rpm started building again! *Cool.
--
packaging mailing list
packaging@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/packaging
 

Thread Tools




All times are GMT. The time now is 01:30 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org