first i18n entry (moving notification strings)

10.3.x-maintenance
cTn 2014-03-26 15:39:58 +01:00
parent eb32e0ddb3
commit db9a4f4dc0
2 changed files with 9 additions and 3 deletions

View File

@ -1,2 +1,8 @@
{
"notifications_app_just_updated_to_version": {
"message": "Application just updated to version: $1"
},
"notifications_click_here_to_start_app": {
"message": "Click here to start the application"
}
}

View File

@ -48,10 +48,10 @@ chrome.runtime.onInstalled.addListener(function(details) {
var options = {
priority: 0,
type: 'basic',
title: 'Baseflight Configurator Update',
message: 'Application just updated to version: ' + manifest.version,
title: manifest.name,
message: chrome.i18n.getMessage('notifications_app_just_updated_to_version', [manifest.version]),
iconUrl: '/images/icon_128.png',
buttons: [{'title': 'Click this button to start the application'}]
buttons: [{'title': chrome.i18n.getMessage('notifications_click_here_to_start_app')}]
};
chrome.notifications.create('baseflight_update', options, function(notificationId) {