extracting some hardcoded title="..." strings

This commit is contained in:
Kuba Brecka 2013-04-18 10:42:29 +02:00
parent d20a8fd2a2
commit 2901b5bbef
5 changed files with 13 additions and 7 deletions

View File

@ -34,7 +34,7 @@
<li class='categories dropdown'> <li class='categories dropdown'>
<a class='icon' data-dropdown="site-map-dropdown" href="#" title='{{i18n site_map}}'><i class='icon-reorder'></i></a> <a class='icon' data-dropdown="site-map-dropdown" href="#" title='{{i18n site_map}}'><i class='icon-reorder'></i></a>
{{#if view.currentUser.site_flagged_posts_count}} {{#if view.currentUser.site_flagged_posts_count}}
<a href='/admin/flags/active' title='total flagged posts' class='badge-notification flagged-posts'>{{view.currentUser.site_flagged_posts_count}}</a> <a href='/admin/flags/active' title='{{i18n notifications.total_flagged}}' class='badge-notification flagged-posts'>{{view.currentUser.site_flagged_posts_count}}</a>
{{/if}} {{/if}}
</li> </li>
<li class='current-user'> <li class='current-user'>

View File

@ -1,8 +1,8 @@
<ul class="nav nav-pills image-options"> <ul class="nav nav-pills image-options">
<li title="local image" {{bindAttr class="view.localSelected:active"}}> <li title="{{i18n image_selector.local_title}}" {{bindAttr class="view.localSelected:active"}}>
<a href="#" {{action selectLocal target="view"}}>{{i18n image_selector.from_my_computer}}</a> <a href="#" {{action selectLocal target="view"}}>{{i18n image_selector.from_my_computer}}</a>
</li> </li>
<li title="remote image" {{bindAttr class="view.remoteSelected:active"}}> <li title="{{i18n image_selector.remote_title}}" {{bindAttr class="view.remoteSelected:active"}}>
<a href="#" {{action selectRemote target="view"}}>{{i18n image_selector.from_the_web}}</a> <a href="#" {{action selectRemote target="view"}}>{{i18n image_selector.from_the_web}}</a>
</li> </li>
</ul> </ul>

View File

@ -82,10 +82,10 @@
<section class='links'> <section class='links'>
<ul class='topic-links'> <ul class='topic-links'>
{{#collection contentBinding="view.parentView.infoLinks" itemTagName="li"}} {{#collection contentBinding="view.parentView.infoLinks" itemTagName="li"}}
<span class='badge badge-notification clicks' title='clicks'>{{view.content.clicks}}</span> <span class='badge badge-notification clicks' title='{{i18n topic_summary.clicks}}'>{{view.content.clicks}}</span>
<a href="{{unbound view.content.url}}" target="_blank" class='topic-link track-link' data-user-id="{{unbound view.content.user_id}}" data-ignore-post-id="true" title="{{unbound view.content.url}}"> <a href="{{unbound view.content.url}}" target="_blank" class='topic-link track-link' data-user-id="{{unbound view.content.user_id}}" data-ignore-post-id="true" title="{{unbound view.content.url}}">
{{#if view.content.title}}{{shorten view.content.title}}{{else}}{{shortenUrl view.content.url}}{{/if}} {{#if view.content.title}}{{shorten view.content.title}}{{else}}{{shortenUrl view.content.url}}{{/if}}
{{#if view.content.internal}}<i class='icon-arrow-right' title='topic link'></i>{{/if}} {{#if view.content.internal}}<i class='icon-arrow-right' title='{{i18n topic_summary.topic_link}}'></i>{{/if}}
</a> </a>
{{/collection}} {{/collection}}
</ul> </ul>

View File

@ -141,7 +141,7 @@ Discourse.PostView = Discourse.View.extend({
// Only add the expand/contract control if it's not a full post // Only add the expand/contract control if it's not a full post
var expandContract = ""; var expandContract = "";
if (!$aside.data('full')) { if (!$aside.data('full')) {
expandContract = "<i class='icon-" + desc + "' title='expand/collapse'></i>"; expandContract = "<i class='icon-" + desc + "' title='" + Em.String.i18n("post.expand_collapse") + "'></i>";
$aside.css('cursor', 'pointer'); $aside.css('cursor', 'pointer');
} }
$('.quote-controls', $aside).html("" + expandContract + navLink); $('.quote-controls', $aside).html("" + expandContract + navLink);
@ -186,7 +186,7 @@ Discourse.PostView = Discourse.View.extend({
postView.$(".cooked a[href]").each(function() { postView.$(".cooked a[href]").each(function() {
var link = $(this); var link = $(this);
if (link.attr('href') === lc.url) { if (link.attr('href') === lc.url) {
return link.append("<span class='badge badge-notification clicks' title='clicks'>" + lc.clicks + "</span>"); return link.append("<span class='badge badge-notification clicks' title='" + Em.String.i18n("topic_summary.clicks") + "'>" + lc.clicks + "</span>");
} }
}); });
} }

View File

@ -347,13 +347,16 @@ en:
invited_to_private_message: "{{username}} invited you to a private conversation: {{link}}" invited_to_private_message: "{{username}} invited you to a private conversation: {{link}}"
invitee_accepted: "<i title='accepted your invitation' class='icon icon-signin'></i> {{username}} accepted your invitation" invitee_accepted: "<i title='accepted your invitation' class='icon icon-signin'></i> {{username}} accepted your invitation"
moved_post: "<i title='moved post' class='icon icon-arrow-right'></i> {{username}} moved post to {{link}}" moved_post: "<i title='moved post' class='icon icon-arrow-right'></i> {{username}} moved post to {{link}}"
total_flagged: "total flagged posts"
image_selector: image_selector:
title: "Insert Image" title: "Insert Image"
from_my_computer: "From My Device" from_my_computer: "From My Device"
from_the_web: "From The Web" from_the_web: "From The Web"
add_image: "Add Image" add_image: "Add Image"
remote_title: "remote image"
remote_tip: "enter address of an image in the form http://example.com/image.jpg" remote_tip: "enter address of an image in the form http://example.com/image.jpg"
local_title: "local image"
local_tip: "click to select an image from your device." local_tip: "click to select an image from your device."
upload: "Upload" upload: "Upload"
uploading_image: "Uploading image" uploading_image: "Uploading image"
@ -566,6 +569,7 @@ en:
continue_discussion: "Continuing the discussion from {{postLink}}:" continue_discussion: "Continuing the discussion from {{postLink}}:"
follow_quote: "go to the quoted post" follow_quote: "go to the quoted post"
deleted_by_author: "(post removed by author)" deleted_by_author: "(post removed by author)"
expand_collapse: "expand/collapse"
has_replies: has_replies:
one: "Reply" one: "Reply"
@ -734,6 +738,8 @@ en:
topic_summary: topic_summary:
title: "Topic Summary" title: "Topic Summary"
links_shown: "show all {{totalLinks}} links..." links_shown: "show all {{totalLinks}} links..."
clicks: "clicks"
topic_link: "topic link"
topic_statuses: topic_statuses:
locked: locked: