forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 language => Topic started by: JoelFan on October 30, 2010, 08:48:39 am

Title: Is it safe to remove language files and images with 1.5.8?
Post by: JoelFan on October 30, 2010, 08:48:39 am
I know this may seem a stupid question, but I just want to be sure / safe ...

If I know that my CPG 1.5.8 is only going to be accessed by English fluent users, is it safe for me to remove the other language .php files in /lang/ and the other flag images from /images/flags/ ?
Title: Re: Is it safe to remove language files and images with 1.5.8?
Post by: Αndré on October 30, 2010, 12:00:21 pm
Removing the language files should be fine, but I don't know if the flags are used at some other places than the language manager (e.g. some plugins could use them or Coppermine itself). Why do you want to remove them?
Title: Re: Is it safe to remove language files and images with 1.5.8?
Post by: JoelFan on November 01, 2010, 09:21:08 pm
Why do you want to remove them?

To reduce upload/download times during backups and upgrades, and reduce file system clutter / overhead on the server (since I have dedicated servers and I host a lot of other users / sites, file system bloat can affect server performance especially during quota checks and nightly backups of the entire server when you have literally hundreds of scripts running across amny domains on a server).

So really any time I can reduce the number of files within a script and/or account whenever the files are not necessary, I will do so for optimized performance and overall efficiency. In this case, since the growing number of CPG's that I'll personally be running maintaining will only be utilized by people who speak English, then there is no reason to keep a large number of language files and flag graphics sitting in the folders of a bunch of CPG's on the server.

Thanks for the reply!
Title: Re: Is it safe to remove language files and images with 1.5.8?
Post by: Αndré on November 01, 2010, 09:34:22 pm
Then you should also remove the non-English docs, if you haven't done that yet. You could also delete some unneeded default themes and plugins.
Title: Re: Is it safe to remove language files and images with 1.5.8?
Post by: JoelFan on November 01, 2010, 09:49:13 pm
Then you should also remove the non-English docs, if you haven't done that yet.

Thank you for the reminder about the Docs. I usually do remove un-necessary themes (like Hardwired and Eyeball etc...) once a CPG is tested up and running, but I'd forgotten about the additonal language docs in the docs folder.

I'm sure the issue is trivial in small numbers, but when you have 50 or more CPG installs on a single server, removing all those extraneous files make s a big difference in overhead. Removing the extra non-eng docs will help make that difference too, thanks!
Title: Re: Is it safe to remove language files and images with 1.5.8?
Post by: Αndré on November 02, 2010, 09:05:29 am
http://forum.coppermine-gallery.net/index.php/topic,55415.msg270631.html#msg270631
Title: Re: Is it safe to remove language files and images with 1.5.8?
Post by: JoelFan on November 03, 2010, 08:43:36 am
http://forum.coppermine-gallery.net/index.php/topic,55415.msg270631.html#msg270631

I see that you want me to mark this as resolve or not.

I removed the non-English files/folders with /docs/ (such as de ,  es, and nl) and I removed a couple themes (Eyeball and Hardwired) and here are the basic results after running "CHECK VERSIONS" :

Removing the extra themes reports mostly "Optional" under the "Missing" column, but there are a couple that have the red-circled "X" warning that says "Mandatory".

Removing the extra files/folders in /docs/ (such as /docs/de/ and /docs/nl/ etc...) reports mostly "MANDATORY" under the "Missing" column and displays the red-circled "X" warning that says "Mandatory".

But so far it appears that there is no adverse affect from the removals, despite the "Mandatory" warnings, and no apparent errors in the cPanel Error Log. So it seems that it's OK to remove those particular files without negative repercussions (keeping in mind I don't really have any plugins installed that might be dependant on them.

I did not remove the flag images.

So based on the findings so far, would you mark this "Resolved" if you were me? Just trying to get the jist of what would or would not be considered "resolved" as it pertains to this particular topic.

Title: Re: Is it safe to remove language files and images with 1.5.8?
Post by: Αndré on November 03, 2010, 08:50:13 am
Removing the extra files/folders in /docs/ (such as /docs/de/ and /docs/nl/ etc...) reports mostly "MANDATORY" under the "Missing" column and displays the red-circled "X" warning that says "Mandatory".
Has already been fixed in svn repository (http://coppermine.svn.sourceforge.net/viewvc/coppermine?revision=7988&view=revision).


So based on the findings so far, would you mark this "Resolved" if you were me?
Yes, as I think you got an adequate answer.
Title: Re: Is it safe to remove language files and images with 1.5.8?
Post by: JoelFan on November 04, 2010, 06:34:08 pm
Has already been fixed in svn repository (http://coppermine.svn.sourceforge.net/viewvc/coppermine?revision=7988&view=revision).

Thank you for the link. I just downloaded the latest trunk/cpg1.5.x/include/cpg15x.files.xml from that link and uploaded (overwriting the old version) to my server and still, a CHECK VERSION shows the Non-English Docs as "Mandatory".

Have I missed a step?
Title: Re: Is it safe to remove language files and images with 1.5.8?
Post by: Αndré on November 04, 2010, 08:22:21 pm
Have I missed a step?
To be honest, I never tested that changes ::) Will do later.
Title: Re: Is it safe to remove language files and images with 1.5.8?
Post by: Nibbler on November 04, 2010, 09:01:21 pm
Tick the "Do not connect to the online repository" box.
Title: Re: Is it safe to remove language files and images with 1.5.8?
Post by: JoelFan on November 04, 2010, 11:54:47 pm
Tick the "Do not connect to the online repository" box.

Thanks. I tried that but still get the "Mandatory" warnings on non-English /docs files. I'll Try some more testing later tonight as soon as I can and report back any relevant results in case anyone else finds this useful.
Title: Re: Is it safe to remove language files and images with 1.5.8?
Post by: Αndré on November 05, 2010, 01:14:06 pm
Please try again revision 8013 (http://coppermine.svn.sourceforge.net/viewvc/coppermine?revision=8013&view=revision).
Title: Re: Is it safe to remove language files and images with 1.5.8?
Post by: Lucypoch on July 09, 2012, 10:51:29 am
I think you can move it, at least i did it and have not problems until now