x

Main chapters

  1. LimeSurvey Cloud vs LimeSurvey CE
  2. LimeSurvey Cloud - Quick start guide
  3. LimeSurvey CE - Installation
  4. How to design a good survey (Guide)
  5. Getting started
  6. LimeSurvey configuration
  7. Introduction - Surveys
  8. View survey settings
  9. View survey menu
  10. View survey structure
  11. Introduction - Questions
  12. Introduction - Question Groups
  13. Introduction - Surveys - Management
  14. Survey toolbar options
  15. Multilingual survey
  16. Quick start guide - ExpressionScript
  17. Advanced features
  18. General FAQ
  19. Troubleshooting
  20. Workarounds
  21. License
  22. Version change log
  23. Plugins - Advanced
 Actions

LimeSurvey 1.x navigating the source code: Difference between revisions

From LimeSurvey Manual

No edit summary
Marked this version for translation
Line 1: Line 1:
<languages /> <translate>
<languages /> <translate>
<!--T:1-->
After downloading the source code via SVN [[(See: Accessing the Source Code]]) you see the following directories:
After downloading the source code via SVN [[(See: Accessing the Source Code]]) you see the following directories:


====Source====
====Source==== <!--T:2-->


====/limesurvey====
====/limesurvey==== <!--T:3-->


<!--T:4-->
This is the current stable branch of LimeSurvey and contains the latest hotfixes and translation updates.
This is the current stable branch of LimeSurvey and contains the latest hotfixes and translation updates.


====/original art====
====/original art==== <!--T:5-->


<!--T:6-->
This is the directory with the original arts used in LimeSurvey.
This is the directory with the original arts used in LimeSurvey.


====/server-scripts====
====/server-scripts==== <!--T:7-->


<!--T:8-->
In this directory are server scripts which are in use in http://www.limesurvey.org .
In this directory are server scripts which are in use in http://www.limesurvey.org .


===releases===
===releases=== <!--T:9-->


<!--T:10-->
In this directory are the files, as they are delivered in the download package of the according version.
In this directory are the files, as they are delivered in the download package of the according version.


===Code===
===Code=== <!--T:11-->


<!--T:12-->
'''''''''''''''_
'''''''''''''''_


===Translations===
===Translations=== <!--T:13-->


<!--T:14-->
To translate some text displayed on screen you have to either create a new instance of ''''limesurvey_lang'''' (limesurvey\classes\core\language.php) or in some cirumstances there is already an instance created called ''''$clang''''.
To translate some text displayed on screen you have to either create a new instance of ''''limesurvey_lang'''' (limesurvey\classes\core\language.php) or in some cirumstances there is already an instance created called ''''$clang''''.


<!--T:15-->
To translate you call the function '''gT'''  ($clang->gT(string)). More '''[http://docs.limesurvey.org/Coding+guidelines#Localization information on how to use localization]''' can be found here.
To translate you call the function '''gT'''  ($clang->gT(string)). More '''[http://docs.limesurvey.org/Coding+guidelines#Localization information on how to use localization]''' can be found here.


<!--T:16-->
In general '''$clang''' is set in (limesurvey\common.php) and uses a number of variables to determine language.
In general '''$clang''' is set in (limesurvey\common.php) and uses a number of variables to determine language.


<!--T:17-->
''s_lang''
''s_lang''


<!--T:18-->
''$baselang''
''$baselang''


<!--T:19-->
''$_SESSION['adminlang']''
''$_SESSION['adminlang']''
</translate>
</translate>

Revision as of 20:43, 8 April 2013

After downloading the source code via SVN (See: Accessing the Source Code) you see the following directories:

Source

/limesurvey

This is the current stable branch of LimeSurvey and contains the latest hotfixes and translation updates.

/original art

This is the directory with the original arts used in LimeSurvey.

/server-scripts

In this directory are server scripts which are in use in http://www.limesurvey.org .

releases

In this directory are the files, as they are delivered in the download package of the according version.

Code

''''''''''_

Translations

To translate some text displayed on screen you have to either create a new instance of 'limesurvey_lang' (limesurvey\classes\core\language.php) or in some cirumstances there is already an instance created called '$clang'.

To translate you call the function gT  ($clang->gT(string)). More information on how to use localization can be found here.

In general $clang is set in (limesurvey\common.php) and uses a number of variables to determine language.

s_lang

$baselang

$_SESSION['adminlang']