Patches item #1598273, was opened at 2006-11-17 11:18
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=308956&aid=1598273&group_id=8956
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Franky Van Liedekerke (liedekef)
Assigned to: Nobody/Anonymous (nobody)
Summary: Multiple fixes
Initial Comment:
in admin/include/function/survey_render.inc:
Old:
<font size="-1" class="surveyPage"><?php echo(_('Page')); ?> <?php echo($section+1); ?> <?php echo(_('of')); ?> <?php echo($num_sections); ?></font><br>
New:
<font size="-1" class="surveyPage"><?php printf(_('Page %d of %d'), $section+1, $num_sections); ?></font><br />
in public/handler.php, I fixed the button languages:
Old:
<input type="submit" name="prev" value="Previous Page">
...
<input type="submit" name="submit" value="Submit Survey">
...
<input type="submit" name="next" value="Next Page">
New:
<input type="submit" name="prev" value="<?php echo _("Previous Page"); ?>">
...
<input type="submit" name="submit" value="<?php echo _("Submit Survey"); ?>">
...
<input type="submit" name="next" value="<?php echo _("Next Page"); ?>">
I also added the possibility to choose the language in handler.php, either by GET option or by setting a $lang parameter. To do this, I added below the line
> require_once(ESP_BASE . '/admin/phpESP.ini.php');
the next lines:
< if (isset($_REQUEST['lang'])) {
< esp_setlocale_ex($_REQUEST['lang']);
< }
< if (isset($lang)) {
< esp_setlocale_ex($lang);
< }
So now handler.php?lang=nl_NL works, as well as setting $lang="nl_NL" and including handler.php as always.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=308956&aid=1598273&group_id=8956
|