[Gambas-user] Translations - Webpage
gian
bagoneo at libero.it
Tue Oct 18 09:47:26 CEST 2022
Il 18/10/22 07:46, Benoit Minisini ha scritto:
> Le 18/10/2022 à 00:07, gian via User a écrit :
>> Hi Benoit,
>>
>> can you please tell me why this code in console (*) writes the
>> translated title, but if you use the internal browser the title
>> remains in English?
>> The code was copied from here:
>> http://gambaswiki.org/wiki/doc/webpage
>>
>> See attached project
>>
>> Thank you and regards
>>
>> Gianluigi
>>
>
> I don't know, maybe because the browser widget does not send the
> language to the server correctly.
>
Hi Benoit,
I thank you very much for your answer.
Claus Dietrich experimented with this code:
[code]
<%
Dim sTitle As String
System.Language = Request.Language
sTitle = ("Gambas WebPage Example")
%>
<<Page title=<%=sTitle%>>>
<h2><%Print ("Gambas WebPage are easy!")%></h2>
<h2><%Print ("Time : ")%><%=Format(Now, "hh:nn:ss")%></h2>
<</Page>>
[/code]
Unfortunately, it leaves a printed ">" on the browser window as the
first line.
Can you do something, or recommend Hans for the book chapter?
Regards
Gianluigi
More information about the User
mailing list