Issue 58014 - default language not set if document created over windows context menu
Summary: default language not set if document created over windows context menu
Status: CONFIRMED
Alias: None
Product: Writer
Classification: Application
Component: formatting (show other issues)
Version: OOo 2.0
Hardware: PC Windows, all
: P3 Trivial with 7 votes (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords: oooqa
: 95171 101555 104341 104348 107105 110646 112125 112156 112964 113779 114796 114980 115869 117195 117231 118345 119154 (view as issue list)
Depends on:
Blocks:
 
Reported: 2005-11-16 15:30 UTC by asdel
Modified: 2017-05-20 11:05 UTC (History)
14 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: 4.1.3
Developer Difficulty: ---


Attachments
OOo writer document demonstating curly quote problem (6.16 KB, application/vnd.sun.xml.writer)
2005-11-16 15:32 UTC, asdel
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description asdel 2005-11-16 15:30:37 UTC
Custome quotes for ' and " are not applied after save, exit, reopen.

Steps. Right-click on Desktop and chooce "create New OpenOffice.org Text 
Document". Double-click to new document to start OOo.

Enter the following text: "she said, 'no'". Expect to see " replaced with curly.

Save document, close OOo, close OOo QuickLauncher

Double-click on document to start OOo.
enter "she said, 'no'" Curly quotes are not entered and standard straight 
quotes appear instead.
Comment 1 asdel 2005-11-16 15:32:26 UTC
Created attachment 31555 [details]
OOo writer document demonstating curly quote problem
Comment 2 michael.ruess 2005-11-16 16:04:44 UTC
Reassigned to SBA.
Comment 3 asdel 2005-12-06 01:45:17 UTC
This seems to be document specific, or specific to my OOo installation. This
document was not language specific. Spell-checking and Thesaurus also do not
work. I've set my langauge in tools-->Options-->languages and set a language as
default. This problem goes away for furture documents, but the above document
still has no language, and therefore spelling, thesaurus, and curly quotes don't
work.
Comment 4 jack.warchold 2005-12-22 16:31:08 UTC
this is more a problem with the creation of the document, i followed your steps and 
the new document did not geht any language.
if i create a document from within the write there is a default document language 
set.

reassigend to me. i will find a developer for this.
target set to OOo2.02
Comment 5 jack.warchold 2005-12-22 16:31:28 UTC
.
Comment 6 jack.warchold 2006-01-30 15:00:29 UTC
reassigned to ama

changed summery to: default language not set if document created over windows 
context menu

change target to OOo later because of the near date for OOo2.0.2
Comment 7 michael.ruess 2009-07-29 16:29:34 UTC
*** Issue 101555 has been marked as a duplicate of this issue. ***
Comment 8 michael.ruess 2009-08-20 09:28:53 UTC
*** Issue 95171 has been marked as a duplicate of this issue. ***
Comment 9 michael.ruess 2009-08-20 09:29:20 UTC
*** Issue 95171 has been marked as a duplicate of this issue. ***
Comment 10 michael.ruess 2009-08-20 09:32:14 UTC
*** Issue 104341 has been marked as a duplicate of this issue. ***
Comment 11 michael.ruess 2009-08-20 09:38:46 UTC
*** Issue 104348 has been marked as a duplicate of this issue. ***
Comment 12 Rainer Bielefeld 2009-11-22 08:29:26 UTC
This is not a particular WRITER problem, you see the same problem creating a new
CALC problem in that way.
Comment 13 Rainer Bielefeld 2009-11-22 08:31:41 UTC
*** Issue 107105 has been marked as a duplicate of this issue. ***
Comment 14 Rainer Bielefeld 2010-04-06 13:40:42 UTC
*** Issue 110646 has been marked as a duplicate of this issue. ***
Comment 15 Oliver Brinzing 2010-04-06 18:52:17 UTC
.
Comment 16 andreas.martens 2010-04-13 08:36:10 UTC
.
Comment 17 Rainer Bielefeld 2010-06-05 10:23:01 UTC
*** Issue 112125 has been marked as a duplicate of this issue. ***
Comment 18 eric.savary 2010-06-06 12:38:41 UTC
*** Issue 112156 has been marked as a duplicate of this issue. ***
Comment 19 essaion 2010-06-30 17:03:30 UTC
Same issue there with OOo 3.2.1 (OOo320m218) / Windows 7 x64.
I encountered this issue a long ago (OOo 2.4 (?) with XP x86), and dealt with it
using the workaround described by jw on  Dec, 22, 2005 (!) : opening OOo then
creating a new document using File > New.

This issue is very old, and may be frustrating if the user has the habit to use
the Windows Explorer shell extension to create new documents (i am one of them,
as a matter of fact).
Status is NEW (yup, as in "only a 4.5 years old issue"), and it is assigned to
"os" : os, do you have any input on this ?!

Maybe a new case should be opened, since the issue is still present on current
versions, and the version it was reported for is "2.0" ? Also, it is a framework
issue, not specific to Writer (as noted by rainerbielefeld on Nov,22, 2009).
Comment 20 essaion 2010-06-30 17:19:16 UTC
I just saw this issue : http://fr.openoffice.org/issues/show_bug.cgi?id=81324
So i closed all running OOo apps (including quickstart), then deleted my user
profile (%ADDDATA%\OpenOffice.org\3\user folder). Then re-launched OOo : this
created a new profile.

Tool > Options... > Language settings > Default Language for Documents >
Occidental is set to "Par défaut - Français (France)".
Windows Explorer > Right click > New > OpenOffice.org Draw (this could be any
OOo app) > Tools > Options... > Language settings > Default Language for
Documents > Occidental is set to "Allemand (Allemagne)". Don't know why it is
"deutsch" though, since the first language appearing in the combobox is
"[Aucun(e)]" then "Afrikaans" (Afrique du Sud).

The only thing i don't know is whether it is specific to the "fr" install
binaries, or a more global issue... ?
Comment 21 eric.savary 2010-07-06 11:26:44 UTC
*** Issue 112964 has been marked as a duplicate of this issue. ***
Comment 22 tbble 2010-07-06 12:05:54 UTC
It's not mentioned here, but in bug 112964, that documents suffering this problem 
cannot be fixed by changing the All-text language in the Tools menu, as that has 
no effect.

Bug 112964 also shows the offending element in the document being used as a 
template, removal of which resolves that problem and leaves you with a document 
which defaults to de_DE "German (Germany)" (presumably the locale of the person 
who created the original template document)
Comment 23 essaion 2010-07-06 14:32:04 UTC
Wow. This indeed IS the same issue (though i didn't mentionned the problem with
setting the correct language on a document created within Windows Explorer, i
experienced it too), and you made a big step towards solving it, as far as i can
tell ! I'll explore the workaround you suggest as soon as i have time.

Please correct me if i'm wrong :
- The template used to create a new document is not the same using "File > New"
in OOo, or "right click > New > OpenOffice.org ..." in Windows Explorer. That 
sounds like a bug to me (assuming a template is used to create a "File > New"
document in OOo).
- As a workaround, it should be enough to correct the soffice.odt template,
styles.xml file. Using Windows 7, "soffice.odt" should be in
"D:\ProgramData\Microsoft\Windows\Templates".
Comment 24 tbble 2010-07-07 00:06:11 UTC
The "New -> OpenOffice.org Writer" option in Explorer makes a copy of 
"%ALLUSERSPROFILE%\Templates\soffice.odt". I don't know if File->New within OOo 
Writer uses a template, but it certainly doesn't use that one.

Correcting the Template's styles.xml works, the better workaround for a local 
user is to simply place an soffice.odt file with a locally corrected template 
with all your own preferences in "%HOMEDIR%\Templates" which will then be loaded 
in preference to the All-Users template.

I understand from other bugs here that mention soffice.odt that the template is 
being generated by the installer, which suggests that there's a bug in that 
generation, or in fact two: This bad language value in the template, and the 
fact that the generated template doesn't use the system local locale, but de_DE.
Comment 25 tbble 2010-07-07 02:28:28 UTC
Oops. %HOMEPATH% is %USERPROFILE% on Windows XP, but C:\ on Windows 7.

It's actually %USERPROFILE%\Templates\soffice.odt. I've confirmed that works as a 
per-user override.

However, note that on Windows 7, this is a junction point to your roaming profile 
directory, and I seem to be unable to just type %USERPROFILE%\Templates into the 
"Run" box, or browse to it in Explorer. The redirect is to 
%APPDATA%\Microsoft\Windows\Templates by default, and that works in the Run box.
Comment 26 essaion 2010-08-11 21:21:02 UTC
Confirmed working on Win XP (x32) and WinXP (x64) :
- Extracted each template as an archive
- For each template, edited the file "styles.xml", replacing strange occurrences
of the language markups with entries coherent with my locale (fr-FR) (cf. bug
112964 for more specific infos).
- Re-zipped each set of files/folders, renamed them appropriately, then  put the
template files in %USERPROFILE%\Templates (XP) or
%APPDATA%\Microsoft\Windows\Templates : issue resolved.

There *IS* a matter in the manner those files are made. Since the templates
original timestamp (2010/02/17) is quite before the date i installed OOo 3.2.1
on my computers, i assume they aren't generated during the install process, but
are rather packed in the installer (or the generated file has a wrong timestamp
: that would be weird). That just can't work that way, as far as i can tell.

Again : thanks a lot, tbble !!
Comment 27 michael.ruess 2010-08-17 10:50:15 UTC
*** Issue 113779 has been marked as a duplicate of this issue. ***
Comment 28 eric.savary 2010-09-28 17:34:03 UTC
*** Issue 114796 has been marked as a duplicate of this issue. ***
Comment 29 eric.savary 2010-10-08 07:43:11 UTC
*** Issue 114980 has been marked as a duplicate of this issue. ***
Comment 30 miles 2010-10-08 12:31:27 UTC
Maybe this bug will be fixed in LibreOffice.
Comment 31 eric.savary 2010-12-01 16:56:42 UTC
*** Issue 115869 has been marked as a duplicate of this issue. ***
Comment 32 michael.ruess 2011-03-04 13:14:45 UTC
*** Issue 117195 has been marked as a duplicate of this issue. ***
Comment 33 Mathias_Bauer 2011-03-09 10:20:21 UTC
*** Issue 117231 has been marked as a duplicate of this issue. ***
Comment 34 eric.savary 2011-07-27 13:26:33 UTC
*** Issue 118345 has been marked as a duplicate of this issue. ***
Comment 35 Regina Henschel 2012-04-01 21:38:18 UTC
*** Issue 119154 has been marked as a duplicate of this issue. ***
Comment 36 Joshua W Windle 2014-01-06 20:10:25 UTC
HKEY_CLASSES_ROOT\.odt\opendocument.WriterDocument.1\ShellNew StringValue = soffice.exe 

We need to change this String Value data to swriter.odt to correct the issue with Context Menu > New > "OpenDocument Text" documents opening up with incorrect language support for spell check. I am not exactly sure where this is in the source.
Comment 37 Joshua W Windle 2014-01-06 20:12:09 UTC
fell free to get back to me. Joshua.W.Windle@gmail.com
Comment 38 Ron Averyt 2017-03-17 02:04:49 UTC
Still not fixed after 11 and a half years? Even if it is deemed trivial, it really should have been fixed by now. I just wasted over 2.5 hours figuring out why spell check was not working. It turned out to be caused by the wrong default language (German instead of US English) being set when a new document is created from the Windows Context Menu.  This is under Windows 10 and AOO 4.1.3. Fortunately, I found enough information in some of the other comments here to fix the problem by correcting each template, C:\ProgramData\Microsoft\Windows\Templates\soffice.* , but I really should not have needed to do that.
Comment 39 mroe 2017-03-17 11:13:29 UTC
IMO the language definition should be deleted from the templates → language = NONE. The reason is, that everybody can install additional language packs – which language should win for the templates? Otherwise one must have templates for every installed language.
Comment 40 Marcus 2017-05-20 11:05:10 UTC
Reset assigne to the default "issues@openoffice.apache.org".