2012-11-17, 02:10:27
Hello,
I would like to ask for 2 features which should be pretty easy to implement (as i already made it for every GS as use)
First, the easier and cleaner: change the way file names and folder names are created. Currently GS simply strip any multilingual character like "ó,ł,ę, etc" leaving only ascii characters (as i understand).
This is not good. An example in polish (as i'm polish user). The extended news manager use xml files to store its news (or at least the last version i've downloaded). So let assume we have a news title like this:
"Piękne gołębie latają nad łąką"
(this is valid sentence)
when you enable the permalink you would get something like this
/pikne-gobie-lataj-nad-k
(and this is just gibberish)
so what i curently do is to replace all multingual characters (in my case polish ones) like this: "ł => l", "ą => a", "ó => o" which would give me above permalink like this:
/piekne-golebie-lataja-nad-laka
(this, for most polish users is readable as much as the original sentence)
this method could be applied for all languages and be configurable either by ON/OFF switch in gsconfig or by custom conversion table/file for each each language that requires it.
And second would be: preserving multilingual filenames as they were typed.
As i've mentioned some time ago while showing one of my GS powered websites i'm using additional XML file in each directory which holds the full name the user typed when he/she created that directory. This way the user doesnt see some strange names (also affected by point #1 above) but exactly what he/she typed.
We would need additional function for the plugin developers that they could use to get the original name as well as some functions to change that name. This could also be used for files.
I understand it would add some disk I/O for directories with many files but i think when used corectly it wont be so bad. Also for the files it could be enabled only if the plugin developer call it with additional parameter and not for each file by default.
Those two things are the first i need to change everytime i install GS
(sorry guys for the wall)
I would like to ask for 2 features which should be pretty easy to implement (as i already made it for every GS as use)
First, the easier and cleaner: change the way file names and folder names are created. Currently GS simply strip any multilingual character like "ó,ł,ę, etc" leaving only ascii characters (as i understand).
This is not good. An example in polish (as i'm polish user). The extended news manager use xml files to store its news (or at least the last version i've downloaded). So let assume we have a news title like this:
"Piękne gołębie latają nad łąką"
(this is valid sentence)
when you enable the permalink you would get something like this
/pikne-gobie-lataj-nad-k
(and this is just gibberish)
so what i curently do is to replace all multingual characters (in my case polish ones) like this: "ł => l", "ą => a", "ó => o" which would give me above permalink like this:
/piekne-golebie-lataja-nad-laka
(this, for most polish users is readable as much as the original sentence)
this method could be applied for all languages and be configurable either by ON/OFF switch in gsconfig or by custom conversion table/file for each each language that requires it.
And second would be: preserving multilingual filenames as they were typed.
As i've mentioned some time ago while showing one of my GS powered websites i'm using additional XML file in each directory which holds the full name the user typed when he/she created that directory. This way the user doesnt see some strange names (also affected by point #1 above) but exactly what he/she typed.
We would need additional function for the plugin developers that they could use to get the original name as well as some functions to change that name. This could also be used for files.
I understand it would add some disk I/O for directories with many files but i think when used corectly it wont be so bad. Also for the files it could be enabled only if the plugin developer call it with additional parameter and not for each file by default.
Those two things are the first i need to change everytime i install GS
(sorry guys for the wall)