From 1d4ab2294b13694835ce5288d076d06ad630b8b4 Mon Sep 17 00:00:00 2001 From: Narno Date: Mon, 27 Jul 2015 02:32:41 +0200 Subject: [PATCH] Opens options page on install/update + fixing locales --- src/_locales/en/messages.json | 4 ++-- src/_locales/fr/messages.json | 4 ++-- src/background.js | 1 + 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/_locales/en/messages.json b/src/_locales/en/messages.json index 82f7ebc..4951219 100644 --- a/src/_locales/en/messages.json +++ b/src/_locales/en/messages.json @@ -34,7 +34,7 @@ "message": "Battlelog updates" }, "notificationUpdatesMessage": { - "message": "You got $count$ new updates", + "message": "$count$ new update(s)", "placeholders": { "count": { "content": "$1", @@ -52,7 +52,7 @@ "message": "Battlelog friends" }, "notificationFriendsMessage": { - "message": "Friend(s) $status$: $count$", + "message": "$count$ friend(s) $status$", "placeholders": { "count": { "content": "$1", diff --git a/src/_locales/fr/messages.json b/src/_locales/fr/messages.json index 19abe4d..8ee0904 100644 --- a/src/_locales/fr/messages.json +++ b/src/_locales/fr/messages.json @@ -34,7 +34,7 @@ "message": "Mises à jour Battlelog" }, "notificationUpdatesMessage": { - "message": "Vous avez $count$ nouvelles mises à jour", + "message": "$count$ nouvelle(s) mise(s) à jour", "placeholders": { "count": { "content": "$1", @@ -51,7 +51,7 @@ "message": "Amis Battlelog" }, "notificationFriendsMessage": { - "message": "Ami(s) $status$ : $count$", + "message": "$count$ ami(s) $status$", "placeholders": { "count": { "content": "$1", diff --git a/src/background.js b/src/background.js index a9d8191..38acf97 100644 --- a/src/background.js +++ b/src/background.js @@ -410,6 +410,7 @@ console.log(manifest.name + " updated from v" + details.previousVersion + " to v" + manifest.version); } chrome.runtime.sendMessage({do: 'update_badge'}); + chrome.tabs.create({url: chrome.extension.getURL('options.html')}); }); // on message update badge