From: <sy...@us...> - 2004-03-04 18:55:41
|
Update of /cvsroot/tikiwiki/tiki/templates/modules In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12906/templates/modules Modified Files: mod-calendar.tpl Log Message: get_strings collects only tr in a tpl - tra is not recognized: A tpl must not have php inside Index: mod-calendar.tpl =================================================================== RCS file: /cvsroot/tikiwiki/tiki/templates/modules/mod-calendar.tpl,v retrieving revision 1.33 retrieving revision 1.34 diff -u -d -r1.33 -r1.34 --- mod-calendar.tpl 23 Feb 2004 02:28:49 -0000 1.33 +++ mod-calendar.tpl 4 Mar 2004 18:42:08 -0000 1.34 @@ -32,9 +32,10 @@ $c = new Calendar("en"); $v = mb_substr(tra($c->nameOfMonth($mon)),0,3); $dayofweek = tra($c->dayOfWeekStr($day,$mon,$year)); -if (false) { // to have the months collected by get_strings.php - tra("January"); tra("February"); tra("March"); tra("April"); tra("May");tra("June"); tra("July"); tra("August"); tra("September"); tra("October"); tra("November"); tra("December" ); -} +{/php} +{*get_strings {tr}January{/tr} {tr}February{/tr} {tr}March{/tr} {tr}April{/tr} {tr}May");tra("June{/tr} {tr}July{/tr} {tr}August{/tr} {tr}September{/tr} {tr}October{/tr} {tr}November{/tr} {tr}December{/tr} +{tr}Monday{/tr} {tr}Tuesday{/tr} {tr}Wednesday{/tr} {tr}Thursday{/tr} {tr}Friday{/tr} {tr}Saturday{/tr} {tr}Sunday{/tr}- only tr tags are collected by get_strings in tpl*} +{php} $parsed = parse_url($_SERVER["REQUEST_URI"]); if (!isset($parsed["query"])) { @@ -134,6 +135,7 @@ </tr> <tr> <td align="center"> +{*get_strings {tr}Today{/tr} - only tr tags are collected by get_strings in tpl*} {php} print( "<a class=\"today\" href=\"".$todaylink."\">".tra("Today")."</a>" ); {/php} |