diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-11-04 06:46:07 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-11-04 06:49:25 +0300 |
commit | 27103c56b4f520b1b9d49419d8e1a5439b2244b5 (patch) | |
tree | 1e7b710fd7727ab0c724002af0980a3952b31fc2 | |
parent | 3e6907eb8a3d90789f3f30a7b8ffdbe17771a0e8 (diff) |
Versioning: remove use of translations when loading preferences
Add note why translations can't be used while versioning.
-rw-r--r-- | source/blender/blenloader/intern/versioning_userdef.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/source/blender/blenloader/intern/versioning_userdef.c b/source/blender/blenloader/intern/versioning_userdef.c index 3c470a7d3df..9437dadc882 100644 --- a/source/blender/blenloader/intern/versioning_userdef.c +++ b/source/blender/blenloader/intern/versioning_userdef.c @@ -27,8 +27,6 @@ #include "BLI_string.h" #include "BLI_utildefines.h" -#include "BLT_translation.h" - #include "DNA_anim_types.h" #include "DNA_collection_types.h" #include "DNA_curve_types.h" @@ -51,6 +49,16 @@ #include "wm_event_types.h" +/* Don't use translation strings in versioning! + * These depend on the preferences already being read. + * If this is important we can set the translations as part of versioning preferences, + * however that should only be done if there are important use-cases. */ +#if 0 +# include "BLT_translation.h" +#else +# define N_(msgid) msgid +#endif + /* For versioning we only ever want to manipulate preferences passed in. */ #define U BLI_STATIC_ASSERT(false, "Global 'U' not allowed, only use arguments passed in!") |