Skip to content
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

Ability to add Translation for CMS page and CMS block #164

Closed
jigneshthummar opened this issue Dec 13, 2012 · 6 comments
Closed

Ability to add Translation for CMS page and CMS block #164

jigneshthummar opened this issue Dec 13, 2012 · 6 comments

Comments

@jigneshthummar
Copy link

As all know in magento .phtml we can translate text by using

__('text to translate'); ?>

but it is not possible to do in cms pages and blocks

if we can use following directive in cms page or static block

{{translate text="text to translate"}}

then it will be very useful and store owner can work with very less block and pages instead of duplicating same block or page for multiple stores where text change required.

if we add this functionality to magento core then it can be very useful.

Ref : http://www.lotusseedsdesign.com/blog/extend-the-use-of-links-phtml

@magento-team
Copy link
Contributor

Hello. For this you should rather create separate blocks and assign them to proper store views. What is the advantage of your approach?

@jigneshthummar
Copy link
Author

When we have more stores its hectic to make same change in all blocks just for text when html is same

at that time this approach can be useful. for html changes old approch is always there.

@magento-team
Copy link
Contributor

Hello. This is not currently planned. We encourage you to contribute code to improve it. Maybe with custom variables functionality?

@miguelbalparda
Copy link
Contributor

@mage2-team i made some code to add this as a feature. should i open a new issue or can you reopen this one so i can submit a pull request? keep rocking, v2 looks amazing.

vpelipenko added a commit that referenced this issue Mar 23, 2015
@gplanchat
Copy link

For the record, there is natively the trans CMS directive, at least since version 2.0.0, eg :

{{trans "Email:"}}

or

{{trans
        'Forgot your account password? Click <a href="%reset_url">here</a> to reset it.'

        reset_url="$this.getUrl($store,'customer/account/createPassword/',[_query:[id:$customer.id,token:$customer.rp_token],_nosid:1])"
    |raw}}

mmansoor-magento pushed a commit that referenced this issue Aug 1, 2016
[Folks] Asynchronous Operations Framework
@george-vlahakis
Copy link

Is the {{trans directive documented somewhere on this matter?

magento-engcom-team added a commit that referenced this issue Jan 24, 2019
 - Merge Pull Request magento/graphql-ce#164 from comwrap/graphql-ce:139-show-only-active-categories
 - Merged commits:
   1. ff64826
   2. ea8ea88
   3. 0d52d0d
   4. ce63f2a
   5. 05c40e8
   6. b777343
   7. e2c9ac0
   8. dfcac0c
   9. 8038f6e
   10. cd8b01b
   11. 1d622d4
   12. 6ac61ae
   13. 1495087
   14. 258a2d1
   15. 20306a4
   16. 46ca622
   17. 754e391
magento-engcom-team pushed a commit that referenced this issue Jun 17, 2019
pdohogne-magento pushed a commit that referenced this issue Jul 28, 2020
…ssues/159

Magento2 login as customer/issues/159
magento-devops-reposync-svc pushed a commit that referenced this issue Feb 3, 2023
BUG#ACP2E-349: Product's price is not correct inside wishlist when custom option is selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants