DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:datepicker

Datepicker Plugin

Compatible with DokuWiki

WeatherWax

plugin use a calendar popup to pick a date

Last updated on
2013-10-28
Provides
Syntax, Action
Repository
Source
Conflicts with
include
Requires
ajaxedit

This extension has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues.

Tagged with ajax, date

By lisps

Installation

:!: External requirements: This plugin requires the following additional components that must be installed separately:

Install the plugin using the Plugin Manager and the download URL above, which points to latest version of the plugin. Refer to Plugins on how to install plugins manually.

Examples/Usage/Syntax

<datepicker>

To delete a date, press DELETE-Key

Configuration and Settings

In admin configuration:

  • emptyStringDate string for display empty date
  • emptyStringWeek string for display empty week

Development

Change Log

  • 2013-10-28
    • Initial release

Known Bugs and Issues

If you use the include plugin and include a page with datepickers the plugin will behave wrong.

ToDo/Wish List

FAQ

Discussion

Russian locale

settings.php

<?php
/**
 * DokuWiki Plugin datepicker (Lang Component) 
 *
 * @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
 * @author  lisps    
 */
$lang['emptyStringDate'] = 'Значение для пустой даты';
$lang['emptyStringWeek'] = 'Значение для пустой недели';
//Setup VIM: ex: et ts=2 enc=utf-8 :

calendar-ru.js

// ** I18N
 
// Calendar RU language
// Author: GKU, <dbdg@yandex.ru>
// Encoding: any
// Distributed under the same terms as the calendar itself.
 
// For translators: please use UTF-8 if possible.  We strongly believe that
// Unicode is the answer to a real internationalized world.  Also please
// include your contact information in the header, as can be seen above.
 
// full day names
Calendar._DN = new Array
("Воскресенье",
 "Понедельник",
 "Вторник",
 "Среда",
 "Четверг",
 "Пятница",
 "Суббота",
 "Воскресенье");
 
// Please note that the following array of short day names (and the same goes
// for short month names, _SMN) isn't absolutely necessary.  We give it here
// for exemplification on how one can customize the short day names, but if
// they are simply the first N letters of the full name you can simply say:
//
//   Calendar._SDN_len = N; // short day name length
//   Calendar._SMN_len = N; // short month name length
//
// If N = 3 then this is not needed either since we assume a value of 3 if not
// present, to be compatible with translation files that were written before
// this feature.
 
// short day names
Calendar._SDN = new Array
("Вс",
 "Пн",
 "Вт",
 "Ср",
 "Чт",
 "Пт",
 "Сб",
 "Вс");
 
// First day of the week. "0" means display Sunday first, "1" means display
// Monday first, etc.
Calendar._FD = 1;
 
// full month names
Calendar._MN = new Array
("Январь",
 "Февраль",
 "Март",
 "Апрель",
 "Май",
 "Июнь",
 "Июль",
 "Август",
 "Сентябрь",
 "Октябрь",
 "Ноябрь",
 "Декабрь");
 
// short month names
Calendar._SMN = new Array
("Янв",
 "Фев",
 "Мар",
 "Апр",
 "Май",
 "Июн",
 "Июл",
 "Авг",
 "Сен",
 "Окт",
 "Ноя",
 "Дек");
 
// tooltips
Calendar._TT = {};
Calendar._TT["INFO"] = "О календаре";
 
Calendar._TT["ABOUT"] =
"DHTML Date/Time Selector\n" +
"(c) dynarch.com 2002-2005 / Author: Mihai Bazon\n" + // don't translate this this ;-)
"For latest version visit: http://www.dynarch.com/projects/calendar/\n" +
"Distributed under GNU LGPL.  See http://gnu.org/licenses/lgpl.html for details." +
"\n\n" +
"Date selection:\n" +
"- Use the \xab, \xbb buttons to select year\n" +
"- Use the " + String.fromCharCode(0x2039) + ", " + String.fromCharCode(0x203a) + " buttons to select month\n" +
"- Hold mouse button on any of the above buttons for faster selection.";
Calendar._TT["ABOUT_TIME"] = "\n\n" +
"Time selection:\n" +
"- Click on any of the time parts to increase it\n" +
"- or Shift-click to decrease it\n" +
"- or click and drag for faster selection.";
 
Calendar._TT["PREV_YEAR"] = "Пред. год (удерж. для показа меню)";
Calendar._TT["PREV_MONTH"] = "Пред. месяц (удерж. для показа меню)";
Calendar._TT["GO_TODAY"] = "Что сегодня";
Calendar._TT["NEXT_MONTH"] = "След. месяц (удерж. для показа меню)";
Calendar._TT["NEXT_YEAR"] = "След. год (удерж. для показа меню)";
Calendar._TT["SEL_DATE"] = "Выберите дату";
Calendar._TT["DRAG_TO_MOVE"] = "удерживайте, чтобы передвинуть";
Calendar._TT["PART_TODAY"] = " (сегодня)";
 
// the following is to inform that "%s" is to be the first day of week
// %s will be replaced with the day name.
Calendar._TT["DAY_FIRST"] = "Показать %s сначала";
 
// This may be locale-dependent.  It specifies the week-end days, as an array
// of comma-separated numbers.  The numbers are from 0 to 6: 0 means Sunday, 1
// means Monday, etc.
Calendar._TT["WEEKEND"] = "0,6";
 
Calendar._TT["CLOSE"] = "Закрыть";
Calendar._TT["TODAY"] = "Сегодня";
Calendar._TT["TIME_PART"] = "(Shift-)Нажмите или передвиньте, чтобы изменить";
 
// date formats
Calendar._TT["DEF_DATE_FORMAT"] = "%Y-%m-%d";
Calendar._TT["TT_DATE_FORMAT"] = "%a, %b %e";
 
Calendar._TT["WK"] = "Нд";
Calendar._TT["TIME"] = "Время:";
plugin/datepicker.txt · Last modified: 2015-12-23 10:56 by 88.87.91.3