# German quotation marks

**URL:** https://meta.discourse.org/t/german-quotation-marks/121944
**Category:** Feature
**Created:** [July 3, 2019, 4:29am UTC](https://meta.discourse.org/t/german-quotation-marks/121944 "2019-07-03T04:29:47Z")
**Posts on this page:** 13
**Page:** 1

<div class="post-metadata">

### Author: ![uwe\_keim](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/uwe_keim/32/326762_2.png) [@uwe\_keim](https://meta.discourse.org/u/uwe_keim)
#### Post date: [July 3, 2019, 4:29am UTC](https://meta.discourse.org/t/german-quotation-marks/121944/1 "2019-07-03T04:29:47Z")

</div>

When typing quotation marks in Discourse like `\" \"`, they are rendered as `“ ”`.

This is described [in several posts](https://meta.discourse.org/search?q=typographic%20quotes%20) here.

Being from Germany and running a German-language discussion forum, I would love to see an option to automatically render those quotation marks as [German quotation marks](https://german.stackexchange.com/q/117/173) `„ “`.

**My question:**

Is it somehow possible to configure Discourse to automatically render those `\" \"` as `„ “`?

(And optionally also single quotation marks `' '` as `‚ ‘`).

---

<div class="post-metadata">

### Author: ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)
#### Post date: [July 3, 2019, 3:58pm UTC](https://meta.discourse.org/t/german-quotation-marks/121944/2 "2019-07-03T15:58:54Z")

</div>

I think this is a great idea.

Our markdown engine supports a custom `quotes` attribute [see README](https://github.com/markdown-it/markdown-it) that can take a quote pair which can be passed from a site setting.

@gerhard want to take this one?

---

<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: [July 11, 2019, 9:23pm UTC](https://meta.discourse.org/t/german-quotation-marks/121944/4 "2019-07-11T21:23:18Z")

</div>

It’s now possible to configure the rendered quotation marks with the new `markdown_typographer_quotation_marks` site setting. Discourse already ships defaults for German and French.

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

---

<div class="post-metadata">

### Author: ![uwe\_keim](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/uwe_keim/32/326762_2.png) [@uwe\_keim](https://meta.discourse.org/u/uwe_keim)
#### Post date: [July 12, 2019, 7:49am UTC](https://meta.discourse.org/t/german-quotation-marks/121944/5 "2019-07-12T07:49:35Z")

</div>

Awesome, thanks a lot, Gerhard 😊.

---

<div class="post-metadata">

### Author: ![uwe\_keim](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/uwe_keim/32/326762_2.png) [@uwe\_keim](https://meta.discourse.org/u/uwe_keim)
#### Post date: [July 12, 2019, 8:05am UTC](https://meta.discourse.org/t/german-quotation-marks/121944/6 "2019-07-12T08:05:28Z")

</div>

Just discovered that old postings are not automatically re-rendered with the correct quotes.

Only when I edit and save them.

**My question:**

Is there any command to tell Discourse to re-render all (cached?) postings, so that the quotes get automatically corrected?

---

<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: [July 12, 2019, 8:26am UTC](https://meta.discourse.org/t/german-quotation-marks/121944/7 "2019-07-12T08:26:39Z")

</div>

`rake posts:rebake` will do the trick.

---

<div class="post-metadata">

### Author: ![uwe\_keim](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/uwe_keim/32/326762_2.png) [@uwe\_keim](https://meta.discourse.org/u/uwe_keim)
#### Post date: [July 12, 2019, 8:31am UTC](https://meta.discourse.org/t/german-quotation-marks/121944/8 "2019-07-12T08:31:20Z")

</div>

Thanks, these steps did the trick:

```bash
cd /var/discourse/
sudo ./launcher enter app
sudo rake posts:rebake
exit

```

This is [described here](https://meta.discourse.org/t/rebake-all-posts/69340/2), too:

> [@Rebake all posts?](https://meta.discourse.org/t/rebake-all-posts/69340/2):
>
> Either one of these should work ./launcher enter app rake posts:rebake or cd /var/discourse ./launcher enter app bundle exec rake posts:rebake

---

<div class="post-metadata">

### Author: ![uwe\_keim](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/uwe_keim/32/326762_2.png) [@uwe\_keim](https://meta.discourse.org/u/uwe_keim)
#### Post date: [July 12, 2019, 9:24am UTC](https://meta.discourse.org/t/german-quotation-marks/121944/9 "2019-07-12T09:24:04Z")

</div>

Sorry to bother you again.

Looking at this post in my forum:

> **[Manuell DLLs aus "vcredist.x86.exe" extrahieren](https://entwicklergate.de/t/manuell-dlls-aus-vcredist-x86-exe-extrahieren/272)**
>
> Die „Visual C++ Redistributable für Visual Studio“ in den aktuellen Versionen (jeweils x86 und x64) sind monolitische EXE-Setups. Manchmal möchte man daraus Dateien extrahieren, ohne erst das Setup zu installieren. Da „vc\_redist.x86.exe“ in...

One can see that the quotes in the _body_ are correctly rendered as German quotes, while the quotes in the _title_ are still rendered as English quotes.

Is there any chance to also have the quotes in the title rendered as German quotes?

---

<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: [July 12, 2019, 7:18pm UTC](https://meta.discourse.org/t/german-quotation-marks/121944/10 "2019-07-12T19:18:21Z")

</div>

Here we go:

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

And I added a new rake task to update topic titles.

```plaintext
rake topics:update_fancy_titles

```

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [July 13, 2019, 12:23am UTC](https://meta.discourse.org/t/german-quotation-marks/121944/11 "2019-07-13T00:23:47Z")

</div>

Can we somehow set the quotes appropriately when the language is changed @gerhard? 🤔

I believe we have some other site setting triggers based on the language changing, such as shorter minimum search length in Chinese?

---

<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: [July 13, 2019, 6:48am UTC](https://meta.discourse.org/t/german-quotation-marks/121944/12 "2019-07-13T06:48:28Z")

</div>

I added defaults for German and French. Every other language will use the English default for now.

---

<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: [July 18, 2019, 10:04am UTC](https://meta.discourse.org/t/german-quotation-marks/121944/15 "2019-07-18T10:04:52Z")

</div>

@uwe_keim Unfortunately I had to remove my changes that rendered the correct quotation marks in topic titles, because our code currently can’t distinguish between apostrophes and the right single quotation mark.

> [@Quotes in post titles converted to a different character](https://meta.discourse.org/t/quotes-in-post-titles-converted-to-a-different-character/123227):
>
> Hi. Since the last Discourse update, when I write a post title that contains a quote ', it is converted to › preceded by a single space when I create the post. If I click on the edit title button, the input correctly shows ' but it is always converted to › (preceded by a single space) when I do confirm the title edition. Also it appears that if I write a double quote ", it will be converted to ».

I’ll try to improve this in the future.

---

<div class="post-metadata">

### Author: ![uwe\_keim](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/uwe_keim/32/326762_2.png) [@uwe\_keim](https://meta.discourse.org/u/uwe_keim)
#### Post date: [July 19, 2019, 7:12am UTC](https://meta.discourse.org/t/german-quotation-marks/121944/16 "2019-07-19T07:12:10Z")

</div>

Thanks for mentioning this.

Hope to get the correct quotation marks in titles back soon 🙂

Seavus to Graz!
