⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

Seperate Field with Language wise



likhon3k
  • profile picture
  • Member

Posted 24 June 2014 - 19:25 PM

Hello,

 

I have create a table with two types of language:  english and bangla.

 

In Input form I am taking Bangla Lenguage and English language like: phone_bn, phone, name_bn, name, mobile_bn, mobile like this.

 

see the attachment:

[attachment=809:add_form.jpg]

 

this system is okay.

 

but when I click on View link then it shows:

 

[attachment=810:view_form.jpg]

 

My Query:

 

I want to view the data by Bangla View and English View. If any one want to see bangla language, he needs to click on bangla link. if any one want to see english information he needs to click on English link.

 

any one can tell me where is the trick? How could I solve this subject?

 


Amit Shah
  • profile picture
  • Member

Posted 25 June 2014 - 03:16 AM

Well the trick seems to be simple enough. You have to manage it somehow like settings (user choses the same). Let the user set the default view language. Store then in session. So whenever user clicks on the view - let the system select all the language specific fields 2 be displayed. Also you can alter the code in GC Theme (as you doing it globally for the project - its ok to change the GC theme.) on the view page to display the language option other then the one set as default or in currently being viewed up. (this setting can be done by setting flashdata or by passing in additional parameter along with the data / output generated by GC).

When the user clicks on that particular link (that can be set with a parameter - ?language=English or ?language=Bangla) added to the view url.

 

I might not be simple by language but the solution is perfect. In case of complexity in answer found, read it 2-3 times you must get solution for sure.

 

Happy GCing)