Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 236937 - Menus localized incorrectly in app-office/rubrica
Summary: Menus localized incorrectly in app-office/rubrica
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High enhancement
Assignee: Desktop Misc. Team
URL:
Whiteboard:
Keywords: EBUILD, Inclusion
Depends on:
Blocks:
 
Reported: 2008-09-07 10:06 UTC by Peter GAAL
Modified: 2008-09-12 21:12 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Correction for the French & German locales (po.patch,17.88 KB, patch)
2008-09-07 10:10 UTC, Peter GAAL
Details | Diff
Hungarian locale (hu.po,43.87 KB, text/plain)
2008-09-07 10:13 UTC, Peter GAAL
Details
Menu file (rubrica2.desktop,807 bytes, text/plain)
2008-09-07 10:14 UTC, Peter GAAL
Details
Gnome icons patch (src.patch,1.38 KB, patch)
2008-09-07 10:16 UTC, Peter GAAL
Details | Diff
Ebuild for rubrica-2.1.6 (rubrica-2.1.6.ebuild,1.19 KB, text/plain)
2008-09-07 10:17 UTC, Peter GAAL
Details
Menu file (rubrica2.desktop,767 bytes, text/plain)
2008-09-07 17:25 UTC, Peter GAAL
Details
Using linguas_hu instead of nls only (rubrica-2.1.6.ebuild.diff,783 bytes, patch)
2008-09-12 14:29 UTC, Peter GAAL
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Peter GAAL 2008-09-07 10:06:32 UTC
In all localized versions of Rubrica, the main menu is displayed in its original form, namely Italian.
Comment 1 Peter GAAL 2008-09-07 10:10:34 UTC
Created attachment 164786 [details, diff]
Correction for the French & German locales

Libglade seems to react--hem--fuzzily to fuzzy strings, so I've removed them where the translated strings didn't show up in the interface. The enclosed patch concerns the French and German locales which have been improved in the process.
Comment 2 Peter GAAL 2008-09-07 10:13:40 UTC
Created attachment 164787 [details]
Hungarian locale

As a spin-off of that debugging, here is the Hungarian translation which is not included in the current package yet.
Comment 3 Peter GAAL 2008-09-07 10:14:48 UTC
Created attachment 164789 [details]
Menu file

Apropos menus, the desktop file representing Rubrica's menu entry was another subject to localization.
Comment 4 Peter GAAL 2008-09-07 10:16:26 UTC
Created attachment 164790 [details, diff]
Gnome icons patch

In the newest version, there were some missing group icons too.
Comment 5 Peter GAAL 2008-09-07 10:17:58 UTC
Created attachment 164791 [details]
Ebuild for rubrica-2.1.6

Last but not least, the development version 2.1.6 could be included into Portage with this ebuild. It does the same as the ebuild for rubrica-2.0.2 by taking care to include the fixes above.
The new version works fine on x86 so far.
Comment 6 Carsten Lohrke (RETIRED) gentoo-dev 2008-09-07 12:15:54 UTC
The desktop entry file does not comply to the spec. Please validate and fix it -> dev-util/desktop-file-utils
Comment 7 Peter GAAL 2008-09-07 17:25:27 UTC
Created attachment 164834 [details]
Menu file

Here you go.
Comment 8 Christian Faulhammer (RETIRED) gentoo-dev 2008-09-08 07:50:09 UTC
Adding the real maintainer...means: ccing myself.
Comment 9 Christian Faulhammer (RETIRED) gentoo-dev 2008-09-12 08:07:58 UTC
Some remarks: 
* in the SRC_URI the mirror:// type should be used (this hasn't been the case for 2.0.2 neither)
* epatch dies on its own so you don't need to add it manually there
* USE=nls is the worst possible name for the Hungarian translation to be added.  We have the expandable USE flag USE_linguas which then would correctly install it for all people having LINGUAS="hu" set.

I will take care of the ebuild soon after some tests.
Comment 10 Peter GAAL 2008-09-12 14:28:02 UTC
(In reply to comment #9)
> * in the SRC_URI the mirror:// type should be used (this hasn't been the case
> for 2.0.2 neither)
>
Would a SRC_URI of type "mirror://" work without the tarball being there?

> * epatch dies on its own so you don't need to add it manually there
>
Sorry, I didn't care.

> * USE=nls is the worst possible name for the Hungarian translation to be added. We have the expandable USE flag USE_linguas which then would correctly install it for all people having LINGUAS="hu" set.
> 
The nls use flag is there just on behalf of msgfmt. But testing it this way within src_compile and src_install is quick and dirty, I admit.
Comment 11 Peter GAAL 2008-09-12 14:29:57 UTC
Created attachment 165275 [details, diff]
Using linguas_hu instead of nls only

Normally, I include pre-release locales (mostly with a loop on them unless there is just one like here) as indicated in the patch enclosed.
Comment 12 Christian Faulhammer (RETIRED) gentoo-dev 2008-09-12 21:12:59 UTC
(In reply to comment #10)
> (In reply to comment #9)
> > * in the SRC_URI the mirror:// type should be used (this hasn't been the case
> > for 2.0.2 neither)
> >
> Would a SRC_URI of type "mirror://" work without the tarball being there?

 Hmm, I don't get the question, but let me explain.  Rubrica now uses mirror://berlios/<path_to_tarball> in SRC_URI.  Portage now reads from /usr/portage/profiles/thirdpartymirrors and chooses one of the URLs listed there for berlios, if the tarball is not found on the Gentoo distfile mirrors.
 
> > * USE=nls is the worst possible name for the Hungarian translation to be added. We have the expandable USE flag USE_linguas which then would correctly install it for all people having LINGUAS="hu" set.
> > 
> The nls use flag is there just on behalf of msgfmt. But testing it this way
> within src_compile and src_install is quick and dirty, I admit.

 Have a look at the current solution I just committed and see how it works.  If you have questions, ask me by email. 

Anyway: Thanks for the contribution and I hope all of these fixes are reported upstream.