Merge pull request #167 from kevinansfield/missing-i18n-image-uploading

Replace plain text in composer template
This commit is contained in:
Sam 2013-02-18 14:25:33 -08:00
commit 82132ab48b
2 changed files with 50 additions and 49 deletions

View File

@ -9,12 +9,12 @@
</div> </div>
<div class='control'> <div class='control'>
<a href='#' class='toggler' {{action toggle bubbles=false}} title='toggle'></a> <a href='#' class='toggler' {{action toggle bubbles=false}} title='toggle'></a>
{{#if content.viewOpen}} {{#if content.viewOpen}}
<div class='control-row reply-area'> <div class='control-row reply-area'>
<div class='reply-to'>{{{content.actionTitle}}}:</div> <div class='reply-to'>{{{content.actionTitle}}}:</div>
{{#if content.editTitle}} {{#if content.editTitle}}
<div class='form-element clearfix'> <div class='form-element clearfix'>
@ -28,7 +28,7 @@
<button class='btn' {{action showOptions target="controller"}}>{{i18n topic.options}}</button> <button class='btn' {{action showOptions target="controller"}}>{{i18n topic.options}}</button>
{{/if}} {{/if}}
{{/unless}} {{/unless}}
</div> </div>
{{/if}} {{/if}}
@ -41,7 +41,7 @@
<div id='wmd-preview' {{bindAttr class="controller.hidePreview:hidden"}}></div> <div id='wmd-preview' {{bindAttr class="controller.hidePreview:hidden"}}></div>
</div> </div>
{{#if Discourse.currentUser}} {{#if Discourse.currentUser}}
<a href="#" {{action togglePreview target="controller"}} class='toggle-preview'>{{{content.toggleText}}}</a> <a href="#" {{action togglePreview target="controller"}} class='toggle-preview'>{{{content.toggleText}}}</a>
<div class='saving-draft'></div> <div class='saving-draft'></div>
{{/if}} {{/if}}
@ -54,7 +54,7 @@
{{#if view.loadingImage}} {{#if view.loadingImage}}
<div id="image-uploading"> <div id="image-uploading">
Uploading image {{view.uploadProgress}}% <a {{action cancelUpload target="view"}}>cancel</a> {{i18n image_selector.uploading_image}} {{view.uploadProgress}}% <a {{action cancelUpload target="view"}}>{{i18n cancel}}</a>
</div> </div>
{{/if}} {{/if}}
</div> </div>
@ -69,7 +69,7 @@
{{i18n composer.saved}} <a class='permalink' href="{{unbound createdPost.url}}" {{action viewNewReply target="controller"}}>{{i18n composer.view_new_post}}</a> {{i18n composer.saved}} <a class='permalink' href="{{unbound createdPost.url}}" {{action viewNewReply target="controller"}}>{{i18n composer.view_new_post}}</a>
{{else}} {{else}}
{{i18n composer.saving}} {{i18n composer.saving}}
{{/if}} {{/if}}
</div> </div>
<div class='draft-text'> <div class='draft-text'>
{{i18n composer.saved_draft}} {{i18n composer.saved_draft}}

View File

@ -3,9 +3,9 @@
en: en:
js: js:
share: share:
topic: 'share a link to this topic' topic: 'share a link to this topic'
post: 'share a link to this post' post: 'share a link to this post'
edit: 'edit the title and category of this topic' edit: 'edit the title and category of this topic'
not_implemented: "That feature hasn't been implemented yet, sorry!" not_implemented: "That feature hasn't been implemented yet, sorry!"
@ -61,7 +61,7 @@ en:
invited_by: "Invited By" invited_by: "Invited By"
trust_level: "Trust Level" trust_level: "Trust Level"
change_username: change_username:
action: "change" action: "change"
title: "Change Username" title: "Change Username"
confirm: "There could be consequences to changing your username. Are you absolutely sure you want to?" confirm: "There could be consequences to changing your username. Are you absolutely sure you want to?"
@ -75,7 +75,7 @@ en:
error: "There was an error changing your email. Perhaps that address is already in use?" error: "There was an error changing your email. Perhaps that address is already in use?"
success: "We've sent an email to that address. Please follow the confirmation instructions." success: "We've sent an email to that address. Please follow the confirmation instructions."
email: email:
title: "Email" title: "Email"
instructions: "Your email will never be shown to the public." instructions: "Your email will never be shown to the public."
ok: "Looks good. We will email you to confirm." ok: "Looks good. We will email you to confirm."
@ -83,12 +83,12 @@ en:
authenticated: "Your email has been authenticated by {{provider}}." authenticated: "Your email has been authenticated by {{provider}}."
frequency: "We'll only email you if we haven't seen you recently and you haven't already seen the thing we're emailing you about." frequency: "We'll only email you if we haven't seen you recently and you haven't already seen the thing we're emailing you about."
name: name:
title: "Name" title: "Name"
instructions: "The longer version of your name; does not need to be unique." instructions: "The longer version of your name; does not need to be unique."
too_short: "Your name is too short." too_short: "Your name is too short."
ok: "Your name looks good." ok: "Your name looks good."
username: username:
title: "Username" title: "Username"
#instructions: "People can mention you as @{{username}}. This is an unregistered nickname. You can register it at <a href='http://discourse.org'>discourse.org</a>." #instructions: "People can mention you as @{{username}}. This is an unregistered nickname. You can register it at <a href='http://discourse.org'>discourse.org</a>."
instructions: "People can mention you as @{{username}}." instructions: "People can mention you as @{{username}}."
@ -108,7 +108,7 @@ en:
log_out: "Log Out" log_out: "Log Out"
website: "Web Site" website: "Web Site"
email_settings: "Email" email_settings: "Email"
email_digests: email_digests:
title: "When I don't visit the site, send me an email digest of what's new" title: "When I don't visit the site, send me an email digest of what's new"
daily: "daily" daily: "daily"
weekly: "weekly" weekly: "weekly"
@ -124,11 +124,11 @@ en:
not_viewed: "I haven't viewed them yet" not_viewed: "I haven't viewed them yet"
last_here: "they were posted since I was here last" last_here: "they were posted since I was here last"
after_n_days: after_n_days:
one: "they were posted in the last day" one: "they were posted in the last day"
other: "they were posted in the last {{count}} days" other: "they were posted in the last {{count}} days"
after_n_weeks: after_n_weeks:
one: "they were posted in the last week" one: "they were posted in the last week"
other: "they were posted in the last {{count}} week" other: "they were posted in the last {{count}} week"
auto_track_topics: "Automatically track topics I enter" auto_track_topics: "Automatically track topics I enter"
auto_track_options: auto_track_options:
@ -141,7 +141,7 @@ en:
one: "after 1 minute" one: "after 1 minute"
other: "after {{count}} minutes" other: "after {{count}} minutes"
invited: invited:
title: "Invites" title: "Invites"
user: "Invited User" user: "Invited User"
none: "{{username}} hasn't invited any users to the site." none: "{{username}} hasn't invited any users to the site."
@ -156,14 +156,14 @@ en:
days_visited: "Days Visited" days_visited: "Days Visited"
account_age_days: "Account age in days" account_age_days: "Account age in days"
password: password:
title: "Password" title: "Password"
too_short: "Your password is too short." too_short: "Your password is too short."
ok: "Your password looks good." ok: "Your password looks good."
ip_address: ip_address:
title: "Last IP Address" title: "Last IP Address"
avatar: avatar:
title: "Avatar" title: "Avatar"
instructions: "We use <a href='https://gravatar.com' target='_blank'>Gravatar</a> for avatars based on your email" instructions: "We use <a href='https://gravatar.com' target='_blank'>Gravatar</a> for avatars based on your email"
@ -213,7 +213,7 @@ en:
invite: "Don't have an account yet?" invite: "Don't have an account yet?"
failed: "Something went wrong, perhaps this email is already registered, try the forgot password link" failed: "Something went wrong, perhaps this email is already registered, try the forgot password link"
forgot_password: forgot_password:
title: "Forgot Password" title: "Forgot Password"
action: "I forgot my password" action: "I forgot my password"
invite: "Enter your username or email address, and we'll send you a password reset email." invite: "Enter your username or email address, and we'll send you a password reset email."
@ -246,15 +246,15 @@ en:
message: "Authenticating with Yahoo (make sure pop up blockers are not enabled)" message: "Authenticating with Yahoo (make sure pop up blockers are not enabled)"
composer: composer:
saving_draft_tip: "saving" saving_draft_tip: "saving"
saved_draft_tip: "saved" saved_draft_tip: "saved"
saved_local_draft_tip: "saved locally" saved_local_draft_tip: "saved locally"
min_length: min_length:
at_least: "enter at least {{n}} characters" at_least: "enter at least {{n}} characters"
more: "{{n}} to go..." more: "{{n}} to go..."
save_edit: "Save Edit" save_edit: "Save Edit"
reply: "Reply" reply: "Reply"
create_topic: "Create Topic" create_topic: "Create Topic"
create_pm: "Create Private Message" create_pm: "Create Private Message"
@ -292,8 +292,9 @@ en:
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_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"
search: search:
title: "search for topics, posts, users, or categories" title: "search for topics, posts, users, or categories"
placeholder: "type your search terms here" placeholder: "type your search terms here"
no_results: "No results found." no_results: "No results found."
@ -307,7 +308,7 @@ en:
title: 'Favorite' title: 'Favorite'
help: 'add this topic to your favorites list' help: 'add this topic to your favorites list'
topics: topics:
no_favorited: "You haven't favorited any topics yet. To favorite a topic, click or tap the star next to the title." no_favorited: "You haven't favorited any topics yet. To favorite a topic, click or tap the star next to the title."
no_unread: "You have no unread topics to read." no_unread: "You have no unread topics to read."
no_new: "You have no new topics to read." no_new: "You have no new topics to read."
@ -316,7 +317,7 @@ en:
no_popular: "There are no popular topics. That's sad." no_popular: "There are no popular topics. That's sad."
footer: "No more topics in this category. <a href=\"/categories\">Browse all categories</a> or <a href=\"/\">view popular topics</a>" footer: "No more topics in this category. <a href=\"/categories\">Browse all categories</a> or <a href=\"/\">view popular topics</a>"
topic: topic:
create_in: 'Create {{categoryName}} Topic' create_in: 'Create {{categoryName}} Topic'
create: 'Create Topic' create: 'Create Topic'
create_long: 'Create a new Topic' create_long: 'Create a new Topic'
@ -361,7 +362,7 @@ en:
"1_2": 'You will be notified only if someone mentions your @name or replies to your post.' "1_2": 'You will be notified only if someone mentions your @name or replies to your post.'
"0": 'You are ignoring all notifications on this topic.' "0": 'You are ignoring all notifications on this topic.'
"0_2": 'You are ignoring all notifications on this topic.' "0_2": 'You are ignoring all notifications on this topic.'
watching: watching:
title: "Watching" title: "Watching"
description: "same as Tracking, plus you will be notified of all new posts." description: "same as Tracking, plus you will be notified of all new posts."
tracking: tracking:
@ -388,11 +389,11 @@ en:
multi_select: "Toggle Multi-Select" multi_select: "Toggle Multi-Select"
convert_to_topic: "Convert to Regular Topic" convert_to_topic: "Convert to Regular Topic"
reply: reply:
title: 'Reply' title: 'Reply'
help: 'begin composing a reply to this topic' help: 'begin composing a reply to this topic'
share: share:
title: 'Share' title: 'Share'
help: 'share a link to this topic' help: 'share a link to this topic'
@ -406,11 +407,11 @@ en:
success: "Thanks! We've invited that user to participate in this private conversation." success: "Thanks! We've invited that user to participate in this private conversation."
error: "Sorry there was an error inviting that user." error: "Sorry there was an error inviting that user."
invite_reply: invite_reply:
title: 'Invite Friends to Reply' title: 'Invite Friends to Reply'
help: 'send invitations to friends so they can reply to this topic with a single click' help: 'send invitations to friends so they can reply to this topic with a single click'
email: "We'll send your friend a brief email allowing them to reply to this topic by clicking a link." email: "We'll send your friend a brief email allowing them to reply to this topic by clicking a link."
email_placeholder: 'email address' email_placeholder: 'email address'
success: "Thanks! We mailed out an invitation to <b>{{email}}</b>. We'll let you know when they redeem your invitation. Check the invitations tab on your user page to keep track of who you've invited." success: "Thanks! We mailed out an invitation to <b>{{email}}</b>. We'll let you know when they redeem your invitation. Check the invitations tab on your user page to keep track of who you've invited."
error: "Sorry we couldn't invite that person. Perhaps they are already a user?" error: "Sorry we couldn't invite that person. Perhaps they are already a user?"
@ -425,7 +426,7 @@ en:
title: "Move Selected Posts" title: "Move Selected Posts"
topic_name: "New Topic Name:" topic_name: "New Topic Name:"
error: "Sorry, there was an error moving those posts." error: "Sorry, there was an error moving those posts."
instructions: instructions:
one: "You are about to create a new topic and populate it with the post you've selected." one: "You are about to create a new topic and populate it with the post you've selected."
other: "You are about to create a new topic and populate it with the <b>{{count}}</b> posts you've selected." other: "You are about to create a new topic and populate it with the <b>{{count}}</b> posts you've selected."
@ -440,7 +441,7 @@ en:
other: "You have selected <b>{{count}}</b> posts." other: "You have selected <b>{{count}}</b> posts."
post: post:
reply: "Replying to {{link}} by {{replyAvatar}} {{username}}" reply: "Replying to {{link}} by {{replyAvatar}} {{username}}"
reply_topic: "Reply to {{link}}" reply_topic: "Reply to {{link}}"
edit: "Edit {{link}}" edit: "Edit {{link}}"
in_reply_to: "in reply to" in_reply_to: "in reply to"
@ -489,13 +490,13 @@ en:
one: "1 person {{long_form}}" one: "1 person {{long_form}}"
other: "{{count}} people {{long_form}}" other: "{{count}} people {{long_form}}"
edits: edits:
one: 1 edit one: 1 edit
other: "{{count}} edits" other: "{{count}} edits"
zero: no edits zero: no edits
delete: delete:
confirm: confirm:
one: "Are you sure you want to delete that post?" one: "Are you sure you want to delete that post?"
other: "Are you sure you want to delete all those posts?" other: "Are you sure you want to delete all those posts?"
@ -553,27 +554,27 @@ en:
categories_list: "Categories List" categories_list: "Categories List"
filters: filters:
popular: popular:
title: "Popular" title: "Popular"
help: "the most popular recent topics" help: "the most popular recent topics"
favorited: favorited:
title: "Favorited" title: "Favorited"
help: "topics you marked as favorites" help: "topics you marked as favorites"
read: read:
title: "Read" title: "Read"
help: "topics you've read" help: "topics you've read"
categories: categories:
title: "Categories" title: "Categories"
title_in: "Category - {{categoryName}}" title_in: "Category - {{categoryName}}"
help: "all topics grouped by category" help: "all topics grouped by category"
unread: unread:
title: title:
zero: "Unread" zero: "Unread"
one: "Unread (1)" one: "Unread (1)"
other: "Unread ({{count}})" other: "Unread ({{count}})"
help: "tracked topics with unread posts" help: "tracked topics with unread posts"
new: new:
title: title:
zero: "New" zero: "New"
one: "New (1)" one: "New (1)"
other: "New ({{count}})" other: "New ({{count}})"
@ -592,7 +593,7 @@ en:
admin_js: admin_js:
type_to_filter: "type to filter..." type_to_filter: "type to filter..."
admin: admin:
title: 'Discourse Admin' title: 'Discourse Admin'
dashboard: 'Admin Dashboard' dashboard: 'Admin Dashboard'
@ -606,7 +607,7 @@ en:
delete_title: "delete post (if its the first post delete topic)" delete_title: "delete post (if its the first post delete topic)"
flagged_by: "Flagged by" flagged_by: "Flagged by"
customize: customize:
title: "Customize" title: "Customize"
header: "Header" header: "Header"
css: "Stylesheet" css: "Stylesheet"