Hello
I added google add on a french website.
Where to modify label, to translate it in french ?
Nothing in params…
Many thanks
The discussion revolves around translating the Google advertisement label on a French website. Jean-Michel25 initially asked where to modify the label to translate it into French.
Mittineague explained that the label is hardcoded and, according to Google’s terms, only “Advertisements” or “Sponsored Links” can be used.
As a temporary solution, Johani suggested a CSS hack to change the label text.
Jean-Michel25 found this solution helpful.
Finally, neil acknowledged the hardcoded string as a bug and made a fix to make it a translated string, which will show in the site’s language and can be customized in the Admin panel.
Not sure where that comes from, @neil?
There are quite some pull requests pending for that plugin, this is one of them:
https://github.com/discourse/discourse-adplugin/pull/51/files
It’s hard coded in.
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.
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.