Jump to content
Sixhop

Unable to add translations to own module

Recommended Posts

Hello,

I'm trying to translate a module that I've written. It's called product overview. It's a quite simple module which just displays the main products in a hook on the homepage, so no big magic. I'd like to translate the module through the prestashop translation system. Therefore I've added the line "{l s='More than just a Grill' d='Modules.Productoverview'}" into my module. Before that I've tried the 1.6 version "{l s='Mehr als nur ein Grill' mod='Productoverview'}".

I'm using Prestashop 1.7.6.0 right now.

When I go to International > Translations > Modify Translations and select Installed module translations, then select my module Product Overview Choose a language, i.e. English GB and hit the Modify button I would expect prestashop to scan the modules template files, check for the {l s="..."} statements and provide a list with the strings that can be translated. Am I right until this point? If not, where am I able to let prestashop know that there is a new module with new translatable strings?
What I see then Is the page that says: "Expressions to translate: 0" So no translateable strings could be found.

I would really appreciate it if somebody could explain how I can finally translate my module.

Cheers
Andi

 

Share this post


Link to post
Share on other sites

Hey,

I found the solution. The mod="" parameter is somehow complex, because the documentation is not clear about what needs to go in there. Once I started to put the exact module name in there like "ps_productoverview" the translation page finds the translatable strings on its own and you're able to start translating the module.

Cheers
Andi

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More