How to remove language files??

terrybanks

Joined: 2009-05-25
Posts: 5
Posted: Wed, 2009-07-01 15:01

My ISP is requiring that I reduce file count. I've got several different Gallery2 installations in place. How can I remove ALL languages except english? This might not totally solve my problem with file count but I suspect it will go a long way.

Thanks.

Terry Banks

Login or register to post comments
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 9271
Posted: Wed, 2009-07-01 16:05

Ah, but Bluehost has unlimited everything? :) I'd suggest a new host, but....

Go to Site Admin > Languages and delete them.

I'd also go to Site Admin > Plugins and remove (delete, not just uninstall) any plugins and themes you are not using.

You might also want to look into a multisite configuration. http://codex.gallery2.org/Gallery2:Multisite

NOTE: if you want the sites to be completely, totally separate, you probably don't want this. As anyone could still look at the source code of the page to get information on where some of the files are being served from.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

Login or register to post comments
terrybanks

Joined: 2009-05-25
Posts: 5
Posted: Wed, 2009-07-01 16:25

I've done the "delete plugins & themes step". I'm also considering the new host and multisite config options.

I don't, however, have a "Site Admin > Languages" within which to delete the extras. Is there some option that I need to set somewhere to see that tab selection?

Thanks for a quick answer. (And if you have a favorite "other host" a private email would be nice. :-) )

Cheers,
Terry

Login or register to post comments
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 9271
Posted: Wed, 2009-07-01 16:27

Need more info about your setup:
FAQ: What information is required when I ask for help in the forums?

As for a host:
http://gallery.menalto.com/node/88391
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

Login or register to post comments
terrybanks

Joined: 2009-05-25
Posts: 5
Posted: Wed, 2009-07-01 18:38

Below are the System Info listings for the four gallery installs. I notice that #1 and #4 haven't been updated to 2.3 while #2 & #3 are at 2.3 -- they do have a languages entry when I go to site admin. I removed all the extra languages on them but, since I don't know exactly where to look, can't see (how many/if any) files got deleted. I had expected to see all the files under the locale directories to go away but at first glance that didn't seem to happen. I can see that tomorrow am after HM creates a new "userquota" file.

Thanks,
Terry

+++++++++++++++++

Gallery #1
Gallery version = 2.2.2 core 1.2.0.4
PHP version = 5.2.9 cgi-fcgi
Webserver = Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.8i DAV/2 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635
Database = mysqlt 5.0.75-community-log, lock.system=flock
Toolkits = Exif, Ffmpeg, Gd, ImageMagick, NetPBM
Acceleration = none, none
Operating system = Linux host144.hostmonster.com 2.6.28-9.16.intel.BHsmp #1 SMP Sat Apr 18 11:41:59 MDT 2009 x86_64
Default theme = matrix
gettext = enabled
Locale = en_US
Browser = Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1) Gecko/20090624 Firefox/3.5
Rows in GalleryAccessMap table = 61
Rows in GalleryAccessSubscriberMap table = 1080
Rows in GalleryUser table = 10
Rows in GalleryItem table = 1080
Rows in GalleryAlbumItem table = 29
Rows in GalleryCacheMap table = 0

+++++++++++++++++

Gallery #2
Gallery URL = http://www.noahbanks.com/Photos/main.php
Gallery version = 2.3 core 1.3.0
API = Core 7.54, Module 3.9, Theme 2.6, Embed 1.5
PHP version = 5.2.9 cgi-fcgi
Webserver = Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.8i DAV/2 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635
Database = mysqli 5.0.75-community-log, lock.system=flock
Toolkits = Exif, Getid3, Thumbnail, Gd, ImageMagick, NetPBM, ArchiveUpload
Acceleration = none, none
Operating system = Linux host144.hostmonster.com 2.6.28-9.16.intel.BHsmp #1 SMP Sat Apr 18 11:41:59 MDT 2009 x86_64
Default theme = matrix
gettext = enabled
Locale = en_US
Browser = Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1) Gecko/20090624 Firefox/3.5
Rows in GalleryAccessMap table = 44
Rows in GalleryAccessSubscriberMap table = 422
Rows in GalleryUser table = 3
Rows in GalleryItem table = 420
Rows in GalleryAlbumItem table = 6
Rows in GalleryCacheMap table = 0

+++++++++++++++++

Gallery #3
Gallery URL = http://thomas.banks100.com/Photos/main.php
Gallery version = 2.3 core 1.3.0
API = Core 7.54, Module 3.9, Theme 2.6, Embed 1.5
PHP version = 5.2.9 cgi-fcgi
Webserver = Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.8i DAV/2 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635
Database = mysqlt 5.0.75-community-log, lock.system=flock
Toolkits = ArchiveUpload, Exif, Getid3, LinkItemToolkit, Thumbnail, Gd, ImageMagick, NetPBM, SquareThumb
Acceleration = none, none
Operating system = Linux host144.hostmonster.com 2.6.28-9.16.intel.BHsmp #1 SMP Sat Apr 18 11:41:59 MDT 2009 x86_64
Default theme = gecko
gettext = enabled
Locale = en_US
Browser = Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1) Gecko/20090624 Firefox/3.5
Rows in GalleryAccessMap table = 393
Rows in GalleryAccessSubscriberMap table = 2637
Rows in GalleryUser table = 4
Rows in GalleryItem table = 2630
Rows in GalleryAlbumItem table = 30
Rows in GalleryCacheMap table = 0

+++++++++++++++++

Gallery #4
Gallery version = 2.2.4 core 1.2.0.6
PHP version = 5.2.9 cgi-fcgi
Webserver = Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.8i DAV/2 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635
Database = mysqlt 5.0.75-community-log, lock.system=flock
Toolkits = ArchiveUpload, Dcraw, Exif, Getid3, LinkItemToolkit, Thumbnail, Gd, ImageMagick, NetPBM
Acceleration = none, none
Operating system = Linux host144.hostmonster.com 2.6.28-9.16.intel.BHsmp #1 SMP Sat Apr 18 11:41:59 MDT 2009 x86_64
Default theme = matrix
gettext = enabled
Locale = en_US
Browser = Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1) Gecko/20090624 Firefox/3.5
Rows in GalleryAccessMap table = 24
Rows in GalleryAccessSubscriberMap table = 110
Rows in GalleryUser table = 8
Rows in GalleryItem table = 108
Rows in GalleryAlbumItem table = 1
Rows in GalleryCacheMap table = 0

+++++++++++++++++

Login or register to post comments
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 9271
Posted: Wed, 2009-07-01 18:57

I'd also run through this, it should show you a list of old files that can be deleted and I believe even spits out a script to help clean them up if you have shell access.
FAQ: How can I make sure that my installation files are all intact?

I'd also go through an uninstall any unused plugins, and delete them. Looks to me like some of those installs are still using a bunch of default settings:

Gd, ImageMagick, NetPBM, Dcraw, Exif, Getid3, etc. If only hosting photos you really only need ImageMagick or NetPBM, nothing else. And I see a ton of modules and themes under at least one install I looked at.

Cleaning those up would also clean up a tremendous amount of files.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

Login or register to post comments