Gossamer Forum
Home : Products : Links 2.0 : Installation -- Unix :

Can I Add non-english categories(another language)

Quote Reply
Can I Add non-english categories(another language)
   Can i add another language Categories?When i add it,it just display "Name(invalid)"
Anyone can help me?
Quote Reply
Re: Can I Add non-english categories(another language) In reply to
Man I can't tell you how much I hate that(Name: Invalid) well heres how I did it, you may or may not want to do it this way(that mod for special caraters, I couldnt never get it to work so I just did it like this.
In the category.def find and change this

%db_valid_types = ( 'Name' => '^[\w][\w\d/_]+$' );

to this
%db_valid_types = ( );
Now in the nph-build.cgi under sub build_check_dir {
delete this
if (!($input =~ m,^[\w\d/_\Q$build_allow_char\E]+$,)) {
&cgierr ("invalid directory name: $input. Reason: contains illegal characters.");
}
You can now add any cariter you want.(p.s. it might not work on certain servers but you can try
Thanks
Joey

[This message has been edited by Joey Bost (edited December 21, 1998).]