In the current implementation, all attributes in attribute-folded inline elements or placeholder elements cannot be translated.
Consider this example
<?xml version="1.0" encoding="utf-8"?>
<doc>
<p>
Here I put an image.
<image src="path/to/image.png" alt="This information is important for blind users." />
If the image is not shown, please see the alternative text.
</p>
</doc>
with the following configuration:
[po4a_langs] ja
[po4a_paths] test.pot ja:ja.po
[po4a_alias:spec] xml opt:"-o \"attributes=<image>alt\" -o \"inline=<image>\" -o \"foldattributes\""
[type: spec] test.xml ja:output.xml
In this case, an user usually wants to translate alt attribute and ignore src attribute. In order to do that in the current implementation, the user must give up foldattributes and therefore the message catalogs will be complicated. Same applies to placeholder.
In order to take full advantage of inline, foldattributes and placeholder options to make message catalogs smarter, attributes inside inline and placeholder elements should be able to be translated by specifying attributes option.
In the current implementation, all attributes in attribute-folded inline elements or placeholder elements cannot be translated.
Consider this example
with the following configuration:
In this case, an user usually wants to translate
alt
attribute and ignoresrc
attribute. In order to do that in the current implementation, the user must give upfoldattributes
and therefore the message catalogs will be complicated. Same applies toplaceholder
.In order to take full advantage of
inline
,foldattributes
andplaceholder
options to make message catalogs smarter, attributes inside inline and placeholder elements should be able to be translated by specifyingattributes
option.