ThemeFuse / Unyson-Translation-Extension

This extension lets you translate your website in any language or even add multiple languages for your users to change at their will from the front-end.
3 stars 2 forks source link

Translation Issues #13

Closed aamirs332 closed 9 years ago

aamirs332 commented 9 years ago

i am using unyson from last 6 month, its awesome, now i have used first time translation extension, sorry to say but now am facing too much problems in translation extension, these are given below,

1:- When add language as English, Arabic,and Farci and after addingh i remove english from it. when i remove then an error is coming as : Notice: Undefined index: en in D:\xampp New\htdocs\www\triathlon\wp-content\plugins\unyson\framework\extensions\translation\class-fw-extension-translation.php on line 492. http://prntscr.com/8e9kcc http://prntscr.com/8e9lj7 sz94huf xvr9om4

2:- Second when i Select any language from front end then nothing happened. am using this code to print all languages on front end , is am going on right way?

http://prntscr.com/8e9lzx 44m7mzw

<?php if (function_exists('fw_ext_translation_get_frontend_active_language')) { cho '

'; } // ELSE RETURN NOTHING else { return; } ?> Please help my asap.
llemurya commented 9 years ago

I reproduced the bug, soon I will fix it. This is the video how translation works.

llemurya commented 9 years ago

@aamirs332 please provide more details why in frontend the language not change,maybe you didn't create translation posts in different languages or you didn't create a menu in different languages,please watch video in the above comment and if not help , please open another issue and describe problem more detailed. Thanks for the feedback. I am waiting for your response.

aamirs332 commented 9 years ago

Thanks for your kind response , I have see video for translation, actually I was listing all language via code, then I see Video how to use translation. I will inform you if still issue found. Thanks

Sent from my iPhone

On Sep 9, 2015, at 5:37 PM, "llemurya" notifications@github.com wrote:

@aamirs332 please provide more details why in frontend the language not change,maybe you didn't create translation posts in different languages or you didn't create a menu in different languages,please watch video in the above comment and if not help , please open another issue and describe problem more detailed. Thanks for the feedback. I am waiting for your response.

— Reply to this email directly or view it on GitHub.

aamirs332 commented 9 years ago

When I click On any language from front end nothing happened. I have two languages English and Deutsch, i am using this code to list all languages, if (function_exists('fw_ext_translation_get_frontend_active_language')) { echo '

'; } This code display all languages , but the problem is that when click any language nothing happened.how i can use languages while i won't use widget. ![xxt1rea](https://cloud.githubusercontent.com/assets/5873187/9781981/eee576aa-57b2-11e5-9af0-cbaca4ca55a4.png) How i can use language set. ?
llemurya commented 9 years ago

@aamirs332 can you send the ftp details at dev-team@unyson.io in order to inspect this case on the server side. I am waiting for your response.

aamirs332 commented 9 years ago

hello @llemurya , i have sent you en email, can you please give me some kind of code which can loop all languages added at admin site. and these languages should translate pages. when i click on language its url should be be like this http://triathlon.themographics.com/sports/?fw_lang=ar

but nothing happened when i click any language. Your language extension like WPML?

llemurya commented 9 years ago

@aamirs332 nothing happend because you don't add translation for posts , for pages, for menus, by default if the translation did not exists it redirects to home page.Please test on this page , I added translation to it, change language and the post will change, you use correct the language switcher. http://triathlon.themographics.com/sports/fw_lang/en/2015/09/08/ride-the-bike-in-a-hard-way-9/

aamirs332 commented 9 years ago

Thanks you very Much @llemurya :+1: Issue is resolved. Thanks for Quick response and your help.