limesurvey 2 custom translation tool

More
3 years 10 months ago - 3 years 10 months ago #97048 by kangur91
kangur91 created the topic: limesurvey 2 custom translation tool
Hello Everyone!

I need your help regarding limesurvey 2. I'm now working with a custom translation tool.
I understand that limesurvey2 is using the Yii framework. I already found the code for calling .js files in translate.php.
//sample code for calling js files in translate.php
$this->getController()->_js_admin_includes(Yii::app()->getConfig("adminscripts") . 'translation.js');

However, I'm having a problem finding the code for calling .css files.
Im trying to find the function call for this function
//function in Admin Controller.php
public function _css_admin_includes($includes = array(), $reset = false){
return $this->_admin_includes('css', $includes, $reset);
}
Any idea for this one?

Thanks.
Last Edit: 3 years 10 months ago by kangur91. Reason: typo

Please Log in to join the conversation.

More
3 years 10 months ago #97050 by mdekker
mdekker replied the topic: limesurvey 2 custom translation tool
Why not use the built in quick translate tool?

---
Menno Dekker

Please Log in to join the conversation.

More
3 years 10 months ago #97059 by kangur91
kangur91 replied the topic: limesurvey 2 custom translation tool
Hi mdekker,

First of all, thank you for the response. Well, my objective for making a custom translation tool is that I just want to display questions that are unique meaning no duplicates. But in the process of saving the translation, its also my objective to update all of the questions that are the same. In that way, I will not have a hard time updating each of them and it will just only take one time update execution.

I already did this customization in lime 1.92. However, I find it difficult to do it in lime 2 because it is now designed using the Yii framework.

I'm also planning to donate this customization to the community so that it will be integrated to lime 2.

Please Help. Thank you so much.

Please Log in to join the conversation.

More
3 years 10 months ago #97074 by DenisChenu
DenisChenu replied the topic: limesurvey 2 custom translation tool
Hello,

Yii::app()->clientScript->registerCssFile($uri);

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.