[Gambas-user] Translations - Webpage
gian
bagoneo at libero.it
Sat Oct 15 23:18:09 CEST 2022
Il 15/10/22 18:21, Hans Lehmann ha scritto:
> Hello.
>
> I refer to the given example in the documentation:
> https://gambaswiki.org/wiki/doc/webpage.
> The translations in lines 2 and 3, for example to German, are displayed
> correctly in the generated web page.
>
> (1) <<Page title="Gambas WebPage Example">>
> (2) <h2><%Print ("Gambas WebPage are easy!")%></h2>
> (3) <h2><%Print ("Time is ")%><%=Format(Now, "hh:nn:ss")%></h2>
> (4) <</Page>>
>
> Unfortunately, I cannot find an approach to also translate the text of
> the `title` argument in line 1 from "Gambas WebPage Example" to "Gambas
> Webpage Beispiel".
> Can someone help me?
>
> With kind regards
>
> Hans
>
>
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
Hi Hans,
[code]
<% System.Language = Request.Language %>
<html>
<title><%Print ("Web Page Written with Gambas3")%></title>
<body>
<h1><%Print ("Web Page Written with Gambas3")%></h1>
<h2><%=Format(Now, "dddd, dd mmmm yyyy")%></h2>
<h3><%=Format(12345.67, "$,#.00")%></h3>
</body>
</html>
[/code]
See attached image on Italian browser
Regards
Gianluigi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: webbrowser.jpg
Type: image/jpeg
Size: 21474 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20221015/62a3a015/attachment-0001.jpg>
More information about the User
mailing list