diff options
author | 2020-03-16 20:51:26 +0000 | |
---|---|---|
committer | 2020-03-16 22:39:02 +0000 | |
commit | a29276fc6f71f77f0ad56e26ed451c0f2248a5cc (patch) | |
tree | a9818eecfb028b0005a9d1f19ebdde7c23c1d8b0 /gen_strings.py | |
parent | 08cda783a77adce97f6202feee9698d9660d63ba (diff) |
Bulk edit dialog: new strings
Also remove warning about retention period.
Test: atest ExternalStorageHostTest
Test: manual via StorageTestApp
BUG: 151133615
Change-Id: Ib215b9a582f213ef51a31f6496f1695872fa27fb
Diffstat (limited to 'gen_strings.py')
-rwxr-xr-x[-rw-r--r--] | gen_strings.py | 29 |
1 files changed, 7 insertions, 22 deletions
diff --git a/gen_strings.py b/gen_strings.py index ee0684161..99bba8a34 100644..100755 --- a/gen_strings.py +++ b/gen_strings.py @@ -29,7 +29,7 @@ print ''' for verb in verbs: verblabel = verb if verb == "write": - verblabel = "change" + verblabel = "modify" verblabelcaps = verblabel[0].upper() + verblabel[1:] if verb == "trash": @@ -45,15 +45,8 @@ for verb in verbs: print Template(''' <!-- Dialog title asking if user will allow $verb permission to the $data item displayed below this string. [CHAR LIMIT=128] --> <plurals name="permission_${verb}_${data}"> - <item quantity="one">Let <xliff:g id="app_name" example="Gmail">^1</xliff:g> move this $datalabel to trash?</item> - <item quantity="other">Let <xliff:g id="app_name" example="Gmail">^1</xliff:g> move <xliff:g id="count" example="42">^2</xliff:g> ${datalabel}s to trash?</item> -</plurals> -''').substitute(vars()).strip("\n") - print Template(''' -<!-- Dialog body text explaining that this $data item will be permanently deleted after the shown duration. [CHAR LIMIT=128] --> -<plurals name="permission_${verb}_${data}_info"> - <item quantity="one">This $datalabel will be permanently deleted after <xliff:g id="duration" example="42">^3</xliff:g> days</item> - <item quantity="other">These ${datalabel}s will be permanently deleted after <xliff:g id="duration" example="42">^3</xliff:g> days</item> + <item quantity="one">Allow <xliff:g id="app_name" example="Gmail">^1</xliff:g> to move this $datalabel to trash?</item> + <item quantity="other">Allow <xliff:g id="app_name" example="Gmail">^1</xliff:g> to move <xliff:g id="count" example="42">^2</xliff:g> ${datalabel}s to trash?</item> </plurals> ''').substitute(vars()).strip("\n") @@ -61,8 +54,8 @@ for verb in verbs: print Template(''' <!-- Dialog title asking if user will allow $verb permission to the $data item displayed below this string. [CHAR LIMIT=128] --> <plurals name="permission_${verb}_${data}"> - <item quantity="one">Let <xliff:g id="app_name" example="Gmail">^1</xliff:g> move this $datalabel out of trash?</item> - <item quantity="other">Let <xliff:g id="app_name" example="Gmail">^1</xliff:g> move <xliff:g id="count" example="42">^2</xliff:g> ${datalabel}s out of trash?</item> + <item quantity="one">Allow <xliff:g id="app_name" example="Gmail">^1</xliff:g> to move this $datalabel out of trash?</item> + <item quantity="other">Allow <xliff:g id="app_name" example="Gmail">^1</xliff:g> to move <xliff:g id="count" example="42">^2</xliff:g> ${datalabel}s out of trash?</item> </plurals> ''').substitute(vars()).strip("\n") @@ -70,19 +63,11 @@ for verb in verbs: print Template(''' <!-- Dialog title asking if user will allow $verb permission to the $data item displayed below this string. [CHAR LIMIT=128] --> <plurals name="permission_${verb}_${data}"> - <item quantity="one">Let <xliff:g id="app_name" example="Gmail">^1</xliff:g> $verblabel this $datalabel?</item> - <item quantity="other">Let <xliff:g id="app_name" example="Gmail">^1</xliff:g> $verblabel <xliff:g id="count" example="42">^2</xliff:g> ${datalabel}s?</item> + <item quantity="one">Allow <xliff:g id="app_name" example="Gmail">^1</xliff:g> to $verblabel this $datalabel?</item> + <item quantity="other">Allow <xliff:g id="app_name" example="Gmail">^1</xliff:g> to $verblabel <xliff:g id="count" example="42">^2</xliff:g> ${datalabel}s?</item> </plurals> ''').substitute(vars()).strip("\n") - - print Template(''' -<!-- Positive dialog button confirming that $verb permission should be granted. [CHAR LIMIT=32] --> -<string name="permission_${verb}_grant">${verblabelcaps}</string> -<!-- Negative dialog button confirming that $verb permission should not be granted. [CHAR LIMIT=32] --> -<string name="permission_${verb}_deny">Cancel</string> -''').substitute(vars()).strip("\n") - print ''' <!-- ========================= END AUTO-GENERATED BY gen_strings.py ========================= --> ''' |