From: Joey Hess Date: Sun, 14 Feb 2010 22:25:30 +0000 (-0500) Subject: add ngettext support & optimize gettext handling X-Git-Tag: 3.20100302~35 X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/commitdiff_plain/f1183cbf0c9c09725192dcc8384381f9112ae222?ds=sidebyside;hp=f1183cbf0c9c09725192dcc8384381f9112ae222 add ngettext support & optimize gettext handling As I was adding ngettext support, I realized I could optimize the gettext functions by memoizing the creation of the gettext object. Note that the object creation is still deferred until a gettext function is called, to avoid unnecessary startup penalties on code paths that do not need gettext. A side benefit is that separate stub functions are no longer needed to handle the C language case. ---