mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 09:05:55 +00:00
update notify_* calls to use Notify
This commit is contained in:
@@ -5,7 +5,7 @@ use strict;
|
||||
while (<STDIN>) {
|
||||
chomp;
|
||||
|
||||
if (/(__|notify_progress|notify|notify_info|notify_error)\(['"](.*?)['"]\)/) {
|
||||
if (/(__|Notify.progress|Notify.msg|Notify.info|Notify.error)\(['"](.*?)['"]\)/) {
|
||||
my $msg = $2;
|
||||
|
||||
$msg =~ s/\"/\\\"/g;
|
||||
|
||||
@@ -3,9 +3,9 @@ TEMPLATE=messages.pot
|
||||
|
||||
xgettext -kT_js_decl -kT_sprintf -k_ngettext:1,2 -kT_ngettext:1,2 -k__ -L PHP -o $TEMPLATE *.php include/*.php `find classes -iname '*.php'` `find plugins -iname '*.php'`
|
||||
|
||||
xgettext --from-code utf-8 -k__ -knotify_info -knotify_progress -kngettext -L Perl -j -o $TEMPLATE js/*.js `find plugins -iname '*.js'`
|
||||
xgettext --from-code utf-8 -k__ -kNotify.info -kNotify.error -kNotify.progress -kngettext -L Perl -j -o $TEMPLATE js/*.js `find plugins -iname '*.js'`
|
||||
|
||||
xgettext --from-code utf-8 -k__ -knotify_info -knotify_progress -kngettext -L Java -j -o $TEMPLATE js/*.js `find plugins -iname '*.js'`
|
||||
xgettext --from-code utf-8 -k__ -kNotify.info -kNotify.error -kNotify.progress -kngettext -L Java -j -o $TEMPLATE js/*.js `find plugins -iname '*.js'`
|
||||
|
||||
update_lang() {
|
||||
if [ -f $1.po ]; then
|
||||
|
||||
Reference in New Issue
Block a user