Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

GDPR module : how to translate the label {Privacy Policy}?

   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)
Thread Tools Search this Thread
Old Today, 09:46 AM
Ed B. Ed B. is online now

Join Date: Apr 2016
Posts: 439

Default GDPR module : how to translate the label {Privacy Policy}?

Hi, I am having difficulties with translating different labels.

Some of them can be done from the admin menu, Store Setup -> translation

Others can be done simply by rewriting the contents in the admin menu, with the chosen language.

Still others, have to be done via the database. For example, I figured that order status, payment status could be translated by inserting appropriate rows into appropriate tables.

However, this one, the label "privacy Policy" that shows up in the profile page beats me.

Basically it comes from

(X-cart version, GDPR module version

and the code is

{% if not this.getParam('fieldOnly') and this.hasHelp() %} <div class="cookie-data"> <h4>Cookies</h4> <p> {{ t(this.getParam('help'))|raw }} <a href="{{ this.getGdprLabelURL()|raw }}" target=\"_blank\">{{ t('Privacy policy') }}</a> </p> </div> {% endif %} <div class="gdpr-checkbox"> <div class="{{ this.getLabelContainerClass() }}"> <label for="{{ this.getFieldId() }}"> {{ this.getFormattedLabel()|raw }} {% if this.hasLabelHelp() %} {{ widget('\\XLite\\View\\Tooltip', text=t(this.getParam('labelHelp')), helpWidget=this.getParam('labelHelpWidget'), isImageTag='true', className='help-icon') }} {% endif %} </label> </div> <div class="{{ this.getValueContainerClass() }}"> {% include this.getDir() ~ '/' ~ this.getFieldTemplate() %} {% if this.getParam('comment') %} <div class="form-field-comment {{ this.getFieldId() }}-comment">{{ t(this.getParam('comment')) }}</div> {% endif %} {% if this.getFormFieldJSData() %}{{ this.displayCommentedData(this.getFormFieldJSData()) }}{% endif %} {% if this.getInlineJSCode() %} <script>{{ this.getInlineJSCode() }}</script> {% endif %} </div> </div>
I think I went through all the tables with suffix "translations" but I have had no success so far. Would anyone have how to solve this ? Thank you very much in advance.
X-cart 5.2.12, php 5.6
Ed from Grenoble, France
Reply With Quote
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

All times are GMT -8. The time now is 04:38 PM.


X-Cart forums © 2001-2020