php-i18n Digest 21 Jan 2003 18:06:40 -0000 Issue 144
Topics (messages 416 through 417):
Re: algorithm possibility for php /mysql
416 by: Moriyoshi Koizumi
Re: Problem with gettext
417 by: Eneko Lacunza
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[EMAIL PROTECTED]
----------------------------------------------------------------------
--- Begin Message ---
This topis has at all nothing to do with php internationalization
that this list is for. Please forward this to [EMAIL PROTECTED]
Moriyoshi
On Thu, Jan 16, 2003 at 07:46:20AM -0500, bda wrote:
> I have an issue that I am trying to solve. I can script this problem using
> fixed length arrays, but I am seeking a more simplified and elegant
> solution. At the heart of the problem is dealing with variable length
> arrays and comparison.
>
> In essence this is the problem. If a table row record
> (master_times) contains all possible dates and times for an event, a
> seperate table row record (response_times) will containt all dates and times
> that an individual is availalbe for that event, based on the date and times
> allowed as specified in master_times. This data is exploded to populate an
> array with User as key, and all values of that key being date/time.
>
> Now, how can I determine, in a case where x users have replied with y times
> where one or more times(z) exisists in all occurances of user(x)? Or, if
> none exists, the closest match? See grid below. This doing it by a fixed
> length array where summing is used, but I hope that there is a better way.
>
> | Monday 0800 | Monday 0900 |Thursday 1000
> John | True | False | False
> Jane | False | True | True
> Mike | True | False | False
>
> In this case, Monday at 0800 would be best, even though it is not all true.
> So ouput should be John and Mike on Monday at 0800. Again, consider that
> this must scale as times could be as large as 200 records and Users could
> push 100. So I beleieve that just running fixed lenth arrays is kind of
> inefficient. Ideas
> anyone?
>
>
>
>
>
> --
> PHP Internationalization Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--- End Message ---
--- Begin Message ---
Hi,
On Sat, 11 Jan 2003 16:30:18 +0100, Jan Schneider wrote:
> Marcos Lois Bermúdez wrote:
>> I have RH7.3 with php and gettext support, and i get this strange
>> beaviour: if the mo files are under document root of web server seems
>> to work well, but if put the mo files in a directory outside the doc
>> root of the web server it work some times, i get the messages
>> translated, but when i reload the page some times i get no translated
>> the page in some times.
>>
>> It's normal?
>> it's a bug?
> Yes. Yes.
> Using gettext in PHP I have seen strange behaviour so often I can't
> count. This particular behaviour can sometimes be fixed by restarting
> the webserver. No idea why.
This was very helpfull, as I was suffering the same problem. Restarting
the apache server made it work well.
Interestingly enough, some PHP pages worked well at all, but some others
failed; using one locale they failed 3 times out of 4; with another locale,
it failed 1 time out of 4. The failing ones where in one directory
(parent) and the working one in another (subdirectory) (couldn't test with
more,
sorry).
My test were done in a Red Hat 7.3 with updated stock apache/php/gettext
(4.1.2).
Does anyone know if there's another way to "fix" this? I don't want to
have the production server broken and I don't have administrative access
to it (just ftp).
Thanks a lot.
Eneko Lacunza
Enlar/Euskalamiga
--- End Message ---