From f320566289490a932559a9387f69a06da8dd5bd3 Mon Sep 17 00:00:00 2001 From: Michael <Chefkeks@users.noreply.github.com> Date: Thu, 21 Apr 2016 16:30:03 +0200 Subject: [PATCH] Update ajax.tasks.php and ajax.tickets.php Note: Since I'm not sure if that's all (replacing %s %s with %1$s %2$s) which is necessary to make this work, I'm sorry in advance for a potential "bad commit". As already written on Crowdin, in German the order is wrong, so my suggestion is to make it possible to change the order by transforming "%s %s" to "%1$s and %2$s". Format in English: Successfully assigned 4 selected tasks Needed German: Successfully 4 selected tasks assigned --- include/ajax.tasks.php | 2 +- include/ajax.tickets.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/ajax.tasks.php b/include/ajax.tasks.php index f347c74dc..62254bee4 100644 --- a/include/ajax.tasks.php +++ b/include/ajax.tasks.php @@ -422,7 +422,7 @@ class TasksAjaxAPI extends AjaxController { // Assume success if ($i==$count) { - $msg = sprintf(__('Successfully %s %s.'), + $msg = sprintf(__('Successfully %1$s %2$s.' /* Tokens are <actioned> <x selected task(s)> */), $actions[$action]['verbed'], sprintf('%1$d %2$s', $count, diff --git a/include/ajax.tickets.php b/include/ajax.tickets.php index 15dc6022a..3f3d26e46 100644 --- a/include/ajax.tickets.php +++ b/include/ajax.tickets.php @@ -764,7 +764,7 @@ class TicketsAjaxAPI extends AjaxController { // Assume success if ($i==$count) { - $msg = sprintf(__('Successfully %s %s.'), + $msg = sprintf(__('Successfully %1$s %2$s.' /* Tokens are <actioned> <x selected ticket(s)> */ ), $actions[$action]['verbed'], sprintf('%1$d %2$s', $count, -- GitLab