-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Change acknowledgement text and button #5611
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/eventyay/open-event-frontend/6joccmsu6 |
{{t | ||
'By clicking "Pay Now", I acknowledge that I have read and that I agree with all the terms of services and privacy policy of Open Event.'}} | ||
'By clicking "Proceed to Checkout", I acknowledge that I have read and that I agree with the '}} <a href='https://eventyay.com/terms'>terms of services</a>{{t ' and ' }}<a href='https://eventyay.com/privacy-policy'>privacy policy</a> {{ ' on this website.'}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you have created external links. create internal links. use terms and privacy-policy route.
Codecov Report
@@ Coverage Diff @@
## development #5611 +/- ##
===============================================
+ Coverage 23.25% 23.57% +0.32%
===============================================
Files 493 510 +17
Lines 5182 5417 +235
Branches 38 59 +21
===============================================
+ Hits 1205 1277 +72
- Misses 3972 4124 +152
- Partials 5 16 +11
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well done.
<p> | ||
{{t | ||
'By clicking "Order Now", I acknowledge that I have read and that I agree with the '}} <a href='https://eventyay.com/terms'>terms of services</a>{{t ' and ' }}<a href='https://eventyay.com/privacy-policy'>privacy policy</a> {{ ' on this website.'}} | ||
</p> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use relative links.
@Saumyachitransh01 use the following and complete PR
|
Thank you so much @maze-runnar, but I tried this and it's not responding in browser. Showing 404 not found |
Your local server does not have the pages necessary for it |
What could be done next? |
|
It's still showing no routes for both of these |
It won't show on your local server. |
{{t | ||
'By clicking "Pay Now", I acknowledge that I have read and that I agree with all the terms of services and privacy policy of Open Event.'}} | ||
'By clicking "Proceed to Checkout", I acknowledge that I have read and that I agree with the '}} <LinkTo @route='terms'>{{t 'terms of services'}}</LinkTo>{{t ' and ' }}<LinkTo @route='privacy'>{{t 'privacy policy'}}</LinkTo> {{ ' on this website.'}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You have to use anchor tag, not LinkTo
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<a href="{{href-to 'terms'}}">
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<a href="/terms">
@iamareebjamal please check now |
<p> | ||
{{t | ||
'By clicking "Pay Now", I acknowledge that I have read and that I agree with all the terms of services and privacy policy of Open Event.'}} | ||
'By clicking "Order Now", I acknowledge that I have read and that I agree with the '}} | ||
<a href='/terms'>terms of services</a>{{t ' and ' }}<a href='/privacy'>privacy policy</a> {{ ' on this website.'}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Repetition. The only difference is "Proceed to Checkout" and "Order Now"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is what is asked in the issue.
It's same there too, only difference is Order Now and Proceed to Checkout
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know. There should be no duplication. This can be achieved without that
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Try
8a1337b
to
744b672
Compare
{{t | ||
'By clicking "Pay Now", I acknowledge that I have read and that I agree with all the terms of services and privacy policy of Open Event.'}} | ||
</p> | ||
{{t 'By clicking'}}{{#if this.isPaidOrder}} {{t ' "Proceed to Checkout"'}} {{else}} {{t ' "Order Now"'}}{{/if}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use a single message with placeholders like here https://github.com/Cropster/ember-l10n#singular-translations
Co-authored-by: Areeb Jamal <jamal.areeb@gmail.com>
@@ -279,12 +279,13 @@ | |||
{{t 'Acknowledgement'}} | |||
</h4> | |||
<p> | |||
{{t | |||
'By clicking "Pay Now", I acknowledge that I have read and that I agree with all the terms of services and privacy policy of Open Event.'}} | |||
{{t 'By clicking "{{orderState}}", I acknowledge that I have read and that I agree with the ' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Invalid syntax
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot for correcting so many mistakes :)
But it was working perfectly and no console errors either.
{{t | ||
'By clicking "Pay Now", I acknowledge that I have read and that I agree with all the terms of services and privacy policy of Open Event.'}} | ||
{{t 'By clicking "{{orderState}}"' orderState=(if this.isPaidOrder (t "Proceed to Checkout") (t "Order Now"))}} | ||
{{', I acknowledge that I have read and that I agree with the '}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The entire message should be one string to make it translatable.
{{t 'By clicking "{{orderState}}", I acknowledge that I have read and that I agree with the {{terms}} and {{privacyPolicy}} on this website.' orderState=(if this.isPaidOrder (t "Proceed to Checkout") (t "Order Now')) terms=... privacyPolicy=...}}
Or else it will be separated in multiple different sentences which don't make sense in translation:
By clicking "{{orderState}}"
???, I acknowledge that I have read and that I agree with the
umm?and
space surrounded and?on this website.
what's the context?
When making things translatable by wrapping in t
you have to make sure it makes sense to the translator
@message = {{t 'By clicking "{{orderState}}", I acknowledge that I have read and that I agree with the {{terms}} and {{privacy}} on this website.' | ||
orderState=(if this.isPaidOrder (t "Proceed to Checkout") (t "Order Now"))}} as |text placeholder|> | ||
{{~#if (eq placeholder 'terms')}}<a href="/terms">terms of services</a>{{~/if~}} | ||
{{~#if (eq placeholder 'privacy')}}<a href="/privacy">privacy policy</a>{{~/if~}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not use terms='<a href="/terms">terms of services</a>'
and privacy='<a href="/privacy">privacy policy</a>'
like in orderState?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was showing error
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You have to wrap that in string
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tried and didn't worked with that too. Browser was showing no link only the text inside quotes
Fixes #5608
Corrected Acknowledgement text and buttons - (Snapshots After correction)
For paid tickets:-
For free tickets:-
Checklist
development
branch.