Skip to content

Commit

Permalink
[i18n][Catalog] Revert removal of @android:string/* on Menu catalog d…
Browse files Browse the repository at this point in the history
…emo since we don't export translations for our catalog, so it's best to leave them as is.

PiperOrigin-RevId: 447979290
  • Loading branch information
leticiarossi committed May 11, 2022
1 parent 40ce41c commit 3e6329b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Expand Up @@ -149,7 +149,7 @@ public int getIntrinsicWidth() {
public void onCreateContextMenu(ContextMenu menu, View v, ContextMenuInfo menuInfo) {
TextView contextMenuTextView = (TextView) v;
Context context = getContext();
menu.add(R.string.context_menu_copy)
menu.add(android.R.string.copy)
.setOnMenuItemClickListener(
item -> {
ClipboardManager clipboard =
Expand Down
4 changes: 1 addition & 3 deletions catalog/java/io/material/catalog/menu/res/values/strings.xml
Expand Up @@ -34,9 +34,7 @@
This TextView opens a context menu when long pressed.
\n\nIt provides actions that affect the selected content or context frame.
</string>

<string name="context_menu_copy" description="Text for a menu option to copy text [CHAR_LIMIT=20].">Copy</string>
<string name="context_menu_highlight" description="Text for a menu option to highlight text [CHAR_LIMIT=20].">Highlight</string>
<string name="context_menu_highlight" description="text for a menu option to highlight text [CHAR_LIMIT=20].">Highlight</string>

<string-array name="cat_list_popup_window_content" translatable="false">
<item>Item 1</item>
Expand Down

0 comments on commit 3e6329b

Please sign in to comment.