summaryrefslogtreecommitdiff
path: root/plugins/pythonconsole
diff options
context:
space:
mode:
authorWu Xiaotian <[email protected]>2019-11-25 16:32:46 +0800
committerraveit65 <[email protected]>2019-12-01 11:39:44 +0100
commitf939df14afd1474d5d0c05d5552fee3af2d481e8 (patch)
tree8f1e3059ecb9f4faca713ae4c837d54f820408b7 /plugins/pythonconsole
parente4bd57fac54005ed7cdcc859989b88bfc3934448 (diff)
downloadpluma-f939df14afd1474d5d0c05d5552fee3af2d481e8.tar.bz2
pluma-f939df14afd1474d5d0c05d5552fee3af2d481e8.tar.xz
Taglist: Load the local translation string from lang.mo file
When using intltool, the taglist creates a big xml file containing the local translation string, so that it has to be compressed. It looks like this: ``` <TagGroup sort="true" name="XHTML 1.0 - Tags"> <Tag name="Abbreviated form"> ... </Tag> <Tag name="..."> ... </Tag> ... </TagGroup> <TagGroup xml:lang="af" sort="true" name="XHTML 1.0 - Tags"> <Tag name="Afgekorte vorm" xml:lang="af"> ... </Tag> <Tag name="..." xml:lang="af"> ... </Tag> ... </TagGroup> <TagGroup xml:lang="..." sort="true" name="XHTML 1.0 - Tags"> </TagGroup> ``` Obviously, it wastes space and download bandwidth. When switch from intltool to gettext, it does not generate a similar huge xml file. It only get the translate string into pot file from the xml file, and the original xml file has not changed. This patch let taglist-plugin read the local translation string directly from the mo file, so that it can work as before. TODO: we need to improve and optimize the taglist plugin code and drop some extra code.
Diffstat (limited to 'plugins/pythonconsole')
0 files changed, 0 insertions, 0 deletions