diff options
author | Joey Hess <joey@gnu.kitenet.net> | 2010-02-14 17:25:30 -0500 |
---|---|---|
committer | Joey Hess <joey@gnu.kitenet.net> | 2010-02-14 18:09:12 -0500 |
commit | f1183cbf0c9c09725192dcc8384381f9112ae222 (patch) | |
tree | 7a7839af53f3076245b0c8fd898b105f3bb1fdb6 /doc | |
parent | 6fc25c8df79c4ce9afde256be5d377ee82562c31 (diff) | |
download | ikiwiki-f1183cbf0c9c09725192dcc8384381f9112ae222.tar ikiwiki-f1183cbf0c9c09725192dcc8384381f9112ae222.tar.gz |
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.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/plugins/write.mdwn | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/plugins/write.mdwn b/doc/plugins/write.mdwn index a8c9de2d3..96a2aa16d 100644 --- a/doc/plugins/write.mdwn +++ b/doc/plugins/write.mdwn @@ -911,6 +911,10 @@ time. This is the standard gettext function, although slightly optimised. +### `ngettext` + +This is the standard ngettext function, although slightly optimised. + ### `urlto($$;$)` Construct a relative url to the first parameter from the page named by the |