<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><blockquote type="cite"><div><font class="Apple-style-span" color="#000000"><br></font><blockquote type="cite">This is a very strange behavior I've observed in gettext.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">From the tutorial:<br></blockquote><blockquote type="cite">In order to create the initial PO file, run the Makefile in the directory, that the directories that should be processed, i.e where there are code containing ?TXT macros.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">And that's all gettext processes — ?TXT macros. Does it mean that I have to only use ?TXT macros and then go through the code and change them to ?TXT2, ?FTXT etc manually?<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Is there a way to make erlang_gettext process these macros as well?<br></blockquote><br></div></blockquote><br></div><div>Ok, I've gotten to the bottom of this. Sort of...<br><br><br>?TXT2("other string", "en")<br><br>turns into something like<br><br>{call,39,<br>               {remote,39,{atom,39,gettext},{atom,39,key2str}},<br>               [{string,39,"other string"},{string,39,"en"}]}<br><br><br>which somehow doesn't get matched by pt/3 in gettext_compile.erl<br><br>Weird...</div><br></body></html>