Bug 115589

Summary: SL10_Loc - Linux - Translated Slideshow not included
Product: [openSUSE] SUSE LINUX 10.0 Reporter: Craig Jeffares <cjeffares>
Component: InstallationAssignee: Stefan Hundhammer <shundhammer>
Status: RESOLVED FIXED QA Contact: Klaus Kämpf <kkaempf>
Severity: Critical    
Priority: P5 - None CC: aj, davidbo, hui_liu, jsuchome, ke, kerryoc
Version: Beta 4 PlusKeywords: All_Languages, build, L10N
Target Milestone: ---   
Hardware: Other   
OS: All   
Whiteboard:
Found By: Localization Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: Yast Logs from a zh_TW install

Description Craig Jeffares 2005-09-07 12:57:27 UTC
The translated Slideshow was checked in the the LCN last week along with a
request for them to be included in RC 1.

I have just checked German, Japanese and Chinese Trad and none of the translated
Slideshows were included as expected.
Comment 1 Craig Jeffares 2005-09-07 13:09:06 UTC
To clarify I checked in fr, de, it, pt_BR, es, ja, zh_TW & zh_CN (the primary
languages of the product in) at the same time last week, So they should all be
there.

Comment 2 Stefan Hundhammer 2005-09-07 13:33:51 UTC
This report cannot be about 10.0-RC1 - RC1 is not out yet. 
 
Those translations should be in RC1. We will see when RC1 is available. 
Comment 3 Craig Jeffares 2005-09-07 13:42:08 UTC
Downloaded it this afternoon from
ftp://dist.suse.de/install/SUSE-10.0-RC1/SUSE-10.0-CD-i386-RC1-CD1.iso

And this is the build I am logging the defect against... RC 1

I'll monitor the server for another RC 1 and wait for aj's notification but as
far as I can see it looks like the correct build.
Comment 4 Andreas Jaeger 2005-09-07 13:58:27 UTC
Needs to be fixed for RC2.

Craig, the RC1 you downloaded are not the final version, we're just remastering...
But this bug will be in the real RC1 as well...
Comment 5 Craig Jeffares 2005-09-07 14:05:00 UTC
ok thanks. I'll wait till I get the offical notification then start the download
again.

I'll check this issue again in RC2
Comment 6 Stefan Hundhammer 2005-09-07 15:19:22 UTC
I think I found the problem: The languages are there in SVN allright, but they 
were not enabled in the Makefile.am two directory levels above. 
 
We now have: 
 
bg  cs  de  el  en  es  fi  fr  hu  it  ja  nb  nl  no  pl  pt pt_BR sk  sl  
uk zh_CN zh_TW 
 
Comment 7 Karl Eichwalder 2005-09-07 16:02:28 UTC
*** Bug 115302 has been marked as a duplicate of this bug. ***
Comment 8 Karl Eichwalder 2005-09-07 16:04:06 UTC
Thanks for tracking down this issue.  Now I do remember me...
Comment 9 Craig Jeffares 2005-09-14 13:58:17 UTC
zh_TW & zh_CN are still untranslated in RC 3. All the other priority languages
are displaying correctly.

Is it possible to fix ?
Comment 10 Karl Eichwalder 2005-09-14 14:14:14 UTC
Files are available in
/mounts/dist/next-i386/suse/noarch/yast2-slide-show-SuSELinux.rpm
Comment 11 Ruediger Oertel 2005-09-14 14:20:52 UTC
if they are not shown in RC3 this problem lies somewhere else. 
you can verify yourself that the files are present on RC3-CD1: 
see in CD1/suse/setup/slide/txt/zh_CN (other languages respectively) 
Comment 12 Craig Jeffares 2005-09-14 14:52:22 UTC
I have verified that CD1/suse/setup/slide/txt/zh_CN and
CD1/suse/setup/slide/txt/zh_TW are there on my cd's.

I checked paths, filenames, encoding, all I can think of and they appear correct. 

If it were a character issue I would presume the translated slideshow would
display with corrupt characters but it displays english.

I'm not sure what else I can try !

Comment 13 Andreas Jaeger 2005-09-14 14:53:17 UTC
Just verified with simplified chinese and RC4, occurs there as well.

Looks like a bug in YaST, the files are on the media.
Comment 14 Klaus Kämpf 2005-09-14 14:58:08 UTC
We need the logs ! 
Comment 15 Arvin Schnell 2005-09-14 15:03:00 UTC
Maybe shortening the language is the problem, see SlideShow.ycp:376:

if ( size( lang ) > 2 )
    lang = substring( lang, 0, 2 );
Comment 16 Craig Jeffares 2005-09-14 15:08:38 UTC
Ok. I'll run a full zh_TW install now then attach the logs.
Comment 17 Andreas Jaeger 2005-09-14 15:13:01 UTC
That means instead of pt_BR you get a pt installation?

Argh :-(

yes, shortening would explain it.
Comment 18 Craig Jeffares 2005-09-14 15:22:55 UTC
Yes I just checked the pt_BR install on another machine.

It is displaying the pt slideshow :(

I had the the pt and pt_BR rtf's open infront of me then ran the install and it
is definitly the pt Slideshow that is being displayed when you do a pt_BR install. 
Comment 19 Martin Sommer 2005-09-14 15:32:19 UTC
and shortening zh_TW to zh leads to the english fallback since zh simply doesn't
exist, right?
Comment 20 Martin Sommer 2005-09-14 15:36:37 UTC
It's really not nice but I need to decrease it to critical. 
Comment 21 Klaus Kämpf 2005-09-14 15:39:01 UTC
How about this patch ? 
 
Index: SlideShow.ycp 
=================================================================== 
--- SlideShow.ycp       (revision 25419) 
+++ SlideShow.ycp       (working copy) 
@@ -373,16 +373,24 @@ 
      **/ 
     list<string> GetSlideList( string lang ) 
     { 
-       if ( size( lang ) > 2 ) 
-           lang = substring( lang, 0, 2 ); 
- 
        string txt_path = sformat( "%1/txt/%2", slide_base_path, lang ); 
        list<string> slide_list = (list<string>) SCR::Read (.target.dir, 
txt_path ); 
 
        if ( slide_list == nil ) 
        { 
            y2debug( "Directory %1 does not exist", txt_path ); 
+           if ( size( lang ) > 2 ) 
+           { 
+               lang = substring( lang, 0, 2 ); 
+               txt_path = sformat( "%1/txt/%2", slide_base_path, lang ); 
+               slide_list = (list<string>) SCR::Read (.target.dir, 
txt_path ); 
+           } 
        } 
+ 
+       if ( slide_list == nil ) 
+       { 
+           y2milestone( "Slideshow directory %1 does not exist", txt_path ); 
+       } 
        else 
        { 
            slide_list = sort( filter( string filename, slide_list, ``{ 
 
Comment 22 Craig Jeffares 2005-09-14 15:40:57 UTC
zh exists but zh_TW (traditional in Taiwan) and zh_CN ( Simplified - Republic of
China are very very different.

You couldn't choose one over the other. You would be better to leave them as
they are showing in english. An english slideshow is not as big an issue then if
it display a load of corrupt characters.

Maybe copy pt_BR into pt as we have more pt_BR customers then pt. (They are more
similar languages though)
Comment 23 Craig Jeffares 2005-09-15 09:59:04 UTC
Created attachment 50008 [details]
Yast Logs from a zh_TW install

Yast Logs from a zh_TW install if still needed.
Comment 24 Lukas Ocilka 2005-09-15 11:07:29 UTC
Y2WFMComponent.cc(SetLanguage):500 GET encoding for zh_TW.UTF-8:  UTF-8
Language.ycp:345 setting language to zh_TW
...
YUI_builtins.cc(evaluateSetLanguage):146 ui specific setLanguage( `SetLanguage
("zh_TW.UTF-8") )
...
SlideShow.ycp:488 Display OK for slide show
SystemAgent.cc(Read):544 Can't access directory '/var/adm/YaST/InstSrcManag
er/tmp/CurrentMedia/suse/setup/slide/txt/zh'
SystemAgent.cc(Read):544 Can't access directory '/var/adm/YaST/InstSrcManag
er/tmp/CurrentMedia/suse/setup/slide/txt/en'

sh: It tries to use ".../zh" instead of using ".../zh_TW", doesn't it? I'm not
sure about this MagicShow...

nevertheless:
RpmDb.cc(installPackage):1662 rpm failed, message was: error:
/var/adm/YaST/InstSrcManager/IS_CACHE_0x00000001/MEDIA/suse/noarch/suselinux-manual_en-10.0-11.noarch.rpm:
MD5 digest: BAD Expected(c4a5fa1036d32e7307a745ba18718462) !=
(b032785f32a8637054502d0d499bb256)

Craig, could you, please, check your media? (MD5sums or in the begining of the
installation there should be a dialog for that).
Comment 25 Craig Jeffares 2005-09-15 11:14:13 UTC
I seem to have issues with my Recordable CD's see issue :
https://bugzilla.novell.com/show_bug.cgi?id=116964

I was getting inconsistant package issues so I think its to do with the cd's
rather then an image. 

I'm validating RC4 soon so I'll keep an eye out for the suselinux-manual_en
issue, but I think its just the cd's.

Comment 26 Andreas Jaeger 2005-09-15 11:27:38 UTC
Regarding #24: Please check #15 and check the media as well.

The directory is called "zh_TW" but the path used by YaST is "zh".

The media error is another issue and not related to this problem.  We can
reproduce this issue on other machines here as well.
Comment 27 Jiří Suchomel 2005-09-15 14:01:18 UTC
I tested it with Klaus' patch from comment #21 and the slideshow is in chinese
(well, I cannot understand it - it's definitely not in English :-)
Comment 28 Klaus Kämpf 2005-09-16 09:20:27 UTC
fixed in STABLE  (post 10.0 :-( ) 
Comment 29 hui liu 2008-07-14 03:55:43 UTC
the bug has fixed for the chs ,cht ,ita. jpn. br market for sles 10sp2 oes beta 3.10