I18N: Revert part of d95486af95 removing check for main thread.

Part of the checks to see if translating a UI string is allowed or not
is that current thread is the main one. This was a requirement years ago
of the Boost backend for translations.

Not sure whether this can be removed or not now, but it needs to be
carefully checked, done it as its own commit, and not in a beta release
branch. ;)

Sorry for the noise, totally missed this during the patch review
yesterday.
This commit is contained in:
Bastien Montagne
2023-06-07 11:31:34 +02:00
parent c51467cd4c
commit 7ceb33e06e

View File

@@ -65,8 +65,7 @@ const char *BLT_pgettext(const char *msgctxt, const char *msgid)
bool BLT_translate(void)
{
#ifdef WITH_INTERNATIONAL
return true;
/* return BLI_thread_is_main(); */
return BLI_thread_is_main();
#else
return false;
#endif