summaryrefslogtreecommitdiff
path: root/MakingPlugins.md
diff options
context:
space:
mode:
authorfox <[email protected]>2019-03-01 11:34:00 +0000
committerfox <[email protected]>2019-03-01 11:34:00 +0000
commit4cf4b3cbf9af322fa2af470a446035e555ef6150 (patch)
treea857ccabd987e9940fcebac28a268e6486752b15 /MakingPlugins.md
parent8cd3c68934269df205a62daee44cca8fc638ff54 (diff)
Update page 'MakingPlugins'
Diffstat (limited to 'MakingPlugins.md')
-rw-r--r--MakingPlugins.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/MakingPlugins.md b/MakingPlugins.md
index 1b7d001..daf280b 100644
--- a/MakingPlugins.md
+++ b/MakingPlugins.md
@@ -16,7 +16,7 @@ Some example plugins are available in the [samples](https://git.tt-rss.org/git/t
See ``time_to_read`` plugin for a complete example here: https://git.tt-rss.org/fox/ttrss-time-to-read
-- Plugin translations are placed in a separate Gettext domain (name equals to lowercase plugin class).
+- 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.
- 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.