Issue 73297 - letter wizard does not start in localized interface
Summary: letter wizard does not start in localized interface
Status: CLOSED FIXED
Alias: None
Product: Writer
Classification: Application
Component: ui (show other issues)
Version: 680m198
Hardware: All All
: P2 Trivial (vote)
Target Milestone: ---
Assignee: h.ilter
QA Contact: issues@sw
URL:
Keywords:
: 80585 (view as issue list)
Depends on:
Blocks:
 
Reported: 2007-01-09 12:37 UTC by avagula
Modified: 2014-03-09 13:37 UTC (History)
6 users (show)

See Also:
Issue Type: PATCH
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
Proposed patch (3.96 KB, patch)
2007-08-17 11:19 UTC, hatapitk
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this issue.
Description avagula 2007-01-09 12:37:09 UTC
I'll file this as followup to issue 59264, as mentioned issue as another subject.
You can still use attachments from the issue:
http://www.openoffice.org/nonav/issues/showattachment.cgi/41465/strace2
(this is snippet from strace output).
In short - fallback to English does not work at least for Estonian and letter
wizard and after attempt to start the wizard it is impossible to close root
window (only kill works). The workaround is manually to rename
installpath/share/template/et/wizard/letter/en-US to
installpath/share/template/et/wizard/letter/et.
It is not option for every user. 
I'll raise the prio for following reasons:
- it is critical for release in at least one language, when the whole part of
module does not work and freezes the suite
- I'm not able to provide localized templates at moment (you should get fallback
to work so or so)
Comment 1 thorsten.martens 2007-01-10 08:16:30 UTC
TM->MSC: please have a look, thanks !
Comment 2 marc.neumann 2007-01-10 13:33:17 UTC
letter wizard is writer 
letter wizard is writer 
letter wizard is writer 

reassign to sba.
Comment 3 stefan.baltzer 2007-01-12 14:46:32 UTC
SBA->HI: Please proceed.
Comment 4 h.ilter 2007-01-15 11:38:36 UTC
Reassigned to TV
Comment 5 hatapitk 2007-08-16 12:42:05 UTC
This bug is not specific to Estonian: this happens with Finnish build of 
SRC680_m223 too (see issue #80585).
Comment 6 avagula 2007-08-16 18:32:57 UTC
this bug should happen with every language not having localized letter templates
because fallback to english does not work automatically.
Comment 7 hatapitk 2007-08-17 11:19:20 UTC
Created attachment 47588 [details]
Proposed patch
Comment 8 hatapitk 2007-08-17 11:29:04 UTC
I think I found the problem: The code assumed that if for example 
directory /opt/openoffice.org2.3/share/template/fi is present, then it 
contains subdirectory wizard/letter/fi. The attached patch removes this 
assumption. It will instead list the contents 
of /opt/openoffice.org/share/template/fi/wizard/letter and add all 
subdirectories under it to vector allPaths. This seems to fix the problem for 
Finnish build. It should work for other languages too, but I have not tested 
this. I am not familiar with this code so the patch may be buggy.

Note that some of the changes are just whitespace changes to make that 
particular block of code more readable.
Comment 9 avagula 2007-09-25 14:58:37 UTC
In meantimes things are gone better, in m230 only wizard does not start, the
root window closing works without killing it. When someone else can confirm this
we could lower the priority to P4.
Comment 10 hatapitk 2007-09-25 21:22:55 UTC
With OOo_SRC680_m230_LinuxX86_install_fi_deb.tar.gz from Pavel and Sun JRE 
root windows closing still fails for me after trying to use the letter wizard. 
So I think this should remain at P2 (or at least P3).
Comment 11 pavel 2007-11-22 10:02:05 UTC
mba: as Letter Wizard is writer... ;-)

Do you have a comment? Does the fallback to en-US work or no?

Comment 12 rafaella.braconi 2007-11-22 10:03:38 UTC
Can you please look into this issue? Thx!
Comment 13 Mathias_Bauer 2007-11-22 10:28:40 UTC
Thank you for helping us with the correct assignment! And of course also thanks
for the patch. I change the "Issue type" accordingly and will take care of it.
Comment 14 Mathias_Bauer 2007-12-13 19:22:27 UTC
Oliver, please take over
Comment 15 Oliver Specht 2007-12-17 09:00:08 UTC
Integrated into cws os109
I added another try/catch to survive also unavailable directories
(share/template/<locale>/wizard/letter
Comment 16 avagula 2007-12-18 05:38:04 UTC
to os: Pavel was so kind and made me a m240 Estonian build with os109 included,
this works!
Comment 17 Oliver Specht 2008-01-14 07:30:02 UTC
Reassigned for verification
Comment 18 eric.savary 2008-01-16 14:35:36 UTC
Reassigned to HI.
Comment 19 eric.savary 2008-01-16 14:36:47 UTC
.
Comment 20 h.ilter 2008-01-16 15:04:05 UTC
Verified with cws os109 = Template will go back to en if lang not available.
Comment 21 h.ilter 2008-02-13 11:29:39 UTC
Still ok in OOH680m6_9268
Comment 22 Edwin Sharp 2014-03-09 13:37:15 UTC
*** Issue 80585 has been marked as a duplicate of this issue. ***