Commit c67069d2 authored by IKEDA Soji's avatar IKEDA Soji
Browse files

Refactoring: All messages responded from qeauest will be gathered into report.tt2

parent 76cf54cc
......@@ -353,6 +353,7 @@ nobase_default_DATA = \
mail_tt2/remind.tt2 \
mail_tt2/removed.tt2 \
mail_tt2/request_auth.tt2 \
mail_tt2/report.tt2 \
mail_tt2/review.tt2 \
mail_tt2/send_auth.tt2 \
mail_tt2/sendpasswd.tt2 \
......@@ -406,5 +407,7 @@ install-data-hook:
$(LN_S) -f lists.tt2 search_list.tt2; \
rm -f authorization_reject.tt2; \
$(LN_S) -f ../mail_tt2/authorization_reject.tt2; \
rm -f report.tt2; \
$(LN_S) -f ../mail_tt2/report.tt2; \
test -f css_ie.tt2 || echo '' >> css_ie.tt2
[%#################################-%]
[%#### REJECTED AUTHORIZATION #####-%]
[%#################################-%]
[% IF reason == 'mail_archive_closed' -%]
[%|loc()%]Archives are closed.[%END%]
[% ELSIF reason == 'mail_archive_owner' -%]
[%|loc()%]Archives are restricted to list owners.[%END%]
[% ELSIF reason == 'mail_archive_subscriber' -%]
[%|loc()%]Archives are restricted to list subscribers.[%END%]
[%|loc()%]If you are subscribed to the list with a different email address, you should either use that other email address or update your list membership with the new email address.[%END%]
[% ELSIF reason == 'web_archive_closed' -%]
[%|loc()%]Web archives are closed.[%END%]
[% ELSIF reason == 'web_archive_local_user_sub' -%]
[%|loc()%]Web archives are restricted to list subscribers and local domain users.[%END%]
[%|loc()%]If you are subscribed to the list with a different email address, you should either use that other email address or update your list membership with the new email address.[%END%]
[% ELSIF reason == 'web_archive_listmaster' -%]
[%|loc()%]Web archives are restricted to listmaster.[%END%]
[% ELSIF reason == 'web_archive_owner' -%]
[%|loc()%]Web archives are restricted to list owners.[%END%]
[% ELSIF reason == 'web_archive_subscriber' -%]
[%|loc()%]Web archives are restricted to list subscribers.[%END%]
[%|loc()%]If you are subscribed to the list with a different email address, you should either use that other email address or update your list membership with the new email address.[%END%]
[% ELSIF reason == 'add_owner' -%]
[%|loc()%]Adding a user to the list is restricted to list owners.[%END%]
[% ELSIF reason == 'add_closed' -%]
[%|loc()%]Adding a user to the list is not allowed.[%END%]
[% ELSIF reason == 'create_list_local_user' -%]
[%|loc()%]List creation is restricted to local domain users.[%END%]
[% ELSIF reason == 'create_list_listmaster' -%]
[%|loc()%]List creation is restricted to listmaster.[%END%]
[% ELSIF reason == 'd_edit_subscriber' -%]
[%|loc()%]Shared document edition is restricted to list subscribers.[%END%]
[%|loc()%]If you are subscribed to the list with a different email address, you should either use that other email address or update your list membership with the new email address.[%END%]
[% ELSIF reason == 'd_edit_owner' -%]
[%|loc()%]Shared document edition is restricted to list owners.[%END%]
[% ELSIF reason == 'd_edit_subscriber_https' -%]
[%|loc()%]Shared document edition is restricted to list subscribers authenticated with user certificate.[%END%]
[%|loc()%]If you are subscribed to the list with a different email address, you should either use that other email address or update your list membership with the new email address.[%END%]
[% ELSIF reason == 'del_owner' -%]
[%|loc()%]Deleting a user from the list is restricted to list owners.[%END%]
[% ELSIF reason == 'del_closed' -%]
[%|loc()%]It is not possible to delete a user from the list.[%END%]
[% ELSIF reason == 'd_read_owner' -%]
[%|loc()%]Shared document reading is restricted to list owners.[%END%]
[% ELSIF reason == 'd_read_subscriber' -%]
[%|loc()%]Shared document reading is restricted to list subscribers.[%END%]
[%|loc()%]If you are subscribed to the list with a different email address, you should either use that other email address or update your list membership with the new email address.[%END%]
[% ELSIF reason == 'd_read_subscriber_https' -%]
[%|loc()%]Shared document reading is restricted to list subscribers authenticated with user certificate.[%END%]
[% ELSIF reason == 'edit_list_closed' -%]
[%|loc()%]you are not allowed to edit list parameters.[%END%]
[% ELSIF reason == 'edit_list_owner' -%]
[%|loc()%]List parameter editing is restricted to list owners.[%END%]
[% ELSIF reason == 'global_remind_listmaster' -%]
[%|loc()%]The 'global remind' feature is restricted to listmaster.[%END%]
[% ELSIF reason == 'info_subscriber' -%]
[%|loc()%]List information is restricted to list subscribers.[%END%]
[%|loc()%]If you are subscribed to the list with a different email address, you should either use that other email address or update your list membership with the new email address.[%END%]
[% ELSIF reason == 'invite_closed' -%]
[%|loc()%]The 'invite' feature is unavailable.[%END%]
[% ELSIF reason == 'invite_owner' -%]
[%|loc()%]The 'invite' feature is restricted to list owners.[%END%]
[% ELSIF reason == 'invite_subscriber' -%]
[%|loc()%]The 'invite' feature is restricted to list subscribers.[%END%]
[%|loc()%]If you are subscribed to the list with a different email address, you should either use that other email address or update your list membership with the new email address.[%END%]
[% ELSIF reason == 'remind_listmaster' -%]
[%|loc()%]The 'remind' feature is restricted to listmaster.[%END%]
[% ELSIF reason == 'remind_owner' -%]
[%|loc()%]The 'remind' feature is restricted to list owners.[%END%]
[% ELSIF reason == 'review_closed' -%]
[%|loc()%]The 'review' feature is unavailable.[%END%]
[% ELSIF reason == 'review_local_user_sub' -%]
[%|loc()%]The 'review' feature is restricted to list subscribers and local domain users.[%END%]
[%|loc()%]If you are subscribed to the list with a different email address, you should either use that other email address or update your list membership with the new email address.[%END%]
[% ELSIF reason == 'review_listmaster' -%]
[%|loc()%]The 'review' feature is restricted to listmaster.[%END%]
[% ELSIF reason == 'review_owner' -%]
[%|loc()%]The 'review' feature is restricted to list owners.[%END%]
[% ELSIF reason == 'review_subscriber' -%]
[%|loc()%]The 'review' feature is restricted to list subscribers.[%END%]
[%|loc()%]If you are subscribed to the list with a different email address, you should either use that other email address or update your list membership with the new email address.[%END%]
[% ELSIF reason == 'send_closed' -%]
[%|loc()%]Message distribution in this list is not allowed.[%END%]
[% ELSIF reason == 'send_local_user' -%]
[%|loc()%]Message distribution in the list is restricted to local domain users.[%END%]
[% ELSIF reason == 'send_local_user_sub' -%]
[%|loc()%]Message distribution for this list is restricted to list subscribers and local domain users.[%END%]
[%|loc()%]If you are subscribed to the list with a different email address, you should either use that other email address or update your list membership with the new email address.[%END%]
[% ELSIF reason == 'send_editor' -%]
[%|loc()%]Message distribution for this list is restricted to list moderators.[%END%]
[% ELSIF reason == 'send_multipart' -%]
[%|loc()%]Multipart messages are not allowed in this list.[%END%]
[% ELSIF reason == 'send_subscriber' -%]
[%|loc()%]Message distribution in the list is restricted to list subscribers.[%END%]
[%|loc()%]If you are subscribed to the list with a different email address, you should either use that other email address or update your list membership with the new email address.[%END%]
[% ELSIF reason == 'send_subscriber_smime' -%]
[%|loc()%]Message distribution for this list is restricted to list subscribers check S/MIME signature.[%END%]
[%|loc()%]If you are subscribed to the list with a different email address, you should either use that other email address or update your list membership with the new email address.[%END%]
[% ELSIF reason == 'subscribe_closed' -%]
[%|loc()%]You are not allowed to subscribe to this list.[%END%]
[% ELSIF reason == 'subscribe_local_user' -%]
[%|loc()%]Subscription to this list is restricted to local domain users.[%END%]
[% ELSIF reason == 'subscribe_smime' -%]
[%|loc()%]Subscription to this list requires S/MIME signature.[%END%]
[% ELSIF reason == 'topic_listmaster' -%]
[%|loc()%]Topics visibility is restricted to listmaster.[%END%]
[% ELSIF reason == 'topic_identified' -%]
[%|loc()%]Topics visibility is restricted to identified users.[%END%]
[% ELSIF reason == 'unsub_closed' -%]
[%|loc()%]It is not possible to unsubscribe from this list.[%END%]
[% ELSIF reason == 'list_private_no_archive' -%]
[%|loc%]List is private: You can not read the archives.[%END%]
[% ELSIF reason == 'list_private_no_browse' -%]
[%|loc%]List is private: You can not browse available files.[%END%]
[% ELSIF reason == 'restricted_modindex' -%]
[%|loc%]The MODINDEX command is restricted to moderators.[%END%]
[% ELSIF reason == 'action_owner_or_editor' -%]
[%|loc%]This action is restricted to list owners or moderators.[%END%]
[% ELSIF reason == 'action_editor' -%]
[%|loc%]This action is restricted to moderators.[%END%]
[% ELSIF reason == 'action_owner' -%]
[%|loc%]This action is restricted to list owners.[%END%]
[% ELSIF reason == 'action_listmaster' -%]
[%|loc%]This action is restricted to listmasters.[%END%]
[% ELSIF reason == 'action_listmaster_or_owner' -%]
[%|loc%]This action is restricted to listmasters or list owners.[%END%]
[% ELSIF reason == 'action_listmaster_or_privileged_owner' -%]
[%|loc%]This action is restricted to listmasters or privileged list owners.[%END%]
[% ELSIF reason == 'action_listmaster_or_privileged_owner_or_author' -%]
[%|loc%]This action is restricted to document author, listmasters or privileged list owners.[%END%]
[% ELSIF reason == 'action_privileged_owner' -%]
[%|loc%]This action is restricted to privileged list owners.[%END%]
[% ELSIF reason == 'edit_right' -%]
[%|loc(role,right)%]Right on this action is '%2' for a '%1'.[%END%]
[% ELSIF reason == 'not_authenticated' -%]
[%|loc(role,right)%]You need to login.[%END%]
[% ELSIF reason == 'edit_moderated' -%]
[%|loc(role,right)%]This action is impossible because editing is a moderated function.[%END%]
[% ELSIF reason == 'dir_edit_moderated' -%]
[%|loc(role,right)%]This action is impossible for directories because editing is a moderated function.[%END%]
[% ELSIF reason == 'list-no-open' -%]
[%|loc%]The list is closed.[%END%]
[% ELSE -%]
[%|loc%]you are not allowed to perform this action.[%END%]
[%- END -%]
[%# authorization_reject.tt2 ~%]
[%# As of 6.2.19b, this template will no longer be used. It is left for
compatibility. ~%]
[% PROCESS report.tt2
report_type='auth'
report_entry=reason
%]
[%# end authorization_reject.tt2 ~%]
......@@ -22,46 +22,19 @@ X-Loop: [% conf.email %]@[% conf.host %]
[%~ END -%]
> [% notice.entry %]
[% IF notice.entry == 'smime' -%]
[%|loc%]Your message signature was successfully verified using S/MIME.[%END%]
[% ELSIF notice.entry == 'dkim' -%]
[%|loc%]Your message contain a DKIM signature. It was succesfully verified[%END%]
[% ELSIF notice.entry == 'sent_to_owner' -%]
[%|loc%]Your request to subscribe/unsubscribe has been forwarded to the list's owners for approval. You will receive a notification when you have been subscribed (or unsubscribed) to the list.[%END-%]
[% ELSIF notice.entry == 'sent_to_user' -%]
[%|loc%]To confirm your identity and prevent anyone from subscribing you to this list against your will, a message containing an validation link was sent to the e-mail address you provided.[%END%]
[% ELSIF notice.entry == 'updated_info' -%]
[%|loc(notice.email,notice.listname)%]Information regarding user %1 has been updated for list %2.[%END%]
[% ELSIF notice.entry == 'now_subscriber' -%]
[%|loc(notice.email,notice.listname)%]User %1 is now subscriber of list %2.[%END%]
[% ELSIF notice.entry == 'invite' -%]
[%|loc(notice.email,notice.listname)%]User %1 has been invited to subscribe in list %2.[%END%]
[% ELSIF notice.entry == 'remind' -%]
[%|loc(notice.total,notice.listname)%]Subscription reminder sent to each of %1 %2 subscribers.[%END%]
[% ELSIF notice.entry == 'glob_remind' -%]
[%|loc(notice.count)%]The Reminder has been sent to %1 users.[%END%]
[% ELSIF notice.entry == 'removed' -%]
[%|loc(notice.email,notice.listname)%]The user %1 has been removed from the list %2.[%END%]
[% ELSIF notice.entry == 'config_updated' -%]
[%|loc(notice.listname)%]Your configuration regarding list %1 has been updated.[%END%]
[% ELSIF notice.entry == 'finished' -%]
[%|loc(notice.cmd)%]Command '%1' found: ignoring end of message.[%END%]
[% ELSIF notice.entry == 'no_message_to_moderate' -%]
[%|loc(notice.listname)%]There is no message to moderate for list '%1'.[%END%]
[% notice_msg = BLOCK ~%]
[% PROCESS report.tt2
report_type='notice'
report_entry=notice.entry
report_param=notice
%]
[%~ END ~%]
[% IF notice_msg.match('\S') ~%]
[% notice_msg %]
[%~ ELSE ~%]
[% notice.entry %]
[%~ END %]
[% END -%]
[% END -%]
[% END -%]
[%#####################-%]
......@@ -85,7 +58,10 @@ X-Loop: [% conf.email %]@[% conf.host %]
[% auth.cmd %]
[%~ END -%]
[% SET reason = auth.entry -%] [% PROCESS authorization_reject.tt2 -%]
[% PROCESS report.tt2
report_type='auth'
report_entry=auth.entry
%]
[% END -%]
[% END -%]
[%################-%]
......@@ -109,94 +85,19 @@ X-Loop: [% conf.email %]@[% conf.host %]
[% u_err.cmd %]
[%~ END -%]
[% IF u_err.entry == 'unknown_action' -%]
[%|loc%]Command not understood: ignoring end of message.[%END%]
[% ELSIF u_err.entry == 'no_verify_sign' -%]
[%|loc%]Your message was not a multipart/signed message or Sympa could not verify the signature (be aware that Sympa can't check signature if you use the subject header to write a command).[%END-%]
[% ELSIF u_err.entry == 'syntax_errors' -%]
[%|loc%]Command syntax error.[%END%]
[% ELSIF u_err.entry == 'unknown_list' -%]
[%|loc(u_err.listname)%]List '%1' does not exist.[%END%]
[% ELSIF u_err.entry == 'no_subscriber_preference' -%]
[%|loc(u_err.listname)%]%1 mailing list does not provide subscriber preferences.[%END%]
[% ELSIF u_err.entry == 'not_subscriber' -%]
[%|loc(u_err.email,u_err.listname)%]Your e-mail address %1 has not been found in the list %2. Maybe you subscribed from a different e-mail address?[%END-%]
[% ELSIF u_err.entry == 'user_not_subscriber' -%]
[%|loc(u_err.email,u_err.listname)%]E-mail address %1 has not been found in the list %2.[%END%]
[% ELSIF u_err.entry == 'no_digest' -%]
[%|loc(u_err.listname)%]List %1 does not accept the DIGEST mode.
Your configuration regarding this command has not been updated.[%END-%]
[% ELSIF u_err.entry == 'not_available_reception_mode' -%]
[%|loc(u_err.listname)%]List %1 allows only these reception modes: [%END -%]
[%- FOREACH m = u_err.reception_modes -%]
[%- IF loop.size >= 2 && loop.count == loop.size -%]
[%|loc%], and [%END%][%|optdesc('reception',1)%][% m %][%END-%]
[%- ELSIF loop.count > 1 -%]
[%|loc%], [%END%][%|optdesc('reception',1)%][% m %][%END-%]
[%- ELSE -%]
[%|optdesc('reception',1)%][% m %][%END-%]
[%- END -%]
[%- END -%]
[% ELSIF u_err.entry == 'empty_archives' -%]
[%|loc()%]This list archive is empty.[%END%]
[% ELSIF u_err.entry == 'no_required_file' -%]
[%|loc%]Required file does not exist.[%END%]
[% ELSIF u_err.entry == 'no_subscriber' -%]
[%|loc(u_err.listname)%]List %1 has no subscriber.[%END%]
[% ELSIF u_err.entry == 'already_subscriber' -%]
[%|loc(u_err.email,u_err.listname)%]The User '%1' is already subscriber of list '%2'.[%END%]
[% ELSIF u_err.entry == 'list_not_open' -%]
[%~ statdesc = BLOCK %][% u_err.status | optdesc('status') %][%END -%]
[%|loc(statdesc)%]Service unavailable because list status is '%1'[%END%]
[% ELSIF u_err.entry == 'max_list_members_exceeded' -%]
[%|loc(u_err.email,u_err.listname,u_err.max_list_members)%]Unable to add user '%1' in list '%2'. Attempt to exceed the max number of members (%3) for this list.[%END%]
[% ELSIF u_err.entry == 'wrong_email_confirm' -%]
[% IF u_err.command == 'subscribe' -%]
[%|loc%]The authentication process failed. You probably confirmed your subscription using a different email address. Please try using your canonical address.[%END-%]
[% ELSIF u_err.command == 'signoff' -%]
[%|loc%]The authentication process failed. You probably confirmed your unsubscription using a different email address. Please try using your canonical address.[%END-%]
[% ELSIF u_err.command == 'add' -%]
[%|loc%]The authentication process failed. You probably confirmed your addition using a different email address. Please try using your canonical address.[%END-%]
[% ELSIF u_err.command == 'invite' -%]
[%|loc%]The authentication process failed. You probably confirmed your invitation using a different email address. Please try using your canonical address.[%END-%]
[% ELSIF u_err.command == 'del' -%]
[%|loc%]The authentication process failed. You probably confirmed your deletion using a different email address. Please try using your canonical address.[%END-%]
[% ELSIF u_err.command == 'remind' -%]
[%|loc%]The authentication process failed. You probably confirmed your request of subscription reminder using a different email address. Please try using your canonical address.[%END-%]
[% ELSIF u_err.command == 'global_remind' -%]
[%|loc%]The authentication process failed. You probably confirmed your request of subscription reminder using a different email address. Please try using your canonical address.[%END-%]
[% ELSE -%]
[%|loc(u_err.command)%]The authentication process failed. You probably confirmed your "%1" command using a different email address. Please try using your canonical address.[%END-%]
[% END -%]
[% error_msg = BLOCK ~%]
[% PROCESS report.tt2
report_type='user'
report_entry=u_err.entry
report_param=u_err
%]
[%~ END ~%]
[% IF error_msg.match('\S') ~%]
[% error_msg %]
[%~ ELSE ~%]
[% u_err.entry %]
[%~ END %]
[% ELSIF u_err.entry == 'already_moderated' -%]
[%|loc(u_err.listname,u_err.key)%]Unable to access the message on list %1 with key %2.
Warning: this message may already have been sent by one of the list's editor.[%END%]
[% ELSIF u_err.entry == 'already_confirmed' -%]
[%|loc(u_err.key)%]Unable to access the message authenticated with key %1. The message may already been confirmed.[%END%]
[% ELSIF u_err.entry == 'no_lists' -%]
[%|loc%]No lists available.[%END%]
[% ELSE %]
[% u_err.entry %]
[% END -%]
[% END -%]
[% END -%]
[%###################-%]
......
......@@ -105,7 +105,10 @@ Note, however, that many viruses fake sender's e-mail address, so it is possible
[%|loc(list.name)%]Your message for list '%1' (attached below) was rejected.
You are not allowed to send this message for the following reason:[%END%]
[% PROCESS authorization_reject.tt2 -%]
[% PROCESS report.tt2
report_type='auth'
report_entry=reason
-%]
[%|loc(list.name,list.host)%]For further information, please contact %1-request@%2[%END%]
......
This diff is collapsed.
......@@ -52,6 +52,13 @@
<p><strong>
[%|loc%]Do you really want this action to be taken?[%END%]
</strong></p>
[%~ ELSIF confirm_action == 'auto_signoff' ~%]
<h2><i class="fa fa-check-circle"></i>
[%|loc%]Unsubscribe[%END%]
</h2>
<p><strong>
[%|loc(list)%]Do you really want to unsubscribe from list %1?[%END%]
</strong></p>
[%~ ELSIF confirm_action == 'close_list' ~%]
<h2><i class="fa fa-check-circle"></i>
[%|loc%]Remove List[%END%]
......@@ -206,6 +213,8 @@
[% FOREACH i = id ~%]
<input type="hidden" name="id" value="[% i %]" />
[%~ END %]
[%~ ELSIF confirm_action == 'auto_signoff' ~%]
<input type="hidden" name="email" value="[% email %]" />
[%~ ELSIF confirm_action == 'del' ~%]
[% FOREACH e = email ~%]
<input type="hidden" name="email" value="[% e %]" />
......
......@@ -9,25 +9,11 @@
[%###################-%]
[% FOREACH i_err = intern_errors %]
[%|loc(i_err.action)%]INTERNAL SERVER ERROR (%1)[%END-%] -
[% IF i_err.msg == 'month_not_found' %][%|loc(i_err.month)%]Unable to find month '%1'[%END%]
[% ELSIF i_err.msg == 'inaccessible_archive' %][%|loc(i_err.year_month)%]Archives from %1 are not accessible[%END%]
[% ELSIF i_err.msg == 'unable_to_load_list_of_topics' %][%|loc%]Unable to load list topics.[%END%]
[% ELSIF i_err.msg == 'unable_to_load_create_list_templates' %][%|loc%]Unable to load create_list templates.[%END%]
[% ELSIF i_err.msg == 'sync_include_failed' %][%|loc%]Failed to include members[%END%]
[% ELSIF i_err.msg == 'sync_include_admin_failed' %][%|loc%]Failed to include list admins[%END%]
[% ELSIF i_err.msg == 'no_owner_defined' %][%|loc%]No owner is defined for the list[%END%]
[% ELSIF i_err.msg == 'exportation_failed' %][%|loc(i_err.listname)%]The exportation failed for list '%1'[%END%]
[% ELSIF i_err.msg == 'cannot_create_child' %][%|loc(name)%]Cannot create '%1'.[%END%]
[% ELSIF i_err.msg == 'cannot_unzip' %][%|loc(name)%]Cannot unzip file '%1'.[%END%]
[% ELSIF i_err.msg == 'auth_msg_failed' %][%|loc(i_err.key)%]Unable to access the message authenticated with key %1[%END%]
[% ELSIF i_err.msg == 'no_identified_user' %][%|loc%]Failed to get your email address from the authentication service.[%END%]
[% ELSIF i_err.msg == 'err_404' %][%|loc(i_err.key)%]File not found.[%END%]
[% ELSIF i_err.msg == 'db_error' %][%|loc%]Database error.[%END%]
[% ELSIF i_err.msg == 'db_update_failed' %][%|loc(i_err.key)%]Failed to update database.[%END%]
[% ELSIF i_err.msg == 'file_update_failed' %][%|loc(i_err.key)%]Failed to update a file.[%END%]
[% ELSIF i_err.msg == 'create_list' %][%|loc(i_err.listname)%]Failed creating list '%1'. The list might already exist or listname might include forbidden characters.[%END%]
[% ELSIF i_err.msg == 'unable_to_rename_list' %][%|loc(i_err.listname,i_err.new_listname)%]Unable to rename list '%1' to '%2'.[%END%]
[% END %]
[% PROCESS report.tt2
report_type='intern'
report_entry=i_err.msg
report_param=i_err
%]
</br>
[% END %]
......@@ -44,108 +30,24 @@
[%#### USER ERROR -%]
[%###################-%]
[% FOREACH u_err = user_errors %]
[%|loc(u_err.action)%]ERROR (%1) [%END-%] -
[% IF u_err.msg == 'wrong_param' %][%|loc()%]Wrong parameters[%END%]
[% ELSIF u_err.msg == 'unknown_action' %][%|loc()%]Unknown action[%END%]
[% ELSIF u_err.msg == 'syntax_errors' %][%|loc(u_err.params || u_err.p_name)%]Syntax errors with the following parameters: %1[%END%]
[% ELSIF u_err.msg == 'authorization_reject' %][%|loc()%]Authorization rejected. Maybe you forgot to log in?[%END%]
[% ELSIF u_err.msg == 'unknown_list' %][%|loc(u_err.list)%]%1: unknown list[%END%]
[% ELSIF u_err.msg == 'unknown_robot' %][%|loc(u_err.new_robot)%]%1: unknown robot[%END%]
[% ELSIF u_err.msg == 'unknown_family' %][%|loc(u_err.family)%]%1: unknown family[%END%]
[% ELSIF u_err.msg == 'already_login' %][%|loc(u_err.email)%]You are already logged in as %1[%END%]
[% ELSIF u_err.msg == 'passwd_reminder_not_allowed' %][%|loc%]You can not get a password reminder; probably because your password is managed outside Sympa (Single Sign-On system or LDAP directory).[%END%]
[% ELSIF u_err.msg == 'no_email' %][%|loc%]Please provide email address[%END%]
[% ELSIF u_err.msg == 'missing_arg' %][%|loc(u_err.argument)%]Missing argument %1[%END%]
[% ELSIF u_err.msg == 'missing_post_source' %][%|loc()%]You didn't define the web page you want to use to create your newsletter. Please specify either an URL or a file to upload.[%END%]
[% ELSIF u_err.msg == 'two_post_sources_defined' %][%|loc()%]You specified both an URL and a file to upload. Sympa can't choose which one to send. Please fill the form with one of them only. A web page OR a file to upload.[%END%]
[% ELSIF u_err.msg == 'unable_to_parse' %][%|loc()%]You specified both an URL and a file to upload. Sympa can't choose which one to send. Please fill the form with one of them only. A web page OR a file to upload.[%END%]
[% ELSIF u_err.msg == 'wrong_value' %][%|loc(u_err.argument)%]Wrong value for parameter %1[%END%]
[% ELSIF u_err.msg == 'no_user' %][%|loc%]You need to login[%END%]
[% ELSIF u_err.msg == 'incorrect_email' %][%|loc(u_err.email || u_err.value)%]Address "%1" is incorrect[%END%]
[% ELSIF u_err.msg == 'incorrect_passwd' %][%|loc%]Provided password is incorrect[%END%]
[% ELSIF u_err.msg == 'init_passwd' %][%|loc%]You did not choose a password, request a reminder of the initial password[%END%]
[% ELSIF u_err.msg == 'ldap_user' %][%|loc%]Your password is stored in an LDAP directory, therefore Sympa cannot post you a reminder[%END%]
[% ELSIF u_err.msg == 'nb_days_to_much' %][%|loc(u_err.nb_days)%]The period is too long (%1 days)[%END%]
[% ELSIF u_err.msg == 'no_subscriber' %][%|loc%]List has no subscribers[%END%]
[% ELSIF u_err.msg == 'no_page' %][%|loc(u_err.page)%]No page %1[%END%]
[% ELSIF u_err.msg == 'no_filter' %][%|loc%]Missing filter[%END%]
[% ELSIF u_err.msg == 'user_not_subscriber' ~%]
[%|loc(u_err.email)%]Not subscribed: %1[%END%]
[% ELSIF u_err.msg == 'not_subscriber' ~%]
[%|loc(u_err.list)%]You are not subscribed to list %1[%END%]
[% ELSIF u_err.msg == 'custom_attribute' %][%|loc%]Check the additional information[%END%]
[% ELSIF u_err.msg == 'not_available_reception_mode' %][%|loc(u_err.reception_mode)%]%1 is not an available reception mode[%END%]
[% ELSIF u_err.msg == 'file_not_editable' %][%|loc(u_err.file)%]%1: file not editable[%END%]
[% ELSIF u_err.msg == 'already_subscriber' %][%|loc(u_err.list)%]You are already subscribed to the list %1[%END%]
[% ELSIF u_err.msg == 'user_already_subscriber' %][%|loc(u_err.email,u_err.list)%]%1 is already subscribed to the list %2[%END%]
[% ELSIF u_err.msg == 'max_list_members_exceeded' %][%|loc(u_err.sub,u_err.list)%]Unable to add user %1 in list %2: [%END%][%|loc(u_err.max_list_members)%]Attempt to exceed the max number of members (%1) for this list[%END%]
[% ELSIF u_err.msg == 'no_passwd' %][%|loc%]Please provide your password[%END%]
[% ELSIF u_err.msg == 'diff_passwd' %][%|loc%]The passwords you typed do not match[%END%]
[% ELSIF u_err.msg == 'passwd_validation' %][%|loc(u_err.reason)%]The password you typed does not match this sites standards of strength: %1. Please pick a stronger password.[%END%]
[% ELSIF u_err.msg == 'wrong_input_path' %][%|loc(u_err.tpl)%]Provided path is incorrect for template '%1'[%END%]
[% ELSIF u_err.msg == 'cannot_open_file' %][%|loc(u_err.path)%]Cannot open file '%1'[%END%]
[% ELSIF u_err.msg == 'listname_needed' %][%|loc%]You need to provide list name[%END%]
[% ELSIF u_err.msg == 'already_confirmed' %][%|loc%]Failed to get the held message; it has probably been confirmed[%END%]
[% ELSIF u_err.msg == 'already_moderated' %][%|loc%]Failed to moderate a message; it was probably moderated by another moderator[%END%]
[% ELSIF u_err.msg == 'msg_topic_missing' %][%|loc%]Tagging message is required for this list[%END%]
[% ELSIF u_err.msg == 'empty_archives' %][%|loc%]Archives are empty for this list[%END%]
[% ELSIF u_err.msg == 'didnt_change_anything' %][%|loc%]You did not select an action to perform[%END%]
[% ELSIF u_err.msg == 'no_bounce_user' %][%|loc(u_err.email)%]No bounce for user %1[%END%]
[% ELSIF u_err.msg == 'no_bounce_subscriber' %][%|loc%]List has no bouncing subscribers[%END%]
[% ELSIF u_err.msg == 'config_changed' %][%|loc(u_err.email)%]Config file has been modified by %1. Cannot apply your changes[%END%]
[% ELSIF u_err.msg == 'topic_other' %][%|loc%]Topic "other" is a reserved word[%END%]
[% ELSIF u_err.msg == 'mandatory_parameter' %][%|loc(u_err.p_name)%]Parameter '%1' is mandatory. Ignoring deletion.[%END%]
[% ELSIF u_err.msg == 'unique_paragraph_key' %][%|loc(u_err.value,u_err.p_name)%]Duplicate value '%1' for parameter '%2'. Ignoring change.[%END%]
[% ELSIF u_err.msg == 'p_family_controlled' %][%|loc(u_err.param)%]Parameter '%1' must have values[%END%]
[% ELSIF u_err.msg == 'p_family_wrong' %][%|loc(u_err.param,u_err.val)%]Parameter '%1' has got wrong value: '%2'[%END%]
[% ELSIF u_err.msg == 'already_closed' %][%|loc(u_err.listname)%]The list '%1' is already closed[%END%]
[% ELSIF u_err.msg == 'not_closed' %][%|loc(u_err.listname)%]The list '%1' is not closed[%END%]
[% ELSIF u_err.msg == 'incorrect_listname' %][%|loc(u_err.bad_listname)%]'%1': bad listname[%END%]
[% ELSIF u_err.msg == 'list_already_exists' %][%|loc(u_err.new_listname)%]'%1' list already exists[%END%]
[% ELSIF u_err.msg == 'listname_matches_aliases' %][%|loc(u_err.new_listname)%]Incorrect listname '%1': matches one of service aliases[%END%]
[% ELSIF u_err.msg == 'failed_to_install_aliases' %][%|loc(u_err.listname)%]Failed to remove list aliases for list %1[%END%]
[% ELSIF u_err.msg == 'no_such_document' %][%|loc(u_err.path)%]%1: No such file or directory[%END%]
[% ELSIF u_err.msg == 'empty_document' %] [%|loc(u_err.path)%]Unable to read %1: empty document[%END%]
[% ELSIF u_err.msg == 'no_shared' %] [%|loc%]There is no shared documents[%END%]
[% ELSIF u_err.msg == 'shared_empty' %] [%|loc%]The shared document space is empty[%END%]
[% ELSIF u_err.msg == 'cannot_describe_shared_directory'%][%|loc%]The shared directory cannot have any description[%END%]
[% ELSIF u_err.msg == 'no_description' %] [%|loc%]No description specified[%END%]
[% ELSIF u_err.msg == 'no_doc_to_describe' %] [%|loc(u_err.path)%]Unable to describe, the document '%1' does not exist[%END%]
[% ELSIF u_err.msg == 'synchro_failed' %][%|loc%]Data has changed on disk. Cannot apply your changes[%END%]
[% ELSIF u_err.msg == 'incorrect_name' %][%|loc(u_err.name)%]%1: incorrect name[%END%][%IF u_err.reason%][%|loc%]:[%END%] [% u_err.reason %][%END%]
[% ELSIF u_err.msg == 'no_content' %][%|loc%]Failed: your content is empty[%END%]
[% ELSIF u_err.msg == 'cannot_overwrite' %] [%|loc(u_err.path)%]Cannot overwrite file %1:[%END%] [% u_err.reason %]
[% ELSIF u_err.msg == 'doc_already_a_dir' %] [%|loc(u_err.path)%]A directory named '%1' already exists:[%END%] [% u_err.reason %]
[% ELSIF u_err.msg == 'doc_already_exist' %] [%|loc(u_err.name)%]This is an already existing document: '%1'[%END%]
[% ELSIF u_err.msg == 'no_name' %][%|loc%]No name specified[%END%]
[% ELSIF u_err.msg == 'shared_full' %][%|loc%]The document repository exceed disk quota.[%END%]
[% ELSIF u_err.msg == 'cannot_upload' %] [%|loc(u_err.path)%]Cannot upload file %1:[%END%] [% u_err.reason %]
[% ELSIF u_err.msg == 'index_html' %][%|loc(u_err.dir)%]You're not authorized to upload an INDEX.HTML in %1[%END%]
[% ELSIF u_err.msg == 'no_uploaded_file' %][%|loc%]The upload failed, try it again[%END%]
[% ELSIF u_err.msg == 'directory_no_copied' %][%|loc(u_err.name,u_err.reason)%]Directory %1 and its contents could not be copied: %2[%END%]
[% ELSIF u_err.msg == 'file_no_copied' %][%|loc(u_err.name,u_err.reason)%]File %1 was not copied: %2 [%END%]
[% ELSIF u_err.msg == 'full_directory' %][%|loc(u_err.directory)%]Failed: %1 not empty[%END%]
[% ELSIF u_err.msg == 'missing_cert' %][%|loc%]No certificate for this list[%END%]
[% ELSIF u_err.msg == 'no_topic' %][%|loc%]This list has no message topic[%END%]
[% ELSIF u_err.msg == 'msg_topic_missing' %][%|loc%]Tag message with topic is required for this list[%END%]
[% ELSIF u_err.msg == 'no_entry' %][%|loc(u_err.email)%]No entry for user '%1'[%END%]
[% ELSIF u_err.msg == 'select_month' %][%|loc%]Please select archive months[%END%]
[% ELSIF u_err.msg == 'no_soap_service' %][%|loc%]No SOAP service[%END%]
[% ELSIF u_err.msg == 'auth_failed' %][%|loc%]Authentication failed[%END%]
[% ELSIF u_err.msg == 'list_not_open' ~%]
[% statdesc = BLOCK %][% u_err.status | optdesc('status') %][%END ~%]
[%|loc(statdesc)%]Service unavailable because list status is '%1'[%END%]
[% ELSIF u_err.msg == 'template_exists' %][%|loc(u_err.argument)%]This Template '%1' already exists[%END%]
[% ELSIF u_err.msg == 'cannot_delete' %][%|loc(u_err.file_del)%]Cannot delete this file '%1'[%END%]
[% ELSIF u_err.msg == 'invalid_filename' %][%|loc(u_err.filename)%]Invalid filename: '%1'[%END%]
[% ELSIF u_err.msg == 'change_member_email_failed_included' %][%|loc(u_err.listname)%]Failed to update member email in list '%1', list owner has been notified.[%END%]
[% ELSIF u_err.msg == 'change_admin_email_failed_included' %][%|loc(u_err.listname)%]Failed to update admin email in list '%1', list owner has been notified.[%END%]
[% ELSIF u_err.msg == 'merge_failed' %][%|loc(u_err.error)%]Your message cannot be personalized due to error: %1. Please check template syntax.[%END%]
[% ELSE %]
[% TRY %][% INCLUDE $u_err.msg %]
[% CATCH %][% u_err.msg %]
[%END%]
[%END%]
[%|loc(u_err.action)%]ERROR (%1) [%END-%] -
[% error_msg = BLOCK ~%]
[% PROCESS report.tt2
report_type='user'
report_entry=u_err.msg
reort_param=u_err
%]
[%~ END ~%]
[% IF error_msg.match('\S') ~%]
[% error_msg %]
[%~ ELSE ~%]
[% TRY ~%]
[% INCLUDE "${u_err.msg}" %]
[%~ CATCH ~%]
[% u_err.msg %]
[%~ END %]
[%~ END %]
<br />
[% END %]
......@@ -157,8 +59,11 @@
[% IF auth.change_email_failed %][%|loc(auth.listname)%]Could not change your subscription address for the list '%1' because your new address is not allowed to subscribe/unsubscribe:[%END%][% END %]
[% SET reason = auth.msg -%]
[% IF reason == 'edit_right' %][% SET role = auth.role -%][% SET right = auth.right -%][% END -%]
[% PROCESS authorization_reject.tt2 -%]
[% IF auth.login %]<br />[%|loc%]You need to login[%END%][% END %]
[% PROCESS report.tt2
report_type='auth'
report_entry=auth.msg
%]
[%~ IF auth.login %]<br />[%|loc%]You need to login[%END%][% END %]
<br />
[% END %]
......
<!-- notice.tt2 -->
<div id="ephemeralMsg">
[% IF last_login_date %]
<div data-alert class="alert-box info radius">
<i class="fi-eye"></i>
[%|loc(last_login_host,last_login_date)%]last login from %1 (%2)[%END%]<br/>
</div>
[%END%]
[% FOREACH notice = notices %]