Skip to content

Stop adding the whole sponsor-item shortcode into translation template

Phu Nguyen requested to merge work/sponsor-item-i18n into master
  • By separating opening and closing shortcodes from the shortcode inner, using blank lines, only the shortcode inner will be added to translation template
  • Set which attributes of the shortcode to be translated by adding a block in the config file

For example, currently there is this message

"{{< sponsor-item "
"imageUrl=\"images/pages/EpicMegaGrants_Badge_Dark320_reoLLjw.png\" "
"alt=\"Epic Mega Grants\" >}} Epic supported Krita in 2019 through the [Mega "
"Grants program](https://www.unrealengine.com/en-US/megagrants) with $25,000."
" {{< /sponsor-item >}}"

With this MR's changes, there will be 2 messages in place of that long one

"Epic Mega Grants"

and

"Epic supported Krita in 2019 through the [Mega Grants "
"program](https://www.unrealengine.com/en-US/megagrants) with $25,000."

Merge request reports