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 <p...@vtr.net>:
> 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@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>

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

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

Reply via email to