Skip to content

Commit

Permalink
Added some more values
Browse files Browse the repository at this point in the history
  • Loading branch information
Ikke committed Jan 17, 2010
1 parent 017646b commit 68f391b
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 6 deletions.
21 changes: 21 additions & 0 deletions _locales/en/messages.json
Expand Up @@ -10,5 +10,26 @@
"options": {
"message": "Options",
"description": "Options link"
},
"allRead": {
"message": "Mark all as read"
},
"newToken": {
"message": "Request another token"
},
"shortenerIdleString": {
"message": "Type a URL to make it shorter, or, click right here \u2192"
},
"timelineHome": {
"message": "Home",
"description": "The home timeline tab"
},
"timelineDM": {
"message": "DM",
"description": "The direct message timeline tab"
},
"timelineFavorites": {
"message": "Favorites",
"description": "The home timeline tab"
}
}
12 changes: 6 additions & 6 deletions popup.html
Expand Up @@ -325,7 +325,7 @@
}

var Shortener = {
SHORTENER_IDLE_STR: 'Type a URL to make it shorter, or, click right here \u2192',
SHORTENER_IDLE_STR: chrome.i18n.getMessage("shortenerIdleString"),

init: function() {
var savedUrl = tweetManager.composerData.urlShortener;
Expand Down Expand Up @@ -886,13 +886,13 @@
}
var name = '';
if(timelineId == 'home') {
name = 'Home';
name = chrome.i18n.getMessage("timelineHome");
} else if(timelineId == 'mentions') {
name = '@<span class="__username">';
} else if(timelineId == 'dms') {
name = 'DM';
name = chrome.i18n.getMessage("timelineDM");
} else if(timelineId == 'favorites') {
name = 'Favorites';
name = chrome.i18n.getMessage("timelineFavorites");
}
$("#tabs").tabs('add', '#timeline-' + timelineId, name);
});
Expand Down Expand Up @@ -1002,7 +1002,7 @@
<a href="javascript:signout()"><script>writeMessage("logout");</script></a> |
<a href="#" onclick="openTab(chrome.extension.getURL('options.html'))"><script>writeMessage("options");</script></a>
</span>
<a class="header_link_right" href="javascript:Renderer.markAllAsRead();">Mark all as read</a>
<a class="header_link_right" href="javascript:Renderer.markAllAsRead();"><script>writeMessage("allRead");</script></a>
<img src="img/loading.gif" id="loading" style="display: none;"/>
<div style="clear: both;"></div>

Expand All @@ -1020,7 +1020,7 @@
<input type="text" name="pin"><br>
<input type="button" onclick="OAuth.registerPin();" value="Authorize!">
<br><br>
<a href="javascript:OAuth.requestNewToken();">Request another token</a>
<a href="javascript:OAuth.requestNewToken();"><script>writeMessage("newToken");</script></a>
</div>
<div id="error_pin" style="display: none;">
</div>
Expand Down

0 comments on commit 68f391b

Please sign in to comment.