This topic is locked

Invisible column header after inserting {mlang_message tag}

7/18/2007 3:57:39 AM
PHPRunner General questions
W
wrjost author

In the Visual Editor I have begun replacing the German column headers with multi-language messages (like {mlang_message tag="Referenzzeit"} ) and adding the corresponding entries in "languages.php" (like $mlang_messages["English"]["Referenzzeit"]="Reference time"; and

$mlang_messages["German"]["Referenzzeit"]="Referenzzeit"<img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=question&id=5794&image=1&table=forumtopics' class='bbc_emoticon' alt=';)' />.
The problem:

Before my changes the Design Mode of the Visual Editor looks perfect, like this


Then I switch to HTML Mode, delete the column header "Referenzzeit" and add the mlang_message tag instead:
[codebox] <TD>

<TABLE>

<TBODY>

<TR>

<TD class=blackshade><A class=blackshade

href="dungturnier_list.php?orderby={$order_dir_Teamname}Teamname">Teamname</A>

</TD>

<TD>{$order_image_Teamname}</TD></TR></TBODY></TABLE></TD>

<TD>

<TABLE>

<TBODY>

<TR>

<TD class=blackshade><A class=blackshade

href="dungturnier_list.php?orderby={$order_dir_Referenzzeit}Referenzzeit">{mlang_message tag="Referenzzeit"}</A></TD>

<TD>{$order_image_Referenzzeit}</TD></TR></TBODY></TABLE></TD>

<TD>[/codebox]
after that change is applied the Design Mode does not display the column header any more:


but the output works fine on the actual web site. I fear that by replacing ALL column headers it will render the Design Mode useless...
Any suggestions as to what is wrong with my code? Or is it a bug?
Greetings,

Wilfried

J
Jane 7/18/2007

Wilfried,
it's not bug.

Empty headers appear because there are no corresponing translation of your column names in the source files.

You can add new multi-language messages to the C:/Program Files/PHPRunner4.0/lang/English.lng and C:/Program Files/PHPRunner4.0/lang/German.lng files. In this case all your changes will be saved after rebuilding.

W
wrjost author 7/18/2007

Thank you, Jane,

your suggestion worked.
After inserting
<message tag="Referenzzeit">Referenzzeit</message>
in both language files, the column headers reappeared in the Visual Editor.
Greetings,

Wilfried