View Issue Details

IDProjectCategoryView StatusLast Update
0000248WackoWikiinstallerpublic2009-10-13 16:03
Reporterebal Assigned Toebal  
PrioritynormalSeverityminorReproducibilitysometimes
Status resolvedResolutionfixed 
Target Version5.0.betaFixed in Version5.0.beta 
Summary0000248: some pages like Login and Password are set with [bg] language! not even in [en]
DescriptionI can see that some pages are inserted into wacko database
with lang=el via the installation process (preetty neat david) at
wacko_pages table but not all the core pages, eg. the registration page.
Another issue is that some pages like Login and Password are set with bg
language! not even in en (english). Am i missing something?


Steps To Reproducei did a little hack for my installation, to solve
the language problem, hope this is useful for you too:

FILE: setup/inserts.php

BEFORE:
   if ($config2["multilanguage"])
      {
         $handle = opendir("setup/lang");
         while (false !== ($file = readdir($handle)))
            {
               if(1 == preg_match("/^inserts\.(.*?)\.php$/",$file,$match))
                  {
                     $langlist[] = $match[1];
                  }
            }

         closedir($handle);

         foreach ($langlist as $_lang)
            {
               require("setup/lang/inserts.".$_lang.".php");
            }
      }
   else
      {
         require("setup/lang/inserts.".$config2["language"].".php");
      }

AFTER:

   require_once("setup/lang/inserts.".$config2["language"].".php");
   if ($config2["multilanguage"])
      {
         $handle = opendir("setup/lang");
         while (false !== ($file = readdir($handle)))
            {
               if(1 == preg_match("/^inserts\.(.*?)\.php$/",$file,$match))
                  {
                     $langlist[] = $match[1];
                  }
            }

         closedir($handle);

         foreach ($langlist as $_lang)
            {
               require_once("setup/lang/inserts.".$_lang.".php");
            }
      }
TagsNo tags attached.

Activities

administrator

2009-01-03 06:42

administrator   ~0000541

it seems the installer take the first in the row and that is bg if you
install all languages and the page name is equal

ebal

2009-01-03 14:09

developer   ~0000542

So the first in row should be the selected language from the first page of installer.

I did a little hack (for me) and change the installer (see below).
Hopefully it should work for everyone. Plz test it and tell me
what you think.

file: setup/inserts.php

before:
   if ($config2["multilanguage"])
      {
         $handle = opendir("setup/lang");
         while (false !== ($file = readdir($handle)))
            {
               if(1 == preg_match("/^inserts\.(.*?)\.php$/",$file,$match))
                  {
                     $langlist[] = $match[1];
                  }
            }

         closedir($handle);

         foreach ($langlist as $_lang)
            {
               require("setup/lang/inserts.".$_lang.".php");
            }
      }
   else
      {
         require("setup/lang/inserts.".$config2["language"].".php");
      }

AFTER:

   require_once("setup/lang/inserts.".$config2["language"].".php");

   if ($config2["multilanguage"]) {
         $handle = opendir("setup/lang");
         while (false !== ($file = readdir($handle))) {
               if(1 == preg_match("/^inserts\.(.*?)\.php$/",$file,$match))
                     $langlist[] = $match[1];
            }

         closedir($handle);

         foreach ($langlist as $_lang)
               require_once("setup/lang/inserts.".$_lang.".php");
      }

administrator

2009-01-03 14:21

administrator   ~0000543

Last edited: 2009-01-03 14:51

after my tests I will apply the patch, need to start XAMPP and run several installs in [de], [en] and [fr]

if you already did this just apply the patch to our SVN repository (I working on the missing file delete in the page remove handler today - no bugnote yet in the tracker - I wonder why till now nobody came up with this issue except Владислав in his wackofork called openspace)

ebal

2009-01-03 17:26

developer   ~0000544

After a lot of tests, i 've just uploaded the patch.
The problem exists because i am the only one that uses something else
than iso-8859-1, greek charset is iso-88859-7 and almost everyone else
uses iso-8859-1

Issue History

Date Modified Username Field Change
2009-01-03 06:41 administrator New Issue
2009-01-03 06:41 administrator Status new => assigned
2009-01-03 06:41 administrator Assigned To => administrator
2009-01-03 06:41 administrator Legacy => NEW
2009-01-03 06:42 administrator Note Added: 0000541
2009-01-03 06:42 administrator Reporter administrator => ebal
2009-01-03 14:09 ebal Note Added: 0000542
2009-01-03 14:21 administrator Note Added: 0000543
2009-01-03 14:22 administrator Note Edited: 0000543
2009-01-03 14:51 administrator Note Edited: 0000543
2009-01-03 17:26 ebal Note Added: 0000544
2009-01-03 17:38 administrator Assigned To administrator => ebal
2009-01-03 17:38 administrator Status assigned => resolved
2009-01-03 17:38 administrator Resolution open => fixed
2009-01-03 17:38 administrator Fixed in Version => 5.0.0
2009-10-13 16:00 administrator Target Version 5.0.0 => 5.0.beta
2009-10-13 16:03 administrator Fixed in Version 5.0.0 => 5.0.beta
2010-03-08 10:14 administrator Category Installer => installer