From 273ad083790cbd3cc83aeda5e35334795a7db7e2 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 5 Mar 2019 10:24:32 +0300 Subject: switch to base plugin gettext methods --- init.php | 6 +++--- update-translations.sh | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) mode change 100644 => 100755 init.php diff --git a/init.php b/init.php old mode 100644 new mode 100755 index 33224f3..bdf5df1 --- a/init.php +++ b/init.php @@ -26,13 +26,13 @@ class Time_to_Read extends Plugin { return 2; } - /*function hook_prefs_tab($args) { + function hook_prefs_tab($args) { if ($args != "prefPrefs") return; print "
photo ".P__($this, 'Test-Test')."\">"; + title=\"photo ".$this->__('Test-Test')."\">"; print "
"; - }*/ + } } diff --git a/update-translations.sh b/update-translations.sh index 7584d36..c653f90 100755 --- a/update-translations.sh +++ b/update-translations.sh @@ -1,7 +1,7 @@ #!/bin/sh TEMPLATE=time_to_read.pot -xgettext -kP__:2 -L PHP -o $TEMPLATE *.php +xgettext -k__ -L PHP -o $TEMPLATE *.php xgettext -k__ -L Java -j -o $TEMPLATE *.js update_lang() { -- cgit v1.2.3