goFrendiAsgard / No-CMS

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

Nordrassil do not use localization for generated code. #67

Closed cesarliws closed 10 years ago

cesarliws commented 11 years ago

In the generated code, it should get the "Caption" from translation:

// add navigations $this->add_navigation($this->cms_complete_navigation_name( 'manage_citizen'), 'Manage Citizen',

So we can add translation to different languages without change the generated code.

goFrendiAsgard commented 10 years ago

This can be simply achieved by adding language setting in the respective module.

Create this file: modules/example/assets/languages/pt-br.portuguese.php, and add this

<?php
$lang['Manage Citizen'] = 'Gerenciar Cidadão';
cesarliws commented 10 years ago

Not sure what you mean by that.

That was my first action, I created the file exacly as you wrote, and nothing happened, so I investigate the generated code after that I opened the issue.

I'll try again later and see what I did wrong.

goFrendiAsgard commented 10 years ago

Okay, let me know if you still got problem doing this.