coppermine-gallery.com/forum

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: Mcampos on April 07, 2004, 12:55:17 PM

Title: language package fails
Post by: Mcampos on April 07, 2004, 12:55:17 PM
I had my gallery installed and using anime theme

trying to use the portuguese language package but it fails to open


In admin mode stil get english in the language selector.

tks in advance...
Title: language package fails
Post by: Nibbler on April 07, 2004, 01:03:47 PM
Can you post a link to your gallery, and any error messages you get please.
Title: language package fails
Post by: Mcampos on April 07, 2004, 01:16:03 PM
http://glamour.web.pt

i'm not getting errors....

it seems that the language wont load...
Title: language package fails
Post by: Nibbler on April 07, 2004, 01:40:27 PM
Not quite sure what is causing this, but if you save the following into a new php file and upload it to your coppermine directory, then go the php file in your browser, it should change the language to portuguese for you.


<?php
define
('IN_COPPERMINE'true);
require(
'include/init.inc.php');
echo 
mysql_query("UPDATE {$CONFIG['TABLE_CONFIG']} SET value = 'portuguese' WHERE name = 'lang'") ? "Succeeded" mysql_error();
?>

Title: language package fails
Post by: Casper on April 07, 2004, 02:24:12 PM
It's not changing to any language, and themes are stuck as well.  Are you sure you uploaded all the languages.
Title: language package fails
Post by: Nibbler on April 07, 2004, 02:41:48 PM
Language changes if you override it in the url, so the lang file is there and functional.
Title: language package fails
Post by: Casper on April 07, 2004, 03:36:06 PM
Hmmm,

Strange, because I cannot change them using the usual ?lang= method.
Title: language package fails
Post by: Joachim Müller on April 07, 2004, 06:25:48 PM
I can confirm Casper's observation. This is probably due to the fact that the site uses frames to camouflage the real url (which is http://www.micaelcampos.com/glamour ). Make sure the "link to ecard" settings are pointing to the correct url.

GauGau
Title: language package fails
Post by: Mcampos on April 08, 2004, 06:52:50 PM
Stil not in portuguese!!!  :(


Quote from: "Nibbler"Not quite sure what is causing this, but if you save the following into a new php file and upload it to your coppermine directory, then go the php file in your browser, it should change the language to portuguese for you.


<?php
define
('IN_COPPERMINE'true);
require(
'include/init.inc.php');
echo 
mysql_query("UPDATE {$CONFIG['TABLE_CONFIG']} SET value = 'portuguese' WHERE name = 'lang'") ? "Succeeded" mysql_error();
?>

Title: language package fails
Post by: Casper on April 08, 2004, 06:57:18 PM
Try typing this in your browser;
http://www.micaelcampos.com/glamour?lang=portuguese
Title: language package fails
Post by: Nibbler on April 08, 2004, 07:23:26 PM
Site seems to now be in portuguese, so something worked  :)
Title: language package fails
Post by: Casper on April 08, 2004, 08:15:00 PM
If it changed after you did what I said, it was a cookie problem.  You will probably find that if you tried to change the language back to English in the config, your browser would still show Portuguese, as your cookie says this is the language you want.

If you want to be able to see whatever you have set in config, use the same method, but with ?lang=default