Commit 69e53a8b authored by Omid Tourzan's avatar Omid Tourzan Committed by Commit Bot

[partition-as-single] Add single partition format UI strings.

It will be used to add/change 3 parts of the Files.app UI by
SinglePartitionFormat flag:

- Directory tree/Gear context menu for Format and Partition device
- Format/Partition dialog warning text
- Format/Partition dialog confirm button

Along with new feature strings, it changes existing format dialog
strings (warning text and confirm button). They will be used with the
same flag.

Bug: 491043
Change-Id: I35ad96e64605e50c4367338898d7e63e1e76ada0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2379338Reviewed-by: default avatarLuciano Pacheco <lucmult@chromium.org>
Commit-Queue: Omid Tourzan <oto@chromium.org>
Cr-Commit-Position: refs/heads/master@{#808257}
parent 36a33a61
...@@ -576,6 +576,8 @@ std::unique_ptr<base::DictionaryValue> GetFileManagerStrings() { ...@@ -576,6 +576,8 @@ std::unique_ptr<base::DictionaryValue> GetFileManagerStrings() {
IDS_FILE_BROWSER_FORMAT_DEVICE_BUTTON_LABEL); IDS_FILE_BROWSER_FORMAT_DEVICE_BUTTON_LABEL);
SET_STRING("FORMAT_DIALOG_TITLE", IDS_FILE_BROWSER_FORMAT_DIALOG_TITLE); SET_STRING("FORMAT_DIALOG_TITLE", IDS_FILE_BROWSER_FORMAT_DIALOG_TITLE);
SET_STRING("FORMAT_DIALOG_MESSAGE", IDS_FILE_BROWSER_FORMAT_DIALOG_MESSAGE); SET_STRING("FORMAT_DIALOG_MESSAGE", IDS_FILE_BROWSER_FORMAT_DIALOG_MESSAGE);
SET_STRING("FORMAT_PARTITION_DIALOG_MESSAGE",
IDS_FILE_BROWSER_FORMAT_PARTITION_DIALOG_MESSAGE);
SET_STRING("FORMAT_DIALOG_DELETE_WARNING", SET_STRING("FORMAT_DIALOG_DELETE_WARNING",
IDS_FILE_BROWSER_FORMAT_DIALOG_DELETE_WARNING); IDS_FILE_BROWSER_FORMAT_DIALOG_DELETE_WARNING);
SET_STRING("FORMAT_DIALOG_DRIVE_NAME_LABEL", SET_STRING("FORMAT_DIALOG_DRIVE_NAME_LABEL",
...@@ -584,6 +586,8 @@ std::unique_ptr<base::DictionaryValue> GetFileManagerStrings() { ...@@ -584,6 +586,8 @@ std::unique_ptr<base::DictionaryValue> GetFileManagerStrings() {
IDS_FILE_BROWSER_FORMAT_DIALOG_FORMAT_LABEL); IDS_FILE_BROWSER_FORMAT_DIALOG_FORMAT_LABEL);
SET_STRING("FORMAT_DIALOG_CONFIRM_LABEL", SET_STRING("FORMAT_DIALOG_CONFIRM_LABEL",
IDS_FILE_BROWSER_FORMAT_DIALOG_CONFIRM_LABEL); IDS_FILE_BROWSER_FORMAT_DIALOG_CONFIRM_LABEL);
SET_STRING("FORMAT_DIALOG_CONFIRM_SHORT_LABEL",
IDS_FILE_BROWSER_FORMAT_DIALOG_CONFIRM_SHORT_LABEL);
SET_STRING("FORMAT_PROGRESS_MESSAGE", SET_STRING("FORMAT_PROGRESS_MESSAGE",
IDS_FILE_BROWSER_FORMAT_PROGRESS_MESSAGE); IDS_FILE_BROWSER_FORMAT_PROGRESS_MESSAGE);
SET_STRING("FORMAT_SUCCESS_MESSAGE", IDS_FILE_BROWSER_FORMAT_SUCCESS_MESSAGE); SET_STRING("FORMAT_SUCCESS_MESSAGE", IDS_FILE_BROWSER_FORMAT_SUCCESS_MESSAGE);
...@@ -793,6 +797,12 @@ std::unique_ptr<base::DictionaryValue> GetFileManagerStrings() { ...@@ -793,6 +797,12 @@ std::unique_ptr<base::DictionaryValue> GetFileManagerStrings() {
IDS_REMOVABLE_DEVICE_NAVIGATION_MESSAGE); IDS_REMOVABLE_DEVICE_NAVIGATION_MESSAGE);
SET_STRING("REMOVABLE_DEVICE_NAVIGATION_MESSAGE_READONLY_POLICY", SET_STRING("REMOVABLE_DEVICE_NAVIGATION_MESSAGE_READONLY_POLICY",
IDS_REMOVABLE_DEVICE_NAVIGATION_MESSAGE_READONLY_POLICY); IDS_REMOVABLE_DEVICE_NAVIGATION_MESSAGE_READONLY_POLICY);
SET_STRING("REPARTITION_DEVICE_BUTTON_LABEL",
IDS_FILE_BROWSER_REPARTITION_DEVICE_BUTTON_LABEL);
SET_STRING("REPARTITION_DIALOG_CONFIRM_LABEL",
IDS_FILE_BROWSER_REPARTITION_DIALOG_CONFIRM_LABEL);
SET_STRING("REPARTITION_DIALOG_MESSAGE",
IDS_FILE_BROWSER_REPARTITION_DIALOG_MESSAGE);
SET_STRING("UNPIN_FOLDER_BUTTON_LABEL", SET_STRING("UNPIN_FOLDER_BUTTON_LABEL",
IDS_FILE_BROWSER_UNPIN_FOLDER_BUTTON_LABEL); IDS_FILE_BROWSER_UNPIN_FOLDER_BUTTON_LABEL);
SET_STRING("RENAME_BUTTON_LABEL", IDS_FILE_BROWSER_RENAME_BUTTON_LABEL); SET_STRING("RENAME_BUTTON_LABEL", IDS_FILE_BROWSER_RENAME_BUTTON_LABEL);
......
...@@ -282,6 +282,9 @@ ...@@ -282,6 +282,9 @@
<message name="IDS_FILE_BROWSER_FORMAT_DEVICE_BUTTON_LABEL" desc="Title of the action for formatting removable device."> <message name="IDS_FILE_BROWSER_FORMAT_DEVICE_BUTTON_LABEL" desc="Title of the action for formatting removable device.">
Format device Format device
</message> </message>
<message name="IDS_FILE_BROWSER_REPARTITION_DEVICE_BUTTON_LABEL" desc="Title of the action for repartitioning removable device.">
Format device
</message>
<message name="IDS_FILE_BROWSER_CONFIGURE_VOLUME_BUTTON_LABEL" desc="Title of the action for configuring the selected volume."> <message name="IDS_FILE_BROWSER_CONFIGURE_VOLUME_BUTTON_LABEL" desc="Title of the action for configuring the selected volume.">
Configure Configure
</message> </message>
...@@ -967,9 +970,17 @@ ...@@ -967,9 +970,17 @@
<message name="IDS_FILE_BROWSER_FORMAT_DIALOG_TITLE" desc="Title of the format USB drive dialog."> <message name="IDS_FILE_BROWSER_FORMAT_DIALOG_TITLE" desc="Title of the format USB drive dialog.">
Format <ph name="DRIVE_NAME">$1<ex>Untitled USB</ex></ph> Format <ph name="DRIVE_NAME">$1<ex>Untitled USB</ex></ph>
</message> </message>
<!-- TODO (crbug/1129692): Clean up after SinglePartitionFormat launch. -->
<message name="IDS_FILE_BROWSER_FORMAT_DIALOG_MESSAGE" desc="Advisory message shown before formatting a USB drive."> <message name="IDS_FILE_BROWSER_FORMAT_DIALOG_MESSAGE" desc="Advisory message shown before formatting a USB drive.">
Formatting a drive will delete all data stored on it. This action cannot be undone. Formatting a drive will delete all data stored on it. This action cannot be undone.
</message> </message>
<message name="IDS_FILE_BROWSER_FORMAT_PARTITION_DIALOG_MESSAGE" desc="Advisory message shown before formatting a USB partition.">
Formatting a partition will erase all data stored on it. This action cannot be undone.
</message>
<!-- TODO END -->
<message name="IDS_FILE_BROWSER_REPARTITION_DIALOG_MESSAGE" desc="Advisory message shown before formatting a USB drive.">
Formatting a drive will erase all data stored on it and remove all existing partitions, including partitions that may not be visible. This action cannot be undone.
</message>
<message name="IDS_FILE_BROWSER_FORMAT_DIALOG_DELETE_WARNING" desc="Advisory message shown before formatting a USB drive that contains files."> <message name="IDS_FILE_BROWSER_FORMAT_DIALOG_DELETE_WARNING" desc="Advisory message shown before formatting a USB drive that contains files.">
<ph name="TOTAL_FILE_SIZE">$1<ex>38.3 MB</ex></ph> of files will be deleted <ph name="TOTAL_FILE_SIZE">$1<ex>38.3 MB</ex></ph> of files will be deleted
</message> </message>
...@@ -979,10 +990,17 @@ ...@@ -979,10 +990,17 @@
<message name="IDS_FILE_BROWSER_FORMAT_DIALOG_FORMAT_LABEL" desc="Label for the format filesystem selector"> <message name="IDS_FILE_BROWSER_FORMAT_DIALOG_FORMAT_LABEL" desc="Label for the format filesystem selector">
Format Format
</message> </message>
<!-- TODO (crbug/1129692): Clean up after SinglePartitionFormat launch. -->
<message name="IDS_FILE_BROWSER_FORMAT_DIALOG_CONFIRM_LABEL" desc="Label for the confirm button"> <message name="IDS_FILE_BROWSER_FORMAT_DIALOG_CONFIRM_LABEL" desc="Label for the confirm button">
Erase and Format Erase and Format
</message> </message>
<message name="IDS_FILE_BROWSER_FORMAT_DIALOG_CONFIRM_SHORT_LABEL" desc="Label for the confirm button">
Format
</message>
<!-- TODO END -->
<message name="IDS_FILE_BROWSER_REPARTITION_DIALOG_CONFIRM_LABEL" desc="Label for the confirm button">
Format
</message>
<message name="IDS_FILE_BROWSER_FORMAT_PROGRESS_MESSAGE" desc="Notification message displayed while formatting an external drive"> <message name="IDS_FILE_BROWSER_FORMAT_PROGRESS_MESSAGE" desc="Notification message displayed while formatting an external drive">
Formatting <ph name="DRIVE_NAME">$1<ex>My USB</ex></ph>... Formatting <ph name="DRIVE_NAME">$1<ex>My USB</ex></ph>...
</message> </message>
......
855f89d6bfea4e770be6bce1ab16a852dec0ff88
\ No newline at end of file
714ece9a5539651427c85b4558db36035b8971ff
\ No newline at end of file
6c29f496e0668f03cec2d93378fcfec5835c8286
\ No newline at end of file
64cbe33a78e5ce43a4948f80e99e965409f523d1
\ No newline at end of file
fab0f4fd70ba3d1f4210fee05ed78ff447ec9092
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment