New home › Forums › Pro Add-on › Translate "More details" link with qtranslate without changing the site language
Tagged: translate
- This topic has 3 replies, 2 voices, and was last updated 5 years, 9 months ago by [email protected].
-
AuthorPosts
-
November 21, 2017 at 2:05 pm #32310jpsantosMember
Hey guys, great job with plugin!
I tried finding the answer for this here with no success.
My site is using the qtranslate-x plugin and I need a way to translate the link text (“More details”) on the info windows.
Given that the qtranslate plugin is what’s managing the translations how can I translate this string without changing the site’s language in the general settings?
Thanks in advance
November 28, 2017 at 8:31 am #32495[email protected]MemberHi there,
Thanks for getting in touch with us.
My sincere apologies for the delay in response.
You can change this string from ‘Maps’ -> ‘Settings’ -> ‘InfoWindows’ -> ‘Link text’.
Please let me know if this helps.
Kind regards,
DylanNovember 28, 2017 at 1:05 pm #32503jpsantosMemberHey,
That should work but it doesn’t, it sets the same string for all languages.
I read somewhere in here that the plugin gets the general settings language setting to display the correct language but what I need is for it to work with qtranslate-x or a way to add it to my dictionary.Is there a way to do this?
I hacked my through this with css, just making the link invisible and putting the text there with a pseudo element. I’ll just leave this here as it might help someone else.
It’s not ideal but it works.html[lang="fr-FR"], html[lang="pt-PT"] { a.wpgmza_infowindow_link { visibility: hidden; position: relative; &:before { display: block; width: 100%; height: 100%; position: absolute; visibility: visible; } } } html[lang="fr-FR"] { a.wpgmza_infowindow_link:before { content: 'Plus de détails'; } } html[lang="pt-PT"] { a.wpgmza_infowindow_link:before { content: 'Mais detalhes'; } }
December 4, 2017 at 8:14 pm #32689[email protected]MemberHi there,
Sorry for the delay in response over the weekend.
The string can be changed by editing the PO file for the language you are trying to edit. This can be done by going to ‘wp-content/plugins/wp-google-maps/langauges/. The PO file can be opened using a PO editing software and adding the translation.
Please let me know if this helps.
Kind regards,
Dylan -
AuthorPosts
- You must be logged in to reply to this topic.