diff options
author | Campbell Barton <ideasman42@gmail.com> | 2015-05-19 04:34:52 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-05-19 04:38:07 +0300 |
commit | 183b6437744f69bbeadf503f791f763f3c7c4a6f (patch) | |
tree | 8729ff645a7a4a9924552b9ab14836a4bfcaa590 /source/blender/blenfont/intern | |
parent | 65328fadc3c63c73d5c2e2e977de3dad5bd74219 (diff) |
Building without Python works again
Diffstat (limited to 'source/blender/blenfont/intern')
-rw-r--r-- | source/blender/blenfont/intern/blf_translation.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/blenfont/intern/blf_translation.c b/source/blender/blenfont/intern/blf_translation.c index 25464864657..5d828d9b7be 100644 --- a/source/blender/blenfont/intern/blf_translation.c +++ b/source/blender/blenfont/intern/blf_translation.c @@ -46,7 +46,9 @@ #include "DNA_userdef_types.h" /* For user settings. */ +#ifdef WITH_PYTHON #include "BPY_extern.h" +#endif #ifdef WITH_INTERNATIONAL @@ -152,9 +154,11 @@ const char *BLF_pgettext(const char *msgctxt, const char *msgid) /* We assume if the returned string is the same (memory level) as the msgid, no translation was found, * and we can try py scripts' ones! */ +#ifdef WITH_PYTHON if (ret == msgid) { ret = BPY_app_translations_py_pgettext(msgctxt, msgid); } +#endif } return ret; |