- This topic has 19 replies, 4 voices, and was last updated 6 years, 2 months ago by Tom.
March 31, 2016 at 11:07 am #183231Branislav Pakic
I have a multi language site (English and Serbian) where I use Polylang. I also have GP Premium. My problem is that I don’t know how to translate the Menu Plus Mobile Menu Label and Copyright text to both languages. Can that be done?March 31, 2016 at 10:19 pm #183330TomLead DeveloperLead Developer
Let me look at their documentation to see if there’s something I can do to allow the plugin to recognize those custom strings.
I’ll update this thread.April 1, 2016 at 6:36 am #183411Branislav Pakic
Thanks!April 1, 2016 at 10:38 am #183483TomLead DeveloperLead Developer
Out of curiosity, can you see if this plugin works?: https://wordpress.org/plugins/polylang-theme-strings/April 1, 2016 at 2:52 pm #183524Branislav Pakic
It doesn’t do anything out of the box. Maybe the copyright text and menu plus label need to be registered as strings in function.php? If that makes sense how can I do that?April 1, 2016 at 5:56 pm #183555TomLead DeveloperLead Developer
Been working on this.
Can you try this PHP?: https://gist.github.com/generatepress/c662c1002e66f86a7cf42e084305a4db
If it works, I’ll add the other strings and make it compatible in core.April 2, 2016 at 12:37 am #183632Branislav Pakic
I can now translate the menu label.
I know I’m not the first to say it, but your support is top-notch!April 2, 2016 at 10:41 am #183702TomLead DeveloperLead Developer
Awesome, I’ll work towards adding compatibility to core 🙂
Thanks!January 31, 2017 at 12:59 am #272119Vsevolod Serbin
I’ve faced the same issue with translating copyright section with polylang. After adding your code (https://gist.github.com/generatepress/c662c1002e66f86a7cf42e084305a4db) in code snippet I’ve found only GeneratePress Mobile Menu string in polylang settings.
Is there a way to translate the copyright?January 31, 2017 at 10:00 am #272426TomLead DeveloperLead Developer
I just made some changes to work with the new Customizer copyright field: https://gist.github.com/generatepress/c662c1002e66f86a7cf42e084305a4db
Let me know how it goes 🙂January 31, 2017 at 6:30 pm #272627Vsevolod Serbin
Tom, this is great!
Everything works fine. Thank you a lot!
I’ve rushed a liitle bit with this. I can see the copyright string in polylang settings, but it seems like copyright in customizer overrides this. When I’m cleaning copyright text in wordpress customizer it drops to default (generatepress etc) and ignores what I’d put in polylang.January 31, 2017 at 6:33 pm #272628TomLead DeveloperLead Developer
You’re welcome 🙂January 31, 2017 at 6:43 pm #272629Vsevolod Serbin
I’m sorry, not sure if you’re rieciving updates from edited messages. Can you please check the previous message?January 31, 2017 at 7:46 pm #272634TomLead DeveloperLead Developer
So you’re clearing the value from the Customizer? Wouldn’t you add the copyright to the Customizer, and then adjust that string in Polylang for multiple languages?January 31, 2017 at 8:08 pm #272640Vsevolod Serbin
Okay, I did some tests 🙂
Seems like using %copy% or %current_year% and inline style breaks translation. If I put these into customizer languages aren’t swithching for copyright section. For instance:
<a href="http://tsu.ru/">TSU</a> Institute of the Human of the Digital Era - works <div style="text-align: left;">%current_year% %copy% <a href="http://en.tsu.ru/">TSU</a> Institute of the Human of the Digital Era</div> - nope
Inline styles are fine. Only code like %copy% is causing troubles.
- You must be logged in to reply to this topic.