Jump to content

Search the Community

Showing results for tags 'multi-language urls'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Welcome to ProcessWire
    • News & Announcements
    • Showcase
    • Wishlist & Roadmap
  • Community Support
    • Getting Started
    • Tutorials
    • FAQs
    • General Support
    • API & Templates
    • Modules/Plugins
    • Themes and Profiles
    • Multi-Language Support
    • Security
    • Jobs
  • Off Topic
    • Pub
    • Dev Talk

Product Groups

  • Form Builder
  • ProFields
  • ProCache
  • ProMailer
  • Login Register Pro
  • ProDrafts
  • ListerPro
  • ProDevTools
  • Likes
  • Custom Development

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests

Found 3 results

  1. I have a javascript animation similar to this codepen here: https://codepen.io/Anthony-Osceola/pen/YPPXwJw My version requires that the string is contained in a const variable. This is what I've tried: ..... .......... const paragraphs = [ <?=__("Here is some text.")?>, <?=__("Here is some more text")?> ]; function buildParagraph(text) {.......... While I've managed to translate the rest of the page, I'm having trouble getting text within javascript tags to work. They show in the admin but the translated text won't display for the JS animation. Would I be better off just creating another template for this translated page? I thought that doing so could be bad for SEO if it's counted as duplicate content. Any advice appreciated.
  2. The site I am working on has 2 different languages. All the other multi-language pages areworking fine. The issue arised when I tried to load a page in a modal window in the 2nd language (not the default). This is the call to modal window: <div id="modal-form" class="uk-flex-top" uk-modal> <div class="uk-modal-dialog uk-width-auto uk-margin-auto-vertical"> <button class="uk-modal-close-default" type="button" uk-close></button> <div class="uk-modal-header"> <h4 class="uk-modal-title"><?php echo $header; ?></h4> </div> <div class="uk-modal-body" uk-overflow-auto> <?php $curpage = $pages->get('template=contact-interest'); ?> <iframe src="<?php echo $curpage; ?>" width="920" height="400" uk-responsive></iframe> </div> </div> </div> It always loads the page in default language. I found out that the solution that correctly returns the page in the desired language is below: <div id="modal-form" class="uk-flex-top" uk-modal> <div class="uk-modal-dialog uk-width-auto uk-margin-auto-vertical"> <button class="uk-modal-close-default" type="button" uk-close></button> <div class="uk-modal-header"> <h4 class="uk-modal-title"><?php echo $header; ?></h4> </div> <div class="uk-modal-body" uk-overflow-auto> <?php $reserve = $pages->get('template=contact-interest'); $language = $user->language; $curpage = $reserve->localUrl($language); ?> <iframe src="<?php echo $curpage; ?>" width="920" height="400" uk-responsive></iframe> </div> </div> </div> Hope this will help someone else that faces the same problem.
  3. Hello, I am trying to create multi language site and i follow the all instructions here https://processwire.com/talk/topic/5518-multi-language-site/ http://processwire.com/api/multi-language-support/multi-language-urls/ i have installed all Modules under Language and also i change text to textlanguage and also textarea type. when i goto page url i see as attached. i dont see any /ar/ before my page, on home page and also on other pages (see attachment). does i am doing some thing wrong or how to do this ? Thanks
×
×
  • Create New...