Bug 687311

Summary: Translations for desktop files completely missing for Norwegian Nynorsk
Product: [openSUSE] openSUSE 11.4 Reporter: Karl Ove Hufthammer <karl>
Component: TranslationsAssignee: Karl Eichwalder <ke>
Status: VERIFIED FIXED QA Contact: Karl Eichwalder <ke>
Severity: Normal    
Priority: P3 - Medium CC: coolo, zaitor
Version: Final   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard: maint:released:11.4:41435
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Bug Depends on:    
Bug Blocks: 685148    

Description Karl Ove Hufthammer 2011-04-13 16:57:32 UTC
User-Agent:       Mozilla/5.0 (X11; Linux i686; rv:2.0.0) Gecko/20100101 Firefox/4.0

I use the Norwegian Nynorsk translation of KDE on openSUSE 11.4, and even though I have installed all relevant language packs, the menu entries (names/descriptions for applications) and all the categories in KDE system settings are shown in English. (The actual applications are correctly shown translated when started, though.)

I believe the reason is that the Norwegian Nynorsk (language code: nn) translation file is accidently not included in the package ‘desktop-translations’.

Reproducible: Always

Steps to Reproduce:
1. Change language/locale to Norwegian Nynorsk (nn)
2. Log out and in again
3. Observe that all entries on the K-menu are still shown in English, and the same is true for the categories in the KDE system settings
Comment 1 Bjørn Lie 2011-04-13 19:04:33 UTC
Hi Karl O.

Please grab my quick and dirty try at fixing this from 

http://download.opensuse.org/repositories/home:/Zaitor:/branches:/OBS_Maintained:/desktop-translations/openSUSE_11.4_standard/

Fileversion should be desktop-translations-11.4-8.17.1.noarch.rpm ( or higher)

Note that when writing this it is not published yet, so hold back until you see the right version is published.

----

The spec file does contain a rather notevorthy part about Norwegian Bokmål
If something similar is needed for nn is unknown.


%install
pushd po
for lang in *; do 
  if test "$lang" = "nb_no"; then
    continue
  fi
  if test -f $lang; then
	rm $lang
  else
Comment 2 Karl Ove Hufthammer 2011-04-14 05:20:05 UTC
I tried installing the file desktop-translations-11.4-8.18.1.noarch.rpm from your repository, but it still didn’t contain any translations for Norwegian Nynorsk.
Comment 3 Karl Eichwalder 2011-04-14 09:44:24 UTC
I think. we first must add "nn" to https://svn.berlios.de/svnroot/repos/opensuse-i18n/branches/openSUSE-11_4-Branch/lcn (and to the trunk) and run the 50-tools/desktop-files-update.sh script.

Then we must call PREPARE_PACKAGE to re-package desktop-translations.tar.bz2 from the SVN.

I'm wondering whether we should add some more languages to our translation SVN (even if there is no active translator for those languages?)?
Comment 4 Karl Eichwalder 2011-04-14 12:20:00 UTC
coolo, I want to add the 'nn' desktop translations to openSUSE 11.4.  Can you please change the URLs in https://svn.berlios.de/svnroot/repos/opensuse-i18n/branches/openSUSE-11_4-Branch/lcn/50-tools/desktop-files-update.urls accordingly?
Comment 5 Stephan Kulow 2011-04-15 09:26:36 UTC
don't recrawl. Take the nn files from factory and merge against 11.4's pot files. Everything else is insanity - even though it might not be perfect.
Comment 6 Karl Eichwalder 2011-04-15 13:49:25 UTC
Now available for testing:

OBS: home:keichwa:branches:openSUSE:11.4:Update:Test/desktop-translations

And SR done:

osc sr  -m'add nn' home:keichwa:branches:openSUSE:11.4:Update:Test desktop-translations
created request id 67528
Comment 7 Karl Eichwalder 2011-04-18 11:27:56 UTC
This was a sr to itself...  Next try:

osc sr -m'software update' home:keichwa:branches:openSUSE:11.4:Update:Test  desktop-translations openSUSE:11.4:Update:Test
created request id 67699
Comment 8 Karl Ove Hufthammer 2011-05-05 04:45:12 UTC
I see this bug is marked as ‘fixed’, but I can’t even find the file for testing. I have looked in http://download.opensuse.org/repositories/home:/keichwa:/branches:/openSUSE:/ but can’t find anything for openSUSE 11.4 here. Where do I find the file? (Sorry if this is a dumb question; I’m pretty new to openSUSE.)
Comment 9 Karl Eichwalder 2011-05-05 06:53:28 UTC
(In reply to comment #8)
> I see this bug is marked as ‘fixed’, but I can’t even find the file for
> testing. I have looked in
> http://download.opensuse.org/repositories/home:/keichwa:/branches:/openSUSE:/
> but can’t find anything for openSUSE 11.4 here. Where do I find the file?
> (Sorry if this is a dumb question; I’m pretty new to openSUSE.)

My fault, I forgot to enable the 11.4 repo for publishing.  Now, here is the package (desktop-translations):

http://download.opensuse.org/repositories/home:/keichwa:/branches:/openSUSE:/11.4:/Update:/Test/openSUSE_11.4/noarch/

It contains /usr/share/locale/nn/LC_MESSAGES/desktop_translations.mo .

I'll release is together with bug 685148
Comment 10 Karl Ove Hufthammer 2011-05-07 07:45:13 UTC
I can confirm that the new RPM file fixes the bug. However, just installing it and logging out and in again, or even rebooting, didn’t help. I had to change the locale to another language and then change it back to Norwegian Nynorsk for the translations to show up.
Comment 11 Karl Eichwalder 2011-05-09 14:51:26 UTC
(In reply to comment #10)
> I can confirm that the new RPM file fixes the bug.

Thanks for verification!

> However, just installing it
> and logging out and in again, or even rebooting, didn’t help. I had to change
> the locale to another language and then change it back to Norwegian Nynorsk for
> the translations to show up.

Switching locales is sometimes a experience.  The behavior you describe could be a different bug; maybe, it is just an implementation limitation.  If you think it is serious enough, please file a detailed bug about it, so developers will be able to reproduce it.
Comment 12 Stephan Kulow 2011-05-17 07:46:38 UTC
There is a cache that will only update if the .desktop files change, not if the .mo file changes. Possible to change, but rather ugly.
Comment 13 Karl Ove Hufthammer 2011-05-17 08:14:34 UTC
Is this cache *never* updated unless the .desktop files change? That would mean that it’s impossible to supply improved translation for .desktop files.

Where is this cache, and how can one manually update/recreate it?
Comment 14 Stephan Kulow 2011-05-17 13:08:12 UTC
check kbuildsycoca4 --help
Comment 15 Christian Dengler 2011-06-16 16:41:08 UTC
update released
Comment 16 Swamp Workflow Management 2011-06-16 16:41:39 UTC
Update released for: desktop-translations
Products:
openSUSE 11.4 (i586)