Skip to content
This repository has been archived by the owner on Dec 29, 2021. It is now read-only.

Commit

Permalink
Show an in-app announcement when users upgrade to a version with 24-h…
Browse files Browse the repository at this point in the history
…our support.
  • Loading branch information
manastungare committed Jan 7, 2014
1 parent cb40865 commit e36a2d4
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 3 deletions.
4 changes: 4 additions & 0 deletions src/_locales/de/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,10 @@
"message": "24-Stunden-Zeit",
"description": "The name of the option that specifies if 24-hour time is in effect. If off, this means am/pm time."
},
"announcement_24h_time": {
"message": "24-Stunden-Zeit ist jetzt verfügbar! Stellen Sie sich jetzt.",
"description": "An announcement message shown when the user first upgrades to a version that allows choosing 24-hour time."
},
"option_show_time_until_next_event": {
"message": "Zeigen Sie die verbleibende Zeit bis zur nächsten Veranstaltung.",
"description": "The name of the option that tells the user that the extension will display the time on the badge."
Expand Down
5 changes: 5 additions & 0 deletions src/_locales/en/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,11 @@
"description": "The name of the option that specifies if 24-hour time is in effect. If off, this means am/pm time."
},

"announcement_24h_time": {
"message": "24-hr time is now available! Set now.",
"description": "An announcement message shown when the user first upgrades to a version that allows choosing 24-hour time."
},

"option_show_time_until_next_event": {
"message": "Show time remaining until the next event.",
"description": "The name of the option that tells the user that the extension will display the time on the badge."
Expand Down
4 changes: 4 additions & 0 deletions src/_locales/es/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,10 @@
"message": "Tiempo de 24 horas",
"description": "The name of the option that specifies if 24-hour time is in effect. If off, this means am/pm time."
},
"announcement_24h_time": {
"message": "Tiempo de 24 horas ya está disponible! Establezca ahora.",
"description": "An announcement message shown when the user first upgrades to a version that allows choosing 24-hour time."
},
"option_show_time_until_next_event": {
"message": "Mostrar el tiempo restante hasta el próximo evento.",
"description": "The name of the option that tells the user that the extension will display the time on the badge."
Expand Down
2 changes: 1 addition & 1 deletion src/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"manifest_version": 2,
"name": "__MSG_google_calendar_extension_name__",
"description": "__MSG_google_calendar_extension_desc__",
"version": "1.4.1.0",
"version": "1.4.2.0",
"default_locale": "en",

"icons": {
Expand Down
4 changes: 2 additions & 2 deletions src/versioning.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ versioning.checkVersion = function() {
* @private
*/
versioning.onVersionUpdated_ = function(fromVersion, toVersion) {
if (toVersion == '1.4.0.2') {
versioning.showAnnouncement_('...');
if (toVersion == '1.4.2.0') {
versioning.showAnnouncement_(chrome.i18n.getMessage('announcement_24h_time'));
}
};

Expand Down

0 comments on commit e36a2d4

Please sign in to comment.