Jump to content


Multilingual Dropdown menu

Multilingual Dropdown

  • Please log in to reply
2 replies to this topic

#1 Kike

Kike

    Newbie

  • Members
  • Pip
  • 1 posts

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...iew?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

 

 



#2 neha546

neha546

    Newbie

  • Members
  • Pip
  • 4 posts

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



#3 Amit Shah

Amit Shah

    grocery CRUD Master

  • Advanced Member
  • PipPipPip
  • 1,192 posts
  • LocationMumbai, India

Posted 29 February 2016 - 02: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 :)







0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users