# 无法自定义“接受邀请”按钮文本

**URL:** https://meta.discourse.org/t/unable-to-customize-the-accept-invite-button-text/94714
**Category:** Bug
**Created:** [2018年八月13日 19:55 UTC](https://meta.discourse.org/t/unable-to-customize-the-accept-invite-button-text/94714 "2018-08-13T19:55:54Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![alxpck](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alxpck/32/243713_2.png) [@alxpck](https://meta.discourse.org/u/alxpck)
#### Post date: [2018年八月13日 19:55 UTC](https://meta.discourse.org/t/unable-to-customize-the-accept-invite-button-text/94714/1 "2018-08-13T19:55:54Z")

</div>

Hi @techAPJ

Is the language of the “Accept Invite” button customizable?

I can’t find it in Settings \> Customize \> Text Content \> Search…  
[![](https://global.discourse-cdn.com/meta/original/3X/f/9/f9f64bce729a2f62d3292b51451ecd9bcebb3d56.png) ](https://dl.dropboxusercontent.com/s/uh7kxnabkfr53bo/Screenshot%202018-08-13%2015.55.04.png?dl=0)

---

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [2018年八月13日 21:20 UTC](https://meta.discourse.org/t/unable-to-customize-the-accept-invite-button-text/94714/2 "2018-08-13T21:20:39Z")

</div>

> [@Invite tokens accepted and ROT13 transformed](https://meta.discourse.org/t/invite-tokens-accepted-and-rot13-transformed/90316/12):
>
> Is the language of the “Accept Invite” button customizable?

Yes, search for ‘Accept Invitation’ or ‘accept\_invite’.

---

<div class="post-metadata">

### Author: ![alxpck](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alxpck/32/243713_2.png) [@alxpck](https://meta.discourse.org/u/alxpck)
#### Post date: [2018年八月14日 13:46 UTC](https://meta.discourse.org/t/unable-to-customize-the-accept-invite-button-text/94714/3 "2018-08-14T13:46:13Z")

</div>

Huh… I guess I was confused because the default text for `js.invites.accept_invite` doesn’t match what we see on the button.

Note: Invitation vs Invite

Here’s the result for `accept_invite` (we haven’t customized it)  
[![](https://global.discourse-cdn.com/meta/original/3X/0/c/0ca2327a72837089fdf5c0383c8f6fe44910ef53.jpg) ](https://dl.dropboxusercontent.com/s/7s9s9seg4b3unr9/Screenshot%202018-08-14%2009.41.57.png?dl=0)

And here’s what we see for the button:  
[![](https://global.discourse-cdn.com/meta/original/3X/3/a/3a29b91a0818b106a5aad4cc244ca56ffd91dd9d.png) ](https://dl.dropboxusercontent.com/s/4ev852nnnbyxy3l/Screenshot%202018-08-14%2009.42.46.png?dl=0)

… and when I change the value in `accept_invite` it doesn’t change what we see in the button.

We’re using the `discourse-invite-tokens` plugin and this is the Accept Invite page for the [issue discussed on another topic about the “helpful” email spam checkers triggering the token](https://meta.discourse.org/t/invite-tokens-accepted-and-rot13-transformed/90316/12).

---

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [2018年八月14日 18:44 UTC](https://meta.discourse.org/t/unable-to-customize-the-accept-invite-button-text/94714/4 "2018-08-14T18:44:20Z")

</div>

> [@alxpck](#):
>
> We’re using the `discourse-invite-tokens` plugin

That explains the problem. The discourse-invite-tokens plugin is missing a translation for the `accept_invite` key. We will get that added right away. When that has been done, you’ll be able to customize the “Accept Invite” button text.

---

<div class="post-metadata">

### Author: ![alxpck](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alxpck/32/243713_2.png) [@alxpck](https://meta.discourse.org/u/alxpck)
#### Post date: [2018年八月14日 18:56 UTC](https://meta.discourse.org/t/unable-to-customize-the-accept-invite-button-text/94714/5 "2018-08-14T18:56:45Z")

</div>

Wonderful, thank you

---

<div class="post-metadata">

### Author: ![alxpck](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alxpck/32/243713_2.png) [@alxpck](https://meta.discourse.org/u/alxpck)
#### Post date: [2018年八月20日 17:17 UTC](https://meta.discourse.org/t/unable-to-customize-the-accept-invite-button-text/94714/6 "2018-08-20T17:17:45Z")

</div>

I just checked in on this and it looks like you still need to add the missing translation. Do you know when that will be done?

---

<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: [2018年八月20日 20:15 UTC](https://meta.discourse.org/t/unable-to-customize-the-accept-invite-button-text/94714/9 "2018-08-20T20:15:27Z")

</div>

Sorry for the delay. The fix should be deployed within the next 15 minutes.

---

<div class="post-metadata">

### Author: ![alxpck](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alxpck/32/243713_2.png) [@alxpck](https://meta.discourse.org/u/alxpck)
#### Post date: [2018年八月21日 13:51 UTC](https://meta.discourse.org/t/unable-to-customize-the-accept-invite-button-text/94714/10 "2018-08-21T13:51:09Z")

</div>

It’s working, thank you!

**Note (for anyone trying to customize this):** There are now two places to customize. One for invites via the `discourse-invite-tokens` plugin and another for normal invites.

[![](https://global.discourse-cdn.com/meta/original/3X/8/e/8ee9767e0f68ddd961ec17f95fb7bb74c40dd268.png) ](https://dl.dropboxusercontent.com/s/t2xdgdvd6la3k92/Screenshot%202018-08-21%2009.49.10.png?dl=0)

`invite.accept_invite` is for the `discourse-invite-tokens` plugin.  
`js.invites.accept_invite` is for normal invites

---

<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: [2018年八月22日 13:51 UTC](https://meta.discourse.org/t/unable-to-customize-the-accept-invite-button-text/94714/11 "2018-08-22T13:51:12Z")

</div>

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.
