Archive of UserLand's first discussion group, started October 5, 1998.

Re: Do not hard code any "text" into the scripts

Author:Tommy Sundström
Posted:4/17/1999; 7:51:42 AM
Topic:Wish list for Frontier 6.x
Msg #:5091 (In response to 5017)
Prev/Next:5090 / 5092

On http://www.xkom.se/frontier/techdemo/default.htm you will find a translate verb so that you can write like this

add ("

" + ttools.translate("The label text:") + "
")

This has some advantages over the #labels method:

o The label is natural language and can have several words, making it easier to read.

o If there is no translation in the dictionary, the original text is kept - and the untranslated phrase is added to a to do list. This makes it quicker to make the first version of a multi-lingual site. This also makes the translate verb useful if you're working only in one language, but want the phrasing to vary in some places in different instanses of the site.




This page was archived on 6/13/2001; 4:49:24 PM.

© Copyright 1998-2001 UserLand Software, Inc.