Translated polylang strings don't appear - wordpress

I am translating our website using Polylang. Our theme is Flatbase, fully compatible with WPML so it should also work with Polylang.
I have an issue with the custom strings. They appear in the "string translation" area, and I can type in and save the translation, but the translation doesn't show on the website, the string is still in the original language.
Apparently it is not an issue with wpml-config.xml, since I can see the strings and translate them. I posted on the module community forum but got no answer.
Thank you in advance for your help.

it does't work that way with polylang, you need to register your custom strings in function.php file of your theme. following is the link to similar question. i hope it will be helpful, other wise let me know i'll be happy to help.
https://wordpress.stackexchange.com/questions/82855/custom-strings-for-translation-using-polylang-plugin

Related

Translating a description and a button inside a plugin

I have a plugin that have a text and a button. The website have four languages and I need to translate the button text and also the description.
For translation, Polylang is being used.
Inside the plugin I can't access the Polylang config.
How should I do that?
Thanks!
After some research I found a solution.
I needed to prepare my plugin to receive the translation and in the end, actually was pretty simple.
This article cover everything that I needed, using PODEdit to create the PO and MO files for each language that I'm using.
https://premium.wpmudev.org/blog/how-to-translate-a-wordpress-plugin/
Since I was a layman in the subject, took longer to understand and figure out how to search about it.

Adobe Brackets Wordpress hints / autocomplete

so.. I am trying out Adobe Brackets as my editor right now and I really like it so far, but there is one thing I am missing and I wonder if there is an extension for that..
I mainly code php, css and javascript for wordpress themes / plugins etc. I was using sublime 3 before, where I had a plugin that, if I type a wordpress function name and use the autocomplete, automatically inserts the parameters of that function. So in sublime it looks like this http://i.imgur.com/FxxUOy8.png
In Adobe Brackets I tried every wordpress extension that I found but I cant get the same result. The hints for wordpress functions do work but when I accept a hint it wont insert the parameters of that function http://i.imgur.com/25HsuSe.png
So I wondered if anyone knows an extension that offers autocompletion like in the sublime screenshot. Or am I missing sth else to get that?
Thanks in advance!
I haven't yet installed this, but I came across it today and will be trying it out myself. It's an extension for Brackets called "Brackets WordPress Hint". It looks like the repository hasn't been contributed to in a while, but I haven't (yet) found anything newer.
https://github.com/Tusko/brackets-wp-hint

Qtranslate-xp (qtranslate-plus) url work with qtranslate-slug plugins

I am using one plugins https://wordpress.org/plugins/qtranslate-xp/ for my WordPress site. Now I want about us page URL in three language. Means I want unique slug for about us in each language like english, deutche, etc.
Does any one know how to do that? Also, I have come to know about qtranslate-slug plugins but that is not working with qtranslate-xp. so can you please let me know how to do this?
if I understand your problem, you can replace Qtranslate-XP with mqTranslate (upgrade on 2015-2-27) and you can use Qtraslate-slug.
Qtranslate-XP and mqTranslate use same tags.

Wordpress-blog with two languages - which plugin?

I spent a couple of hours in the search of a solution to a two-languages-blog (site?). It seems that there are two general approaches: a single site which holds both languages; or two sites (thus WP installations) where each one holds a single language.
The solution for the latter one would be the Multisite Language Switcher.
But in principal, I'd prefer to work with a single site. Less hassle.
And I would like to use the same "New Post" page to enter the title and text for the languages - thus two title boxes, two text boxes. If I upload an image, I can insert it directly into each of the text boxes.
There, it seems the WPML is the way to go. Not sure about qTranslate. Tried it but only the title box was added.
Can you recommend anything else? Or am I thinking to narrowly? Thanks a lot for any hints or tips!
http://wordpress.org/extend/plugins/polylang/ - easy to use and manage languages.
For each post you choose the language you'll need. You won't get to add both languages in the same post since it would result in the same url.
For images, you don't need to upload it twice, just choose it again from the media library.
Not free, but WPML is probably the most advanced language plugin (hence the not free part). It will allow you to use a single install and choose the language based on directory or query string parameter. Overall fairly affordable.
http://wpml.org/
Tried out a couple of plugins. Finally spent many hour with multisite and domain mapping. When I got it working, I used the Multiple Language Switcher.... and like it a lot! Thanks for the hints!

WPML plugin translation

This question's quite stupid, but I'm having trouble getting wpml to translate my plugin. Every translatable string is surrounded by __() calls and they appear POedit, I added translation for a couple of strings and they don't appear.
Translation for the theme is working OK.
I'm sure I'm missing something very stupid like a filename somewhere, or some function call, or something, I've read every piece of documentation I've found and I think it's confused me more. I read that you need to call setlocale, but I'm guessing wpml does that.. what might I be missing?
Is the plugin loading the .mo file?
http://codex.wordpress.org/Function_Reference/load_plugin_textdomain
You might also want to check this FAQ page to see different reasons for String Translation not being applied:
http://wpml.org/faq/language-setup/
I was missing the second parameter in the __() calls, the textdomain name.

Resources