Jump to content

Newsletter block language


Recommended Posts

Hi,

I'm using Prestashop's build in newsletter block. I've installed the Dutch language pack and the buttons do change, exept for the introduction text:

Subscribe to our newseletter to be informed of news and promotions

How/where to change this text into Dutch?

Eric

Link to comment
Share on other sites

I can't find that text in PrestaShop's newsletter module. Can you post a link to your site or a screenshot of what you mean? All newsletter block translations should be in the "prestashop - blocknewsletter" section of the "Modules translations" on the Tools > Translations tab.

Link to comment
Share on other sites

  • 7 months later...

I'm having the same problem.

I want to change the text into something else.

the blocknewsletter.tpl looks like this:


<!-- Block Newsletter module-->


{l s='Newsletter' mod='blocknewsletter'}



{if $msg}

{$msg}


{/if}
<form action="{$base_dir}" method="post">

<input type="text" name="email" size="18" value="{if $value}{$value}{else}{l s='your e-mail' mod='blocknewsletter'}{/if}"></p>



{l s='Subscribe' mod='blocknewsletter'}
{l s='Unsubscribe' mod='blocknewsletter'}

<input type="submit" value="ok" class="button_mini" name="submitNewsletter" />


</form>



<!-- /Block Newsletter module-->


Does anyone know how to fix this? where do I change the text?

I presume this is what I have to edit:
{if $msg}

{$msg}


{/if}

But I don't know wher ethe $msg variable is hidden.

Any help would be much appreciated.

Regards,
Radu
Link to comment
Share on other sites

All the messages are in the newsletterRegistration() function of modules/blocknewsletter/blocknewsletter.php. You shouldn't change the code there though. You should simply go to Tools > Translations > Module translations > blocknewsletter and enter translations for the following:

Invalid e-mail address
E-mail address not registered
Error during unsubscription
Unsubscription successful
E-mail address already registered
Error during subscription
Subscription successful

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