Skip to content

Fix syntax for gettext its

Anders Jonsson requested to merge ajonsson/recipes:its-fixes into master

At present in the help for recipes, strings like seen below are offered for translation due to a double its:translate="yes" :

#: C/find-recipe.page:44
"You can also do a more narrow search by category. Press the search button "
"<media type=\"image\" mime=\"image/png\" src=\"images/search.png\" its:"
"translate=\"yes\"> <span its:translate=\"yes\">Search</span></media> and "
"down icon <media type=\"image\" mime=\"image/png\" src=\"images/down.png\" "
"its:translate=\"yes\"> <span its:translate=\"yes\">Down</span></media> and "
"choose from one or more categories."

This commit changes the outer tag to "no" which seems to be the intended use.

String offered for translation for the example above after the change:

#: find-recipe.page:44
msgid "You can also do a more narrow search by category. Press the search button <_:media-1/> and down icon <_:media-2/> and choose from one or more categories."

Merge request reports