[vlc-devel] purpose of N_()

Antoine Cellerier dionoea at videolan.org
Wed Mar 26 11:29:06 CET 2008


On Tue, Mar 25, 2008, Michael [Plouj] Ploujnikov wrote:
> I'm wondering what is the meaning of the N_() macro defined in
> include/vlc_common.h. After some searching I came across a page which
> said that in glib it is used to mark strings that should be translated
> but can't be used directly once translated:
> http://library.gnome.org/devel/glib/stable/glib-I18N.html
> Is this how it is meant to be used in the VLC code?
> Is modules/gui/wxwidgets/dialogs/bookmarks.cpp using N_() according to
> this principle?

Yes.

N_() is to mark strings as translatable without adding the translation
code (to make sure that they're in the vlc.pot file).
_() is to translate a string.

(Btw, the wx interface has been deprecated in the dev version)

Regards,

-- 
Antoine Cellerier
dionoea



More information about the vlc-devel mailing list