<table><tr><td style="">ilic added a comment.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D5455" rel="noreferrer">View Revision</a></tr></table><br /><div><div><p>I guess not bad to mention this stuff, but I would make following adaptations:</p>

<ol class="remarkup-list">
<li class="remarkup-list-item">Move the section as subsection of "Controlling Language Of Catalog to Use", and give it a more focused ( title, e.g. "Placing i18n calls before creation of QCoreApplication".</li>
</ol>

<ol class="remarkup-list" start="2">
<li class="remarkup-list-item">State up front that in general one should avoid making i18n calls before QCoreApplication is crated, in one of two ways: either using statically initialized character arrays wrapped in I18N_* macros for extraction, and later making actual i18n* calls; or, using ki18n* calls to make KLocalizedString instances, that do not perform immediate catalog lookup, and later fetch actual translation throug their toString() methods.</li>
</ol>

<ol class="remarkup-list" start="3">
<li class="remarkup-list-item">Finally the part about setlocale etc, for the case that all of the above is for some reason not applicable. I'm not 100% percent sure that everything will work as expected with this. For example, before QCoreApplication is initialized, what happens with ki18n's internal search for catalogs through standard directory paths...</li>
</ol></div></div><br /><div><strong>REPOSITORY</strong><div><div>R249 KI18n</div></div></div><br /><div><strong>BRANCH</strong><div><div>addNoteAboutGettextLocaleIssuse</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D5455" rel="noreferrer">https://phabricator.kde.org/D5455</a></div></div><br /><div><strong>To: </strong>kossebau, Frameworks, ilic, aacid<br /><strong>Cc: </strong>aacid<br /></div>