Fix untranslatable photo upload button's hover text
closes #7429 fixes #7427
This commit is contained in:
parent
78c9cc5754
commit
afef279aff
7 changed files with 10 additions and 3 deletions
|
|
@ -3,6 +3,7 @@
|
||||||
## Refactor
|
## Refactor
|
||||||
|
|
||||||
## Bug fixes
|
## Bug fixes
|
||||||
|
* Make photo upload button hover text translatable [#7429](https://github.com/diaspora/diaspora/pull/7429)
|
||||||
|
|
||||||
## Features
|
## Features
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -14,6 +14,9 @@ app.views.PublisherUploader = Backbone.View.extend({
|
||||||
element: this.el,
|
element: this.el,
|
||||||
button: this.el,
|
button: this.el,
|
||||||
|
|
||||||
|
text: {
|
||||||
|
fileInputTitle: Diaspora.I18n.t("photo_uploader.upload_photos")
|
||||||
|
},
|
||||||
request: {
|
request: {
|
||||||
endpoint: Routes.photos(),
|
endpoint: Routes.photos(),
|
||||||
params: {
|
params: {
|
||||||
|
|
|
||||||
|
|
@ -23,6 +23,9 @@ function createUploader(){
|
||||||
sizeLimit: 4194304
|
sizeLimit: 4194304
|
||||||
},
|
},
|
||||||
button: document.getElementById("file-upload-publisher"),
|
button: document.getElementById("file-upload-publisher"),
|
||||||
|
text: {
|
||||||
|
fileInputTitle: Diaspora.I18n.t("photo_uploader.upload_photos")
|
||||||
|
},
|
||||||
|
|
||||||
callbacks: {
|
callbacks: {
|
||||||
onProgress: function(id, fileName, loaded, total) {
|
onProgress: function(id, fileName, loaded, total) {
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,7 @@
|
||||||
.publisher-buttonbar#publisher-images
|
.publisher-buttonbar#publisher-images
|
||||||
.btn.btn-link.poll-creator#poll_creator{title: t("shared.publisher.poll.add_a_poll")}
|
.btn.btn-link.poll-creator#poll_creator{title: t("shared.publisher.poll.add_a_poll")}
|
||||||
%i.entypo-bar-graph
|
%i.entypo-bar-graph
|
||||||
.btn.btn-link.file-upload#file-upload{title: t("shared.publisher.upload_photos")}
|
.btn.btn-link.file-upload#file-upload
|
||||||
%i.entypo-camera.publisher_image
|
%i.entypo-camera.publisher_image
|
||||||
.btn.btn-link.locator#locator{title: t("shared.publisher.get_location")}
|
.btn.btn-link.locator#locator{title: t("shared.publisher.get_location")}
|
||||||
%i.entypo-location.publisher_image
|
%i.entypo-location.publisher_image
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,7 @@
|
||||||
%ul#photodropzone
|
%ul#photodropzone
|
||||||
#fileInfo-publisher
|
#fileInfo-publisher
|
||||||
|
|
||||||
#file-upload-publisher{title: t('shared.publisher.upload_photos'), class: 'btn btn-default'}
|
#file-upload-publisher{class: "btn btn-default"}
|
||||||
%i.entypo-camera.middle
|
%i.entypo-camera.middle
|
||||||
#publisher_mobile
|
#publisher_mobile
|
||||||
= submit_tag t("shared.publisher.share"),
|
= submit_tag t("shared.publisher.share"),
|
||||||
|
|
|
||||||
|
|
@ -1057,7 +1057,6 @@ en:
|
||||||
formatWithMarkdown: "You can use %{markdown_link} to format your post"
|
formatWithMarkdown: "You can use %{markdown_link} to format your post"
|
||||||
posting: "Posting..."
|
posting: "Posting..."
|
||||||
share: "Share"
|
share: "Share"
|
||||||
upload_photos: "Upload photos"
|
|
||||||
get_location: "Get your location"
|
get_location: "Get your location"
|
||||||
remove_location: "Remove location"
|
remove_location: "Remove location"
|
||||||
whats_on_your_mind: "What’s on your mind?"
|
whats_on_your_mind: "What’s on your mind?"
|
||||||
|
|
|
||||||
|
|
@ -210,6 +210,7 @@ en:
|
||||||
alright_ill_wait: "All right, I’ll wait."
|
alright_ill_wait: "All right, I’ll wait."
|
||||||
preparing_your_stream: "Preparing your personalized stream..."
|
preparing_your_stream: "Preparing your personalized stream..."
|
||||||
photo_uploader:
|
photo_uploader:
|
||||||
|
upload_photos: "Upload photos"
|
||||||
looking_good: "OMG, you look awesome!"
|
looking_good: "OMG, you look awesome!"
|
||||||
completed: "<%= file %> completed"
|
completed: "<%= file %> completed"
|
||||||
error: "A problem occurred while uploading file <%= file %>"
|
error: "A problem occurred while uploading file <%= file %>"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue