language problem after upgrade to 4.1.11

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • thermax04
    New Member
    • Apr 2011
    • 28
    • 4.1.x

    #16
    Originally posted by thermax04
    set to Arabic as default with the option for users to switch to English, and had no problems at all with the same Arabic Language file and the same settings from 2.1.3 till 2.1.10, only problems started since upgrading to 4.1.11

    my forum
    http://www.mobileguide-mea.com/vb/forum.php
    Originally posted by Wayne Luke
    You need a completely different file for 4.X than you used for 2.X. You'll need to upgrade your language.
    sorry my mistake, i mean using the same file since 4.1.2 till 4.1.10

    Comment

    • thermax04
      New Member
      • Apr 2011
      • 28
      • 4.1.x

      #17
      Originally posted by thermax04
      Which Arabic Language file are you using now, Iam using Translate By Almuhajir v 4.1.10
      Originally posted by baghdad4ever
      hi

      i used my own Arabic Language file ( I'm translated the original English file since 3.6 and update it with every version)
      so, 2 different Language files with the same problem , which means the problem is not from the language files

      Comment

      • Wayne Luke
        vBulletin Technical Support Lead
        • Aug 2000
        • 74111

        #18
        Someone needs to open a ticket so we can look at the database itself. May well be a bug but need to determine how it is working before we report it.
        Translations provided by Google.

        Wayne Luke
        The Rabid Badger - a vBulletin Cloud demonstration site.
        vBulletin 5 API

        Comment

        • baghdad4ever
          Senior Member
          • Apr 2007
          • 587
          • 4.1.x

          #19
          hi wayne

          plz see these

          but i dont know the exact way to fix that





          Comment

          • Wayne Luke
            vBulletin Technical Support Lead
            • Aug 2000
            • 74111

            #20
            You can look for this line:
            Code:
            function fetch_phrase($phrasename, $fieldname, $strreplace = '', $doquotes = true, $alllanguages = false, $languageid = false, $dobracevars = true)
            And change it to this:
            Code:
            function fetch_phrase($phrasename, $fieldname, $strreplace = '', $doquotes = true, $alllanguages = false, $languageid = -2, $dobracevars = true)
            I can't guarantee that will fix your issue. A complete fix looks like it is slated for 4.1.2.
            Translations provided by Google.

            Wayne Luke
            The Rabid Badger - a vBulletin Cloud demonstration site.
            vBulletin 5 API

            Comment

            • baghdad4ever
              Senior Member
              • Apr 2007
              • 587
              • 4.1.x

              #21
              hi wayne

              in which file we must do this change?
              Last edited by baghdad4ever; Tue 6 Mar '12, 10:39am.

              Comment

              • Wayne Luke
                vBulletin Technical Support Lead
                • Aug 2000
                • 74111

                #22
                A quick grep of the vBulletin files shows it to be in includes/functions_misc.php.
                Translations provided by Google.

                Wayne Luke
                The Rabid Badger - a vBulletin Cloud demonstration site.
                vBulletin 5 API

                Comment

                • michal72
                  New Member
                  • Oct 2011
                  • 14
                  • 4.1.x

                  #23
                  "-2" partly solves the problem. Activation email is sent in forum default language but welcome still in master language (languageid = -1)
                  I have reverted this function to ver 4.1.10

                  Comment

                  • baghdad4ever
                    Senior Member
                    • Apr 2007
                    • 587
                    • 4.1.x

                    #24
                    i do this change

                    but unfortunately the problem still

                    the redirect messages in English instead of Arabic

                    Comment

                    • Wayne Luke
                      vBulletin Technical Support Lead
                      • Aug 2000
                      • 74111

                      #25
                      Unfortunately, you'll have to wait until a proper fix in 4.1.12 then. I don't know what the full fix is and only have the same information as you do from that JIRA issue.
                      Translations provided by Google.

                      Wayne Luke
                      The Rabid Badger - a vBulletin Cloud demonstration site.
                      vBulletin 5 API

                      Comment

                      • thermax04
                        New Member
                        • Apr 2011
                        • 28
                        • 4.1.x

                        #26
                        A working fix, tested and working:

                        In file includes/functions_misc.php, around line 854, add the lines in red:

                        if (!empty($strreplace)) { if (strpos("$phrasename", $strreplace) === 0) { $phrasename = substr($phrasename, strlen($strreplace)); } } if ($languageid === false) { $languageid = LANGUAGEID; } $languageid = intval($languageid);

                        Also in file includes/functions.php line 3908, change -1 to false

                        * @param bool Force bypass of domain whitelist check * * @return none (the session is re-directed). */ function print_standard_redirect($redir_phrase, $isphrase = true, $forceredirect = false, $languageid = false, $bypasswhitelist = false) { if (!VB_API) {

                        Comment

                        • lifanovsky
                          Senior Member
                          • Oct 2004
                          • 269
                          • 4.0.0

                          #27
                          Same on my forum. Thank you, thermax04, your advice helped to overcome this bug.
                          Boris Lifanovsky; administrator of the biggest Russian classical music forum

                          Lifanovsky.com | ForumKlassika.Ru

                          Comment

                          • Wayne Luke
                            vBulletin Technical Support Lead
                            • Aug 2000
                            • 74111

                            #28
                            Originally posted by thermax04
                            A working fix, tested and working:

                            In file includes/functions_misc.php, around line 854, add the lines in red:

                            if (!empty($strreplace)) { if (strpos("$phrasename", $strreplace) === 0) { $phrasename = substr($phrasename, strlen($strreplace)); } } if ($languageid === false) { $languageid = LANGUAGEID; } $languageid = intval($languageid);

                            Also in file includes/functions.php line 3908, change -1 to false

                            * @param bool Force bypass of domain whitelist check * * @return none (the session is re-directed). */ function print_standard_redirect($redir_phrase, $isphrase = true, $forceredirect = false, $languageid = false, $bypasswhitelist = false) { if (!VB_API) {
                            Can you please post this in the JIRA Entry linked above. Thanks for the contribution.
                            Translations provided by Google.

                            Wayne Luke
                            The Rabid Badger - a vBulletin Cloud demonstration site.
                            vBulletin 5 API

                            Comment

                            • thermax04
                              New Member
                              • Apr 2011
                              • 28
                              • 4.1.x

                              #29
                              Originally posted by lifanovsky
                              Same on my forum. Thank you, thermax04, your advice helped to overcome this bug.
                              Glad that I helped, that what forums are for

                              Originally posted by Wayne Luke
                              Can you please post this in the JIRA Entry linked above. Thanks for the contribution.
                              Sorry To ask, what do you mean by (post this in the JIRA Entry linked above)

                              Comment

                              • Wayne Luke
                                vBulletin Technical Support Lead
                                • Aug 2000
                                • 74111

                                #30
                                Post you're fix/workaround in this issue here: http://tracker.vbulletin.com/browse/VBIV-14446

                                That is what the developers look at and go by to fix issues in the software.
                                Translations provided by Google.

                                Wayne Luke
                                The Rabid Badger - a vBulletin Cloud demonstration site.
                                vBulletin 5 API

                                Comment

                                widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
                                Working...