]> git.lyx.org Git - features.git/commit
Make sure that the new caching mechanism for flattened labels respects languages.
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Sun, 12 Jul 2009 20:09:53 +0000 (20:09 +0000)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Sun, 12 Jul 2009 20:09:53 +0000 (20:09 +0000)
commite9d19b82d492c1cce34e5c2be453f56bb0e33c30
treea4b650c6aee27c49c41496239f632f788ad4d3ce
parentf1edcc0fe276c7c55934e56190830f64e5fcf8bc
Make sure that the new caching mechanism for flattened labels respects languages.

 * Counters.cpp (flatLabelString): return a cache of the flattened strings for each used language
 * Counters.cpp (theCounter, counterLabel, flattenLabelString): add a lang parameter; in theCounter, populate the cache as needed.

 * insets/InsetCaption.cpp:
 * insets/InsetFoot.cpp:
 * insets/InsetBibitem.cpp:
 * insets/InsetCollapsable.cpp:
 * Paragraph.cpp:
 * Buffer.cpp: pass a language argument to counter methods.

 * Paragraph.cpp (translateIfPossible): use the function with same name in gettext.cpp.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30520 a592a061-630c-0410-9148-cb99ea01b6c8
src/Buffer.cpp
src/Counters.cpp
src/Counters.h
src/Paragraph.cpp
src/insets/InsetBibitem.cpp
src/insets/InsetCaption.cpp
src/insets/InsetCollapsable.cpp
src/insets/InsetFoot.cpp