Multilingual Edit Page
Author | Posts |
---|---|
July 10, 2013 at 6:53 pm 5838 | |
Gonzalo | Hi. I am using WPML plugin to set a multilingual site, default language is english, second language is french. WPML manage page translation by creating a page for each language, each page has a language attribute. When I define the page edit in WPFUE settings, this page is used for both languages. Here is the process I have followed : 1. Set the edit page in english admin context as 'Edit' (my english edit page with the wpufe_edit shortcode) 2. Switch in admin in French Language 3. Set the edit page in french admin context as 'Modifier' (my french edit page with the wpufe_edit shortcode) 4. Switch in admin in English Language 5. Problem : the settings for english are reseted, no page is selected, and wordpress will use the french edit page for both language. Is there a way to fix it ? Thank you |
July 11, 2013 at 4:46 am 5855 | |
Tareq Hasan | So what I understand, if you switch to English, the form should be in English. And when you switch to French, the form should be in French, isn’t that right? If thats the case, WPUF isn’t capable doing this yet, even with WPML. |
July 11, 2013 at 1:40 pm 5873 | |
obouilland | Ok Thank you for your reply. Do you plan to create WPML compatibility in a next future ? |
July 11, 2013 at 2:02 pm 5876 | |
Tareq Hasan | Yes, that would be a cool feature 🙂 |
July 11, 2013 at 3:35 pm 5878 | |
obouilland | Yes, for sure ! For those who face the same problem, i find the solution by changing your function wpuf_edit_post_link, line 217 in wpuf-functions.php like this :
The changes are just for additional languages, no need to had anything for default language. Perhaps it is possible in next release just to add a function exists test on this function in order to hack it in my function.php and not have to change core plugin files. In the same way, here is the function I had to my function.php file in order to save a post in the correct language (same again, only needed for additional languages, not for the default one):
I hope it could help multilingual integration for wpufe. Olivier |
January 16, 2014 at 4:25 am 14457 | |
Gonzalo | Hi I was wondering if this has been incorporated. Thanks |