⚠ 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

Multilingual Dropdown menu



Kike
  • profile picture
  • Member

Posted 19 February 2016 - 12:36 PM

Hi there,

I am new to Grocery_crud and I wish to prepare a multilingual site. Unfortunately I could not find a way to internationalize the dropdown menu, the word “select” remain in English. Please refer to the image at

https://drive.google.com/file/d/0B5JeBC70doImUmFCZU4wU2R6a1U/view?usp=sharing

 

The words in the menú appears to depend on the data-placeholder  at lines 2397, 2434,2456,2490,2581 in the file

    /https/application/libraries/Grocery_CRUD.php:

(2397) $input = "<select id='field-{$field_info->name}' name='{$field_info->name}' class='chosen-select' data-placeholder='".$select_title."'>";

 

 

Any help will be highly appreciated

 

 


neha546
  • profile picture
  • Member

Posted 29 February 2016 - 07:12 AM

hello friends,

You could make other menus that are created using Views. Those menus would be Block displays that are set to only appear on certain pages.

For example, if you had a parent menu link for Cars, you could create a block menu that contained the Cars page and the models of cars. The Block would be set to show only on the node for the parent page and the related child pages. The following site is using this approach for their language programs.

 

 

 

 

 

 

 

 

 

 

Maharaja Express

Rafting in Rishikesh


Amit Shah
  • profile picture
  • Member

Posted 29 February 2016 - 14:21 PM

Hi Kike

Grocerycrud library cannot help you in the same. The select word is not the problem of the GC library - it is handling the same in correct way (as expected but the same is not handled correctly at the js library level (select2 or some other library at this point). The select keyword is automatically appended in that library. Identify, what library it is, apply the correct solution that you may need to the same

and .. Happy CGing :)