Error: Missing value: locale_alias

zman
zman's picture

Joined: 2003-07-24
Posts: 196
Posted: Thu, 2004-10-21 21:51

Hello all!

I am running Gallery 1.4.1 cvs-b75 and was running it successfully on Linux box and Apache. I have recently switched to a Windows 2000 server box running IIS. I have other newer versions of Gallery running perfectly on this same box but am having trouble with this older version.

I have searched the forums and have found the most common answer to my problem is to upgrade to a newer version. I would really LOVE to do this, however, my Gallery 1.4.1 cvs-b75 is HEAVILY modified and I'm afraid modified in areas that I don't know how to "re-modify" to make it work with the newer versions. So, for me, at least at the moment, upgrading isn't an option :(

It seems some of the language files are working and some aren't? After some searching through the forum, I have already changed the following code in functions.inc from

if (sizeof($aliases) == 1) {
			$results["locale_alias['$key']"] = array (
				"type" => "hidden", 
				"value" => array_pop($aliases),
				"desc" => "locale_alias[$key]",
				"prompt" => "locale_alias[$key]"
				
					);
			continue;
		}

changed it to...

if (sizeof($aliases) == 1) {
			$results["locale_alias['$key']"] = array (
				"type" => "hidden", 
				"value" => array_pop($aliases),
				"desc" => "locale_alias[$key]",
				"prompt" => "locale_alias[$key]",
				"remove_empty" => true
					);
			continue;
		}

and no changes. While it would be nice to have these other langauges, it isn't 100% necessary and I can do with just English if necessary :)

What I'm wondering is if maybe somebody could help me out and tell me which file is "broke" and where and how I can fix the file that I have. I know you guys found the problem and have it fixed in newer versions but since my Gallery is very modified, if you could please give me some clues as to how to fix this without me needing to upgrade my entire Gallery, it would be greatly appreciated!!!

Here is a snippit from my config page to give you an idea of the errors I'm getting.

THANKS!!!!!!!

$gallery->app->locale_alias['en_US'] = "en";
$gallery->app->locale_alias['da_DK'] = "da";
$gallery->app->locale_alias['de_DE'] = "german";
$gallery->app->locale_alias['es_ES'] = "spanish";
$gallery->app->locale_alias['fr_FR'] = "fr";
$gallery->app->locale_alias['it_IT'] = "it";
$gallery->app->locale_alias['is_IS'] = "icelandic";
$gallery->app->locale_alias['nl_NL'] = "dutch";
$gallery->app->locale_alias['no_NO'] = "no";
$gallery->app->locale_alias['pt_PT'] = "portuguese";
$gallery->app->locale_alias['fi_FI'] = "fi";
$gallery->app->locale_alias['sv_SE'] = "swedish";
$gallery->app->locale_alias['uk_UA'] = "uk";
Error: Missing value: locale_alias[zh_CN]!Error: Missing value: locale_alias[zh_TW]!Error: Missing value: locale_alias[zh_TW.utf8]!Error: Missing value: locale_alias[bg_BG]!Error: Missing value: locale_alias[cs_CZ]!Error: Missing value: locale_alias[en_GB]!Error: Missing value: locale_alias[he_IL]!Error: Missing value: locale_alias[ja_JP]!Error: Missing value: locale_alias[lt_LT]!Error: Missing value: locale_alias[pl_PL]!Error: Missing value: locale_alias[pt_BR]!Error: Missing value: locale_alias[ru_RU]!Error: Missing value: locale_alias[ru_RU.koi8r]!Error: Missing value: locale_alias[sl_SI]!Error: Missing value: locale_alias[tr_TR]!

 
zman
zman's picture

Joined: 2003-07-24
Posts: 196
Posted: Sat, 2004-10-23 11:41

Ok... I wanted to work on my Gallery this weekend so figured I just give some stuff a shot :)

I have the newest version of Gallery so what I did was just go into the functions.inc file of the newest version and the old version I have. I copied and pasted all the locale functions with matching names from the new version OVER the functions in the old version and WALLA! It worked!!! WOOHOO!!!

So, while it may not have been the prettiest method, I got it to work :D

I'm sure no other languages work but I got the English version up and running at least :D

 
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Sun, 2004-10-24 22:14

I dont know what you want to tell me.

Jens

 
zman
zman's picture

Joined: 2003-07-24
Posts: 196
Posted: Sun, 2004-10-24 23:12
Tim_j wrote:
I dont know what you want to tell me.

Jens

I was just posting my success :)

I first posted that I couldn't get my old install of Gallery to work. After a couple days I figured I'd "experiment" and try to get it working on my own. Did the experimentation and was able to install Gallery so all is good :)