Announcement

Collapse
No announcement yet.

Title of forms, grids using HTML format

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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_ASSOC IATION\_lib\lang\it.lang.php on line 1481
    Last edited by giovannino; 11-13-2014, 02:00 PM.

  • #2
    Originally posted by giovannino View Post
    {lang_tbl_currencies} <font face='Arial Narrow, sans-serif' align='left' color='Grey' size='1' <b>({lang_othr_frmu_titl})</b> </font>
    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>";

    Comment


    • #3
      Ok Thanks, I will try next days !!

      Comment


      • #4
        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.

        Comment


        • #5
          Originally posted by giovannino View Post
          lang_p1 "<font face='Arial Narrow, sans-serif' align='left' color='Grey' size='1' <b>("

          lang_p2 ")</b> </font>"
          Looks like lang_p1 / p2 are local variables?

          So, needs to be:

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

          Code:
          $lang_p2 = ")</b> </font>";
          I don't think the length is the issue - so....

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

          Comment


          • #6
            Thanks Adz111,
            now I've understood..... ;-)
            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..

            Comment

            Working...
            X