[Bf-committers] moving i18n from UI_interface to blenkernel

Bastien Montagne montagne29 at wanadoo.fr
Tue Nov 8 10:36:27 CET 2011


Just talk with sergey about this on IRC. He suggested to move that i18n 
stuff to BLF rather than BKE. But this means we’ll likely have to import 
from BLF in many parts of Blender (nodes, modifiers, RNA, etc.). Would 
it be acceptable?

Le 08/11/2011 10:07, Bastien Montagne a écrit :
> Hi,
>
> A Brecht's commit regarding nodes (41633) broke the i18n process
> (IFACE_(name) works at execution time, but xgettext has no way to find
> the strings to translate).
>
> That is a small glitch indeed, but it raises a problem that we’ll have
> too when it comes to translating messages (BKE_report and co): with this
> commit, I need to use IFACE_ in node_[composite/shader/texture]_tree.c,
> and I don’t think including UI_interface.h here is good!
>
> (We already have an
>       #include "UI_interface.h" /* bad level call into editors */
> in bpy_rna.c...)
>
> Hence, the question: would it be a good idea to move the i18n macros and
> funcs from UI to BKE (e.g. place them into BKE_blender.h)? If so, I’m
> volunteering ;)
>
> Best regards,
> Bastien
> _______________________________________________
> Bf-committers mailing list
> Bf-committers at blender.org
> http://lists.blender.org/mailman/listinfo/bf-committers



More information about the Bf-committers mailing list