Bug 1054912 - Change 'Cast to' term to 'Send to ' in-product r=wesj a=mfinkle l10n=mfinkle
authorMark Finkle <mfinkle@mozilla.com>
Tue, 02 Sep 2014 15:26:29 -0400
changeset 224575 e279f845b3d428fd345c602a89c49b50d14247f0
parent 224574 c58989434fa1aa2b05b7e11a60b4f7bdbdc80a22
child 224576 597d3192150f694e212f1845c6229c8fcf9a18a9
push id3979
push userraliiev@mozilla.com
push dateMon, 13 Oct 2014 16:35:44 +0000
treeherdermozilla-beta@30f2cc610691 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerswesj, mfinkle
bugs1054912
milestone34.0a2
Bug 1054912 - Change 'Cast to' term to 'Send to ' in-product r=wesj a=mfinkle l10n=mfinkle
mobile/android/base/MediaCastingBar.java
mobile/android/base/locales/en-US/android_strings.dtd
mobile/android/base/resources/layout/media_casting.xml
mobile/android/base/strings.xml.in
mobile/android/chrome/content/CastingApps.js
mobile/android/locales/en-US/chrome/browser.properties
--- a/mobile/android/base/MediaCastingBar.java
+++ b/mobile/android/base/MediaCastingBar.java
@@ -43,17 +43,17 @@ public class MediaCastingBar extends Rel
 
         mMediaPlay = (ImageButton) content.findViewById(R.id.media_play);
         mMediaPlay.setOnClickListener(this);
         mMediaPause = (ImageButton) content.findViewById(R.id.media_pause);
         mMediaPause.setOnClickListener(this);
         mMediaStop = (ImageButton) content.findViewById(R.id.media_stop);
         mMediaStop.setOnClickListener(this);
 
-        mCastingTo = (TextView) content.findViewById(R.id.media_casting_to);
+        mCastingTo = (TextView) content.findViewById(R.id.media_sending_to);
 
         // Capture clicks on the rest of the view to prevent them from
         // leaking into other views positioned below.
         content.setOnClickListener(this);
 
         mInflated = true;
     }
 
--- a/mobile/android/base/locales/en-US/android_strings.dtd
+++ b/mobile/android/base/locales/en-US/android_strings.dtd
@@ -296,19 +296,19 @@ size. -->
 
 <!-- Localization note (find_text, find_prev, find_next, find_close) : These strings are used
      as alternate text for accessibility. They are not visible in the UI. -->
 <!ENTITY find_text "Find in Page">
 <!ENTITY find_prev "Previous">
 <!ENTITY find_next "Next">
 <!ENTITY find_close "Close">
 
-<!-- Localization note (media_casting_to, media_play, media_pause, media_stop) : These strings are used
+<!-- Localization note (media_sending_to, media_play, media_pause, media_stop) : These strings are used
      as alternate text for accessibility. They are not visible in the UI. -->
-<!ENTITY media_casting_to "Casting to Device">
+<!ENTITY media_sending_to "Sending to Device">
 <!ENTITY media_play "Play">
 <!ENTITY media_pause "Pause">
 <!ENTITY media_stop "Stop">
 
 <!ENTITY contextmenu_open_new_tab "Open in New Tab">
 <!ENTITY contextmenu_open_private_tab "Open in Private Tab">
 <!ENTITY contextmenu_remove "Remove">
 <!ENTITY contextmenu_add_to_launcher "Add to Home Screen">
--- a/mobile/android/base/resources/layout/media_casting.xml
+++ b/mobile/android/base/resources/layout/media_casting.xml
@@ -14,28 +14,28 @@
 
         <ImageButton android:id="@+id/media_pause"
                      style="@style/FindBar.ImageButton"
                      android:contentDescription="@string/media_pause"
                      android:src="@drawable/media_bar_pause"/>
 
     </RelativeLayout>
 
-    <TextView android:id="@+id/media_casting_to"
+    <TextView android:id="@+id/media_sending_to"
               android:layout_width="wrap_content"
               android:layout_height="wrap_content"
               android:layout_marginLeft="5dip"
               android:layout_marginRight="5dip"
               android:layout_alignParentLeft="true"
               android:layout_toLeftOf="@id/media_controls"
               android:layout_centerVertical="true"
               android:singleLine="true"
               android:ellipsize="end"
               android:textColor="#FFFFFFFF"
-              android:contentDescription="@string/media_casting_to"/>
+              android:contentDescription="@string/media_sending_to"/>
 
     <ImageButton android:id="@+id/media_stop"
                  style="@style/FindBar.ImageButton"
                  android:contentDescription="@string/media_stop"
                  android:layout_alignParentRight="true"
                  android:src="@drawable/media_bar_stop"/>
 
 </merge>
--- a/mobile/android/base/strings.xml.in
+++ b/mobile/android/base/strings.xml.in
@@ -100,17 +100,17 @@
   <string name="page">&page;</string>
   <string name="tools">&tools;</string>
 
   <string name="find_text">&find_text;</string>
   <string name="find_prev">&find_prev;</string>
   <string name="find_next">&find_next;</string>
   <string name="find_close">&find_close;</string>
 
-  <string name="media_casting_to">&media_casting_to;</string>
+  <string name="media_sending_to">&media_sending_to;</string>
   <string name="media_play">&media_play;</string>
   <string name="media_pause">&media_pause;</string>
   <string name="media_stop">&media_stop;</string>
 
   <string name="overlay_share_send_other">&overlay_share_send_other;</string>
   <string name="overlay_share_label">&overlay_share_label;</string>
   <string name="overlay_share_bookmark_btn_label">&overlay_share_bookmark_btn_label;</string>
   <string name="overlay_share_reading_list_btn_label">&overlay_share_reading_list_btn_label;</string>
--- a/mobile/android/chrome/content/CastingApps.js
+++ b/mobile/android/chrome/content/CastingApps.js
@@ -57,17 +57,17 @@ var CastingApps = {
     SimpleServiceDiscovery.registerTarget(rokuTarget);
     SimpleServiceDiscovery.registerTarget(fireflyTarget);
     SimpleServiceDiscovery.registerTarget(mediaPlayerTarget);
 
     // Search for devices continuously every 120 seconds
     SimpleServiceDiscovery.search(120 * 1000);
 
     this._castMenuId = NativeWindow.contextmenus.add(
-      Strings.browser.GetStringFromName("contextmenu.castToScreen"),
+      Strings.browser.GetStringFromName("contextmenu.sendToDevice"),
       this.filterCast,
       this.handleContextMenu.bind(this)
     );
 
     Services.obs.addObserver(this, "Casting:Play", false);
     Services.obs.addObserver(this, "Casting:Pause", false);
     Services.obs.addObserver(this, "Casting:Stop", false);
     Services.obs.addObserver(this, "Casting:Mirror", false);
@@ -424,24 +424,24 @@ var CastingApps = {
     }
 
     // We check for two state here:
     // 1. The video is actively being cast
     // 2. The video is allowed to be cast and is currently playing
     // Both states have the same action: Show the cast page action
     if (aVideo.mozIsCasting) {
       this.pageAction.id = PageActions.add({
-        title: Strings.browser.GetStringFromName("contextmenu.castToScreen"),
+        title: Strings.browser.GetStringFromName("contextmenu.sendToDevice"),
         icon: "drawable://casting_active",
         clickCallback: this.pageAction.click,
         important: true
       });
     } else if (aVideo.mozAllowCasting) {
       this.pageAction.id = PageActions.add({
-        title: Strings.browser.GetStringFromName("contextmenu.castToScreen"),
+        title: Strings.browser.GetStringFromName("contextmenu.sendToDevice"),
         icon: "drawable://casting",
         clickCallback: this.pageAction.click,
         important: true
       });
     }
   },
 
   prompt: function(aCallback, aFilterFunc) {
@@ -458,17 +458,17 @@ var CastingApps = {
       }
     });
 
     if (items.length == 0) {
       return;
     }
 
     let prompt = new Prompt({
-      title: Strings.browser.GetStringFromName("casting.prompt")
+      title: Strings.browser.GetStringFromName("casting.sendToDevice")
     }).setSingleChoiceItems(items).show(function(data) {
       let selected = data.button;
       let service = selected == -1 ? null : filteredServices[selected];
       if (aCallback)
         aCallback(service);
     });
   },
 
--- a/mobile/android/locales/en-US/chrome/browser.properties
+++ b/mobile/android/locales/en-US/chrome/browser.properties
@@ -206,17 +206,19 @@ password.dontSave=Don't save
 # This is not a string to translate. If users frequently use the "Character Encoding"
 # menu, set this to "true". Otherwise, you can leave it as "false".
 browser.menu.showCharacterEncoding=false
 
 # Text Selection
 selectionHelper.textCopied=Text copied to clipboard
 
 # Casting
-casting.prompt=Cast to Device
+# LOCALIZATION NOTE (casting.sendToDevice): Label that will be used in the
+# dialog/prompt.
+casting.sendToDevice=Send to Device
 casting.mirrorTab=Mirror Tab
 casting.mirrorTabStop=Stop Mirror
 
 # Context menu
 contextmenu.openInNewTab=Open Link in New Tab
 contextmenu.openInPrivateTab=Open Link in Private Tab
 contextmenu.addToReadingList=Add to Reading List
 contextmenu.share=Share
@@ -242,17 +244,19 @@ contextmenu.playMedia=Play
 contextmenu.pauseMedia=Pause
 contextmenu.shareMedia=Share Video
 contextmenu.showControls2=Show Controls
 contextmenu.mute=Mute
 contextmenu.unmute=Unmute
 contextmenu.saveVideo=Save Video
 contextmenu.saveAudio=Save Audio
 contextmenu.addToContacts=Add to Contacts
-contextmenu.castToScreen=Cast to Screen
+# LOCALIZATION NOTE (contextmenu.sendToDevice):
+# The label that will be used in the contextmenu and the pageaction
+contextmenu.sendToDevice=Send to Device
 
 contextmenu.copy=Copy
 contextmenu.cut=Cut
 contextmenu.selectAll=Select All
 contextmenu.paste=Paste
 
 contextmenu.call=Call
 
@@ -379,9 +383,9 @@ browser.menu.context.mailto = Mail
 # "Subscribe to page" prompts created in FeedHandler.js
 feedHandler.chooseFeed=Choose feed
 feedHandler.subscribeWith=Subscribe with
 
 # LOCALIZATION NOTE (nativeWindow.deprecated):
 # This string is shown in the console when someone uses deprecated NativeWindow apis.
 # %1$S=name of the api that's deprecated, %2$S=New API to use. This may be a url to
 # a file they should import or the name of an api.
-nativeWindow.deprecated=%S is deprecated. Please use %S instead
\ No newline at end of file
+nativeWindow.deprecated=%S is deprecated. Please use %S instead