WIthout this additional clause:
-define(TXT(S), gettext:key2str(S)). matchs so a new message is generated in the .po file
-define(TXT2(S, Lang), gettext:key2str(S, Lang)). doesn't match, no message detected
This fix allows us to benefit from the TXT2 macro in order to override the locale during a HTTP request for instance.
WIthout this additional clause:
-define(TXT(S), gettext:key2str(S)).
matchs so a new message is generated in the .po file-define(TXT2(S, Lang), gettext:key2str(S, Lang)).
doesn't match, no message detectedThis fix allows us to benefit from the TXT2 macro in order to override the locale during a HTTP request for instance.
It avoids constructs such as: