diff --git a/include/staff/apikeys.inc.php b/include/staff/apikeys.inc.php index 8b1220a3432417d0b122fa9a131ea116a27380c8..ba45adccef44860eec3ec52136b60950971b9289 100644 --- a/include/staff/apikeys.inc.php +++ b/include/staff/apikeys.inc.php @@ -117,14 +117,17 @@ endif; <a class="close" href=""><i class="icon-remove-circle"></i></a> <hr/> <p class="confirm-action" style="display:none;" id="enable-confirm"> - <?php echo __('Are you sure want to <b>enable</b> selected API keys?');?> + <?php echo sprintf(__('Are you sure want to <b>enable</b> %s?'), + _N('selected API key', 'selected API keys', 2));?> </p> <p class="confirm-action" style="display:none;" id="disable-confirm"> - <?php echo __('Are you sure want to <b>disable</b> selected API keys?');?> + <?php echo sprintf(__('Are you sure want to <b>disable</b> %s?'), + _N('selected API key', 'selected API keys', 2)); ?> </p> <p class="confirm-action" style="display:none;" id="delete-confirm"> - <font color="red"><strong><?php echo __('Are you sure you want to DELETE selected API keys?');?></strong></font> - <br><br><?php echo __('Deleted keys CANNOT be recovered.');?> + <font color="red"><strong><?php echo sprintf(__('Are you sure you want to DELETE %s?'), + _N('selected API key', 'selected API keys', 2));?></strong></font> + <br><br><?php echo __('Deleted data CANNOT be recovered.'); ?> </p> <div><?php echo __('Please confirm to continue.');?></div> <hr style="margin-top:1em"/> diff --git a/include/staff/banlist.inc.php b/include/staff/banlist.inc.php index 075d51aefc1ef5245b8935346959cf5d3c4f1a84..26e1d074d2fb070cedbc4242e03ad082cf023c71 100644 --- a/include/staff/banlist.inc.php +++ b/include/staff/banlist.inc.php @@ -143,13 +143,16 @@ endif; <a class="close" href=""><i class="icon-remove-circle"></i></a> <hr/> <p class="confirm-action" style="display:none;" id="enable-confirm"> - <?php echo __('Are you sure want to <b>enable</b> selected ban rules?');?> + <?php echo sprintf(__('Are you sure want to <b>enable</b> %s?'), + _N('selected ban rule', 'selected ban rules', 2));?> </p> <p class="confirm-action" style="display:none;" id="disable-confirm"> - <?php echo __('Are you sure want to <b>disable</b> selected ban rules?');?> + <?php echo sprintf(__('Are you sure want to <b>disable</b> %s?'), + _N('selected ban rule', 'selected ban rules', 2));?> </p> <p class="confirm-action" style="display:none;" id="delete-confirm"> - <font color="red"><strong><?php echo __('Are you sure you want to DELETE selected ban rules?');?></strong></font> + <font color="red"><strong><?php echo sprintf(__('Are you sure you want to DELETE %s?'), + _N('selected ban rule', 'selected ban rules', 2));?></strong></font> </p> <div><?php echo __('Please confirm to continue.');?></div> <hr style="margin-top:1em"/> diff --git a/include/staff/cannedresponses.inc.php b/include/staff/cannedresponses.inc.php index e7b65b58c36ea0f8c5b98b328d259b1f07832464..1da21b8b00170ca029cf830bb4453a54b23b5c0b 100644 --- a/include/staff/cannedresponses.inc.php +++ b/include/staff/cannedresponses.inc.php @@ -129,14 +129,17 @@ endif; <a class="close" href=""><i class="icon-remove-circle"></i></a> <hr/> <p class="confirm-action" style="display:none;" id="enable-confirm"> - <?php echo __('Are you sure want to <b>enable</b> selected canned responses?');?> + <?php echo sprintf(__('Are you sure want to <b>enable</b> %s?'), + _N('selected canned response', 'selected canned responses', 2));?> </p> <p class="confirm-action" style="display:none;" id="disable-confirm"> - <?php echo __('Are you sure want to <b>disable</b> selected canned responses?');?> + <?php echo sprintf(__('Are you sure want to <b>disable</b> %s?'), + _N('selected canned response', 'selected canned responses', 2));?> </p> <p class="confirm-action" style="display:none;" id="delete-confirm"> - <font color="red"><strong><?php echo __('Are you sure you want to DELETE selected canned responses?');?></strong></font> - <br><br><?php echo __('Deleted items CANNOT be recovered, including any associated attachments.');?> + <font color="red"><strong><?php echo sprintf(__('Are you sure you want to DELETE %s?'), + _N('selected canned response', 'selected canned responses', 2));?></strong></font> + <br><br><?php echo __('Deleted data CANNOT be recovered, including any associated attachments.'); ?> </p> <div><?php echo __('Please confirm to continue.');?></div> <hr style="margin-top:1em"/> diff --git a/include/staff/categories.inc.php b/include/staff/categories.inc.php index 0fee06ca80d17c320fb0071fafec5188cd12cc50..efdd593baa4d960727c2eb81a0574132d9338bd6 100644 --- a/include/staff/categories.inc.php +++ b/include/staff/categories.inc.php @@ -122,14 +122,17 @@ endif; <a class="close" href=""><i class="icon-remove-circle"></i></a> <hr/> <p class="confirm-action" style="display:none;" id="make_public-confirm"> - <?php echo __('Are you sure want to make selected categories <b>public</b>?');?> + <?php echo sprintf(__('Are you sure want to make %s <b>public</b>?'), + _N('selected category', 'selected categories', 2));?> </p> <p class="confirm-action" style="display:none;" id="make_private-confirm"> - <?php echo __('Are you sure want to make selected categories <b>private</b> (internal)?');?> + <?php echo sprintf(__('Are you sure want to make %s <b>private</b> (internal)?'), + _N('selected category', 'selected categories', 2));?> </p> <p class="confirm-action" style="display:none;" id="delete-confirm"> - <font color="red"><strong><?php echo __('Are you sure you want to DELETE selected categories?');?></strong></font> - <br><br><?php echo __('Deleted entries CANNOT be recovered, including any associated FAQs.');?> + <font color="red"><strong><?php echo sprintf(__('Are you sure you want to DELETE %s?'), + _N('selected category', 'selected categories', 2));?></strong></font> + <br><br><?php echo __('Deleted data CANNOT be recovered, including any associated FAQs.'); ?> </p> <div><?php echo __('Please confirm to continue.');?></div> <hr style="margin-top:1em"/> diff --git a/include/staff/departments.inc.php b/include/staff/departments.inc.php index 85a7c02675a8b662bf8856b316e7f2c14df53555..ba2d04707bc23d6c699951a048ad75d6fe07dcc1 100644 --- a/include/staff/departments.inc.php +++ b/include/staff/departments.inc.php @@ -140,14 +140,17 @@ endif; <a class="close" href=""><i class="icon-remove-circle"></i></a> <hr/> <p class="confirm-action" style="display:none;" id="make_public-confirm"> - <?php echo __('Are you sure want to make selected departments <b>public</b>?');?> + <?php echo sprintf(__('Are you sure want to make %s <b>public</b>?'), + _N('selected department', 'selected departments', 2));?> </p> <p class="confirm-action" style="display:none;" id="make_private-confirm"> - <?php echo __('Are you sure want to make selected departments <b>private</b>?');?> + <?php echo sprintf(__('Are you sure want to make %s <b>private</b> (internal)?'), + _N('selected department', 'selected departments', 2));?> </p> <p class="confirm-action" style="display:none;" id="delete-confirm"> - <font color="red"><strong><?php echo __('Are you sure you want to DELETE selected departments?');?></strong></font> - <br><br><?php echo __('Deleted departments CANNOT be recovered.');?> + <font color="red"><strong><?php echo sprintf(__('Are you sure you want to DELETE %s?'), + _N('selected department', 'selected departments', 2));?></strong></font> + <br><br><?php echo __('Deleted data CANNOT be recovered.'); ?> </p> <div><?php echo __('Please confirm to continue.');?></div> <hr style="margin-top:1em"/> diff --git a/include/staff/dynamic-forms.inc.php b/include/staff/dynamic-forms.inc.php index 4e456873ea2c8e28adfdd07378fc0c76289bfbe9..74e3af3f9e1615a766ba9e4faa80e97f4a6fac67 100644 --- a/include/staff/dynamic-forms.inc.php +++ b/include/staff/dynamic-forms.inc.php @@ -104,9 +104,10 @@ if ($count) //Show options.. <a class="close" href=""><i class="icon-remove-circle"></i></a> <hr/> <p class="confirm-action" style="display:none;" id="delete-confirm"> - <font color="red"><strong><?php echo __( - 'Are you sure you want to DELETE selected forms?'); ?></strong></font> - <br><br><?php echo __('Deleted forms CANNOT be recovered.'); ?> + <font color="red"><strong><?php echo sprintf(__( + 'Are you sure you want to DELETE %s?'), + _N('selected custom form', 'selected custom forms', 2));?></strong></font> + <br><br><?php echo __('Deleted data CANNOT be recovered.'); ?> </p> <div><?php echo __('Please confirm to continue.'); ?></div> <hr style="margin-top:1em"/> diff --git a/include/staff/dynamic-lists.inc.php b/include/staff/dynamic-lists.inc.php index fd4f7bf5b36073f4bbb9ebf07a13151433915947..824473c7fe604a14b9d851b6b8dba76b9f834f9e 100644 --- a/include/staff/dynamic-lists.inc.php +++ b/include/staff/dynamic-lists.inc.php @@ -77,9 +77,10 @@ if ($count) //Show options.. <a class="close" href=""><i class="icon-remove-circle"></i></a> <hr/> <p class="confirm-action" style="display:none;" id="delete-confirm"> - <font color="red"><strong><?php echo __( - 'Are you sure you want to DELETE selected lists?'); ?></strong></font> - <br><br><?php echo __('Deleted forms CANNOT be recovered.'); ?> + <font color="red"><strong><?php echo sprintf( + __('Are you sure you want to DELETE %s?'), + _N('selected custom list', 'selected custom lists', 2)); ?></strong></font> + <br><br><?php echo __('Deleted data CANNOT be recovered.'); ?> </p> <div><?php echo __('Please confirm to continue.'); ?></div> <hr style="margin-top:1em"/> diff --git a/include/staff/emails.inc.php b/include/staff/emails.inc.php index d2911eeeed5a032adf0c84f6450d138492b2240d..7cc6d3ef6905e054cdd2176091b86d89bba42094 100644 --- a/include/staff/emails.inc.php +++ b/include/staff/emails.inc.php @@ -125,8 +125,9 @@ endif; <a class="close" href=""><i class="icon-remove-circle"></i></a> <hr/> <p class="confirm-action" style="display:none;" id="delete-confirm"> - <font color="red"><strong><?php echo __('Are you sure you want to DELETE selected emails?');?></strong></font> - <br><br><?php echo __('Deleted emails CANNOT be recovered.');?> + <font color="red"><strong><?php echo sprintf(__('Are you sure you want to DELETE %s?'), + _N('selected email', 'selected emails', 2)) ;?></strong></font> + <br><br><?php echo __('Deleted data CANNOT be recovered.');?> </p> <div><?php echo __('Please confirm to continue.');?></div> <hr style="margin-top:1em"/> diff --git a/include/staff/filters.inc.php b/include/staff/filters.inc.php index 60da7230bb711973b61a2f0ce09002a7627b1d1e..5a063d3eab5541c79afdace435f80e6268a24030 100644 --- a/include/staff/filters.inc.php +++ b/include/staff/filters.inc.php @@ -128,14 +128,17 @@ endif; <a class="close" href=""><i class="icon-remove-circle"></i></a> <hr/> <p class="confirm-action" style="display:none;" id="enable-confirm"> - <?php echo __('Are you sure want to <b>enable</b> selected filters?');?> + <?php echo sprintf(__('Are you sure want to <b>enable</b> %s?'), + _N('selected filter', 'selected filters', 2));?> </p> <p class="confirm-action" style="display:none;" id="disable-confirm"> - <?php echo __('Are you sure want to <b>disable</b> selected filters?');?> + <?php echo sprintf(__('Are you sure want to <b>disable</b> %s?'), + _N('selected filter', 'selected filters', 2));?> </p> <p class="confirm-action" style="display:none;" id="delete-confirm"> - <font color="red"><strong><?php echo __('Are you sure you want to DELETE selected filters?');?></strong></font> - <br><br><?php echo __('Deleted filters CANNOT be recovered, including any associated rules.');?> + <font color="red"><strong><?php echo sprintf(__('Are you sure you want to DELETE %s?'), + _N('selected filter', 'selected filters', 2));?></strong></font> + <br><br><?php echo __('Deleted data CANNOT be recovered, including any associated rules.');?> </p> <div><?php echo __('Please confirm to continue.');?></div> <hr style="margin-top:1em"/> diff --git a/include/staff/groups.inc.php b/include/staff/groups.inc.php index 538ee95104a833961fbd968bce346d2ce753c571..4b47dba87554fceda68666db180f1d2a4fbc30d1 100644 --- a/include/staff/groups.inc.php +++ b/include/staff/groups.inc.php @@ -129,14 +129,17 @@ endif; <a class="close" href=""><i class="icon-remove-circle"></i></a> <hr/> <p class="confirm-action" style="display:none;" id="enable-confirm"> - <?php echo __('Are you sure want to <b>enable</b> selected groups?');?> + <?php echo sprintf(__('Are you sure want to <b>enable</b> %s?'), + _N('selected group', 'selected groups', 2));?> </p> <p class="confirm-action" style="display:none;" id="disable-confirm"> - <?php echo __('Are you sure want to <b>disable</b> selected groups?');?> + <?php echo sprintf(__('Are you sure want to <b>disable</b> %s?'), + _N('selected group', 'selected groups', 2));?> </p> <p class="confirm-action" style="display:none;" id="delete-confirm"> - <font color="red"><strong><?php echo __('Are you sure you want to DELETE selected groups?');?></strong></font> - <br><br><?php echo __("Deleted groups CANNOT be recovered and might affect agents' access.");?> + <font color="red"><strong><?php echo sprintf(__('Are you sure you want to DELETE %s?'), + _N('selected group', 'selected groups', 2));?></strong></font> + <br><br><?php echo __("Deleted data CANNOT be recovered and might affect agents' access.");?> </p> <div><?php echo __('Please confirm to continue.');?></div> <hr style="margin-top:1em"/> diff --git a/include/staff/helptopics.inc.php b/include/staff/helptopics.inc.php index a907ab8c2d1469f91c12fe2f01cb7413fbd1cb5d..d124a67a26f8118829b7758e7310dc42c01b2630 100644 --- a/include/staff/helptopics.inc.php +++ b/include/staff/helptopics.inc.php @@ -148,14 +148,17 @@ endif; <a class="close" href=""><i class="icon-remove-circle"></i></a> <hr/> <p class="confirm-action" style="display:none;" id="enable-confirm"> - <?php echo __('Are you sure want to <b>enable</b> selected help topics?');?> + <?php echo sprintf(__('Are you sure want to <b>enable</b> %s?'), + _N('selected help topic', 'selected help topics', 2));?> </p> <p class="confirm-action" style="display:none;" id="disable-confirm"> - <?php echo __('Are you sure want to <b>disable</b> selected help topics?');?> + <?php echo sprintf(__('Are you sure want to <b>disable</b> %s?'), + _N('selected help topic', 'selected help topics', 2));?> </p> <p class="confirm-action" style="display:none;" id="delete-confirm"> - <font color="red"><strong><?php echo __('Are you sure you want to DELETE selected help topics?');?></strong></font> - <br><br><?php echo __('Deleted topics CANNOT be recovered.');?> + <font color="red"><strong><?php echo sprintf(__('Are you sure you want to DELETE %s?'), + _N('selected help topic', 'selected help topics', 2));?></strong></font> + <br><br><?php echo __('Deleted data CANNOT be recovered.');?> </p> <div><?php echo __('Please confirm to continue.');?></div> <hr style="margin-top:1em"/> diff --git a/include/staff/pages.inc.php b/include/staff/pages.inc.php index a98fca84f59063fefb8a116e68457e21203cc8d5..19a307f93e2ec9d30fbb94d448f463c5e2e9b438 100644 --- a/include/staff/pages.inc.php +++ b/include/staff/pages.inc.php @@ -135,15 +135,18 @@ endif; <a class="close" href=""><i class="icon-remove-circle"></i></a> <hr/> <p class="confirm-action" style="display:none;" id="enable-confirm"> - <?php echo __('Are you sure want to <b>enable</b> selected pages?'); ?> + <?php echo sprintf(__('Are you sure want to <b>enable</b> %s?'), + _N('selected site page', 'selected site pages', 2));?> </p> <p class="confirm-action" style="display:none;" id="disable-confirm"> - <?php echo __('Are you sure want to <b>disable</b> selected pages?'); ?> + <?php echo sprintf(__('Are you sure want to <b>disable</b> %s?'), + _N('selected site page', 'selected site pages', 2));?> </p> <p class="confirm-action" style="display:none;" id="delete-confirm"> - <font color="red"><strong><?php echo __( - 'Are you sure you want to DELETE selected pages?'); ?></strong></font> - <br><br><?php echo __('Deleted pages CANNOT be recovered.'); ?> + <font color="red"><strong><?php echo sprintf( + __('Are you sure you want to DELETE %s?'), + _N('selected site page', 'selected site pages', 2));?></strong></font> + <br><br><?php echo __('Deleted data CANNOT be recovered.'); ?> </p> <div><?php echo __('Please confirm to continue.'); ?></div> <hr style="margin-top:1em"/> diff --git a/include/staff/plugins.inc.php b/include/staff/plugins.inc.php index d550d34a911ed1dcacb28fd2860be71b298e6c90..cd3282e4b030ad9ff728ccc916231c9083cb0d0b 100644 --- a/include/staff/plugins.inc.php +++ b/include/staff/plugins.inc.php @@ -75,18 +75,21 @@ if ($count) //Show options.. <a class="close" href="">×</a> <hr/> <p class="confirm-action" style="display:none;" id="delete-confirm"> - <font color="red"><strong><?php echo __( - 'Are you sure you want to DELETE selected plugins?'); ?></strong></font> + <font color="red"><strong><?php echo sprintf( + __('Are you sure you want to DELETE %s?'), + _N('selected plugin', 'selected plugins', 2)); ?></strong></font> <br><br><?php echo __( 'Configuration for deleted plugins CANNOT be recovered.'); ?> </p> <p class="confirm-action" style="display:none;" id="enable-confirm"> - <font color="green"><strong><?php echo __( - 'Are you ready to enable selected plugins?'); ?></strong></font> + <font color="green"><?php echo sprintf( + __('Are you sure want to <b>enable</b> %s?'), + _N('selected plugin', 'selected plugins', 2)); ?></font> </p> <p class="confirm-action" style="display:none;" id="disable-confirm"> - <font color="red"><strong><?php echo __( - 'Are you sure you want to disable selected plugins?'); ?></strong></font> + <font color="red"><?php echo sprintf( + __('Are you sure want to <b>disable</b> %s?'), + _N('selected plugin', 'selected plugins', 2)); ?></font> </p> <div><?php echo __('Please confirm to continue.'); ?></div> <hr style="margin-top:1em"/> diff --git a/include/staff/settings-pages.inc.php b/include/staff/settings-pages.inc.php index eba678eba656135d41a4847b86be59fe1382a1a3..9727bde4060beeaacce6169a375b87b0b5382aa9 100644 --- a/include/staff/settings-pages.inc.php +++ b/include/staff/settings-pages.inc.php @@ -170,18 +170,19 @@ $pages = Page::getPages(); <a class="close" href=""><i class="icon-remove-circle"></i></a> <hr/> <p class="confirm-action" id="delete-confirm"> - <font color="red"><strong><?php echo __( - 'Are you sure you want to DELETE selected logos?'); ?></strong></font> - <br/><br/><?php echo __('Deleted logos CANNOT be recovered.'); ?> + <font color="red"><strong><?php echo sprintf( + __('Are you sure you want to DELETE %s?'), + _N('selected logo', 'selected logos', 2)); ?></strong></font> + <br/><br/><?php echo __('Deleted data CANNOT be recovered.'); ?> </p> <div><?php echo __('Please confirm to continue.'); ?></div> <hr style="margin-top:1em"/> <p class="full-width"> <span class="buttons pull-left"> - <input type="button" value="No, Cancel" class="close"> + <input type="button" value="<?php echo __('No, Cancel'); ?>" class="close"> </span> <span class="buttons pull-right"> - <input type="button" value="Yes, Do it!" class="confirm"> + <input type="button" value="<?php echo __('Yes, Do it!'); ?>" class="confirm"> </span> </p> <div class="clear"></div> diff --git a/include/staff/slaplans.inc.php b/include/staff/slaplans.inc.php index e6808db4a0ce341ecb4f5129f7c8e6cf11b4d4cb..4acf6763ce198faa5d051e784f32aef46c7c6ecd 100644 --- a/include/staff/slaplans.inc.php +++ b/include/staff/slaplans.inc.php @@ -128,13 +128,16 @@ endif; <a class="close" href=""><i class="icon-remove-circle"></i></a> <hr/> <p class="confirm-action" style="display:none;" id="enable-confirm"> - <?php echo __('Are you sure want to <b>enable</b> selected SLA plans?');?> + <?php echo sprintf(__('Are you sure want to <b>enable</b> %s?'), + _N('selected SLA plan', 'selected SLA plans', 2));?> </p> <p class="confirm-action" style="display:none;" id="disable-confirm"> - <?php echo __('Are you sure want to <b>disable</b> selected SLA plans?');?> + <?php echo sprintf(__('Are you sure want to <b>disable</b> %s?'), + _N('selected SLA plan', 'selected SLA plans', 2));?> </p> <p class="confirm-action" style="display:none;" id="delete-confirm"> - <font color="red"><strong><?php echo __('Are you sure you want to DELETE selected SLA plans?');?></strong></font> + <font color="red"><strong><?php echo sprintf(__('Are you sure you want to DELETE %s?'), + _N('selected SLA plan', 'selected SLA plans', 2)); ?></strong></font> </p> <div><?php echo __('Please confirm to continue.');?></div> <hr style="margin-top:1em"/> diff --git a/include/staff/staffmembers.inc.php b/include/staff/staffmembers.inc.php index acec392d48efbb0261ddcdfd3dd23a526e27d45b..f440ea3965badfe2218106765adfa496e6dfc514 100644 --- a/include/staff/staffmembers.inc.php +++ b/include/staff/staffmembers.inc.php @@ -192,15 +192,18 @@ endif; <a class="close" href=""><i class="icon-remove-circle"></i></a> <hr/> <p class="confirm-action" style="display:none;" id="enable-confirm"> - <?php echo __('Are you sure want to <b>enable</b> (unlock) selected agent?');?> + <?php echo sprintf(__('Are you sure want to <b>enable</b> (unlock) %s?'), + _N('selected agent', 'selected agents', 2));?> </p> <p class="confirm-action" style="display:none;" id="disable-confirm"> - <?php echo __('Are you sure want to <b>disable</b> (lock) selected agent?');?> + <?php echo sprintf(__('Are you sure want to <b>disable</b> (lock) %s?'), + _N('selected agent', 'selected agents', 2));?> <br><br><?php echo __("Locked staff won't be able to login to Staff Control Panel.");?> </p> <p class="confirm-action" style="display:none;" id="delete-confirm"> - <font color="red"><strong><?php echo __('Are you sure you want to DELETE selected agent?');?></strong></font> - <br><br><?php echo __('Deleted agent CANNOT be recovered.');?> + <font color="red"><strong><?php echo sprintf(__('Are you sure you want to DELETE %s?'), + _N('selected agent', 'selected agents', 2));?></strong></font> + <br><br><?php echo __('Deleted data CANNOT be recovered.');?> </p> <div><?php echo __('Please confirm to continue.');?></div> <hr style="margin-top:1em"/> diff --git a/include/staff/syslogs.inc.php b/include/staff/syslogs.inc.php index e490e2a8246f0c89054dc229b43c60bd3dfea3ba..b264ffa05386b762926f28c26270f1634c580ae8 100644 --- a/include/staff/syslogs.inc.php +++ b/include/staff/syslogs.inc.php @@ -176,8 +176,9 @@ endif; <a class="close" href=""><i class="icon-remove-circle"></i></a> <hr/> <p class="confirm-action" style="display:none;" id="delete-confirm"> - <font color="red"><strong><?php echo __('Are you sure you want to DELETE selected logs?');?></strong></font> - <br><br><?php echo __('Deleted logs CANNOT be recovered.');?> + <font color="red"><strong><?php echo sprintf(__('Are you sure you want to DELETE %s?'), + _N('selected log entry', 'selected log entries', 2));?></strong></font> + <br><br><?php echo __('Deleted data CANNOT be recovered.');?> </p> <div><?php echo __('Please confirm to continue.');?></div> <hr style="margin-top:1em"/> diff --git a/include/staff/teams.inc.php b/include/staff/teams.inc.php index 62d415bfe2c17626d7c08ed2c1df0902d9c0bffa..de08d25e88911eadac668e7c6f25e56610f42d2d 100644 --- a/include/staff/teams.inc.php +++ b/include/staff/teams.inc.php @@ -125,14 +125,17 @@ endif; <a class="close" href=""><i class="icon-remove-circle"></i></a> <hr/> <p class="confirm-action" style="display:none;" id="enable-confirm"> - <?php echo __('Are you sure want to <b>enable</b> selected teams?');?> + <?php echo sprintf(__('Are you sure want to <b>enable</b> %s?'), + _N('selected team', 'selected teams', 2));?> </p> <p class="confirm-action" style="display:none;" id="disable-confirm"> - <?php echo __('Are you sure want to <b>disable</b> selected teams?');?> + <?php echo sprintf(__('Are you sure want to <b>disable</b> %s?'), + _N('selected team', 'selected teams', 2));?> </p> <p class="confirm-action" style="display:none;" id="delete-confirm"> - <font color="red"><strong><?php echo __('Are you sure you want to DELETE selected teams?');?></strong></font> - <br><br><?php echo __('Deleted team CANNOT be recovered.');?> + <font color="red"><strong><?php echo sprintf(__('Are you sure you want to DELETE %s?'), + _N('selected team', 'selected teams', 2));?></strong></font> + <br><br><?php echo __('Deleted data CANNOT be recovered.'); ?> </p> <div><?php echo __('Please confirm to continue.');?></div> <hr style="margin-top:1em"/> diff --git a/include/staff/templates.inc.php b/include/staff/templates.inc.php index 946baccb31579008551d1dd750ca9e2cd58f07a6..3fb2c49b5fab00a2953940c18e248e1e68e6c17c 100644 --- a/include/staff/templates.inc.php +++ b/include/staff/templates.inc.php @@ -127,14 +127,17 @@ endif; <a class="close" href=""><i class="icon-remove-circle"></i></a> <hr/> <p class="confirm-action" style="display:none;" id="enable-confirm"> - <?php echo __('Are you sure want to <b>enable</b> selected templates?');?> + <?php echo sprintf(__('Are you sure want to <b>enable</b> %s?'), + _N('selected template set', 'selected template sets', 2));?> </p> <p class="confirm-action" style="display:none;" id="disable-confirm"> - <?php echo __('Are you sure want to <b>disable</b> selected templates?');?> + <?php echo sprintf(__('Are you sure want to <b>disable</b> %s?'), + _N('selected template set', 'selected template sets', 2));?> </p> <p class="confirm-action" style="display:none;" id="delete-confirm"> - <font color="red"><strong><?php echo __('Are you sure you want to DELETE selected templates?');?></strong></font> - <br><br><?php echo __('Deleted templates CANNOT be recovered.');?> + <font color="red"><strong><?php echo sprintf(__('Are you sure you want to DELETE %s?'), + _N('selected template set', 'selected template sets', 2));?></strong></font> + <br><br><?php echo __('Deleted data CANNOT be recovered.'); ?> </p> <div><?php echo __('Please confirm to continue.');?></div> <hr style="margin-top:1em"/> diff --git a/include/staff/ticket-view.inc.php b/include/staff/ticket-view.inc.php index 031b79446b167651ffa03ad0c4ce66242cdd5943..b3c621b8f390f0d78b7c82d66664cf030bd729da 100644 --- a/include/staff/ticket-view.inc.php +++ b/include/staff/ticket-view.inc.php @@ -1004,7 +1004,7 @@ $tcount+= $ticket->getNumNotes(); </p> <p class="confirm-action" style="display:none;" id="delete-confirm"> <font color="red"><strong><?php echo __('Are you sure you want to DELETE this ticket?');?></strong></font> - <br><br><?php echo __('Deleted tickets CANNOT be recovered, including any associated attachments.');?> + <br><br><?php echo __('Deleted data CANNOT be recovered, including any associated attachments.');?> </p> <div><?php echo __('Please confirm to continue.');?></div> <form action="tickets.php?id=<?php echo $ticket->getId(); ?>" method="post" id="confirm-form" name="confirm-form"> diff --git a/include/staff/tickets.inc.php b/include/staff/tickets.inc.php index 158504928c4e9b1c35e203a9c9be077e1f0429f9..8e32518b433abe7a4d1941c550b3585d7c4deb93 100644 --- a/include/staff/tickets.inc.php +++ b/include/staff/tickets.inc.php @@ -525,7 +525,8 @@ if ($results) { <?php echo __('Are you sure want to flag the selected tickets as <font color="red"><b>overdue</b></font>?');?> </p> <p class="confirm-action" style="display:none;" id="delete-confirm"> - <font color="red"><strong><?php echo __('Are you sure you want to DELETE selected tickets?');?></strong></font> + <font color="red"><strong><?php echo sprintf(__('Are you sure you want to DELETE %s?'), + _N('selected ticket', 'selected tickets', 2));?></strong></font> <br><br><?php echo __('Deleted tickets CANNOT be recovered, including any associated attachments.');?> </p> <div><?php echo __('Please confirm to continue.');?></div>