Title of forms, grids using HTML format

Hi all,

on previous version it was possible to use long string within titles to format in some way the text
Just to give a sample …
{lang_tbl_currencies} <font face=‘Arial Narrow, sans-serif’ align=‘left’ color=‘Grey’ size=‘1’ <b>({lang_othr_frmu_titl})</b> </font>

now the lenght of singular title has been reduced and so it’s not possible to use that kind of trick directly

I’ve tried to put all string into the Application language using a short field index to recall all the string above
i.e.

lang_sec_users_title --> {lang_tbl_currencies} <font face=‘Arial Narrow, sans-serif’ align=‘left’ color=‘Grey’ size=‘1’ <b>({lang_othr_frmu_titl})</b> </font>

within title then I inserted {lang_sec_users_title}

An error rises probably becouse it’s not possible to call other translated labels within the text
Parse error: syntax error, unexpected ‘Arial’ (T_STRING), expecting ‘]’ in C:\Program Files (x86)\Scriptcase\v8\wwwroot\scriptcase\app\Z_ASSOCIATION_lib\lang\it.lang.php on line 1481

[QUOTE=giovannino;29390]
{lang_tbl_currencies} <font face=‘Arial Narrow, sans-serif’ align=‘left’ color=‘Grey’ size=‘1’ <b>({lang_othr_frmu_titl})</b> </font>[/QUOTE]

Not sure your syntax is correct - missing an “=” and quotes, e.g:

{lang_tbl_currencies} = "<font face=‘Arial Narrow, sans-serif’ align=‘left’ color=‘Grey’ size=‘1’ <b>(" . {lang_othr_frmu_titl} . ")</b> </font>";

Ok Thanks, I will try next days !!

I’ve just tryed under Application Language to create a new entry like this

lang_p1 “<font face=‘Arial Narrow, sans-serif’ align=‘left’ color=‘Grey’ size=‘1’ <b>(”

lang_p2 “)</b> </font>”

When you click on Update Messages button all… magically disappears.

I’ve tryed also to add a “=” but still everything vanish.

What I thought to use on label would be something like that : {lang_tbl_currencies} . {lang_p1} . {lang_othr_frmu_titl} . {lang_p2} but I think it’s still too long.

[QUOTE=giovannino;29441]
lang_p1 “<font face=‘Arial Narrow, sans-serif’ align=‘left’ color=‘Grey’ size=‘1’ <b>(”

lang_p2 “)</b> </font>”[/QUOTE]

Looks like lang_p1 / p2 are local variables?

So, needs to be:

$lang_p1 = "<font face='Arial Narrow, sans-serif' align='left' color='Grey' size='1' <b>(";

… and …

$lang_p2 = ")</b> </font>";

I don’t think the length is the issue - so…

{lang_tbl_currencies} = $lang_p1 . {lang_othr_frmu_titl} . $lang_p2;

Thanks Adz111,
now I’ve understood… :wink:
I’ve tried to use directly Application Language defining the two pieces of code there but it’s probably (sure) a stupid thing.
Ok …
If I use them generally in each label I can define them as global on App_Login in order to use them everywhere…