[Gambas-user] Translate text from a textarea control

craf prog at ...2177...
Thu May 13 17:11:17 CEST 2010


Thank you Fabian.

it worked perfect!

Regards.

--
Cristian Abarzúa


>textarea1.text = subst("Moon\n &1 &2","The Moon is the only natural
>satellite of Earth.\n","is the nearest body and the best known.")

>you need to add comma each side of the text

>textarea1.text = subst(("Moon\n &1 &2"),("The Moon is the only natural
>satellite of Earth.\n"),("is the nearest body and the best known."))

>Fabien




2010/5/13 craf <prog at ...2177...>:
> Hi.
>
> I have the following strings of text within a textarea control and would
> like to translate.
> As stated in the Gambas wiki, if you translate strings concatenated to
> use SUBST.
>
> 'code
>
> textarea1.text = subst("Moon\n &1 &2","The Moon is the only natural
> satellite of Earth.\n","is the nearest body and the best known.")
>
> This code does not fail, but not shown in the translator, to be
> translated.
>
> Regards.
>
> --
> Cristian Abarzúa
>
>
>
>
> ------------------------------------------------------------------------------
>
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>

------------------------------------------------------------------------------

_______________________________________________
Gambas-user mailing list
Gambas-user at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user







More information about the User mailing list