mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 826487: Change "Open in New Private Tab" to "Open in Private Tab". [r=mfinkle]
This commit is contained in:
parent
7c7c25027c
commit
fbdb783306
@ -508,7 +508,7 @@ public class AwesomeBar extends GeckoActivity {
|
||||
|
||||
switch (item.getItemId()) {
|
||||
case R.id.open_new_tab:
|
||||
case R.id.open_new_private_tab: {
|
||||
case R.id.open_private_tab: {
|
||||
if (url == null) {
|
||||
Log.e(LOGTAG, "Can't open in new tab because URL is null");
|
||||
break;
|
||||
@ -519,7 +519,7 @@ public class AwesomeBar extends GeckoActivity {
|
||||
newTabUrl = ReaderModeUtils.getAboutReaderForUrl(url, true);
|
||||
|
||||
int flags = Tabs.LOADURL_NEW_TAB;
|
||||
if (item.getItemId() == R.id.open_new_private_tab)
|
||||
if (item.getItemId() == R.id.open_private_tab)
|
||||
flags |= Tabs.LOADURL_PRIVATE;
|
||||
|
||||
Tabs.getInstance().loadUrl(newTabUrl, flags);
|
||||
|
@ -154,7 +154,7 @@ size. -->
|
||||
<!ENTITY find_close "Close">
|
||||
|
||||
<!ENTITY contextmenu_open_new_tab "Open in New Tab">
|
||||
<!ENTITY contextmenu_open_new_private_tab "Open in New Private Tab">
|
||||
<!ENTITY contextmenu_open_private_tab "Open in Private Tab">
|
||||
<!ENTITY contextmenu_open_in_reader "Open in Reader">
|
||||
<!ENTITY contextmenu_remove_history "Remove">
|
||||
<!ENTITY contextmenu_remove_bookmark "Remove">
|
||||
|
@ -8,8 +8,8 @@
|
||||
<item android:id="@+id/open_new_tab"
|
||||
android:title="@string/contextmenu_open_new_tab"/>
|
||||
|
||||
<item android:id="@+id/open_new_private_tab"
|
||||
android:title="@string/contextmenu_open_new_private_tab"/>
|
||||
<item android:id="@+id/open_private_tab"
|
||||
android:title="@string/contextmenu_open_private_tab"/>
|
||||
|
||||
<item android:id="@+id/open_in_reader"
|
||||
android:title="@string/contextmenu_open_in_reader"/>
|
||||
|
@ -161,7 +161,7 @@
|
||||
<string name="reader">&reader;</string>
|
||||
|
||||
<string name="contextmenu_open_new_tab">&contextmenu_open_new_tab;</string>
|
||||
<string name="contextmenu_open_new_private_tab">&contextmenu_open_new_private_tab;</string>
|
||||
<string name="contextmenu_open_private_tab">&contextmenu_open_private_tab;</string>
|
||||
<string name="contextmenu_open_in_reader">&contextmenu_open_in_reader;</string>
|
||||
<string name="contextmenu_remove_history">&contextmenu_remove_history;</string>
|
||||
<string name="contextmenu_remove_bookmark">&contextmenu_remove_bookmark;</string>
|
||||
|
@ -328,7 +328,7 @@ var BrowserApp = {
|
||||
NativeWindow.toast.show(label, "short");
|
||||
});
|
||||
|
||||
NativeWindow.contextmenus.add(Strings.browser.GetStringFromName("contextmenu.openInNewPrivateTab"),
|
||||
NativeWindow.contextmenus.add(Strings.browser.GetStringFromName("contextmenu.openInPrivateTab"),
|
||||
NativeWindow.contextmenus.linkOpenableContext,
|
||||
function(aTarget) {
|
||||
let url = NativeWindow.contextmenus._getLinkURL(aTarget);
|
||||
|
@ -215,7 +215,7 @@ selectionHelper.textCopied=Text copied to clipboard
|
||||
|
||||
# Context menu
|
||||
contextmenu.openInNewTab=Open Link in New Tab
|
||||
contextmenu.openInNewPrivateTab=Open Link in New Private Tab
|
||||
contextmenu.openInPrivateTab=Open Link in Private Tab
|
||||
contextmenu.share=Share
|
||||
contextmenu.copyLink=Copy Link
|
||||
contextmenu.shareLink=Share Link
|
||||
|
Loading…
Reference in New Issue
Block a user