Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use parameterized string for confirmation messages
Previously, the confirmation message was built manually in several places throughout the code, concatenating strings with variables. We now use a string with parameters, which is fed to sprintf prior to display. This gives translators more control to over the final message, and allows removing now-unused $s_in_project string. Updated strings: - $s_confirm_custom_field_deletion - $s_confirm_used_custom_field_deletion - $s_confirm_custom_field_unlinking - $s_config_delete_sure - $s_confirm_file_delete_msg - $s_delete_account_sure_msg - $s_query_delete_msg - $s_remove_user_sure_msg - $s_version_delete_sure Issue #27779
- Loading branch information
Showing
10 changed files
with
65 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -826,8 +826,7 @@ $s_reopen_resolution = 'Resolution to which a reopened issue is set'; | |
$s_limit_view_unless_threshold_option = 'View other users\' issues (if not set, access will be limited to issues reported, handled, or monitored by the user)'; | ||
|
||
# manage_config_revert_page | ||
$s_config_delete_sure = 'Are you sure you want to delete the settings for:'; | ||
$s_in_project = 'in project'; | ||
$s_config_delete_sure = 'Are you sure you want to delete the settings for: %1$s in project %2$s ?'; | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
dregad
Author
Member
|
||
$s_delete_config_button = 'Delete Settings'; | ||
|
||
# adm_config_report.php | ||
|
@@ -953,7 +952,7 @@ $s_version_added_msg = 'Version has been successfully added...'; | |
$s_version_deleted_msg = 'Version has been successfully deleted...'; | ||
|
||
# manage_proj_version_delete_page.php | ||
$s_version_delete_sure = 'Are you sure you want to delete this version?'; | ||
$s_version_delete_sure = 'Are you sure you want to delete version "%1$s" ?'; | ||
$s_delete_version_button = 'Delete Version'; | ||
|
||
# manage_proj_version_edit_page.php | ||
|
@@ -972,7 +971,7 @@ $s_account_delete_protected_msg = 'Account protected. Cannot delete this account | |
$s_account_deleted_msg = 'Account deleted...'; | ||
|
||
# manage_user_delete_page.php | ||
$s_delete_account_sure_msg = 'Are you sure you wish to delete this account?'; | ||
$s_delete_account_sure_msg = 'Are you sure you wish to delete user account "%1$s" ?'; | ||
|
||
# manage_user_edit_page.php | ||
$s_notify_user = 'Notify user of this change'; | ||
|
@@ -1075,7 +1074,7 @@ $s_title = 'Title'; | |
$s_project_file_deleted_msg = 'Project file deleted.'; | ||
|
||
# proj_doc_delete_page.php | ||
$s_confirm_file_delete_msg = 'Are you sure you wish to delete this file?'; | ||
$s_confirm_file_delete_msg = 'Are you sure you wish to delete file "%1$s" ?'; | ||
|
||
# proj_doc_edit_page.php | ||
$s_filename = 'Filename'; | ||
|
@@ -1099,7 +1098,7 @@ $s_project_user_added_msg = 'Successfully added user to project.'; | |
$s_project_removed_user_msg = 'Successfully removed user from project.'; | ||
|
||
# proj_user_delete_page.php | ||
$s_remove_user_sure_msg = 'Are you sure you wish to remove this user?'; | ||
$s_remove_user_sure_msg = 'Are you sure you wish to remove user "%1$s" from projectz "%2$s" ?'; | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong. |
||
$s_remove_user_button = 'Remove User'; | ||
$s_remove_all_users_sure_msg = 'Are you sure you wish to remove all the users of this project?'; | ||
$s_remove_all_users_button = 'Remove All Users'; | ||
|
@@ -1258,7 +1257,7 @@ $s_query_blank_name = 'You cannot store a filter without a name. Please give thi | |
$s_query_name_too_long = 'You cannot store a filter name with more than 64 characters. Please give this filter a shorter name.'; | ||
$s_query_store_error = 'There was an error saving this filter.'; | ||
$s_open_queries = 'Manage Filters'; | ||
$s_query_delete_msg = 'Are you sure you wish to delete this filter?'; | ||
$s_query_delete_msg = 'Are you sure you wish to delete filter "%1$s" ?'; | ||
$s_edit_filter = 'Edit Filter'; | ||
$s_owner = 'Owner'; | ||
$s_update_filter = 'Update filter'; | ||
|
@@ -1337,10 +1336,10 @@ $s_linked_projects_label = 'Linked Projects'; | |
$s_custom_field_sequence = 'Sequence'; | ||
$s_custom_field_sequence_label = 'Sequence'; | ||
$s_custom_field_type_enum_string = '0:String,1:Numeric,2:Float,3:Enumeration,4:E-mail,5:Checkbox,6:List,7:Multiselection list,8:Date,9:Radio,10:Textarea'; | ||
$s_confirm_used_custom_field_deletion = 'This field is currently linked to at least one project. If you continue all values for this field will be permanently deleted. This action cannot be undone. If you do not want to delete this field, hit the Back button in your browser. To proceed, click the button below'; | ||
$s_confirm_custom_field_deletion = 'Are you sure you want to delete this custom field and all associated values?'; | ||
$s_confirm_used_custom_field_deletion = 'Field "%1$s" is currently linked to at least one project. If you continue, all values for this field will be permanently deleted. This action cannot be undone. If you do not want to delete this field, hit the Back button in your browser. To proceed, click the button below'; | ||
$s_confirm_custom_field_deletion = 'Are you sure you want to delete custom field "%1$s" and all associated values?'; | ||
$s_field_delete_button = 'Delete Field'; | ||
$s_confirm_custom_field_unlinking = 'Are you sure you want to unlink this custom field from the project? The values will not be deleted as long as the custom field itself is not deleted.'; | ||
$s_confirm_custom_field_unlinking = 'Are you sure you want to unlink custom field "%1$s" from the project? The values will not be deleted as long as the custom field itself is not deleted.'; | ||
$s_field_remove_button = 'Remove Field'; | ||
$s_hide_status = 'Hide Status'; | ||
$s_filter_closed = 'Closed'; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Why space before
?
? Also, should the colon be removed?