View Issue Details

This bug affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
07945Bug reportsTranslationpublic2013-09-29 15:27
Reportersilverlime Assigned Toc_schmitz  
PrioritynormalSeverityminor 
Status closedResolutionfixed 
Product Version2.00+ 
Fixed in Version2.00+ 
Summary07945: Error message "token mismatch" in index.php not being translated
Description

The following error messages within application/controllers/survey/index.php are not being translated although a translation in de.mo is available.

if ( $this->_isClientTokenDifferentFromSessionToken($clienttoken,$surveyid) )
{
$asMessage = array(
$clang->gT('Token mismatch'),
$clang->gT('The token you provided doesn\'t match the one in your session.'),
$clang->gT('Please wait to begin with a new session.')
);
$this->_createNewUserSessionAndRedirect($surveyid, $redata, LINE, $asMessage);
}

I think it true also for:

{
$asMessage = array(
$clang->gT('Previous session is set to be finished.'),
$clang->gT('Your browser reports that it was used previously to answer this survey. We are resetting the session so that you can start from the beginning.'),
$clang->gT('Please wait to begin with a new session.')
);
$this->_createNewUserSessionAndRedirect($surveyid, $redata, LINE, $asMessage);
}

My guess is, that the language to use is defined after the above error-message-code (sorry i'm not a programmer ;-) )

Steps To Reproduce

provoke a token mismtach in an survey with base-language "german"

TagsNo tags attached.
Bug heat4
Complete LimeSurvey version number (& build)130611
I will donate to the project if issue is resolvedNo
BrowserSafari
Database type & versionMySQL 5.5
Server OS (if known)unknown
Webserver software & version (if known)unknown
PHP Version5.3.8

Users monitoring this issue

There are no users monitoring this issue.

Related Changesets

LimeSurvey: master a2bfd7d8

2013-09-24 13:00:40

c_schmitz

Details Diff
Fixed issue 07945: Error message "token mismatch" not being translated Affected Issues
07945
mod - application/controllers/survey/index.php Diff File

LimeSurvey: 2.05 0691a01e

2013-09-24 13:05:06

c_schmitz

Details Diff
Fixed issue 07945: Error message "token mismatch" not being translated Affected Issues
07945
mod - application/controllers/survey/index.php Diff File

Issue History

Date Modified Username Field Change
2013-06-22 11:34 silverlime New Issue
2013-06-22 11:48 DenisChenu Note Added: 25617
2013-06-22 11:49 DenisChenu Note Added: 25618
2013-09-24 12:23 c_schmitz Assigned To => c_schmitz
2013-09-24 12:23 c_schmitz Status new => assigned
2013-09-24 15:00 c_schmitz Changeset attached => LimeSurvey master a2bfd7d8
2013-09-24 15:00 c_schmitz Note Added: 26355
2013-09-24 15:00 c_schmitz Resolution open => fixed
2013-09-24 15:04 c_schmitz Changeset attached => LimeSurvey 2.05 0691a01e
2013-09-24 15:04 c_schmitz Note Added: 26356
2013-09-24 15:04 c_schmitz Status assigned => resolved
2013-09-24 15:04 c_schmitz Fixed in Version => 2.00+
2013-09-29 15:27 c_schmitz Note Added: 26433
2013-09-29 15:27 c_schmitz Status resolved => closed