View Issue Details

This bug affects 1 person(s).
 6
IDProjectCategoryView StatusLast Update
06283Bug reportsTranslationpublic2012-07-19 23:34
Reporterfenyvitez Assigned Totpartner  
PriorityhighSeveritypartial_block 
Status closedResolutionfixed 
Product Version2.00RC4 
Fixed in Version2.00RC5 
Summary06283: Quick translation is not working
Description

I have a test survey with one question group, English base language and one extra language. (I tried Hungarian first than removed Hungarian and tried French). In both cases when choosing Quick Translation from tools (in admin mode) in the upper left corner two broken image links appear and no translation options or form elements are visible.
The first broken image still has a link that can take the user back to the main admin page.

Steps To Reproduce

Create a survey
Pick English as base language
Add one question group, two questions in the base language.
(a token table was initialized, but I am not sure this is part of the problem)
Add a second language (French)
Navigate from the Tools menu to Quick-Translation

TagsNo tags attached.
Attached Files
ps_translate_error.jpg (489,052 bytes)
Bug heat6
Complete LimeSurvey version number (& build)120622
I will donate to the project if issue is resolvedNo
BrowserChrome
Database type & versionMySQL 5.5.24
Server OS (if known)Windows 8 with wampserver
Webserver software & version (if known)Apache 2.2.22
PHP Version5.3.13

Users monitoring this issue

There are no users monitoring this issue.

Activities

fenyvitez

fenyvitez

2012-06-26 22:53

reporter   ~19575

I've checked it, the error is produced in IE 10, too.

tpartner

tpartner

2012-06-27 23:20

partner   ~19583

Fix committed to Yii branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=8869

tpartner

tpartner

2012-06-27 23:23

partner   ~19584

fenyvitez, I have corrected the paths to the images but can't reproduce the problem of missing form elements.

Can you please retest when the next RC is released (or grab the latest from GitHub).

fenyvitez

fenyvitez

2012-06-28 02:05

reporter   ~19585

OK, I took the new translate.php. It fixed the broken image links but my page still does not load. I will look around to see what specificity of my installation causes this bug or look for further info that is needed to replicate the bug. Thanks anyway.

fenyvitez

fenyvitez

2012-07-01 01:43

reporter   ~19593

Hi tpartner,

I continued my search and when setting debugging level to two, I have received some clues what goes wrong. I made screenshot of the error messages, I am not sure I can upload it here but the first one basically says:
"Strict standards: Non-static method CHttpRequest::getParam() should not be called statically, assuming $this from incompatible context in C:\wamp\www\survey\application\controllers\admin\translate.php on line 28"

As a result in line 28 of the translate file $tolang is not set. And later on in line 49 it is not set again because I have only one additional language, and the condition on $langs requires more than one. (I guess more than 0 would be sufficient).

I hope this helps.

tpartner

tpartner

2012-07-03 22:48

partner   ~19602

Fix committed to Yii branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=8887

tpartner

tpartner

2012-07-03 22:52

partner   ~19603

fenyvitez, thanks for the follow-up.

Yes, the condition should be greater than 0 because it refers to the number of additional languages, not total languages.

c_schmitz

c_schmitz

2012-07-19 23:34

administrator   ~19834

2.00RC6 released.

Related Changesets

LimeSurvey: Yii 70ee2772

2012-06-27 14:19:48

tpartner

Details Diff
Fixed issue 06283: Quick translation is not working
Dev Corrected up path to admin theme images
Affected Issues
06283
mod - application/controllers/admin/translate.php Diff File

LimeSurvey: Yii dab518a4

2012-07-03 13:47:37

tpartner

Details Diff
Fixed issue 06283: Quick translation is not working
Dev Corrected minimum "additionalLanguages" condition
Affected Issues
06283
mod - application/controllers/admin/translate.php Diff File

Issue History

Date Modified Username Field Change
2012-06-26 22:44 fenyvitez New Issue
2012-06-26 22:53 fenyvitez Note Added: 19575
2012-06-27 23:20 tpartner Changeset attached => LimeSurvey Yii 70ee2772
2012-06-27 23:20 tpartner Note Added: 19583
2012-06-27 23:20 tpartner Assigned To => tpartner
2012-06-27 23:20 tpartner Resolution open => fixed
2012-06-27 23:23 tpartner Note Added: 19584
2012-06-27 23:23 tpartner Status new => feedback
2012-06-28 02:05 fenyvitez Note Added: 19585
2012-06-28 02:05 fenyvitez Status feedback => assigned
2012-07-01 01:43 fenyvitez Note Added: 19593
2012-07-01 01:43 fenyvitez Issue Monitored: fenyvitez
2012-07-01 01:43 fenyvitez Issue End Monitor: fenyvitez
2012-07-01 01:44 fenyvitez File Added: ps_translate_error.jpg
2012-07-03 22:48 tpartner Changeset attached => LimeSurvey Yii dab518a4
2012-07-03 22:48 tpartner Note Added: 19602
2012-07-03 22:52 tpartner Note Added: 19603
2012-07-03 22:52 tpartner Status assigned => resolved
2012-07-05 22:32 c_schmitz Fixed in Version => 2.00RC5
2012-07-19 23:34 c_schmitz Note Added: 19834
2012-07-19 23:34 c_schmitz Status resolved => closed