| Author |
Message |
Syrion

Joined: 02 Aug 2006 Posts: 172
|
|
English interface not showing up |
|
I installed Strawberry with English selected, somehow it kept bugging me in Russian. No problem there, and I probably had a language-pack with errors (since I slightly modified it), so I installed anyway.
Now, my admin panel is still in Russian, while I checked my translations on errors (and fixed some single " and other oversights), replaced the language-file and checked the permissions.
Any ideas?
|
|
| Fri Aug 04, 2006 10:05 am |
|
 |
Guest
|
|
|
Please login to hide the ads.
|
|
|
|
 |
Syrion

Joined: 02 Aug 2006 Posts: 172
|
|
|
|
To be sure I replaced the language file with the one from FI-DD's download, nothing happens. So I think I can exclude that one as the cause.
|
|
| Fri Aug 04, 2006 10:11 am |
|
 |
FI-DD
Admin

Joined: 22 Sep 2005 Posts: 2683 Location: Germany |
|
|
| Fri Aug 04, 2006 10:12 am |
|
 |
Syrion

Joined: 02 Aug 2006 Posts: 172
|
|
|
|
Used the file in there, didn't help. So the problem still occurs. :/
Which script calls pack.txt? As far as I could see none of the 3 scripts in lang/en (or my testfolder: lang/prri) tries to import it.
|
|
| Fri Aug 04, 2006 10:27 am |
|
 |
FI-DD
Admin

Joined: 22 Sep 2005 Posts: 2683 Location: Germany |
|
|
|
 |  | Which script calls pack.txt? As far as I could see none of the 3 scripts in lang/en (or my testfolder: lang/prri) tries to import it. |
The function t() in inc/functions.inc.php.
|
|
| Fri Aug 04, 2006 1:08 pm |
|
 |
Syrion

Joined: 02 Aug 2006 Posts: 172
|
|
|
|
Yup, I found out (long live dreamweavers search-function!).
 |  | $file = languages_directory.'/'.$config['lang'].'/pack.txt';
if (file_exists($file)){
if (!$gettext){
$gettext = unserialize(file_read($file));
}
if ($gettext[md5($text)]){
$text = $gettext[md5($text)];
} else {
$gettext[md5($text)] = $text;
file_write($file, serialize($gettext));
}
} |
What does the if-coding do?
|
|
| Fri Aug 04, 2006 1:11 pm |
|
 |
scottdallas

Joined: 04 May 2006 Posts: 1808 Location: US |
|
|
|
I have not fixed it ;( I am playing with it right now again though.
_________________ www.scottdizzle.com uses cnr
last update: 07-22-08: 8:30 pm |
|
| Wed Aug 09, 2006 6:40 pm |
|
 |
sempro
Joined: 27 Apr 2006 Posts: 72
|
|
|
|
 |  | Yup, I found out (long live dreamweavers search-function!).
 |  | $file = languages_directory.'/'.$config['lang'].'/pack.txt';
if (file_exists($file)){
if (!$gettext){
$gettext = unserialize(file_read($file));
}
if ($gettext[md5($text)]){
$text = $gettext[md5($text)];
} else {
$gettext[md5($text)] = $text;
file_write($file, serialize($gettext));
}
} |
What does the if-coding do? |
Where put it or replace? what file?
|
|
| Thu Sep 21, 2006 12:22 pm |
|
 |
Saszoo

Joined: 07 Jun 2006 Posts: 409 Location: Norway |
|
|
|
Well, I must admit. I don't get this to work...
Installed on linux-server with php version 4. same server where I installed cnr.
I've deleted the ru folder, I've changed some code in inc/functions inc...
i dunno...
What servers do you guys get this to work on?
help?
_________________ My cute.ru site |
|
| Sun Nov 26, 2006 1:32 am |
|
 |
|