Commit f8cd9b91 authored by sympa-authors's avatar sympa-authors
Browse files

Change: task titles can now refer to gettext entries


git-svn-id: https://subversion.renater.fr/sympa/trunk@2476 05aa8bb8-cd2b-0410-b1d7-8918dfa770ce
parent 80ce2b74
......@@ -25,7 +25,7 @@ potfile: sympa.pot
pot:
echo "Updating sympa.pot template file..."
cd .. ;\
$(XGETTEXT) -o po/sympa.pot src/*.p? soap/*.p? soap/*.fcgi wwsympa/wwsympa.fcgi wwsympa/*.p? wwsympa/tt2/*.tt2 src/etc/tt2/*.tt2 src/etc/mhonarc-ressources.tt2 src/etc/scenari/*
$(XGETTEXT) -o po/sympa.pot src/*.p? soap/*.p? soap/*.fcgi wwsympa/wwsympa.fcgi wwsympa/*.p? wwsympa/tt2/*.tt2 src/etc/tt2/*.tt2 src/etc/mhonarc-ressources.tt2 src/etc/scenari/* src/etc/global_task_models/* src/etc/list_task_models/*
install: $(MOFILES)
targetdir='$(DESTDIR)$(LOCALEDIR)'; \
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
......@@ -5269,8 +5269,21 @@ sub load_task_list {
next if (defined $list_of_task{$name});
$list_of_task{$name}{'title'} = &List::_load_task_title ($file);
$list_of_task{$name}{'name'} = $name;
my $titles = &List::_load_task_title ($file);
## Set the title in the current language
if (defined $titles->{&Language::GetLang()}) {
$list_of_task{$name}{'title'} = $titles->{&Language::GetLang()};
}elsif (defined $titles->{'gettext'}) {
$list_of_task{$name}{'title'} = gettext( $titles->{'gettext'});
}elsif (defined $titles->{'us'}) {
$list_of_task{$name}{'title'} = gettext( $titles->{'us'});
}else {
$list_of_task{$name}{'title'} = $name;
}
}
}
......
title.fr verification quotidienne des dates d'expiration des certificats ; l'utilisateur est averti quand son certificat a expir ou va expirer d'ici trois jours
title.us daily certificate expiration date checking ; users are warned when their certificate has expired or expires within 3 days
title.et sertifikaadi aegumist kontrollitakse iga pev, kasutajaid hoiatatakse aegumisest 3 peva ette
title.hu hitelestsi bizonylatok lejrsi idejnek napi ellenrzse; a felhasznlkat rtestjk, ha a bizonylatuk lejrt vagy 3 napon bell le fog jrni
title.cz denn kontrola data expirace certifikt ; uivatel jsou varovn pokud jejich certifikt vyprel nebo vypr bhem 3 dn
title.gettext daily certificate expiration date checking ; users are warned when their certificate has expired or expires within 3 days
/ACTION
chk_cert_expiration (certif_warning, [execution_date]+3d)
......
title.fr mise a jour quotidienne des listes de révocation
title.us daily certificate revocation list update
title.et sertifikaatide kehtivuse nimekirja uuendatakse iga päev
title.hu napi frissítése a hitelesítési bizonylatok visszavonásának
title.cz denní aktualizace seznamu revokací certifikátù
title.gettext daily update of the certificate revocation list
/ACTION
update_crl (CA_list, [execution_date]+1d)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment