1
bjuti
Lets shrink XOOPS
  • 2010/1/25 15:40

  • bjuti

  • Just can't stay away

  • Posts: 871

  • Since: 2009/1/7 2


Hi guys!

I'm working on one new site and when I uploaded XOOPS I noticed that there are a lot of unnecessary stuff in the package. Usually I upload XOOPS instalation by night, just let it copy while I sleep, but now this is PITA.

So I've found a lot of languages and skins in XOOPS instalation. This is just for languages:

CKEditor
class/xoopseditor/ckeditor/ckeditor/lang/
Remove all but:

_languages.js
_translationstatus.txt
en.js

skins?

--

CKFinder
class/xoopseditor/ckeditor/ckfinder/core/lang/
Remove all but:
en.js

Skins?

class/xoopseditor/ckeditor/language

Remove all but english.php

---

DHTMLTextArea

class/xoopseditor/dhtmltextarea/language

Remove all but english.php

---

TextArea

class/xoopseditor/textarea/language

Remove all but english.php

---

TinyMCE

From the following paths remove all but en_dlg.js and index.html

class/xoopseditor/tinymce/language
class/xoopseditor/tinymce/tinymce/jscripts/langs
class/xoopseditor/tinymce/tinymce/jscripts/plugins/advhr/langs/
class/xoopseditor/tinymce/tinymce/jscripts/plugins/advimage/langs/
class/xoopseditor/tinymce/tinymce/jscripts/plugins/advlink/langs/
class/xoopseditor/tinymce/tinymce/jscripts/plugins/emotions/langs/
class/xoopseditor/tinymce/tinymce/jscripts/plugins/fullpage/langs/
class/xoopseditor/tinymce/tinymce/jscripts/plugins/media/langs/
class/xoopseditor/tinymce/tinymce/jscripts/plugins/paste/langs/
class/xoopseditor/tinymce/tinymce/jscripts/plugins/searchreplace/langs/
class/xoopseditor/tinymce/tinymce/jscripts/plugins/style/langs/
class/xoopseditor/tinymce/tinymce/jscripts/plugins/table/langs/
class/xoopseditor/tinymce/tinymce/jscripts/plugins/template/langs/
class/xoopseditor/tinymce/tinymce/jscripts/plugins/xhtmlxtras/langs/

Themes?

Class directory could be smaller for 9.471.602 - 6.865.081 (lang clean) = 2.606.521 bytes (2.55mb in small files)

----

XOOPS_LIB

From the /xoops_lib/modules/protector/language

Remove all but english directory.


So Protector and xoops_lib 1.693.361 - 1.276.966 (lang clean) = 416.395 bytes (406kb)



Overall savings on unpacked XOOPS is 3.022.916 bytes or 2.95 megabytes!

---


What dou you think? Is it possible that 2.5 release be realised without unused additional languages? It could be magaed via eg. language pack or something.


Let me hear (read) your opinion?

2
Mamba
Re: Lets shrink XOOPS
  • 2010/1/25 16:04

  • Mamba

  • Moderator

  • Posts: 11409

  • Since: 2004/4/23


Something definitely to consider...

But we'll need to define a better mechanism to download language files.

3
aph3x
Re: Lets shrink XOOPS
  • 2010/1/25 16:05

  • aph3x

  • Theme Designer

  • Posts: 834

  • Since: 2004/12/26


I don't know about protector and lib directory, but if your computer's OS is in other then english and you want to use any editor, editors will fail and you'll most likely get some errors which are caused by the missing langs, that will mean that is up to each user to upload their own language...do you think newbies will manage that?

4
bjuti
Re: Lets shrink XOOPS
  • 2010/1/25 16:09

  • bjuti

  • Just can't stay away

  • Posts: 871

  • Since: 2009/1/7 2


I don't have experience with non-english OS, but this could easily be managed via language packs. The default lang. is english, and if you want something on your own language, download the pack, or there could be an option from XOOPS admin to download languages from server.

5
aph3x
Re: Lets shrink XOOPS
  • 2010/1/25 16:23

  • aph3x

  • Theme Designer

  • Posts: 834

  • Since: 2004/12/26


No :)

at least not in this case..if your computer is say with default lang fr and we remove the fr.js from editors then the fr users won't have any buttons in there wysiwyg editors which basically means that from your end the editor will work fine, but for non-english default users it won't.

Since editors are really 3rd party included in the core this needs a special/different attention, edtiors should check if user lang is missing then replace with default/english, but as they are 3rd party of course their devs want for their work to be international accessible right out of the box so i hardly doubt they'll change the way the langs functions as they will always include all languages in their package

6
bjuti
Re: Lets shrink XOOPS
  • 2010/1/25 16:41

  • bjuti

  • Just can't stay away

  • Posts: 871

  • Since: 2009/1/7 2


It's stupid. There are more than 200 live spoken languages in the world. :)

7
aph3x
Re: Lets shrink XOOPS
  • 2010/1/25 16:52

  • aph3x

  • Theme Designer

  • Posts: 834

  • Since: 2004/12/26


again, no :)

you're right there are many many languages but software's concern is only the ones that serve as a base language for OS and not all languages benefit of that, this limitation has only to do with what one might have default language on its OS. In my case like in yours probably, OS doesn't comes in my language so is set as english which is the best foreign language i speak which will not affect me if langs were to be removed from core editors

8
Dylian
Re: Lets shrink XOOPS
  • 2010/1/25 16:58

  • Dylian

  • Friend of XOOPS

  • Posts: 237

  • Since: 2007/7/21


Maybe only the XOOPS dhtml editor should be delivered with the core...

Since the editors are the biggest folders in the whole core package, it could be better to create a separate editor package.

Thats just my opinion.

Greets Dylian.

9
tcnet
Re: Lets shrink XOOPS
  • 2010/1/25 17:10

  • tcnet

  • Friend of XOOPS

  • Posts: 297

  • Since: 2006/5/12


I agree with Dylian. The wysiwyg editors are adding alot of weight.

This go round I added ckeditor and removed fck editor on six sites. Took forever.

10
aph3x
Re: Lets shrink XOOPS
  • 2010/1/25 17:23

  • aph3x

  • Theme Designer

  • Posts: 834

  • Since: 2004/12/26


A different, better way to do it will be to don't force users to install those...put them in the package but offer option which to be installed and not only as is now which to use.

There are some who use the wysiwyg editors on their site and there are some that don't, my last 3 client sites use only the wysiwyg cause they do something that simple dhtml doesn't..format from word or any other doc production which adds special formatting tags.

So might be like this, add a new admin feature "manage editors" where you get the option which to install and which to activate as well as which groups can use this or that editor. That way you're not forced anymore to install all together and install can be done without where needed/wanted

Login

Who's Online

346 user(s) are online (203 user(s) are browsing Support Forums)


Members: 0


Guests: 346


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits