diff options
author | Wu Xiaotian <[email protected]> | 2019-11-25 16:32:46 +0800 |
---|---|---|
committer | raveit65 <[email protected]> | 2019-12-01 11:39:44 +0100 |
commit | f939df14afd1474d5d0c05d5552fee3af2d481e8 (patch) | |
tree | 8f1e3059ecb9f4faca713ae4c837d54f820408b7 /configure.ac | |
parent | e4bd57fac54005ed7cdcc859989b88bfc3934448 (diff) | |
download | pluma-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 'configure.ac')
0 files changed, 0 insertions, 0 deletions