# How to translate google advertisement label?

**URL:** https://meta.discourse.org/t/how-to-translate-google-advertisement-label/77415
**Category:** Support
**Created:** [January 7, 2018, 2:17pm UTC](https://meta.discourse.org/t/how-to-translate-google-advertisement-label/77415 "2018-01-07T14:17:42Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![Jean-Michel25](https://avatars.discourse-cdn.com/v4/letter/j/e19adc/32.png) [@Jean-Michel25](https://meta.discourse.org/u/Jean-Michel25)
#### Post date: [January 7, 2018, 2:17pm UTC](https://meta.discourse.org/t/how-to-translate-google-advertisement-label/77415/1 "2018-01-07T14:17:42Z")

</div>

Hello

I added google add on a french website.

Where to modify label, to translate it in french ?  
Nothing in params…

 ![image](https://global.discourse-cdn.com/meta/original/3X/1/b/1bd94391b31b79c6b49fb0a467e7da9c257b027b.png)

Many thanks

---

<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: [January 7, 2018, 9:37pm UTC](https://meta.discourse.org/t/how-to-translate-google-advertisement-label/77415/2 "2018-01-07T21:37:38Z")

</div>

Not sure where that comes from, @neil?

---

<div class="post-metadata">

### Author: ![michaeld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/michaeld/32/1594_2.png) [@michaeld](https://meta.discourse.org/u/michaeld)
#### Post date: [January 8, 2018, 5:28am UTC](https://meta.discourse.org/t/how-to-translate-google-advertisement-label/77415/3 "2018-01-08T05:28:11Z")

</div>

There are quite some pull requests pending for that plugin, this is one of them:

[https://github.com/discourse/discourse-adplugin/pull/51/files](https://github.com/discourse/discourse-adplugin/pull/51/files)

---

<div class="post-metadata">

### Author: ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)
#### Post date: [January 8, 2018, 5:39am UTC](https://meta.discourse.org/t/how-to-translate-google-advertisement-label/77415/4 "2018-01-08T05:39:58Z")

</div>

> [@codinghorror](#):
>
> where that comes from

It’s hard coded in.  
[https://github.com/discourse/discourse-adplugin/blob/master/assets/javascripts/discourse/templates/components/google-adsense.hbs](https://github.com/discourse/discourse-adplugin/blob/master/assets/javascripts/discourse/templates/components/google-adsense.hbs)

I guess it would be easy enough to have that be translatable. However, AFAIK, the terms are fairly explicit about what can be used as label text when a label is used.

> **[Ad placement policies - Google AdSense Help](https://support.google.com/adsense/answer/1346295?hl=en&visit_id=639158956551560328-1999167963&rd=1)**
>
> Publishers may want to experiment with a variety of ad placements. Explore Adsense ad placement policies below. Avoiding accidental clicks Encouraging accidental clicks

> Publishers have two options for how to label AdSense ad units: You can either label the units with “Advertisements” or “Sponsored Links”. No other variations are allowed at this time.

---

<div class="post-metadata">

### Author: ![Johani](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/johani/32/176920_2.png) [@Johani](https://meta.discourse.org/u/Johani)
#### Post date: [January 8, 2018, 5:45am UTC](https://meta.discourse.org/t/how-to-translate-google-advertisement-label/77415/5 "2018-01-08T05:45:25Z")

</div>

CSS **temporary** hack:

```plaintext
.discourse-adplugin .google-adsense-label>h2 {
    font-size: 0;
}
.discourse-adplugin .google-adsense-label>h2:after {
    content: "Foo bar"; // <--- change to whatever word you want to use instead of ADVERTISEMENT
    font-size: 12px;
}

```

Before:

 ![Capture33](https://global.discourse-cdn.com/meta/original/3X/6/c/6c541f7dc3d4bfed5c90474117aa5cff4827c0e2.PNG)

After:

 ![Capture22](https://global.discourse-cdn.com/meta/original/3X/8/7/8782209d0de63eb5f266e92781f670f18164db2b.PNG)

**Might not cover everything.**

---

<div class="post-metadata">

### Author: ![Jean-Michel25](https://avatars.discourse-cdn.com/v4/letter/j/e19adc/32.png) [@Jean-Michel25](https://meta.discourse.org/u/Jean-Michel25)
#### Post date: [January 8, 2018, 9:03am UTC](https://meta.discourse.org/t/how-to-translate-google-advertisement-label/77415/6 "2018-01-08T09:03:11Z")

</div>

Great !  
Easy with css.  
Many thanks !

 ![image](https://global.discourse-cdn.com/meta/original/3X/0/d/0d53b30ffad4745548148590f8dee181e515244d.png)

---

<div class="post-metadata">

### Author: ![neil](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/neil/32/102150_2.png) [@neil](https://meta.discourse.org/u/neil)
#### Post date: [January 8, 2018, 7:02pm UTC](https://meta.discourse.org/t/how-to-translate-google-advertisement-label/77415/7 "2018-01-08T19:02:41Z")

</div>

It’s a bug that the string was hard-coded. I made a fix so it’s a translated string and will show in the site’s language (once translators have translated it). Also, you’ll be able to customize it in Admin like any string on the site.

 ![Admin_-_Localhost_Discourse](https://global.discourse-cdn.com/meta/original/3X/d/7/d7084524781cd1e6a9e1dec81b60bad418c09222.png)

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [June 8, 2024, 12:43pm UTC](https://meta.discourse.org/t/how-to-translate-google-advertisement-label/77415/8 "2024-06-08T12:43:36Z")

</div>

This topic was automatically closed after 2343 days. New replies are no longer allowed.
