coppermine-gallery.com/forum

Support => Older/other versions => cpg1.3.x Support => Topic started by: Makc666 on August 05, 2004, 09:07:36 PM

Title: [BUG] Missed translation -> File information -> URL:
Post by: Makc666 on August 05, 2004, 09:07:36 PM
[BUG] Missed translation -> File information -> URL:

When you look throm File information there are:
Filename:
Album name:
File Size:
Dimensions:
Displayed:
URL:
Favorites:

There is no translation string in english.php for URL:

Because in Russian language we don't call it as URL...
Title: Re: [BUG] Missed translation -> File information -> URL:
Post by: Casper on August 05, 2004, 11:33:46 PM
Good point.  This cannot now be done for version 1.3x, but can be added to 1.4.

For now, if you want your users to see the correct Russian, and have no users with other languages, do the following.

Open displayimage.php, and find this code;

// Create the absolute URL for display in info
   $info['URL'] = '<a href="' . $CONFIG["ecards_more_pic_target"]


Change the '$info['URL']' to '$info['Russian for URL']

If you have users that use various language files, do the following;

Change the above '$info['URL']' to '$info[$lang_picinfo['URL']]'.

Now open your language file, and find;

$lang_picinfo = array(

and add into the array;

'URL' => 'Russian for URL',

Now do this for every language file you allow your users to use.


@Gaugau, I can add this to dev if you agree (English only  ;).)
Title: Re: [BUG] Missed translation -> File information -> URL:
Post by: Joachim Müller on August 06, 2004, 07:07:05 AM
yes, please go ahead.

GauGau
Title: Re: [BUG] Missed translation -> File information -> URL:
Post by: Casper on August 06, 2004, 01:23:09 PM
Fixed and committed to devel.