<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></head><body style='font-size: 10pt; font-family: Verdana,Geneva,sans-serif'>
<p>As a translator I have always found it weird that something like (3) was not used. I feel like (2) still has some of the same issues as (1).</p>
<p id="reply-intro">On 2023-06-13 12:14, Frederik Schwarzer wrote:</p>
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0">
<div class="pre" style="margin: 0; padding: 0; font-family: monospace">Hi,<br /><br />from a developer's point of view, what would be the best approach for file types in type selectors in file dialogs?<br /><br />1) Have them translatable:<br /> i18n("All supported files (*.po *.pot *.xlf *.xliff *.ts)")<br /><br />2) Have them mentioned:<br /> i18n("All supported files (%1)", "*.po *.pot *.xlf *.xliff *.ts")<br /><br />3) Hide them completely from translators:<br /> i18n("All supported files", " (*.po *.pot *.xlf *.xliff *.ts)")<br /><br />Currently I see a lot of 1) but am thinking about using 2) since it seems to reduce translation work and is also less prone to errors (translator getting the extensions wrong).<br /><br />Note that in the dialog, the user only sees the "All supported files" string, so one could even argue that the rest is not a user-visible string ... But that could as well be only on my system or it might change in the future.<br /><br />Anyway, is there a problem with 2) that I am currently missing?<br /><br />Thanks.<br /><br />Cheers,<br />Frederik<br /><br /><br /></div>
</blockquote>
<p><br /></p>
</body></html>