Skip to content

Commit

Permalink
fix(target_actor): make string localazable
Browse files Browse the repository at this point in the history
Signed-off-by: Thierry Bugier <[email protected]>
  • Loading branch information
btry committed Jun 16, 2020
1 parent 81a6c01 commit bc4befe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions inc/target_actor.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ public static function import(PluginFormcreatorLinker $linker, $input = [], $con
$user = new User;
$users_id = plugin_formcreator_getFromDBByField($user, 'name', $input['actor_value']);
if ($users_id === false) {
throw new ImportFailureException(sprintf(__('failed to find a user: ID %1$d'), $users_id));
throw new ImportFailureException(sprintf(__('failed to find a user: ID %1$d', 'formcreator'), $users_id));
}
$input['actor_value'] = $users_id;
break;
Expand All @@ -145,7 +145,7 @@ public static function import(PluginFormcreatorLinker $linker, $input = [], $con
$group = new Group;
$groups_id = plugin_formcreator_getFromDBByField($group, 'completename', $input['actor_value']);
if ($groups_id === false) {
throw new ImportFailureException(sprintf(__('failed to find a group: ID %1$d'), $groups_id));
throw new ImportFailureException(sprintf(__('failed to find a group: ID %1$d', 'formcreator'), $groups_id));
}
$input['actor_value'] = $groups_id;
break;
Expand All @@ -154,7 +154,7 @@ public static function import(PluginFormcreatorLinker $linker, $input = [], $con
$supplier = new Supplier;
$suppliers_id = plugin_formcreator_getFromDBByField($supplier, 'name', $input['actor_value']);
if ($suppliers_id === false) {
throw new ImportFailureException(sprintf(__('failed to find a supplier: ID %1$d'), $suppliers_id));
throw new ImportFailureException(sprintf(__('failed to find a supplier: ID %1$d', 'formcreator'), $suppliers_id));
}
$input['actor_value'] = $suppliers_id;
break;
Expand Down

0 comments on commit bc4befe

Please sign in to comment.