From f75bbe27e23d2f79490aac82666ded1b1574083c Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Fri, 10 Apr 2015 15:31:38 +0200 Subject: Thumbnails: Add translations to font preview. Not much to say, this is pretty straightforward. We just have to add current locale to thumbnails 'signature', so that previews get re-generated when we change locale... Tested with Japanese and French. Btw, I do not really understand why using BLF in ImBuf is badlevel... :/ --- source/blender/imbuf/IMB_thumbs.h | 1 + 1 file changed, 1 insertion(+) (limited to 'source/blender/imbuf/IMB_thumbs.h') diff --git a/source/blender/imbuf/IMB_thumbs.h b/source/blender/imbuf/IMB_thumbs.h index c3350ecdc21..f977a633c57 100644 --- a/source/blender/imbuf/IMB_thumbs.h +++ b/source/blender/imbuf/IMB_thumbs.h @@ -82,6 +82,7 @@ void IMB_thumb_overlay_blend(unsigned int *thumb, int width, int height, float /* special function for previewing fonts */ ImBuf *IMB_thumb_load_font(const char *filename, unsigned int x, unsigned int y); +const char *IMB_thumb_load_font_get_language(void); #ifdef __cplusplus } -- cgit v1.2.3