Thank you for your help, Ignacio García wrote: > Daniel CLEMENT <daniel.clement <at> prepas.org> writes: [...] > The translation of the theorem related strings in beamer documents don't use > the modules mechanism, so you should not load the modules in .lyx/layouts > folder for beamer documents.
I don't do that. (Well, I tried, but it did not work.) > > Then, as Richard Heck says: > "Here's the good news: LyX 2.0 handles this sort of thing automatically." I'd rather get this working in 1.6.5... > > Yes, but it follows useless for beamer presentation > > Beamer class use automatically the package 'translator' to translate > 'definition' 'example' and the like. Therefore, for translating the beamer > theorem strings into spanish I need one of these ways: > > 1) make a spanish '.dict' file > > 2) adding to the LaTeX preamble commands as they are explained in > http://wiki.lyx.org/LyX/I18nLabels Sure. I'll do that if nothing else works, but as you say, it should not be needed. > > And now it's the strange thing: the package translator provides natively > the french '.dict' file (see /usr/share/texmf-texlive/tex/latex/translator), I confirm the /translator folder is here. The translator-theorem-dictionary-French.dict looks right. The translator package appears to be loaded automatically by the default (Warsaw) Beamer theme. > Then, a french beamer doc should be automatically translated: in fact, > here I open the template file fr_beamer-conference-ornate-20min.lyx > and I view 'corollaire' théorème' in LyX window Indeed in my LyX window it's OK too. So, something has to be working there, at least partially... > and also in pdf output. Too bad! I can't see the translations in preview... (only 'corollary', 'theorem'...). > > Regards > Ignacio G. > When I read this, I had the idea of renaming my ~/.lyx folder. Tried a new French Beamer template and previewed... and bingo! The theorem names were in French. So, something in my ~/.lyx folder interfered with the translations. I think I'll keep the fresh ~/.lyx and carefully restore the settings I need. I'm also pretty confident that it will also solve my second problem (the printed documents, and the solution you described in your April 2009 mail, that I could not get working so far). Regards, -- Daniel CLEMENT
