We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 16545
    • 358 Posts
    I’ve just tried this method too.
    1) 1 template has an [*[%LANG%]content*] placeholder.
    2) document [*content*] are just blank
    3) http://domain.tld/link.html still no have default content.

    >:(

    Quote from: AHHP at Feb 10, 2009, 04:09 AM

    [%LANG%] equals to [%lang%] and [%LANGUAGE%] equals to [%language%]. The difference is when current language is default language, [%lang%] and [%language%] are empty.
    In your site, [%LANG%] always is "en" and [%LANGUAGE%] always is "english" but in default language, the [%lang%] is empty and [*[%lang%]content*] will be [*content*] so you should use this [*[%LANG%]content*]
    Its load [*encontent*] in page load.
      • 33992 ☆ A M B ☆
      • 455 Posts
      I reviewed codes, please download EasyLingual 0.996 version smiley
        God loves me. 【ツ】


        MODX.ir (Persian Support)

        Boplo.ir/modx/ (Persian)
        • 16545
        • 358 Posts
        Yeessss, this version almost working.
        Why almost, cause snippet contants an error "defualt" variables again:)

        Ok this part is skipped, I’ll try to make some difficult combination within other snippets and plugins to test it completely.
        Thx man for genius and useful stuff.

        Quote from: AHHP at Feb 10, 2009, 04:57 PM

        I reviewed codes, please download EasyLingual 0.996 version smiley
          • 20413
          • 2,877 Posts
          @labasus: This is a plugin! wink
            @hawproductions | http://mrhaw.com/

            Infograph: MODX Advanced Install in 7 steps:
            http://forums.modx.com/thread/96954/infograph-modx-advanced-install-in-7-steps

            Recap: Portland, OR (PDX) MODX CMS Meetup, Oct 6, 2015. US Bancorp Tower
            http://mrhaw.com/modx_portland_oregon_pdx_modx_cms_meetup_oct_2015_us_bancorp_tower
            • 16545
            • 358 Posts
            Anyway
            Quote from: mrhaw at Feb 11, 2009, 04:41 AM

            @labasus: This is a plugin! wink
              • 9130
              • 171 Posts
              Quote from: AHHP at Feb 09, 2009, 02:20 PM

              I didn’t understand your goal!  sad
              When a visitor see your site, Your site is in default language. why do you want to add it to all links?

              Doing things with a cookie is fine from the users viewpoint but it kills SEO, the search engine needs to have a different url for each version of the content. Having the same url address deliver different content is setting yourself up for problems, adding the lang=en (assuming english is the current language) to all the links on the page solves this and makes things consistent from the search engine’s viewpoint.
                • 20413
                • 2,877 Posts
                Well...
                when user chooses the "German", this TV will change to [*decontent*] and in standard mode, [%lang%] is empty and TV will be [*content*].

                In this case just create TV for the other languages??
                  @hawproductions | http://mrhaw.com/

                  Infograph: MODX Advanced Install in 7 steps:
                  http://forums.modx.com/thread/96954/infograph-modx-advanced-install-in-7-steps

                  Recap: Portland, OR (PDX) MODX CMS Meetup, Oct 6, 2015. US Bancorp Tower
                  http://mrhaw.com/modx_portland_oregon_pdx_modx_cms_meetup_oct_2015_us_bancorp_tower
                  • 33992 ☆ A M B ☆
                  • 455 Posts
                  Quote from: labasus at Feb 11, 2009, 03:48 AM
                  Why almost, cause snippet contants an error "defualt" variables again:)
                  ooooooops, it seems, the stable version never come  wink
                  anyway i resolved it(re-uploaded again  grin ) but in your last version if you use "defualt" in plugin configuration, it works.


                  Quote from: mrhaw at Feb 11, 2009, 05:31 AM

                  Well...
                  when user chooses the "German", this TV will change to [*decontent*] and in standard mode, [%lang%] is empty and TV will be [*content*].
                  In this case just create TV for the other languages??
                  Yes, you can use lowercased tags when you want to use MODx fields as default sources.
                    God loves me. 【ツ】


                    MODX.ir (Persian Support)

                    Boplo.ir/modx/ (Persian)
                    • 16545
                    • 358 Posts
                    To make SEO works right, maybe better to use this trick - use default language links without &lang=XX:

                    <a href="[~[*id*]~]">English</a> // (default language)
                    <a href="[~[*id*]~]&lang=fa">Persian</a>
                    <a href="[~[*id*]~]&lang=de">German</a>
                    <a href="[~[*id*]~]&lang=fr">France</a>


                    Quote from: etal at Feb 11, 2009, 05:11 AM

                    Quote from: AHHP at Feb 09, 2009, 02:20 PM

                    I didn’t understand your goal! sad
                    When a visitor see your site, Your site is in default language. why do you want to add it to all links?

                    Doing things with a cookie is fine from the users viewpoint but it kills SEO, the search engine needs to have a different url for each version of the content. Having the same url address deliver different content is setting yourself up for problems, adding the lang=en (assuming english is the current language) to all the links on the page solves this and makes things consistent from the search engine’s viewpoint.
                      • 22958
                      • 50 Posts
                      Hi AHHP,

                      Thanks for sharing your plugin. But as I want to download it (after login to forum), I still can not get it. Error msg :
                      You are not allowed to access this section

                      Why ?

                      Thanks.
                      - pedma -