Jump to content

Override Admin Class by module - how to add translated strings ?


reno123

Recommended Posts

Hi :)

 

I know that there are similar topics but I did not find proper answer...

 

I use override mechanism to extend AdminController.php -> it works fine!

 

I also add some new strings (using $this->l('message test') ) in .../override/AdminController.php, to display confirmation message

 

And the new strings appeared in BO > Transaltions > Administration Panel 

 

Now I can translate it into polish - all right !

As I found, the translation is in the file shop_dir/translations/pl/admin.php

 

So HOW TO add my translations for somebody who install my module

 

Or other words, how to use translation mechanism in AdminController to add strings to separated language file - as it works in module core files - > ex. modules/myModule/translations/pl.php

 

Thanks in advace !

 

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...