Re: "No translations found" error in rpmbuild

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/packaging


[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite Forum]     [KDE Users]

  Powered by Linux