How to translate google advertisement label?

(Jean-Michel) #1


I added google add on a french website.

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

Many thanks

(Jeff Atwood) #2

Not sure where that comes from, @neil?

(Michael - #3

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

(Mittineague) #4

It’s hard coded in.

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.

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.

(Joe) #5

CSS temporary hack:

.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;



Might not cover everything.

(Jean-Michel) #6

Great !
Easy with css.
Many thanks !

(Neil Lalonde) #7

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.