Gossamer Forum
Home : Products : Links 2.0 : Discussions :

&build_select_field at non-english mod

Quote Reply
&build_select_field at non-english mod
Dear Sir :
and hello everyone
i am a chinese character user..
after i use non-english mod..i found a problem at categories name select-field of add.html and modify.html
is still apear english character...i think the fault is near site_templates_html.pl
sub site_html_add_form {
# --------------------------------------------------------
# This routine determines how the add form page will look like.
#
&html_print_headers;

my $category = shift;
# ***************************************** nonenglish modification - begin ****************
# $category ?
# ($category = qq~$category <input type=hidden name="Category" value="$category">~) :
# ($category = &build_select_field ("Category", "$in{'Category'}"));
my ($kategorie) = &kategorie_title_mb ($category);
$category ?
($category = qq~$kategorie <input type=hidden name="Category" value="$category">~) :
($category = &build_select_field ("Category", "$in{'Category'}"));
# ***************************************** nonenglish modification - end ******************
##########################################################
how to modify to got
I WANT TO GOT THIS" from "NOW" created by "&build_select_field"
as follow:
============= NOW ============
<SELECT NAME="Category">
<OPTION>---<OPTION>
AAAA
<OPTION>AAAA/BBBB
</SELECT>
=========== I WANT TO GOT THIS===========
SELECT NAME="Category">
<OPTION>---<OPTION SELECTE VALUE=AAAA>NON-ENGLISH CHARACTER
<OPTION SELECTE VALUE=AAAA/BBBB>NON-ENGLISH CHARACTER
</SELECT>
======================================
i hope my english can be understand??
thank you vry much
soony


Quote Reply
Re: &build_select_field at non-english mod In reply to
I don't use this MOD but wonder if what you describe is a problem. Reading Matthias Berndt's documentation it looks as if records with non-English characters are entered twice. Once with English characters only and then the non-English character version in a new record delimited by "\".

I don't think that add.cgi and modify.cgi will show the non-English characters because the categories shown are the UNIX path, which cannot have non-English characters.

Of course, I may be wrong; you may need to check this with Matthias Berndt. I guess that your links are displayed correctly.

Martin Webster
--
Cebidae's UK Internet Resource
http://www.cebidae.co.uk/