goFrendiAsgard / No-CMS

No-CMS, A CodeIgniter Based CMS Framework
299 stars 199 forks source link

"Complete Menu" string is hard coded. #66

Closed cesarliws closed 10 years ago

cesarliws commented 11 years ago

Please make 'Complete Menu' localizable.

I have just added Brazilian Portuguese to languages, and is strange to have only Complete Menu in English, for portuguese readers it should be "Menu Completo"

goFrendiAsgard commented 10 years ago

I'll commit fix for this. If you want to do the fix by yourself, please open up /modules/main/controllers/main.php. Go to line 1161. There is function named widget_top_nav. Change this

    public function widget_top_nav($caption = 'Complete Menu', $first = TRUE, $no_complete_menu=FALSE, $no_quicklink=FALSE, $navigations = NULL){
        $result = '';

into

    public function widget_top_nav($caption = 'Complete Menu', $first = TRUE, $no_complete_menu=FALSE, $no_quicklink=FALSE, $navigations = NULL){
        $result = '';
        $caption = $this->cms_lang($caption);

And go to assets/nocms/languagespt-br.portuguese, add this line:

$lang['Complete Menu'] = 'Menu Completo';
goFrendiAsgard commented 10 years ago

This has been fixed. (Sorry, late to inform)