[SOLVED] After upgrading from 2.3(.0) to 2.3.2. Cleanup.

Homy
Homy's picture

Joined: 2005-09-14
Posts: 28
Posted: Sat, 2014-03-29 12:41

I have seen a lot of questions regarding how to implement the cleanup.sh script in a Gallery upgrade scenario.
Among those I saw mentioned the <?php system("/bin/sh cleanup.sh"); ?> solution, which I tried but failed. (It was posted a couple of years ago, so I am not really surprised).

From looking at the cleanup.sh script, it would seem it is mostly (95%) deleting *.mo files in diverse locale folders.

Would it be safe to assume that all the folders in specified /locale/ folders can be deleted since the local system was reworked an placed inside the /po/ folders?

EXAMPLE
This file list just tells you to delete the /locale/ folder in /modules/watermarks/

Quote:
rm modules/watermark/locale/zh_TW/LC_MESSAGES/modules_watermark.mo
rm modules/watermark/locale/zh_CN/LC_MESSAGES/modules_watermark.mo
rm modules/watermark/locale/vi/LC_MESSAGES/modules_watermark.mo
rm modules/watermark/locale/uk/LC_MESSAGES/modules_watermark.mo
rm modules/watermark/locale/tr/LC_MESSAGES/modules_watermark.mo
rm modules/watermark/locale/sv/LC_MESSAGES/modules_watermark.mo
rm modules/watermark/locale/sr/LC_MESSAGES/modules_watermark.mo
rm modules/watermark/locale/sk/LC_MESSAGES/modules_watermark.mo
rm modules/watermark/locale/ru/LC_MESSAGES/modules_watermark.mo
rm modules/watermark/locale/ro/LC_MESSAGES/modules_watermark.mo
rm modules/watermark/locale/pt_BR/LC_MESSAGES/modules_watermark.mo
rm modules/watermark/locale/pl/LC_MESSAGES/modules_watermark.mo
rm modules/watermark/locale/no/LC_MESSAGES/modules_watermark.mo
rm modules/watermark/locale/nl/LC_MESSAGES/modules_watermark.mo
rm modules/watermark/locale/lt/LC_MESSAGES/modules_watermark.mo
rm modules/watermark/locale/ko/LC_MESSAGES/modules_watermark.mo
rm modules/watermark/locale/ja/LC_MESSAGES/modules_watermark.mo
rm modules/watermark/locale/it/LC_MESSAGES/modules_watermark.mo
rm modules/watermark/locale/is/LC_MESSAGES/modules_watermark.mo
rm modules/watermark/locale/hu/LC_MESSAGES/modules_watermark.mo
rm modules/watermark/locale/fr/LC_MESSAGES/modules_watermark.mo
rm modules/watermark/locale/fi/LC_MESSAGES/modules_watermark.mo
rm modules/watermark/locale/eu/LC_MESSAGES/modules_watermark.mo
rm modules/watermark/locale/es/LC_MESSAGES/modules_watermark.mo
rm modules/watermark/locale/en_GB/LC_MESSAGES/modules_watermark.mo
rm modules/watermark/locale/de/LC_MESSAGES/modules_watermark.mo
rm modules/watermark/locale/da/LC_MESSAGES/modules_watermark.mo
rm modules/watermark/locale/cs/LC_MESSAGES/modules_watermark.mo
rm modules/watermark/locale/ca/LC_MESSAGES/modules_watermark.mo
rm modules/watermark/locale/ar/LC_MESSAGES/modules_watermark.mo
rm modules/watermark/locale/af/LC_MESSAGES/modules_watermark.mo

You do not have to delete individual files or manually check up 2535 files, since most (all but 4) of them are /locale/ folder deletions from /themes/ and /modules/ subfolders.

Right?

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Sat, 2014-03-29 20:34

Yup, mo files are no longer necessary. But they won't harm anything to leave them.

-s
________________________________
All New jQuery Minislideshow for G2/G3

 
Homy
Homy's picture

Joined: 2005-09-14
Posts: 28
Posted: Sun, 2014-03-30 09:59

Great, verified then. Thanks