]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commitdiff
add ngettext support & optimize gettext handling
authorJoey Hess <joey@gnu.kitenet.net>
Sun, 14 Feb 2010 22:25:30 +0000 (17:25 -0500)
committerJoey Hess <joey@gnu.kitenet.net>
Sun, 14 Feb 2010 23:09:12 +0000 (18:09 -0500)
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.


No differences found