> perhaps we can think of a more generic structure so that we can both
> isolate the code as needed as well as provide meaning full reports to user.
>  Any thoughts would be appreciated.

If I have perfectly understand, we have a problem when we want to show words 
which are function of one variable or more. So, I think a solution is create 
a function the result of which is a string. And that function is adapted for 
each language. 
So, in function.php, the function and procedure aren't function of the 
language, they just call the �nationalized� functions which are in a 
different file.
I know that solution implies you leave php code in the lang/ directory, but, 
for the moment, I don't see another solution which can adjust to every 
language.

If we use that system, we must answer to an another question : how can we 
combine two �nationalized� functions ? I think it's only possible if the two 
strings are sentences. So, all the result of �nationalized� functions must be 
a sentence or several sentences. Even the period is included in the string, 
because :
- in english : enjoy Freenet!
- in french : amusez-vous avec Freenet !
But :
- in english : enjoy Freenet.
- in french : amusez-vous avec Freenet.

Moreover, if a new �nationalized� function is created, as long as that 
function has not his french or deutch version, we simply use the english 
version : one english sentence in a page is not a catastrophe, and is better 
than no sentence at all.
And, for sentences like "There is a more recent version of this document 
available here", why not give the priority to the more recent english version 
instead of the old french version, if you modify that �nationalized� function?

That's the only solution I see.

Regards, JSL.


_______________________________________________
Web mailing list
[EMAIL PROTECTED]
http://www.uprizer.com/mailman/listinfo/web

Reply via email to