Index: extensions/Back2Front/Back2Front.php
===================================================================
--- extensions/Back2Front/Back2Front.php (revision 11219)
+++ extensions/Back2Front/Back2Front.php (revision 11599)
@@ -152,5 +152,11 @@
if (!picture_exists($_POST['b2f_front_id']))
{
- array_push($page['errors'], l10n_args(get_l10n_args('Unknown id %d for frontside picture', $_POST['b2f_front_id'])));
+ array_push(
+ $page['errors'],
+ sprintf(
+ l10n('Unknown id %d for frontside picture'),
+ $_POST['b2f_front_id']
+ )
+ );
}
/* verso same as recto */
@@ -164,9 +170,12 @@
$recto_current_verso['id'] = $all_recto_verso[$_POST['b2f_front_id']];
$recto_current_verso['link'] = get_root_url().'admin.php?page=picture_modify&image_id='.$recto_current_verso['id'];
- array_push($page['errors'],
- l10n_args(get_l10n_args('The picture n°%d has already a backside : %s',
- array($_POST['b2f_front_id'], ''.$recto_current_verso['id'].'')
- ))
- );
+ array_push(
+ $page['errors'],
+ sprintf(
+ l10n('The picture n°%d has already a backside : %s'),
+ $_POST['b2f_front_id'],
+ ''.$recto_current_verso['id'].''
+ )
+ );
}
/* recto is already a verso */
@@ -175,5 +184,11 @@
$recto_is_verso['id'] = $_POST['b2f_front_id'];
$recto_is_verso['link'] = get_root_url().'admin.php?page=picture_modify&image_id='.$recto_is_verso['id'];
- array_push($page['errors'], l10n_args(get_l10n_args('The picture n°%s is already a backside', ''.$recto_is_verso['id'].'')));
+ array_push(
+ $page['errors'],
+ sprintf(
+ l10n('The picture n°%s is already a backside'),
+ ''.$recto_is_verso['id'].''
+ )
+ );
}
/* everything is fine */