summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
Diffstat (limited to 'chrome')
-rw-r--r--chrome/common/extensions/docs/examples/extensions/gmail/_locales/en/messages.json36
-rw-r--r--chrome/common/extensions/docs/examples/extensions/gmail/_locales/es/messages.json36
-rw-r--r--chrome/common/extensions/docs/examples/extensions/gmail/background.html5
-rw-r--r--chrome/common/extensions/docs/examples/extensions/gmail/manifest.json9
-rw-r--r--chrome/common/extensions/docs/examples/extensions/news_i18n/_locales/en/messages.json4
-rw-r--r--chrome/common/extensions/docs/examples/extensions/news_i18n/_locales/es/messages.json63
-rw-r--r--chrome/common/extensions/docs/examples/extensions/news_i18n/feed.html4
-rw-r--r--chrome/common/extensions/docs/examples/extensions/news_i18n/manifest.json3
-rw-r--r--chrome/test/data/extensions/subscribe_page_action/_locales/en/messages.json62
-rw-r--r--chrome/test/data/extensions/subscribe_page_action/_locales/es/messages.json62
-rw-r--r--chrome/test/data/extensions/subscribe_page_action/background.html2
-rw-r--r--chrome/test/data/extensions/subscribe_page_action/manifest.json7
-rw-r--r--chrome/test/data/extensions/subscribe_page_action/subscribe.js13
13 files changed, 20 insertions, 286 deletions
diff --git a/chrome/common/extensions/docs/examples/extensions/gmail/_locales/en/messages.json b/chrome/common/extensions/docs/examples/extensions/gmail/_locales/en/messages.json
deleted file mode 100644
index 4dfd2de..0000000
--- a/chrome/common/extensions/docs/examples/extensions/gmail/_locales/en/messages.json
+++ /dev/null
@@ -1,36 +0,0 @@
-{
- "name": {
- "message": "$Google$ Mail Checker",
- "description": "Extension name in manifest.",
- "placeholders": {
- "google": {
- "content": "Google",
- "example": "Google"
- }
- }
- },
- "description": {
- "message": "Displays the number of unread messages in your $Google$ Mail inbox. You can also click the button to open your inbox.",
- "description": "Extension description in manifest.",
- "placeholders": {
- "google": {
- "content": "Google",
- "example": "Google"
- }
- }
- },
- "node_error": {
- "message": "Error: feed retrieved, but no <fullcount> node found",
- "description": "Missing node error."
- },
- "exception": {
- "message": "exception: $exception$",
- "description": "Exception message.",
- "placeholders": {
- "exception": {
- "content": "$1",
- "example": "xhr object error."
- }
- }
- }
-}
diff --git a/chrome/common/extensions/docs/examples/extensions/gmail/_locales/es/messages.json b/chrome/common/extensions/docs/examples/extensions/gmail/_locales/es/messages.json
deleted file mode 100644
index 87674fe..0000000
--- a/chrome/common/extensions/docs/examples/extensions/gmail/_locales/es/messages.json
+++ /dev/null
@@ -1,36 +0,0 @@
-{
- "name": {
- "message": "$Google$ Mail Checker",
- "description": "Nombre de la extensión en el manifiesto.",
- "placeholders": {
- "google": {
- "content": "Google",
- "example": "Google"
- }
- }
- },
- "description": {
- "message": "Muestra el número de mensajes sin leer en tu bandeja de entrada de $Google$ Mail. También se puede acceder directamente a tu bandeja de entrada pulsando el botón.",
- "description": "Descripción de la extensión en el manifiesto.",
- "placeholders": {
- "google": {
- "content": "Google",
- "example": "Google"
- }
- }
- },
- "node_error": {
- "message": "Error: feed capturado, pero no se puede hallar el nodo <fullcount>",
- "description": "Error de nodo no encontrado."
- },
- "exception": {
- "message": "excepción: $exception$",
- "description": "Mensaje de la excepción.",
- "placeholders": {
- "exception": {
- "content": "$1",
- "example": "Error en el objecto xhr."
- }
- }
- }
-}
diff --git a/chrome/common/extensions/docs/examples/extensions/gmail/background.html b/chrome/common/extensions/docs/examples/extensions/gmail/background.html
index 7f2b25f..0a0563f 100644
--- a/chrome/common/extensions/docs/examples/extensions/gmail/background.html
+++ b/chrome/common/extensions/docs/examples/extensions/gmail/background.html
@@ -163,7 +163,8 @@ function getInboxCount(onSuccess, onError) {
handleSuccess(fullCountNode.textContent);
return;
} else {
- console.error(chrome.i18n.getMessage("node_error"));
+ console.error("Error: feed retrieved, but no <fullcount> node " +
+ "found");
}
}
@@ -177,7 +178,7 @@ function getInboxCount(onSuccess, onError) {
xhr.open("GET", getFeedUrl(), true);
xhr.send(null);
} catch(e) {
- console.error(chrome.i18n.getMessage("exception", e));
+ console.error("exception: " + e);
handleError();
}
}
diff --git a/chrome/common/extensions/docs/examples/extensions/gmail/manifest.json b/chrome/common/extensions/docs/examples/extensions/gmail/manifest.json
index 90101314..96a7588 100644
--- a/chrome/common/extensions/docs/examples/extensions/gmail/manifest.json
+++ b/chrome/common/extensions/docs/examples/extensions/gmail/manifest.json
@@ -1,6 +1,6 @@
{
- "name": "__MSG_name__",
- "description": "__MSG_description__",
+ "name": "Google Mail Checker",
+ "description": "Displays the number of unread messages in your Google Mail inbox. You can also click the button to open your inbox.",
"version": "3",
"background_page": "background.html",
"options_page": "options.html",
@@ -8,10 +8,9 @@
"tabs", "http://*.google.com/", "https://*.google.com/"
],
"browser_action": {
- "default_title": ""
+ "default_title": ""
},
"icons": {
"128": "icon_128.png"
- },
- "default_locale": "en"
+ }
}
diff --git a/chrome/common/extensions/docs/examples/extensions/news_i18n/_locales/en/messages.json b/chrome/common/extensions/docs/examples/extensions/news_i18n/_locales/en/messages.json
index 9f5ea5d..0288725 100644
--- a/chrome/common/extensions/docs/examples/extensions/news_i18n/_locales/en/messages.json
+++ b/chrome/common/extensions/docs/examples/extensions/news_i18n/_locales/en/messages.json
@@ -54,10 +54,6 @@
"example": "Google"
}
}
- },
- "newsUrl": {
- "message": "http://news.google.com",
- "description": "Url to Google News."
}
}
diff --git a/chrome/common/extensions/docs/examples/extensions/news_i18n/_locales/es/messages.json b/chrome/common/extensions/docs/examples/extensions/news_i18n/_locales/es/messages.json
deleted file mode 100644
index 2093149..0000000
--- a/chrome/common/extensions/docs/examples/extensions/news_i18n/_locales/es/messages.json
+++ /dev/null
@@ -1,63 +0,0 @@
-{
- "name": {
- "message": "Lector de noticias",
- "description": "Nombre de la extensión en el manifiesto."
- },
- "description": {
- "message": "Muestra los primeros 5 eventos de '$Google$ noticias - destacados' RSS feed en una ventana.",
- "description": "Descripción de la extensión en el manifiesto.",
- "placeholders": {
- "google": {
- "content": "Google",
- "example": "Google"
- }
- }
- },
- "default_title": {
- "message": "$Google$ noticias",
- "description": "Texto de la accion de menú de la extension en el manifiesto.",
- "placeholders": {
- "google": {
- "content": "Google",
- "example": "Google"
- }
- }
- },
- "unknown_title": {
- "message": "Título desconocido",
- "description": "Noticia con título desconocido."
- },
- "error": {
- "message": "Error: $error$",
- "description": "Plantilla de error genérico. Hace falta pasar un parámetro de error.",
- "placeholders": {
- "error": {
- "content": "$1",
- "example": "Fallo al capturar el RSS feed."
- }
- }
- },
- "failed_to_fetch_rss": {
- "message": "Fallo al capturar el RSS feed.",
- "description": "Mensaje de error visible para el usuario."
- },
- "not_a_valid_feed": {
- "message": "Feed no válido.",
- "description": "Mensaje de error visible para el usuario."
- },
- "more_stories": {
- "message": "Ir a $Google$ noticias \u00BB",
- "description": "Nombre del enlace a Google noticias.",
- "placeholders": {
- "google": {
- "content": "Google",
- "example": "Google"
- }
- }
- },
- "newsUrl": {
- "message": "http://news.google.es",
- "description": "Dirección de Google News."
- }
-}
-
diff --git a/chrome/common/extensions/docs/examples/extensions/news_i18n/feed.html b/chrome/common/extensions/docs/examples/extensions/news_i18n/feed.html
index 902b0de..4d7ca01 100644
--- a/chrome/common/extensions/docs/examples/extensions/news_i18n/feed.html
+++ b/chrome/common/extensions/docs/examples/extensions/news_i18n/feed.html
@@ -102,7 +102,7 @@ function messageHandler(event) {
</script>
<script>
// Feed URL.
-var feedUrl = chrome.i18n.getMessage('newsUrl') + '/?output=rss';
+var feedUrl = 'http://news.google.com/?output=rss';
// The XMLHttpRequest object that tries to load and parse the feed.
var req;
@@ -280,7 +280,7 @@ function iframeMessageHandler(e) {
iframes[i].style.height = msg.size + "px";
} else if (msg.type == "show") {
var url = msg.url;
- if (url.indexOf(chrome.i18n.getMessage('newsUrl')) == 0) {
+ if (url.indexOf("http://news.google.com") == 0) {
// If the URL is a redirect URL, strip of the destination and go to
// that directly. This is necessary because the Google news
// redirector blocks use of the redirects in this case.
diff --git a/chrome/common/extensions/docs/examples/extensions/news_i18n/manifest.json b/chrome/common/extensions/docs/examples/extensions/news_i18n/manifest.json
index 3b60601..681d6ef 100644
--- a/chrome/common/extensions/docs/examples/extensions/news_i18n/manifest.json
+++ b/chrome/common/extensions/docs/examples/extensions/news_i18n/manifest.json
@@ -10,8 +10,7 @@
},
"permissions": [
"tabs",
- "http://news.google.com/*",
- "http://news.google.es/*"
+ "http://news.google.com/*"
],
"default_locale": "en"
}
diff --git a/chrome/test/data/extensions/subscribe_page_action/_locales/en/messages.json b/chrome/test/data/extensions/subscribe_page_action/_locales/en/messages.json
deleted file mode 100644
index 47d4d15..0000000
--- a/chrome/test/data/extensions/subscribe_page_action/_locales/en/messages.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "name": {
- "message": "RSS Subscription Extension (by Google)",
- "description": "Extension name in manifest."
- },
- "description": {
- "message": "Adds one-click subscription to your toolbar.",
- "description": "Extension description in manifest."
- },
- "default_title": {
- "message": "Subscribe to this feed",
- "description": "Extension browser action tooltip text in manifest."
- },
- "action_title": {
- "message": "Click to subscribe...",
- "description": "Extension browser action tooltip text."
- },
- "unknown_feed_name": {
- "message": "Unknown feed name",
- "description": "Error message for unknown name."
- },
- "manage_option": {
- "message": "Manage...",
- "description": "The Manage label in the feed reader drop down."
- },
- "feed_for": {
- "message": "Feed for $feed$",
- "description": "The label showing the feed name.",
- "placeholders": {
- "feed": {
- "content": "$1",
- "example": "cnn.com"
- }
- }
- },
- "error_fetching": {
- "message": "Error fetching feed",
- "description": "The error shown when feed fetching fails."
- },
- "not_valid_feed": {
- "message": "Not a valid feed.",
- "description": "The error shown when validation of the feed fails."
- },
- "no_entries": {
- "message": "This feed contains no entries.",
- "description": "The error shown when the feed is empty."
- },
- "one_entry_required": {
- "message": "There must be at least one entry in this list",
- "description": "The error shown when trying to remove the last item in the list."
- },
- "remove_confirmation": {
- "message": "Are you sure you want to remove $feed$",
- "description": "Confirmation message before removing a feed reader from the list.",
- "placeholders": {
- "feed": {
- "content": "$1",
- "example": "Google Reader."
- }
- }
- }
-}
diff --git a/chrome/test/data/extensions/subscribe_page_action/_locales/es/messages.json b/chrome/test/data/extensions/subscribe_page_action/_locales/es/messages.json
deleted file mode 100644
index d72e248..0000000
--- a/chrome/test/data/extensions/subscribe_page_action/_locales/es/messages.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "name": {
- "message": "Extensión de subscripción RSS (de Google)",
- "description": "Nombre de la extensión en el manifiesto."
- },
- "description": {
- "message": "Añade subscripciones en la barra del navegador en un clic.",
- "description": "Descripción de la extensión en el manifiesto."
- },
- "default_title": {
- "message": "Subscríbete a este feed",
- "description": "Texto de la acción de menú de la extension en el manifiesto."
- },
- "action_title": {
- "message": "Pulsa aqui para subscribirte...",
- "description": "Texto de la acción de menú de la extensión."
- },
- "unknown_feed_name": {
- "message": "Nombre del feed desconocideo",
- "description": "Mensaje de error para nombre desconocido."
- },
- "manage_option": {
- "message": "Administrar...",
- "description": "Valor para la opción por defecto del menú."
- },
- "feed_for": {
- "message": "Feed para $feed$",
- "description": "Mensaje en la etiqueta.",
- "placeholders": {
- "feed": {
- "content": "$1",
- "example": "cnn.com"
- }
- }
- },
- "error_fetching": {
- "message": "Error al capturar el feed",
- "description": "Mensaje de error en la captura del feed."
- },
- "not_valid_feed": {
- "message": "Feed no válido.",
- "description": "Mensaje de error después de verificación."
- },
- "no_entries": {
- "message": "Este Feed no contiene ninguna entrada.",
- "description": "Mensaje de error para un feed vacio."
- },
- "one_entry_required": {
- "message": "Tiene que haber como mínimo una entrada en la lista.",
- "description": "Mensaje de error si no hay entradas."
- },
- "remove_confirmation": {
- "message": "Estas seguro que quieras eliminar $feed$",
- "description": "Mensaje de confirmación antes de eliminar.",
- "placeholders": {
- "feed": {
- "content": "$1",
- "example": "Google Reader."
- }
- }
- }
-}
diff --git a/chrome/test/data/extensions/subscribe_page_action/background.html b/chrome/test/data/extensions/subscribe_page_action/background.html
index cb20089..c97d48f 100644
--- a/chrome/test/data/extensions/subscribe_page_action/background.html
+++ b/chrome/test/data/extensions/subscribe_page_action/background.html
@@ -17,7 +17,7 @@
// Enable the page action icon.
feedData[sender.tab.id] = request.feeds;
chrome.pageAction.setTitle({ tabId: sender.tab.id,
- title: chrome.i18n.getMessage("action_title")
+ title: "Click to subscribe..."
});
chrome.pageAction.show(sender.tab.id);
}
diff --git a/chrome/test/data/extensions/subscribe_page_action/manifest.json b/chrome/test/data/extensions/subscribe_page_action/manifest.json
index c333dee..be13375 100644
--- a/chrome/test/data/extensions/subscribe_page_action/manifest.json
+++ b/chrome/test/data/extensions/subscribe_page_action/manifest.json
@@ -1,7 +1,6 @@
{
- "name": "__MSG_name__",
- "description": "__MSG_description__",
- "default_locale": "en",
+ "name": "RSS Subscription Extension (by Google)",
+ "description": "Adds one-click subscription to your toolbar.",
"version": "1.9.1",
"permissions": [
"tabs",
@@ -18,7 +17,7 @@
],
"icons": { "128": "feed-icon-128x128.png" },
"page_action": {
- "default_title": "__MSG_default_title__",
+ "default_title": "Subscribe to this feed",
"default_icon": "feed-icon-16x16.png",
"popup": "popup.html"
}
diff --git a/chrome/test/data/extensions/subscribe_page_action/subscribe.js b/chrome/test/data/extensions/subscribe_page_action/subscribe.js
index c4a423e..6234dfa 100644
--- a/chrome/test/data/extensions/subscribe_page_action/subscribe.js
+++ b/chrome/test/data/extensions/subscribe_page_action/subscribe.js
@@ -28,7 +28,7 @@ var styleSheet = "";
var frameScript = "";
// What to show when we cannot parse the feed name.
-var unknownName = chrome.i18n.getMessage("unknown_feed_name");
+var unknownName = "Unknown feed name";
// A list of feed readers, populated by localStorage if available, otherwise
// hard coded.
@@ -76,8 +76,7 @@ function main() {
if (storageEnabled) {
// Add the "Manage..." entry to the dropdown and show the checkbox asking
// if we always want to use this reader in the future (skip the preview).
- var manageText = chrome.i18n.getMessage("manage_option");
- readerDropdown.options[i] = new Option(manageText, "");
+ readerDropdown.options[i] = new Option("Manage...", "");
document.getElementById('alwaysUseSpan').style.display = "block";
}
@@ -121,12 +120,12 @@ function main() {
// Sets the title for the feed.
function setFeedTitle(title) {
var titleTag = document.getElementById('title');
- titleTag.textContent = chrome.i18n.getMessage("feed_for", title);
+ titleTag.textContent = "Feed for '" + title + "'";
}
// Handles errors during the XMLHttpRequest.
function handleError() {
- handleFeedParsingFailed(chrome.i18n.getMessage("error_fetching"));
+ handleFeedParsingFailed("Error fetching feed");
}
// Handles feed parsing errors.
@@ -174,7 +173,7 @@ function handleResponse() {
var doc = req.responseXML;
if (!doc) {
- handleFeedParsingFailed(chrome.i18n.getMessage("not_valid_feed"));
+ handleFeedParsingFailed("Not a valid feed.");
return;
}
@@ -183,7 +182,7 @@ function handleResponse() {
if (entries.length == 0)
entries = doc.getElementsByTagName('item');
if (entries.length == 0) {
- handleFeedParsingFailed(chrome.i18n.getMessage("no_entries"));
+ handleFeedParsingFailed("This feed contains no entries.")
return;
}