Welcome, Guest
Username: Password: Remember me

TOPIC: limesurvey 2 custom translation tool

limesurvey 2 custom translation tool 1 year 5 months ago #97048

  • kangur91
  • kangur91's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 7
  • Karma: 0
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: 1 year 5 months ago by kangur91. Reason: typo
The administrator has disabled public write access.

limesurvey 2 custom translation tool 1 year 5 months ago #97050

  • mdekker
  • mdekker's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 341
  • Thank you received: 68
  • Karma: 38
Why not use the built in quick translate tool?
---
Menno Dekker
The administrator has disabled public write access.

limesurvey 2 custom translation tool 1 year 5 months ago #97059

  • kangur91
  • kangur91's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 7
  • Karma: 0
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.
The administrator has disabled public write access.

limesurvey 2 custom translation tool 1 year 5 months ago #97074

  • DenisChenu
  • DenisChenu's Avatar
  • OFFLINE
  • Moderator Lime
  • Posts: 6551
  • Thank you received: 868
  • Karma: 257
Hello,

Yii::app()->clientScript->registerCssFile($uri);
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.108 seconds
Donation Image