<div dir="ltr"><div dir="ltr"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>On Wed, 26 Jun 2019 at 11:08, Egmont Koblinger <<a href="mailto:egmont@gmail.com">egmont@gmail.com</a>> wrote:<br></div></div></div></div></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">The problem is not caused by the specification, the problem is caused<br>
by the way xgettext generates these files. The problem can be fixed<br>
solely within xgettext, without altering the spec. I don't really see<br>
it justified to remove the functionality from the spec (and<br>
accordingly, implementations that handle these files and display the<br>
icon towards users).<br></blockquote><div><br></div><div>I re-read the spec and the spec actually is wrong. It says (emphasis mine):</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Values of type localestring are <b>user displayable</b>, and are encoded in UTF-8.</blockquote><div class="gmail_quote"><br></div>Icon and other keys are defined to be of type localestring. By a literal reading of this specification, xgettext's behaviour is correct. But the spec is wrong: icon names are not user displayable. </div><div class="gmail_quote"> <br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">If the conclusion is to alter the spec then the following work needs to be done:<br>
1. Change the spec<br></blockquote><div><br></div><div>Here is a MR which defines a new iconstring type, adjusts all the icon keys to use it, and adds a note that iconstrings should not be extracted by human-readable string translation tools: <a href="https://gitlab.freedesktop.org/xdg/xdg-specs/merge_requests/3">https://gitlab.freedesktop.org/xdg/xdg-specs/merge_requests/3</a><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
2. Change xgettext<br></blockquote><div><br></div><div>I have already attached a patch to do this to <a href="https://savannah.gnu.org/bugs/index.php?56543">https://savannah.gnu.org/bugs/index.php?56543</a>.<br>  <br class="gmail-Apple-interchange-newline"></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
4. Change GNOME, KDE etc. not to recognize these localized entries<br></blockquote><div><br></div><div> Tools that just consume .desktop files do not need any changes: they can continue to respect icon localizations if present. <br></div><div><br></div><div>– Will</div></div></div>