]> git.lyx.org Git - features.git/commit
Fix logic error in layout translation extraction
authorGeorg Baum <baum@lyx.org>
Thu, 6 Mar 2014 20:42:51 +0000 (21:42 +0100)
committerGeorg Baum <baum@lyx.org>
Thu, 6 Mar 2014 20:42:51 +0000 (21:42 +0100)
commit474e42923be1505a7a1a4ec40048e3a39a498345
treec09159f8e0e6fe40abfeb5fdeb4f2b59dc92fb4a
parentb57eb397315d24d9a393af5245aa4265c17b1dad
Fix logic error in layout translation extraction

lyx_pot.py treats the combination IsPredefined == true and UsesFloatPkg == true
incorrectly: In this case it does not extract the float name, although it needs
to be extracted. This was no problem for LyX 2.0.0, because no layout contained
this combination fo flags. However, the current version of achemso.layout uses
it for several styles, e.g. "List of Schemes".
You only see the bug if you remove lib/layouttranslations before updating it,
otherwise it would be covered by the old translations which are kept. The fix
make use of the fact that IsPredefined == false and UsesFloatPkg == false is
not supported by LyX to simplify the logic.
po/lyx_pot.py