Is it safe to remove language files and images with 1.5.8? Is it safe to remove language files and images with 1.5.8?
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Is it safe to remove language files and images with 1.5.8?

Started by JoelFan, October 30, 2010, 08:48:39 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

JoelFan

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/ ?

Αndré

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?

JoelFan

Quote from: Αndré on October 30, 2010, 12:00:21 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!

Αndré

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.

JoelFan

Quote from: Α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.

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!


JoelFan

Quote from: Αndré on November 02, 2010, 09:05:29 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.


Αndré

Quote from: JoelFan on November 03, 2010, 08:43:36 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.


Quote from: JoelFan on November 03, 2010, 08:43:36 AM
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.

JoelFan

Quote from: Αndré on November 03, 2010, 08:50:13 AM
Has already been fixed in svn repository.

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?

Αndré


Nibbler

Tick the "Do not connect to the online repository" box.

JoelFan

Quote from: Nibbler on November 04, 2010, 09:01:21 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.

Αndré


Lucypoch

I think you can move it, at least i did it and have not problems until now
Van gogh is a great oil painting artist