[Bf-committers] moving i18n from UI_interface to blenkernel

2011-11-08 Thread Bastien Montagne
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@blender.org
http://lists.blender.org/mailman/listinfo/bf-committers


Re: [Bf-committers] moving i18n from UI_interface to blenkernel

2011-11-08 Thread Bastien Montagne
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@blender.org
> http://lists.blender.org/mailman/listinfo/bf-committers

___
Bf-committers mailing list
Bf-committers@blender.org
http://lists.blender.org/mailman/listinfo/bf-committers