2011/9/21 Stephan Witt <st.w...@gmx.net>: > Am 20.09.2011 um 06:47 schrieb PhilipPirrip: > >> On 09/19/2011 10:39 PM, Murat Yildizoglu wrote: >>> If I summarize my problem: >>> >>> 1/ I have created a new document the default language of which was English; >>> 2/ I have written two paragraphs in French in it, then I have seen the >>> wavy red lines and understood that I have not changed the default >>> language); >>> 3/ I have opened the document properties and switched the language to >>> Français; >>> 4/ I have written other paragraphs in French, it was OK. >>> 5/ I have seen that the first two paragraphs was continuing to pose >>> problem (which is normal); >>> 6/ I have marked the whole document them with the mouse + >>> right-click+Language and >>> selected Français. >>> 7/ I was surprised to observe that the red wavy lines were persisting >>> 8/ I have checked the language at the status bar, it continued to show >>> English at the beginning of the paragraph. >>> 9/ I have selected the paragraph with the mouse + right-click+Language and >>> selected Français again >>> 10/ The problem persisted. >> >> >> There are a few bugs around concerning the change of a language, you've >> probably encountered some of them: >> >> Changing text language using context menu doesn't work properly - >> http://www.lyx.org/trac/ticket/7778 >> > > After having a look at the document (Murat sent me privately, thanks for it) > I can confirm it's this bug. I've made a patch for this and attached it there.
Thanks for having checked and corrected Stephan! > > Am 20.09.2011 um 10:02 schrieb Murat Yildizoglu: > >> I have opened the file in TextWrangler and have seen a mixture of >> \lang english and \lang french. I have deleted all of them using a >> search and replace (the default language is French anyway) and saved >> the doc. Now everything seems in order again and I do not see any wavy >> red underlines for the text in French. >> >> I can see them for the text in English. When I tried to mark them as >> English, I have seen the contextual menu does not contain the Language >> item (I imagine that this is due to the fact that my text is now >> monolingual). > > Yes, that's true. > >> So, if I understand well, when you start a new document and put into >> it a first chunk in another language, you have to go through the >> Paragraph Settings/Customized/Language, instead of Language in the >> contextual menu. Afterwards the Language menu item becomes visible, >> since Lyx detects that your document contains at least two languages. > > Correct. > >> Maybe Lyx is trying to be too smart here, no? IMHO, it would be nice >> to have this Language menu item from the start (supposing that it >> effectively does what it is supposed to do :-) ). Am I the only one >> to think like that (if this is the case, I could customize my >> contextual menu in Lyx I imagine, I have never tried this? > > I don't think this is possible. The presence and contents of the language > choice sub-menu is computed at run-time based on the currently used languages. > > If this is too smart... I don't know. When going from mono-lingual to > multi-lingual > it's not convenient indeed. But the alternate solutions are not that obvious. > > Stephan I understand, this is not such a big hassle and having a smart list during the edit (after one declared the second language) is very convenient indeed. A very smart choice! :-) Murat -- Prof. Murat Yildizoglu Université Montesquieu Bordeaux IV GREThA (UMR CNRS 5113) Avenue Léon Duguit 33608 Pessac cedex France yi...@u-bordeaux4.fr http://yildizoglu.info http://www.twitter.com/yildizoglu