PEAK XOOPS - language bug in englishin japanese

language bug

  • You cannot open a new topic into this forum
  • Guests cannot post into this forum

question language bug

msg# 1
Previous post - Next post | Parent - Children.1 .2 .3 | Posted on 2004/7/8 10:12
phppp  企霹始   Posts: 7
GIJOE,

I would thank you for this great module.
a small bug was found by everest


myalbum/submit.php
line 222
=>
if( $caller == 'imagemanager' ) {
	echo "<html><head>
	<link rel='stylesheet' type='text/css' media='all' href='".XOOPS_URL."/xoops.css' />
	<link rel='stylesheet' type='text/css' media='all' href='".XOOPS_URL."/modules/system/style.css' />
	<meta http-equiv='content-type' content='text/html; charset=$xoops_charset' />
	<meta http-equiv='content-language' content='$xoops_langcode' />
	</head><body>" ;
} else {
Votes:8 Average:8.75

question Re: language bug

msg# 1.1
Previous post - Next post | Parent - No child | Posted on 2004/7/8 20:21
phppp  企霹始   Posts: 7
sorry

this is not a perfect bug-fix.
language problem still exists.

I am tring to figure out whether it is cause by xoops or by myalbum.
will report it once get it.
Votes:0 Average:0.00

question Re: language bug

msg# 1.2
Previous post - Next post | Parent - Children.1 | Posted on 2004/7/8 22:07
phppp  企霹始   Posts: 7
mb functions in myalbum.textsanitizer.php does not work well sometimes.

so, I commented as following to avoid some language problem

myalbum/class/myalbum.textsanitizer.php
line 156
=>
		/*
		///////////////////////////////////////
		// This does not work for Chinese
		if( function_exists( 'mb_convert_encoding' ) && mb_internal_encoding() !=  mb_http_output() ) {
			$text = mb_convert_encoding( $text , mb_internal_encoding() , "auto" ) ;
		}
		*/
Votes:16 Average:4.38

question Re: language bug

msg# 1.2.1
Previous post - Next post | Parent - Children.1 | Posted on 2004/7/17 19:10
GIJOE  黎扦烦菱   Posts: 4110
hi phppp.

Thank you for reporting, and I'm sorry that my answer is too late.

Quote:
mb functions in myalbum.textsanitizer.php does not work well sometimes.
so, I commented as following to avoid some language problem
hmmm.
It sounds a very difficult problem.

Almost programmers can't understand all of multi-byte environment (C,K,V,J).
Thus, such features should be made by each localizer.

It should be separated into language/(your language)/ , I think.

In next version of myAlbum-P, I'll separete such functions into language/(your language)/local_functions.php
Votes:0 Average:0.00

question Re: language bug

msg# 1.2.1.1
Previous post - Next post | Parent - Children.1 | Posted on 2004/7/30 15:58
nnoel  企霹始   Posts: 6
hi,

I'm testing your great module and I appreciate

When I ask a preview in the 'add photo' process (submit.php) as webmaster the result page left blank """..../modules/myalbum/submit.php?caller="""
btw I can add the photo to the album

when I do the same operation as anonymous user the preview works fine

I inserted the patch from phppp
my language is french
I checked permissions on both module and admin levels

any idea?
help welcome
Votes:0 Average:0.00

question Re: language bug

msg# 1.2.1.1.1
Previous post - Next post | Parent - Children.1 | Posted on 2004/7/30 16:25
nnoel  企霹始   Posts: 6

it's working if I apply also the 'myalbum/class/myalbum.textsanitizer.php' patch
so far I applied only the first 'myalbum/submit.php'
patch
both patches are needed!
Votes:0 Average:0.00

question Re: language bug

msg# 1.2.1.1.1.1
Previous post - Next post | Parent - No child | Posted on 2004/7/31 14:48
GIJOE  黎扦烦菱   Posts: 4110
hi nnoel.

Thank you for reporting.
I recognize the code in myalbum.textsanitizer has some problems without multi-byte environment.

I've separeted this code into language files.
It will be release as myAlbum-P 2.83.
Votes:0 Average:0.00

question Re: language bug

msg# 1.3
Previous post - Next post | Parent - No child | Posted on 2004/7/31 14:55
GIJOE  黎扦烦菱   Posts: 4110
I've just checked this article.

Certainly, the meta headers are necessary.
It's clearly my mistake.

Thank you for advise!
Votes:0 Average:0.00

  Advanced search


Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!