x

Glavna poglavja

  1. LimeSurvey Cloud proti LimeSurvey CE
  2. LimeSurvey Cloud – Hitri vodnik
  3. LimeSurvey CE - Montaža
  4. Kako oblikovati dobro anketo (Vodnik)
  5. Začetek
  6. Konfiguracija LimeSurvey
  7. Uvod - Ankete
  8. Oglejte si nastavitve ankete
  9. Ogled menija ankete
  10. Oglejte si strukturo ankete
  11. Uvod - Vprašanja
  12. Uvod – skupine vprašanj
  13. Uvod – Ankete – Upravljanje
  14. Možnosti orodne vrstice ankete
  15. Večjezična anketa
  16. Vodnik za hitri začetek - ExpressionScript
  17. Napredne funkcije
  18. Splošna pogosta vprašanja
  19. Odpravljanje težav
  20. Rešitve
  21. Licenca
  22. Dnevnik sprememb različice
  23. Vtičniki – napredno
 Actions

DateFunctions/sl: Difference between revisions

From LimeSurvey Manual

Maren.fritz (talk | contribs)
Created page with "Funkcije za mehanizem ExpressionScript za obdelavo datumskih spremenljivk:"
Maren.fritz (talk | contribs)
Created page with "* localize_date(datum[, language = null]): Oblikuje datum glede na obliko datuma ankete za navedeni jezik. ** Podani datum mora slediti naslednji obliki "Ymd H:i:s", ki je na..."
Line 6: Line 6:
Funkcije za mehanizem ExpressionScript za obdelavo datumskih spremenljivk:
Funkcije za mehanizem ExpressionScript za obdelavo datumskih spremenljivk:


* localize_date(date[, language = null]): Formats a date according to the Survey's date format for the specified language.  
* localize_date(datum[, language = null]): Oblikuje datum glede na obliko datuma ankete za navedeni jezik.  
** The date given should follow the following format "Y-m-d H:i:s", which is for example the one used by the TOKEN:VALIDFROM variable.  
** Podani datum mora slediti naslednji obliki "Ymd H:i:s", ki je na primer tista, ki jo uporablja spremenljivka TOKEN:VALIDFROM.  
** The language used for localization defaults to current session language. If the current language is not configured in the survey, the survey base language will be used. When using in email templates, please use the token language as parameter as to set the expected language. Example: TOKEN:LANGUAGE
** Jezik, uporabljen za lokalizacijo, je privzeto nastavljen na jezik trenutne seje. Če trenutni jezik v anketi ni konfiguriran, bo uporabljen osnovni jezik ankete. Pri uporabi v e-poštnih predlogah uporabite jezik žetona kot parameter za nastavitev pričakovanega jezika. Primer: TOKEN:LANGUAGE


This plugin uses the [[ExpressionManagerStart]] plugin, and it creates this function. These 2 functions don't use JavaScript, so they are fully executed by the server. In case the function is used while taking a survey, the function will be executed only when the respondent moves ahead in the survey.
This plugin uses the [[ExpressionManagerStart]] plugin, and it creates this function. These 2 functions don't use JavaScript, so they are fully executed by the server. In case the function is used while taking a survey, the function will be executed only when the respondent moves ahead in the survey.

Revision as of 09:00, 6 December 2023

 Hint: This features is available starting in version 5.XY


Uporaba

Funkcije za mehanizem ExpressionScript za obdelavo datumskih spremenljivk:

  • localize_date(datum[, language = null]): Oblikuje datum glede na obliko datuma ankete za navedeni jezik.
    • Podani datum mora slediti naslednji obliki "Ymd H:i:s", ki je na primer tista, ki jo uporablja spremenljivka TOKEN:VALIDFROM.
    • Jezik, uporabljen za lokalizacijo, je privzeto nastavljen na jezik trenutne seje. Če trenutni jezik v anketi ni konfiguriran, bo uporabljen osnovni jezik ankete. Pri uporabi v e-poštnih predlogah uporabite jezik žetona kot parameter za nastavitev pričakovanega jezika. Primer: TOKEN:LANGUAGE

This plugin uses the ExpressionManagerStart plugin, and it creates this function. These 2 functions don't use JavaScript, so they are fully executed by the server. In case the function is used while taking a survey, the function will be executed only when the respondent moves ahead in the survey.

  Before using these functions, the plugin must be activated in Plugin Manager.


Usage Example on Welcome Message

Usage Example on Email Template