summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfox <[email protected]>2019-03-01 11:37:31 +0000
committerfox <[email protected]>2019-03-01 11:37:31 +0000
commite5e5c54add240af4a7e7e3f5f432157cd7a5f992 (patch)
treed1c340689731474f9c8fb73e9773cf94d74d03cc
parent4cf4b3cbf9af322fa2af470a446035e555ef6150 (diff)
Update page 'MakingPlugins'
-rw-r--r--MakingPlugins.md3
1 files changed, 3 insertions, 0 deletions
diff --git a/MakingPlugins.md b/MakingPlugins.md
index daf280b..ec27bc2 100644
--- a/MakingPlugins.md
+++ b/MakingPlugins.md
@@ -18,6 +18,9 @@ See ``time_to_read`` plugin for a complete example here: https://git.tt-rss.org/
- Plugin translations are placed in a separate Gettext domain (name equals lowercase plugin class).
- Translation (.po) file in ``(plugin dir)/locale/LANG/`` name should correspond to Gettext domain name.
+
+### Using gettext
+
- On the PHP side, either use ``P__``, ``P__ngettext``, etc. shortcut functions defined in ``classes/pluginhost.php`` or call ``_dgettext`` group of functions directly.
- On the Javascript side, translations are combined together, so you can use the usual ``__()`` shortcut function.