# Image upload inside topic doesn't work if language is not English

**URL:** <https://meta.discourse.org/t/image-upload-inside-topic-doesnt-work-if-language-is-not-english/33585>\
**Category:** Bug\
**Created:** [22. September 2015 um 12:59 UTC](https://meta.discourse.org/t/image-upload-inside-topic-doesnt-work-if-language-is-not-english/33585 "2015-09-22T12:59:44Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Harakiri](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/harakiri/32/116742_2.png) [@Harakiri](https://meta.discourse.org/u/Harakiri)\
**Post date:** [22. September 2015 um 12:59 UTC](https://meta.discourse.org/t/image-upload-inside-topic-doesnt-work-if-language-is-not-english/33585/1 "2015-09-22T12:59:44Z")

</div>

Hi there,

the upload inside a thread does not work if the language is **de** (german). If you switch back to english the upload works fine.

**The Bug:**  
Instead of the image it only appears a text **XYZ.png wird hochgeladen…** instead of the image.

The locales seems correct to me:  
German: {{filename}} wird hochgeladen…  
English: Uploading {{filename}}…

Maybe one have to switch the order from **{{filename}} wird hochgeladen…** to **Wird hochgeladen: {{filename}}** because of a possible syntax issue (maybe it’s expecting the variable {{filename}} at the beginning)..?

---

<div class="post-metadata">

**Author:** ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)\
**Post date:** [22. September 2015 um 13:31 UTC](https://meta.discourse.org/t/image-upload-inside-topic-doesnt-work-if-language-is-not-english/33585/2 "2015-09-22T13:31:54Z")

</div>

Looks like it works only with English.

 ![](https://global.discourse-cdn.com/meta/original/3X/8/e/8e7d3a56c29baa1b1832f439e59496ad213fd391.png)

Seems to be a regression since  
[https://github.com/discourse/discourse/commit/af7f00099ff9541f0b4dba5771d824bcd2d9efd5](https://github.com/discourse/discourse/commit/af7f00099ff9541f0b4dba5771d824bcd2d9efd5)

---

<div class="post-metadata">

**Author:** ![Harakiri](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/harakiri/32/116742_2.png) [@Harakiri](https://meta.discourse.org/u/Harakiri)\
**Post date:** [22. September 2015 um 13:45 UTC](https://meta.discourse.org/t/image-upload-inside-topic-doesnt-work-if-language-is-not-english/33585/3 "2015-09-22T13:45:07Z")

</div>

Interesting, so other languages also don’t work. Didn’t expected that 😮

---

<div class="post-metadata">

**Author:** ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)\
**Post date:** [22. September 2015 um 15:01 UTC](https://meta.discourse.org/t/image-upload-inside-topic-doesnt-work-if-language-is-not-english/33585/4 "2015-09-22T15:01:20Z")

</div>

Gosh. Sorry about that. Fixing it…

**EDIT:** Here’s the fix.

[https://github.com/discourse/discourse/commit/a6934a200efcc6d261454e545175e76ef0880ef9](https://github.com/discourse/discourse/commit/a6934a200efcc6d261454e545175e76ef0880ef9)

Had to remove the filename since dealing with encodings in JavaScript is such a PITA that it’ll have to wait till after the release 😞

---

<div class="post-metadata">

**Author:** ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)\
**Post date:** [22. September 2015 um 15:48 UTC](https://meta.discourse.org/t/image-upload-inside-topic-doesnt-work-if-language-is-not-english/33585/5 "2015-09-22T15:48:22Z")

</div>


