Skip to content

Commit

Permalink
Merge branch 'next-minor' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperTux88 committed Apr 26, 2017
2 parents 45c623c + afef279 commit caaea50
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 3 deletions.
1 change: 1 addition & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
## Refactor

## Bug fixes
* Make photo upload button hover text translatable [#7429](https://github.com/diaspora/diaspora/pull/7429)

## Features

Expand Down
3 changes: 3 additions & 0 deletions app/assets/javascripts/app/views/publisher/uploader_view.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ app.views.PublisherUploader = Backbone.View.extend({
element: this.el,
button: this.el,

text: {
fileInputTitle: Diaspora.I18n.t("photo_uploader.upload_photos")
},
request: {
endpoint: Routes.photos(),
params: {
Expand Down
3 changes: 3 additions & 0 deletions app/assets/javascripts/mobile/mobile_file_uploader.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ function createUploader(){
sizeLimit: 4194304
},
button: document.getElementById("file-upload-publisher"),
text: {
fileInputTitle: Diaspora.I18n.t("photo_uploader.upload_photos")
},

callbacks: {
onProgress: function(id, fileName, loaded, total) {
Expand Down
2 changes: 1 addition & 1 deletion app/views/publisher/_publisher.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
.publisher-buttonbar#publisher-images
.btn.btn-link.poll-creator#poll_creator{title: t("shared.publisher.poll.add_a_poll")}
%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
.btn.btn-link.locator#locator{title: t("shared.publisher.get_location")}
%i.entypo-location.publisher_image
Expand Down
2 changes: 1 addition & 1 deletion app/views/publisher/_publisher.mobile.haml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
%ul#photodropzone
#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
#publisher_mobile
= submit_tag t("shared.publisher.share"),
Expand Down
1 change: 0 additions & 1 deletion config/locales/diaspora/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1073,7 +1073,6 @@ en:
formatWithMarkdown: "You can use %{markdown_link} to format your post"
posting: "Posting..."
share: "Share"
upload_photos: "Upload photos"
get_location: "Get your location"
remove_location: "Remove location"
whats_on_your_mind: "What’s on your mind?"
Expand Down
1 change: 1 addition & 0 deletions config/locales/javascript/javascript.en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,7 @@ en:
alright_ill_wait: "All right, I’ll wait."
preparing_your_stream: "Preparing your personalized stream..."
photo_uploader:
upload_photos: "Upload photos"
looking_good: "OMG, you look awesome!"
completed: "<%= file %> completed"
error: "A problem occurred while uploading file <%= file %>"
Expand Down

0 comments on commit caaea50

Please sign in to comment.