% rxgettext gettext_test.erb
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-03-17 17:38+0200\n"
"PO-Revision-Date: 2020-03-17 17:38+0200\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
If the ending tag is changed from '-%>' to '%>' it works:
Message IDs are not picked up by gettext:find / rxgettext if .erb file contains -%> closing tag.
Neither ID is picked up:
Result:
If the ending tag is changed from '-%>' to '%>' it works:
-%> is a valid end tag, and thus it should be allowed. https://api.rubyonrails.org/classes/ActionView/Base.html