From 3092e1031d2194e9d6fcc8f157a6e0fcb5d1e45a Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Tue, 9 Jun 2015 14:57:29 +0200 Subject: Fix T45003: some UI/i18n issues. * Do not translate renderlayers' names, those are data, not UI (defined by user). * Translate passes' names, even in button itself (menu items were already translated). * Translate 'ID type' in ID eyedropper helper message. Also, added i18n context to IDType private struct, and `BKE_idcode_to_translation_context()` helper, much more generic and easy to maintain than the private util in interface_template.c. --- source/blender/blenkernel/BKE_idcode.h | 1 + 1 file changed, 1 insertion(+) (limited to 'source/blender/blenkernel/BKE_idcode.h') diff --git a/source/blender/blenkernel/BKE_idcode.h b/source/blender/blenkernel/BKE_idcode.h index 10a34838662..420df77ff1e 100644 --- a/source/blender/blenkernel/BKE_idcode.h +++ b/source/blender/blenkernel/BKE_idcode.h @@ -34,6 +34,7 @@ const char *BKE_idcode_to_name(int code); const char *BKE_idcode_to_name_plural(int code); +const char *BKE_idcode_to_translation_context(int code); int BKE_idcode_from_name(const char *name); bool BKE_idcode_is_linkable(int code); bool BKE_idcode_is_valid(int code); -- cgit v1.2.3