diff --git a/Resources/translations/messages.en.yaml b/Resources/translations/messages.en.yaml index 5147e43..51dc2ee 100644 --- a/Resources/translations/messages.en.yaml +++ b/Resources/translations/messages.en.yaml @@ -15,30 +15,30 @@ Compliance: null '(POLICY NOT FOUND!)': null 'Legal notice': null Close: null -'Enter your text by overriding the %s template file.': null +'Enter your text by overriding the %s% template file.': null 'Site policies': null -'%s accepted': null -'%s not accepted.': null -'''%s accepted.': null +'%s% accepted': null +'%s% not accepted.': null +'''%s% accepted.': null 'Minimum age': null -'Confirmed minimum age requirement (%s years of age) met.': null +'Confirmed minimum age requirement (%s% years of age) met.': null 'Minimum age requirement not confirmed.': null -'%s accepted.': null +'%s% accepted.': null 'Policy not accepted.': null Accepted.: null 'Not accepted.': null -'Trade conditions for %s': null -'Cancellation right policy for %s': null +'Trade conditions for %s%': null +'Cancellation right policy for %s%': null 'Policy not available': null 'The selected policy is not available.': null -'Privacy policy for %s': null -'Terms of use for %s': null +'Privacy policy for %s%': null +'Terms of use for %s%': null 'In order to log in you must accept this site\''s policies. If you have accepted the site\''s policies in the past, then they have been updated and we ask that you review the changes.': null 'If you leave this page without successfully accepting the policies, then you will not be logged in.': null Cancel: null 'Cancel and logout': null -'Accessibility statement for %s': null -'Legal notice for %s': null +'Accessibility statement for %s%': null +'Legal notice for %s%': null 'Check this box to indicate your acceptance of this site''s policies.': null Policies: null 'Notice: This setting resets the acceptance of the site policies for all users in this group. Next time they want to log-in, they will have to acknowledge their acceptance of them again, and will not be able to log-in if they do not. This action does not affect the main administrator account. You can perform the same operation for individual users by visiting the Users manager in the site admin panel.': null diff --git a/Resources/translations/zikulalegalmodule.en.yaml b/Resources/translations/zikulalegalmodule.en.yaml index 5878c22..0a6af1c 100644 --- a/Resources/translations/zikulalegalmodule.en.yaml +++ b/Resources/translations/zikulalegalmodule.en.yaml @@ -1,7 +1,7 @@ 'Please click on the following links to read the corresponding documents.': null 'Terms of use': null 'Privacy policy': null -'You need to be %s years of age or older, in accordance with our minimum age requirement.': null +'You need to be %s% years of age or older, in accordance with our minimum age requirement.': null 'General terms and conditions of trade': null 'Cancellation right policy': null 'Site policies': null diff --git a/Resources/views/Include/acceptPolicies.html.twig b/Resources/views/Include/acceptPolicies.html.twig index 5b407f3..dbcc855 100644 --- a/Resources/views/Include/acceptPolicies.html.twig +++ b/Resources/views/Include/acceptPolicies.html.twig @@ -19,7 +19,7 @@
  • {{ policyName }}
  • {% endif %} {% if activePolicies.agePolicy|default and not acceptedPolicies.agePolicy|default %} -
  • {% trans with { '%s': getModVar(constant('Zikula\\LegalModule\\Constant::MODNAME'), constant('Zikula\\LegalModule\\Constant::MODVAR_MINIMUM_AGE'), 13) } from 'zikulalegalmodule' %}You need to be %s years of age or older, in accordance with our minimum age requirement.{% endtrans %}
  • +
  • {% trans with { '%s%': getModVar(constant('Zikula\\LegalModule\\Constant::MODNAME'), constant('Zikula\\LegalModule\\Constant::MODVAR_MINIMUM_AGE'), 13) } from 'zikulalegalmodule' %}You need to be %s% years of age or older, in accordance with our minimum age requirement.{% endtrans %}
  • {% endif %} {% if activePolicies.tradeConditions|default and not acceptedPolicies.tradeConditions|default %} {% set policyUrl = getModVar(constant('Zikula\\LegalModule\\Constant::MODNAME'), constant('Zikula\\LegalModule\\Constant::MODVAR_TRADECONDITIONS_URL')) %} diff --git a/Resources/views/User/accessibilityStatement.html.twig b/Resources/views/User/accessibilityStatement.html.twig index dc625d3..7b617d4 100644 --- a/Resources/views/User/accessibilityStatement.html.twig +++ b/Resources/views/User/accessibilityStatement.html.twig @@ -1,2 +1,2 @@ -{{ moduleHeader('user', 'Accessibility statement for %s'|trans({ '%s': pagevars.title }), '', true, true) }} +{{ moduleHeader('user', 'Accessibility statement for %s%'|trans({ '%s%': pagevars.title }), '', true, true) }} {{ include('@ZikulaLegalModule/' ~ app.request.locale ~ '/accessibilityStatement.html.twig') }} diff --git a/Resources/views/User/cancellationRightPolicy.html.twig b/Resources/views/User/cancellationRightPolicy.html.twig index 92fc0b4..489c368 100644 --- a/Resources/views/User/cancellationRightPolicy.html.twig +++ b/Resources/views/User/cancellationRightPolicy.html.twig @@ -1,2 +1,2 @@ -{{ moduleHeader('user', 'Cancellation right policy for %s'|trans({ '%s': pagevars.title }), '', true, true) }} +{{ moduleHeader('user', 'Cancellation right policy for %s%'|trans({ '%s%': pagevars.title }), '', true, true) }} {{ include('@ZikulaLegalModule/' ~ app.request.locale ~ '/cancellationRightPolicy.html.twig') }} diff --git a/Resources/views/User/legalNotice.html.twig b/Resources/views/User/legalNotice.html.twig index 27fb5e3..261c314 100644 --- a/Resources/views/User/legalNotice.html.twig +++ b/Resources/views/User/legalNotice.html.twig @@ -1,2 +1,2 @@ -{{ moduleHeader('user', 'Legal notice for %s'|trans({ '%s': pagevars.title }), '', true, true) }} +{{ moduleHeader('user', 'Legal notice for %s%'|trans({ '%s%': pagevars.title }), '', true, true) }} {{ include('@ZikulaLegalModule/' ~ app.request.locale ~ '/legalNotice.html.twig') }} diff --git a/Resources/views/User/privacyPolicy.html.twig b/Resources/views/User/privacyPolicy.html.twig index 6e78136..b09b356 100644 --- a/Resources/views/User/privacyPolicy.html.twig +++ b/Resources/views/User/privacyPolicy.html.twig @@ -1,2 +1,2 @@ -{{ moduleHeader('user', 'Privacy policy for %s'|trans({ '%s': pagevars.title }), '', true, true) }} +{{ moduleHeader('user', 'Privacy policy for %s%'|trans({ '%s%': pagevars.title }), '', true, true) }} {{ include('@ZikulaLegalModule/' ~ app.request.locale ~ '/privacyPolicy.html.twig') }} diff --git a/Resources/views/User/termsOfUse.html.twig b/Resources/views/User/termsOfUse.html.twig index 53f5b83..63c5602 100644 --- a/Resources/views/User/termsOfUse.html.twig +++ b/Resources/views/User/termsOfUse.html.twig @@ -1,2 +1,2 @@ -{{ moduleHeader('user', 'Terms of use for %s'|trans({ '%s': pagevars.title }), '', true, true) }} +{{ moduleHeader('user', 'Terms of use for %s%'|trans({ '%s%': pagevars.title }), '', true, true) }} {{ include('@ZikulaLegalModule/' ~ app.request.locale ~ '/termsOfUse.html.twig') }} diff --git a/Resources/views/User/tradeConditions.html.twig b/Resources/views/User/tradeConditions.html.twig index 7c0051b..3a157c6 100644 --- a/Resources/views/User/tradeConditions.html.twig +++ b/Resources/views/User/tradeConditions.html.twig @@ -1,2 +1,2 @@ -{{ moduleHeader('user', 'Trade conditions for %s'|trans({ '%s': pagevars.title }), '', true, true) }} +{{ moduleHeader('user', 'Trade conditions for %s%'|trans({ '%s%': pagevars.title }), '', true, true) }} {{ include('@ZikulaLegalModule/' ~ app.request.locale ~ '/tradeConditions.html.twig') }} diff --git a/Resources/views/UsersUI/edit.html.twig b/Resources/views/UsersUI/edit.html.twig index 381fdfc..05aa686 100644 --- a/Resources/views/UsersUI/edit.html.twig +++ b/Resources/views/UsersUI/edit.html.twig @@ -16,7 +16,7 @@ {% if editablePolicies.termsOfUse %}
    - +
    @@ -44,7 +44,7 @@ {% if editablePolicies.privacyPolicy %}
    - +
    @@ -66,7 +66,7 @@ {% if editablePolicies.agePolicy %}
    - +
    @@ -76,7 +76,7 @@ {{ fieldErrors.agepolicy|default }}

    {% else %} - {{ acceptedPolicies.agePolicy ? 'Confirmed minimum age requirement (%s years of age) met.'|trans({ '%s': getModVar(constant('Zikula\\LegalModule\\Constant::MODNAME'), constant('Zikula\\LegalModule\\Constant::MODVAR_MINIMUM_AGE'), 13) }) : 'Minimum age requirement not confirmed.'|trans }} + {{ acceptedPolicies.agePolicy ? 'Confirmed minimum age requirement (%s% years of age) met.'|trans({ '%s%': getModVar(constant('Zikula\\LegalModule\\Constant::MODNAME'), constant('Zikula\\LegalModule\\Constant::MODVAR_MINIMUM_AGE'), 13) }) : 'Minimum age requirement not confirmed.'|trans }} {% endif %}
    @@ -94,7 +94,7 @@ {% if editablePolicies.tradeConditions %}
    - +
    @@ -122,7 +122,7 @@ {% if editablePolicies.cancellationRightPolicy %}
    - +
    diff --git a/Resources/views/UsersUI/view.html.twig b/Resources/views/UsersUI/view.html.twig index 332c335..1454195 100644 --- a/Resources/views/UsersUI/view.html.twig +++ b/Resources/views/UsersUI/view.html.twig @@ -10,7 +10,7 @@
    - {% if acceptedPolicies.termsOfUse %}{% trans with { '%s': policyLink|raw } %}%s accepted{% endtrans %}{% else %}{% trans with { '%s': policyLink|raw } %}%s not accepted.{% endtrans %}{% endif %} + {% if acceptedPolicies.termsOfUse %}{% trans with { '%s%': policyLink|raw } %}%s% accepted{% endtrans %}{% else %}{% trans with { '%s%': policyLink|raw } %}%s% not accepted.{% endtrans %}{% endif %}
    {% endif %} @@ -24,7 +24,7 @@
    - {% if acceptedPolicies.privacyPolicy %}{% trans with { '%s': policyLink|raw } %}'%s accepted.{% endtrans %}{% else %}{% trans with { '%s': policyLink|raw } %}%s not accepted.{% endtrans %}{% endif %} + {% if acceptedPolicies.privacyPolicy %}{% trans with { '%s%': policyLink|raw } %}'%s% accepted.{% endtrans %}{% else %}{% trans with { '%s%': policyLink|raw } %}%s% not accepted.{% endtrans %}{% endif %}
    {% endif %} @@ -32,7 +32,7 @@
    - {% if acceptedPolicies.agePolicy %}{% trans with { '%s': getModVar(constant('Zikula\\LegalModule\\Constant::MODNAME'), constant('Zikula\\LegalModule\\Constant::MODVAR_MINIMUM_AGE'), 13) } %}Confirmed minimum age requirement (%s years of age) met.{% endtrans %}{% else %}{% trans %}Minimum age requirement not confirmed.{% endtrans %}{% endif %} + {% if acceptedPolicies.agePolicy %}{% trans with { '%s%': getModVar(constant('Zikula\\LegalModule\\Constant::MODNAME'), constant('Zikula\\LegalModule\\Constant::MODVAR_MINIMUM_AGE'), 13) } %}Confirmed minimum age requirement (%s% years of age) met.{% endtrans %}{% else %}{% trans %}Minimum age requirement not confirmed.{% endtrans %}{% endif %}
    {% endif %} @@ -46,7 +46,7 @@
    - {% if acceptedPolicies.tradeConditions %}{% trans with { '%s': policyLink|raw } %}%s accepted.{% endtrans %}{% else %}{% trans with { '%s': policyLink|raw } %}%s not accepted.{% endtrans %}{% endif %} + {% if acceptedPolicies.tradeConditions %}{% trans with { '%s%': policyLink|raw } %}%s% accepted.{% endtrans %}{% else %}{% trans with { '%s%': policyLink|raw } %}%s% not accepted.{% endtrans %}{% endif %}
    {% endif %} @@ -60,7 +60,7 @@
    - {% if acceptedPolicies.cancellationRightPolicy %}{% trans with { '%s': policyLink|raw } %}%s accepted.{% endtrans %}{% else %}{% trans with { '%s': policyLink|raw } %}%s not accepted.{% endtrans %}{% endif %} + {% if acceptedPolicies.cancellationRightPolicy %}{% trans with { '%s%': policyLink|raw } %}%s% accepted.{% endtrans %}{% else %}{% trans with { '%s%': policyLink|raw } %}%s% not accepted.{% endtrans %}{% endif %}
    {% endif %} diff --git a/Resources/views/en/cancellationRightPolicy.html.twig b/Resources/views/en/cancellationRightPolicy.html.twig index 6b350bb..74f6ee5 100644 --- a/Resources/views/en/cancellationRightPolicy.html.twig +++ b/Resources/views/en/cancellationRightPolicy.html.twig @@ -1 +1 @@ -

    {{ 'Enter your text by overriding the %s template file.'|trans({ '%s': 'modules/zikula/legal-module/Resources/views/en/cancellationRightPolicy.html.twig' })|raw }}

    +

    {{ 'Enter your text by overriding the %s% template file.'|trans({ '%s%': 'modules/zikula/legal-module/Resources/views/en/cancellationRightPolicy.html.twig' })|raw }}

    diff --git a/Resources/views/en/legalNotice.html.twig b/Resources/views/en/legalNotice.html.twig index b1c646e..79a0e21 100644 --- a/Resources/views/en/legalNotice.html.twig +++ b/Resources/views/en/legalNotice.html.twig @@ -1 +1 @@ -

    {{ 'Enter your text by overriding the %s template file.'|trans({ '%s': 'modules/zikula/legal-module/Resources/views/en/legalNotice.html.twig' })|raw }}

    +

    {{ 'Enter your text by overriding the %s% template file.'|trans({ '%s%': 'modules/zikula/legal-module/Resources/views/en/legalNotice.html.twig' })|raw }}

    diff --git a/Resources/views/en/tradeConditions.html.twig b/Resources/views/en/tradeConditions.html.twig index 6c9de4e..5cf0f6b 100644 --- a/Resources/views/en/tradeConditions.html.twig +++ b/Resources/views/en/tradeConditions.html.twig @@ -1 +1 @@ -

    {{ 'Enter your text by overriding the %s template file.'|trans({ '%s': 'modules/zikula/legal-module/Resources/views/en/tradeConditions.html.twig' })|raw }}

    +

    {{ 'Enter your text by overriding the %s% template file.'|trans({ '%s%': 'modules/zikula/legal-module/Resources/views/en/tradeConditions.html.twig' })|raw }}