We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 16545
    • 358 Posts
    Why not, I haven’t seen language limitation in this snippet.
    That means you can use even a third language!? Or am I wrong? smiley
      • 20413
      • 2,877 Posts
      Third language - As in using the default [*content*]

      ...I can’t unzip the zip!? Error!! tongue
        @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 08, 2009, 02:44 PM

        P.S. One error in Installation description:
        2. In Configuration tab, copy.paste code below in "plugin configuration" fields
              &defualt_lang=default language;string;  -> must be &default_lang=default language;string;
        Thank you for reporting!

        Quote from: labasus at Feb 08, 2009, 02:44 PM

        But in case then it just http://domain.tld/site/sitelink.html -  [*[%LANG%]content*] has a previous [*content*] value.
        By this correction, [%LANG%] always has value and when you set default language to German, the TV will be [*decontent*] by default.

        Quote from: mrhaw at Feb 08, 2009, 03:16 PM

        ...I can’t unzip the zip!? Error!!  tongue
        I re-uploaded it  huh
          God loves me. 【ツ】


          MODX.ir (Persian Support)

          Boplo.ir/modx/ (Persian)
          • 33992 ☆ A M B ☆
          • 455 Posts
          Please excuse me embarrassed

          I am a lazy programmer, i had copy/paste the wrong word ("defual") in some lines. please download the latest 0.995
            God loves me. 【ツ】


            MODX.ir (Persian Support)

            Boplo.ir/modx/ (Persian)
            • 16545
            • 358 Posts
            It’s logic to be so, but http://domain.tld/site/sitelink.html is still has not show default language after lang=XX removing.
            Try to do your own test:
            1) set as default - english
            2) click http://domain.tld/site/sitelink.html?lang=en
            3) click http://domain.tld/site/sitelink.html?lang=de
            4) remove in your browser last ?lang=de string, to do http://domain.tld/site/sitelink.html
            Reply what language you will see in content value.

            P.S. I’ve just tried latest version - still without success.
            I’m using 0.9.6.3 on Windows XAMP, tested with IE7,FF 3.0.6,Opera 9.6.3

            Quote from: labasus at Feb 08, 2009, 02:44 PM

            But in case then it just http://domain.tld/site/sitelink.html - [*[%LANG%]content*] has a previous [*content*] value.
            By this correction, [%LANG%] always has value and when you set default language to German, the TV will be [*decontent*] by default.
              • 33992 ☆ A M B ☆
              • 455 Posts
              Plugin sets value of "&lang" query as a _SESSION (cookie) so you will see page in the last language you’ve choosen when removing &lang.
              It allows user to choose his/her language once and review pages in own language.

              Was it your problem or i am wrong?
                God loves me. 【ツ】


                MODX.ir (Persian Support)

                Boplo.ir/modx/ (Persian)
                • 16545
                • 358 Posts
                It’s not a big problem, I though must will replace to default language automatically , but doesn’t do....
                If it is a normal snippet working way - it’s ok...

                So, I just must replace all URL addresses with ending suffix &lang=[%LANG%] (expl. <a href="[~[*id*]~]&lang=[%LANG%]" title="Title">Title</a>),
                cause wayfinder or other snippets may use ordinary http://url/alias.html without &lang=XX

                Quote from: AHHP at Feb 08, 2009, 05:15 PM

                Plugin sets value of "&lang" query as a _SESSION (cookie) so you will see page in the last language you’ve choosen when removing &lang.
                It allows user to choose his/her language once and review pages in own language.

                Was it your problem or i am wrong?
                  • 33992 ☆ A M B ☆
                  • 455 Posts
                  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?

                  for example i have 2 languages site, i put to links in my template
                  <a href="[~[*id*]~]&lang=en">English</a>
                  <a href="[~[*id*]~]&lang=fa">Persian</a> (default)

                  My site is loaded in Persian and when a visitor clicks English link, he visits all other pages in English while he has not signed out or closed his browser (and changed lang).

                  Default language is choosen by you (site) and if you don’t choose it, the manager lang will be choosen for all visitors

                  tell me more about your opinion...
                    God loves me. 【ツ】


                    MODX.ir (Persian Support)

                    Boplo.ir/modx/ (Persian)
                    • 16545
                    • 358 Posts
                    One thing doesn’t clear to me.
                    My situation:
                    1) 3 languages - en, de, fr
                    2) 3 content TV’s - encontent, decontent, frcontent
                    3) 1 template - standart [*content*] replaced with [*[%lang%]content*]
                    4) plugin configured with "en" as default language
                    5) in document - Content is blank, encontent - decontent - frcontent - have their own language text
                    6) in browser - http://domain.tld/sitelink.html - must to show my default "en" content, but it doesn’t.
                    if http://domain.tld/sitelink.html?lang=en or "de" or "fr" - everything’s fine.

                    What I’ve missed?
                      • 33992 ☆ A M B ☆
                      • 455 Posts
                      [%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.
                        God loves me. 【ツ】


                        MODX.ir (Persian Support)

                        Boplo.ir/modx/ (Persian)