From: garvinhicking Date: Wed, 10 Aug 2005 10:59:40 +0000 (+0000) Subject: Patch by Anthem to allow Calendar to use event hooks for showing other X-Git-Tag: 0.9~222 X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=b9007a231702dde0108b83b2c4c4e95757bcf4a6;p=s9y.git Patch by Anthem to allow Calendar to use event hooks for showing other plugin's outputs. --- diff --git a/docs/NEWS b/docs/NEWS index 6f06344..e5c4af0 100644 --- a/docs/NEWS +++ b/docs/NEWS @@ -3,6 +3,11 @@ Version 0.9 () ------------------------------------------------------------------------ + * New Plugin API Hook "frontend_calendar" which allows to hook into + sidebar calendar creation. Needs to be enabled in the calendar + plugin configuration and needs a patch to the plugin_calendar.tpl + file which is done in all bundled themes. (Anthem) + * Atom 1.0 feed support (garvinhicking) * MoveableType importer now also recognizes comments and trackbacks. diff --git a/include/plugin_internal.inc.php b/include/plugin_internal.inc.php index 971d367..ceafc56 100644 --- a/include/plugin_internal.inc.php +++ b/include/plugin_internal.inc.php @@ -9,7 +9,7 @@ class serendipity_calendar_plugin extends serendipity_plugin { { $propbag->add('name', CALENDAR); $propbag->add('description', QUICKJUMP_CALENDAR); - $propbag->add('configuration', array('beginningOfWeek')); + $propbag->add('configuration', array('beginningOfWeek', 'enableExtEvents')); $propbag->add('stackable', false); $propbag->add('author', 'Serendipity Team'); $propbag->add('version', '1.0'); @@ -32,6 +32,13 @@ class serendipity_calendar_plugin extends serendipity_plugin { $propbag->add('default', 1); break; + case 'enableExtEvents': + $propbag->add('type', 'boolean'); + $propbag->add('name', CALENDAR_ENABLE_EXTERNAL_EVENTS); + $propbag->add('description', CALENDAR_EXTEVENT_DESC); + $propbag->add('default', false); + break; + default: return false; } @@ -257,9 +264,19 @@ class serendipity_calendar_plugin extends serendipity_plugin { if (($x > 0 || $y >= $firstDayWeekDay) && $currDay <= $nrOfDays) { $printDay = $currDay; - if ($today_year == $year && $today_month == $month && $today_day == $currDay) { + if ($today_day == $currDay && $today_month == $month && $today_year == $year) { $cellProps['Today'] = 1; } + + if (isset($externalevents[$currDay])) { + if (isset($externalevents[$currDay]['Class'])) { + $cellProps[$externalevents[$currDay]['Class']] = 1; + } + if (isset($externalevents[$currDay]['Title'])) { + $cellProps['Title'] = htmlspecialchars($externalevents[$currDay]['Title']); + } + } + if (isset($activeDays[$currDay]) && $activeDays[$currDay] > 1) { $cellProps['Active'] = 1; $cellProps['Link'] = serendipity_archiveDateUrl(sprintf('%4d/%02d/%02d', $year, $month, $currDay) . $add_query ); diff --git a/lang/UTF-8/serendipity_lang_bg.inc.php b/lang/UTF-8/serendipity_lang_bg.inc.php index 9b8c446..3452909 100644 --- a/lang/UTF-8/serendipity_lang_bg.inc.php +++ b/lang/UTF-8/serendipity_lang_bg.inc.php @@ -1,4 +1,4 @@ - @@ -756,3 +756,5 @@ @define('CHARSET_NATIVE', 'Native'); @define('INSTALL_CHARSET', 'Charset selection'); @define('INSTALL_CHARSET_DESC', 'Here you can toggle UTF-8 or native (ISO, EUC, ...) charactersets. Some languages only have UTF-8 translations so that setting the charset to "Native" will have no effects. UTF-8 is suggested for new installations. Do not change this setting if you have already made entries with special characters - this may lead to corrupt characters. Be sure to read more on http://www.s9y.org/index.php?node=46 about this issue.'); +@define('CALENDAR_ENABLE_EXTERNAL_EVENTS', 'Enable Plugin API hook'); +@define('CALENDAR_EXTEVENT_DESC', 'If enabled, plugins can hook into the calendar to display their own events highlighted. Only enable if you have installed plugins that need this, otherwise it just decreases performance.'); diff --git a/lang/UTF-8/serendipity_lang_cn.inc.php b/lang/UTF-8/serendipity_lang_cn.inc.php index c2334f4..89277a3 100644 --- a/lang/UTF-8/serendipity_lang_cn.inc.php +++ b/lang/UTF-8/serendipity_lang_cn.inc.php @@ -1,4 +1,4 @@ - @@ -772,3 +772,5 @@ @define('CHARSET_NATIVE', 'Native'); @define('INSTALL_CHARSET', 'Charset selection'); @define('INSTALL_CHARSET_DESC', 'Here you can toggle UTF-8 or native (ISO, EUC, ...) charactersets. Some languages only have UTF-8 translations so that setting the charset to "Native" will have no effects. UTF-8 is suggested for new installations. Do not change this setting if you have already made entries with special characters - this may lead to corrupt characters. Be sure to read more on http://www.s9y.org/index.php?node=46 about this issue.'); +@define('CALENDAR_ENABLE_EXTERNAL_EVENTS', 'Enable Plugin API hook'); +@define('CALENDAR_EXTEVENT_DESC', 'If enabled, plugins can hook into the calendar to display their own events highlighted. Only enable if you have installed plugins that need this, otherwise it just decreases performance.'); diff --git a/lang/UTF-8/serendipity_lang_cz.inc.php b/lang/UTF-8/serendipity_lang_cz.inc.php index 90a4094..38113b2 100644 --- a/lang/UTF-8/serendipity_lang_cz.inc.php +++ b/lang/UTF-8/serendipity_lang_cz.inc.php @@ -1,4 +1,4 @@ - @@ -772,3 +772,5 @@ @define('CHARSET_NATIVE', 'Native'); @define('INSTALL_CHARSET', 'Charset selection'); @define('INSTALL_CHARSET_DESC', 'Here you can toggle UTF-8 or native (ISO, EUC, ...) charactersets. Some languages only have UTF-8 translations so that setting the charset to "Native" will have no effects. UTF-8 is suggested for new installations. Do not change this setting if you have already made entries with special characters - this may lead to corrupt characters. Be sure to read more on http://www.s9y.org/index.php?node=46 about this issue.'); +@define('CALENDAR_ENABLE_EXTERNAL_EVENTS', 'Enable Plugin API hook'); +@define('CALENDAR_EXTEVENT_DESC', 'If enabled, plugins can hook into the calendar to display their own events highlighted. Only enable if you have installed plugins that need this, otherwise it just decreases performance.'); diff --git a/lang/UTF-8/serendipity_lang_da.inc.php b/lang/UTF-8/serendipity_lang_da.inc.php index fad1a8d..dc7aa54 100644 --- a/lang/UTF-8/serendipity_lang_da.inc.php +++ b/lang/UTF-8/serendipity_lang_da.inc.php @@ -1,4 +1,4 @@ - @@ -771,3 +771,5 @@ @define('CHARSET_NATIVE', 'Native'); @define('INSTALL_CHARSET', 'Charset selection'); @define('INSTALL_CHARSET_DESC', 'Here you can toggle UTF-8 or native (ISO, EUC, ...) charactersets. Some languages only have UTF-8 translations so that setting the charset to "Native" will have no effects. UTF-8 is suggested for new installations. Do not change this setting if you have already made entries with special characters - this may lead to corrupt characters. Be sure to read more on http://www.s9y.org/index.php?node=46 about this issue.'); +@define('CALENDAR_ENABLE_EXTERNAL_EVENTS', 'Enable Plugin API hook'); +@define('CALENDAR_EXTEVENT_DESC', 'If enabled, plugins can hook into the calendar to display their own events highlighted. Only enable if you have installed plugins that need this, otherwise it just decreases performance.'); diff --git a/lang/UTF-8/serendipity_lang_de.inc.php b/lang/UTF-8/serendipity_lang_de.inc.php index d4bb9b7..b4be716 100644 --- a/lang/UTF-8/serendipity_lang_de.inc.php +++ b/lang/UTF-8/serendipity_lang_de.inc.php @@ -1,4 +1,4 @@ -, @@ -165,7 +165,7 @@ @define('CHECK_N_SAVE', 'Revisa y guarda'); @define('DIRECTORY_WRITE_ERROR', 'No puedes escribir en el directorio %s. Comprueba los permisos.'); @define('DIRECTORY_CREATE_ERROR', 'El directorio %s no existe y no puede ser creado. Créalo manualmente.'); -@define('DIRECTORY_RUN_CMD', ' -> ejecuta %s %s'); +@define('DIRECTORY_RUN_CMD', ' - ejecuta %s %s'); @define('CANT_EXECUTE_BINARY', 'No se puede ejecutar %s'); @define('FILE_WRITE_ERROR', 'No se puede escribir el fichero %s.'); @define('FILE_CREATE_YOURSELF', 'Crea el fichero tu mismo o verifica los permisos'); @@ -409,7 +409,7 @@ @define('XML_IMAGE_TO_DISPLAY', 'Botón XML'); @define('XML_IMAGE_TO_DISPLAY_DESC','Enlaces a feeds XML se mostrarán con esta imagen. Déjalo vacío para el valor predeterminado, introduce \'none\' para desactivar.'); @define('ENTRY_SAVED', 'Tu entrada ha sido guardada'); -@define('SUCCESS', 'éxito'); +@define('SUCCESS', 'Éxito'); @define('NUMBER_FORMAT_DECIMALS', '2'); @define('NUMBER_FORMAT_DECPOINT', ','); @@ -625,7 +625,7 @@ @define('ERROR_FILE_FORBIDDEN', 'No te está permitido transferir ficheros con contenido activo'); @define('ADMIN', 'Administración'); @define('ADMIN_FRONTPAGE', 'Página principal'); -@define('QUOTE', 'Quote'); +@define('QUOTE', 'Cuota'); @define('IFRAME_SAVE', 'Serendipity está guardando tu entrada, creando referencias y llevando a cabo las posibles llamadas XML-RPC. Esto puede durar un tiempo..'); @define('IFRAME_SAVE_DRAFT', 'Se ha guardado un borrador de esta entrada'); @define('IFRAME_PREVIEW', 'Serendipity está creando la vista previa de tu entrada...'); @@ -775,3 +775,5 @@ @define('CHARSET_NATIVE', 'Native'); @define('INSTALL_CHARSET', 'Charset selection'); @define('INSTALL_CHARSET_DESC', 'Here you can toggle UTF-8 or native (ISO, EUC, ...) charactersets. Some languages only have UTF-8 translations so that setting the charset to "Native" will have no effects. UTF-8 is suggested for new installations. Do not change this setting if you have already made entries with special characters - this may lead to corrupt characters. Be sure to read more on http://www.s9y.org/index.php?node=46 about this issue.'); +@define('CALENDAR_ENABLE_EXTERNAL_EVENTS', 'Enable Plugin API hook'); +@define('CALENDAR_EXTEVENT_DESC', 'If enabled, plugins can hook into the calendar to display their own events highlighted. Only enable if you have installed plugins that need this, otherwise it just decreases performance.'); diff --git a/lang/UTF-8/serendipity_lang_fa.inc.php b/lang/UTF-8/serendipity_lang_fa.inc.php index bde0e6a..ae0e299 100644 --- a/lang/UTF-8/serendipity_lang_fa.inc.php +++ b/lang/UTF-8/serendipity_lang_fa.inc.php @@ -1,4 +1,4 @@ - @@ -771,3 +771,5 @@ @define('CHARSET_NATIVE', 'Native'); @define('INSTALL_CHARSET', 'Charset selection'); @define('INSTALL_CHARSET_DESC', 'Here you can toggle UTF-8 or native (ISO, EUC, ...) charactersets. Some languages only have UTF-8 translations so that setting the charset to "Native" will have no effects. UTF-8 is suggested for new installations. Do not change this setting if you have already made entries with special characters - this may lead to corrupt characters. Be sure to read more on http://www.s9y.org/index.php?node=46 about this issue.'); +@define('CALENDAR_ENABLE_EXTERNAL_EVENTS', 'Enable Plugin API hook'); +@define('CALENDAR_EXTEVENT_DESC', 'If enabled, plugins can hook into the calendar to display their own events highlighted. Only enable if you have installed plugins that need this, otherwise it just decreases performance.'); diff --git a/lang/UTF-8/serendipity_lang_fi.inc.php b/lang/UTF-8/serendipity_lang_fi.inc.php index d5a9105..7f9383e 100644 --- a/lang/UTF-8/serendipity_lang_fi.inc.php +++ b/lang/UTF-8/serendipity_lang_fi.inc.php @@ -1,4 +1,4 @@ - @@ -776,3 +776,5 @@ @define('CHARSET_NATIVE', 'Native'); @define('INSTALL_CHARSET', 'Charset selection'); @define('INSTALL_CHARSET_DESC', 'Here you can toggle UTF-8 or native (ISO, EUC, ...) charactersets. Some languages only have UTF-8 translations so that setting the charset to "Native" will have no effects. UTF-8 is suggested for new installations. Do not change this setting if you have already made entries with special characters - this may lead to corrupt characters. Be sure to read more on http://www.s9y.org/index.php?node=46 about this issue.'); +@define('CALENDAR_ENABLE_EXTERNAL_EVENTS', 'Enable Plugin API hook'); +@define('CALENDAR_EXTEVENT_DESC', 'If enabled, plugins can hook into the calendar to display their own events highlighted. Only enable if you have installed plugins that need this, otherwise it just decreases performance.'); diff --git a/lang/UTF-8/serendipity_lang_hu.inc.php b/lang/UTF-8/serendipity_lang_hu.inc.php index 31013cc..3bf8373 100644 --- a/lang/UTF-8/serendipity_lang_hu.inc.php +++ b/lang/UTF-8/serendipity_lang_hu.inc.php @@ -770,3 +770,5 @@ @define('CHARSET_NATIVE', 'Native'); @define('INSTALL_CHARSET', 'Charset selection'); @define('INSTALL_CHARSET_DESC', 'Here you can toggle UTF-8 or native (ISO, EUC, ...) charactersets. Some languages only have UTF-8 translations so that setting the charset to "Native" will have no effects. UTF-8 is suggested for new installations. Do not change this setting if you have already made entries with special characters - this may lead to corrupt characters. Be sure to read more on http://www.s9y.org/index.php?node=46 about this issue.'); +@define('CALENDAR_ENABLE_EXTERNAL_EVENTS', 'Enable Plugin API hook'); +@define('CALENDAR_EXTEVENT_DESC', 'If enabled, plugins can hook into the calendar to display their own events highlighted. Only enable if you have installed plugins that need this, otherwise it just decreases performance.'); diff --git a/lang/UTF-8/serendipity_lang_is.inc.php b/lang/UTF-8/serendipity_lang_is.inc.php index 0795b80..33017e7 100644 --- a/lang/UTF-8/serendipity_lang_is.inc.php +++ b/lang/UTF-8/serendipity_lang_is.inc.php @@ -1,4 +1,4 @@ - @@ -771,3 +771,5 @@ @define('CHARSET_NATIVE', 'Native'); @define('INSTALL_CHARSET', 'Charset selection'); @define('INSTALL_CHARSET_DESC', 'Here you can toggle UTF-8 or native (ISO, EUC, ...) charactersets. Some languages only have UTF-8 translations so that setting the charset to "Native" will have no effects. UTF-8 is suggested for new installations. Do not change this setting if you have already made entries with special characters - this may lead to corrupt characters. Be sure to read more on http://www.s9y.org/index.php?node=46 about this issue.'); +@define('CALENDAR_ENABLE_EXTERNAL_EVENTS', 'Enable Plugin API hook'); +@define('CALENDAR_EXTEVENT_DESC', 'If enabled, plugins can hook into the calendar to display their own events highlighted. Only enable if you have installed plugins that need this, otherwise it just decreases performance.'); diff --git a/lang/UTF-8/serendipity_lang_ja.inc.php b/lang/UTF-8/serendipity_lang_ja.inc.php index 34ad54f..adb61cf 100644 --- a/lang/UTF-8/serendipity_lang_ja.inc.php +++ b/lang/UTF-8/serendipity_lang_ja.inc.php @@ -1,4 +1,4 @@ -, 2004-2005. @@ -774,4 +774,5 @@ Serendipity のアップグレードステージを無視しました。正し @define('CHARSET_NATIVE', 'ネイティブ'); @define('INSTALL_CHARSET', '文字コード選択'); @define('INSTALL_CHARSET_DESC', 'Here you can toggle UTF-8 or native (ISO, EUC, ...) charactersets. Some languages only have UTF-8 translations so that setting the charset to "Native" will have no effects. UTF-8 is suggested for new installations. Do not change this setting if you have already made entries with special characters - this may lead to corrupt characters. Be sure to read more on http://www.s9y.org/index.php?node=46 about this issue.'); -?> \ No newline at end of file +?>@define('CALENDAR_ENABLE_EXTERNAL_EVENTS', 'Enable Plugin API hook'); +@define('CALENDAR_EXTEVENT_DESC', 'If enabled, plugins can hook into the calendar to display their own events highlighted. Only enable if you have installed plugins that need this, otherwise it just decreases performance.'); diff --git a/lang/UTF-8/serendipity_lang_ko.inc.php b/lang/UTF-8/serendipity_lang_ko.inc.php index abdde6f..6d20a06 100644 --- a/lang/UTF-8/serendipity_lang_ko.inc.php +++ b/lang/UTF-8/serendipity_lang_ko.inc.php @@ -1,4 +1,4 @@ - @@ -772,3 +772,5 @@ @define('CHARSET_NATIVE', '지역 전용'); @define('INSTALL_CHARSET', '문자열 종류 선택'); @define('INSTALL_CHARSET_DESC', '여기서 문자열을 UTF-8로 할 것인지 지역 전용 (ISO, EUC 등)으로 할 것인지 정할 수 있습니다. 일부 언어는 UTF-8 버전만 제공되므로 "지역 전용"을 설정해도 변화가 없습니다. 새로 설치한 경우 UTF-8을 권장합니다. 이미 특별 문자를 사용하여 글을 작성했을 경우 이 설정을 변경하지 마십시오. 글자가 깨질 수 있습니다. 이 설정에 대해서는 http://www.s9y.org/index.php?node=46 에 더 자세하게 소개가 되어 있습니다.'); +@define('CALENDAR_ENABLE_EXTERNAL_EVENTS', 'Enable Plugin API hook'); +@define('CALENDAR_EXTEVENT_DESC', 'If enabled, plugins can hook into the calendar to display their own events highlighted. Only enable if you have installed plugins that need this, otherwise it just decreases performance.'); diff --git a/lang/UTF-8/serendipity_lang_nl.inc.php b/lang/UTF-8/serendipity_lang_nl.inc.php index 9a54edc..c7867a6 100644 --- a/lang/UTF-8/serendipity_lang_nl.inc.php +++ b/lang/UTF-8/serendipity_lang_nl.inc.php @@ -1,4 +1,4 @@ - @@ -772,3 +772,5 @@ @define('CHARSET_NATIVE', 'Native'); @define('INSTALL_CHARSET', 'Charset selection'); @define('INSTALL_CHARSET_DESC', 'Here you can toggle UTF-8 or native (ISO, EUC, ...) charactersets. Some languages only have UTF-8 translations so that setting the charset to "Native" will have no effects. UTF-8 is suggested for new installations. Do not change this setting if you have already made entries with special characters - this may lead to corrupt characters. Be sure to read more on http://www.s9y.org/index.php?node=46 about this issue.'); +@define('CALENDAR_ENABLE_EXTERNAL_EVENTS', 'Enable Plugin API hook'); +@define('CALENDAR_EXTEVENT_DESC', 'If enabled, plugins can hook into the calendar to display their own events highlighted. Only enable if you have installed plugins that need this, otherwise it just decreases performance.'); diff --git a/lang/UTF-8/serendipity_lang_no.inc.php b/lang/UTF-8/serendipity_lang_no.inc.php index 6137095..4595c20 100644 --- a/lang/UTF-8/serendipity_lang_no.inc.php +++ b/lang/UTF-8/serendipity_lang_no.inc.php @@ -1,12 +1,12 @@ - /* vim: set sts=4 ts=4 expandtab : */ @define('LANG_CHARSET', 'UTF-8'); -@define('DATE_LOCALES', 'norwegian, no, no_NO'); -@define('DATE_FORMAT_ENTRY', '%A d. %e. %B %Y'); +@define('DATE_LOCALES', 'norwegian, no, no_NO, no_NO.UTF-8, no_NO.ISO8859-1, no_'); +@define('DATE_FORMAT_ENTRY', '%A - %e. %B %Y'); @define('DATE_FORMAT_SHORT', '%d.%m.%Y %H:%M'); @define('WYSIWYG_LANG', 'no'); @define('LANG_DIRECTION', 'ltr'); @@ -772,3 +772,5 @@ @define('CHARSET_NATIVE', 'Native'); @define('INSTALL_CHARSET', 'Charset selection'); @define('INSTALL_CHARSET_DESC', 'Here you can toggle UTF-8 or native (ISO, EUC, ...) charactersets. Some languages only have UTF-8 translations so that setting the charset to "Native" will have no effects. UTF-8 is suggested for new installations. Do not change this setting if you have already made entries with special characters - this may lead to corrupt characters. Be sure to read more on http://www.s9y.org/index.php?node=46 about this issue.'); +@define('CALENDAR_ENABLE_EXTERNAL_EVENTS', 'Enable Plugin API hook'); +@define('CALENDAR_EXTEVENT_DESC', 'If enabled, plugins can hook into the calendar to display their own events highlighted. Only enable if you have installed plugins that need this, otherwise it just decreases performance.'); diff --git a/lang/UTF-8/serendipity_lang_pt.inc.php b/lang/UTF-8/serendipity_lang_pt.inc.php index 16ffa4c..4cb8672 100644 --- a/lang/UTF-8/serendipity_lang_pt.inc.php +++ b/lang/UTF-8/serendipity_lang_pt.inc.php @@ -1,4 +1,4 @@ - @@ -772,3 +772,5 @@ @define('CHARSET_NATIVE', 'Native'); @define('INSTALL_CHARSET', 'Charset selection'); @define('INSTALL_CHARSET_DESC', 'Here you can toggle UTF-8 or native (ISO, EUC, ...) charactersets. Some languages only have UTF-8 translations so that setting the charset to "Native" will have no effects. UTF-8 is suggested for new installations. Do not change this setting if you have already made entries with special characters - this may lead to corrupt characters. Be sure to read more on http://www.s9y.org/index.php?node=46 about this issue.'); +@define('CALENDAR_ENABLE_EXTERNAL_EVENTS', 'Enable Plugin API hook'); +@define('CALENDAR_EXTEVENT_DESC', 'If enabled, plugins can hook into the calendar to display their own events highlighted. Only enable if you have installed plugins that need this, otherwise it just decreases performance.'); diff --git a/lang/UTF-8/serendipity_lang_pt_PT.inc.php b/lang/UTF-8/serendipity_lang_pt_PT.inc.php index 54f6b77..24d20b9 100644 --- a/lang/UTF-8/serendipity_lang_pt_PT.inc.php +++ b/lang/UTF-8/serendipity_lang_pt_PT.inc.php @@ -773,3 +773,5 @@ @define('CHARSET_NATIVE', 'Native'); @define('INSTALL_CHARSET', 'Charset selection'); @define('INSTALL_CHARSET_DESC', 'Here you can toggle UTF-8 or native (ISO, EUC, ...) charactersets. Some languages only have UTF-8 translations so that setting the charset to "Native" will have no effects. UTF-8 is suggested for new installations. Do not change this setting if you have already made entries with special characters - this may lead to corrupt characters. Be sure to read more on http://www.s9y.org/index.php?node=46 about this issue.'); +@define('CALENDAR_ENABLE_EXTERNAL_EVENTS', 'Enable Plugin API hook'); +@define('CALENDAR_EXTEVENT_DESC', 'If enabled, plugins can hook into the calendar to display their own events highlighted. Only enable if you have installed plugins that need this, otherwise it just decreases performance.'); diff --git a/lang/UTF-8/serendipity_lang_ro.inc.php b/lang/UTF-8/serendipity_lang_ro.inc.php index d55b108..781b19b 100644 --- a/lang/UTF-8/serendipity_lang_ro.inc.php +++ b/lang/UTF-8/serendipity_lang_ro.inc.php @@ -769,3 +769,5 @@ @define('CHARSET_NATIVE', 'Native'); @define('INSTALL_CHARSET', 'Charset selection'); @define('INSTALL_CHARSET_DESC', 'Here you can toggle UTF-8 or native (ISO, EUC, ...) charactersets. Some languages only have UTF-8 translations so that setting the charset to "Native" will have no effects. UTF-8 is suggested for new installations. Do not change this setting if you have already made entries with special characters - this may lead to corrupt characters. Be sure to read more on http://www.s9y.org/index.php?node=46 about this issue.'); +@define('CALENDAR_ENABLE_EXTERNAL_EVENTS', 'Enable Plugin API hook'); +@define('CALENDAR_EXTEVENT_DESC', 'If enabled, plugins can hook into the calendar to display their own events highlighted. Only enable if you have installed plugins that need this, otherwise it just decreases performance.'); diff --git a/lang/UTF-8/serendipity_lang_ru.inc.php b/lang/UTF-8/serendipity_lang_ru.inc.php index d969057..5315d5a 100644 --- a/lang/UTF-8/serendipity_lang_ru.inc.php +++ b/lang/UTF-8/serendipity_lang_ru.inc.php @@ -1,4 +1,4 @@ -CREATE FULLTEXT INDEX entry_idx on %sentries (title,body,extended) Собственно ошибка, полученная от базы данных, была следующая:
%s
'); +@define('EDIT_THIS_CAT', 'Редактировать "%s"'); @define('CATEGORY_REMAINING', 'Удалить данную категорию и установить для всех её записей следующую категорию'); @define('CATEGORY_INDEX', 'Ниже вы видите список категорий, к которым вы можете отнести вашу запись'); @define('NO_CATEGORIES', 'Без категорий'); @@ -772,3 +772,5 @@ $i18n_filename_to = array('_', 'a', 'A', 'b', 'B', 'v', 'V', 'g', 'G', 'd', 'D @define('CHARSET_NATIVE', 'Native'); @define('INSTALL_CHARSET', 'Charset selection'); @define('INSTALL_CHARSET_DESC', 'Here you can toggle UTF-8 or native (ISO, EUC, ...) charactersets. Some languages only have UTF-8 translations so that setting the charset to "Native" will have no effects. UTF-8 is suggested for new installations. Do not change this setting if you have already made entries with special characters - this may lead to corrupt characters. Be sure to read more on http://www.s9y.org/index.php?node=46 about this issue.'); +@define('CALENDAR_ENABLE_EXTERNAL_EVENTS', 'Enable Plugin API hook'); +@define('CALENDAR_EXTEVENT_DESC', 'If enabled, plugins can hook into the calendar to display their own events highlighted. Only enable if you have installed plugins that need this, otherwise it just decreases performance.'); diff --git a/lang/UTF-8/serendipity_lang_se.inc.php b/lang/UTF-8/serendipity_lang_se.inc.php index b2de609..2cfc3b9 100644 --- a/lang/UTF-8/serendipity_lang_se.inc.php +++ b/lang/UTF-8/serendipity_lang_se.inc.php @@ -771,3 +771,5 @@ @define('CHARSET_NATIVE', 'Native'); @define('INSTALL_CHARSET', 'Charset selection'); @define('INSTALL_CHARSET_DESC', 'Here you can toggle UTF-8 or native (ISO, EUC, ...) charactersets. Some languages only have UTF-8 translations so that setting the charset to "Native" will have no effects. UTF-8 is suggested for new installations. Do not change this setting if you have already made entries with special characters - this may lead to corrupt characters. Be sure to read more on http://www.s9y.org/index.php?node=46 about this issue.'); +@define('CALENDAR_ENABLE_EXTERNAL_EVENTS', 'Enable Plugin API hook'); +@define('CALENDAR_EXTEVENT_DESC', 'If enabled, plugins can hook into the calendar to display their own events highlighted. Only enable if you have installed plugins that need this, otherwise it just decreases performance.'); diff --git a/lang/UTF-8/serendipity_lang_tn.inc.php b/lang/UTF-8/serendipity_lang_tn.inc.php index a468fec..335cffd 100644 --- a/lang/UTF-8/serendipity_lang_tn.inc.php +++ b/lang/UTF-8/serendipity_lang_tn.inc.php @@ -1,4 +1,4 @@ - @@ -772,3 +772,5 @@ @define('CHARSET_NATIVE', 'Native'); @define('INSTALL_CHARSET', 'Charset selection'); @define('INSTALL_CHARSET_DESC', 'Here you can toggle UTF-8 or native (ISO, EUC, ...) charactersets. Some languages only have UTF-8 translations so that setting the charset to "Native" will have no effects. UTF-8 is suggested for new installations. Do not change this setting if you have already made entries with special characters - this may lead to corrupt characters. Be sure to read more on http://www.s9y.org/index.php?node=46 about this issue.'); +@define('CALENDAR_ENABLE_EXTERNAL_EVENTS', 'Enable Plugin API hook'); +@define('CALENDAR_EXTEVENT_DESC', 'If enabled, plugins can hook into the calendar to display their own events highlighted. Only enable if you have installed plugins that need this, otherwise it just decreases performance.'); diff --git a/lang/UTF-8/serendipity_lang_tw.inc.php b/lang/UTF-8/serendipity_lang_tw.inc.php index e0da9bc..12650f0 100644 --- a/lang/UTF-8/serendipity_lang_tw.inc.php +++ b/lang/UTF-8/serendipity_lang_tw.inc.php @@ -1,4 +1,4 @@ - @@ -772,3 +772,5 @@ @define('CHARSET_NATIVE', 'Native'); @define('INSTALL_CHARSET', 'Charset selection'); @define('INSTALL_CHARSET_DESC', 'Here you can toggle UTF-8 or native (ISO, EUC, ...) charactersets. Some languages only have UTF-8 translations so that setting the charset to "Native" will have no effects. UTF-8 is suggested for new installations. Do not change this setting if you have already made entries with special characters - this may lead to corrupt characters. Be sure to read more on http://www.s9y.org/index.php?node=46 about this issue.'); +@define('CALENDAR_ENABLE_EXTERNAL_EVENTS', 'Enable Plugin API hook'); +@define('CALENDAR_EXTEVENT_DESC', 'If enabled, plugins can hook into the calendar to display their own events highlighted. Only enable if you have installed plugins that need this, otherwise it just decreases performance.'); diff --git a/lang/UTF-8/serendipity_lang_zh.inc.php b/lang/UTF-8/serendipity_lang_zh.inc.php index 7508133..3b16c24 100644 --- a/lang/UTF-8/serendipity_lang_zh.inc.php +++ b/lang/UTF-8/serendipity_lang_zh.inc.php @@ -1,4 +1,4 @@ - \ No newline at end of file +?>@define('CALENDAR_ENABLE_EXTERNAL_EVENTS', 'Enable Plugin API hook'); +@define('CALENDAR_EXTEVENT_DESC', 'If enabled, plugins can hook into the calendar to display their own events highlighted. Only enable if you have installed plugins that need this, otherwise it just decreases performance.'); diff --git a/lang/serendipity_lang_ko.inc.php b/lang/serendipity_lang_ko.inc.php index 79647e8..cffe926 100644 --- a/lang/serendipity_lang_ko.inc.php +++ b/lang/serendipity_lang_ko.inc.php @@ -772,3 +772,5 @@ @define('CHARSET_NATIVE', '지역 전용'); @define('INSTALL_CHARSET', '문자열 종류 선택'); @define('INSTALL_CHARSET_DESC', '여기서 문자열을 UTF-8로 할 것인지 지역 전용 (ISO, EUC 등)으로 할 것인지 정할 수 있습니다. 일부 언어는 UTF-8 버전만 제공되므로 "지역 전용"을 설정해도 변화가 없습니다. 새로 설치한 경우 UTF-8을 권장합니다. 이미 특별 문자를 사용하여 글을 작성했을 경우 이 설정을 변경하지 마십시오. 글자가 깨질 수 있습니다. 이 설정에 대해서는 http://www.s9y.org/index.php?node=46 에 더 자세하게 소개가 되어 있습니다.'); +@define('CALENDAR_ENABLE_EXTERNAL_EVENTS', 'Enable Plugin API hook'); +@define('CALENDAR_EXTEVENT_DESC', 'If enabled, plugins can hook into the calendar to display their own events highlighted. Only enable if you have installed plugins that need this, otherwise it just decreases performance.'); diff --git a/lang/serendipity_lang_nl.inc.php b/lang/serendipity_lang_nl.inc.php index 2834033..bb47bdd 100644 --- a/lang/serendipity_lang_nl.inc.php +++ b/lang/serendipity_lang_nl.inc.php @@ -772,3 +772,5 @@ @define('CHARSET_NATIVE', 'Native'); @define('INSTALL_CHARSET', 'Charset selection'); @define('INSTALL_CHARSET_DESC', 'Here you can toggle UTF-8 or native (ISO, EUC, ...) charactersets. Some languages only have UTF-8 translations so that setting the charset to "Native" will have no effects. UTF-8 is suggested for new installations. Do not change this setting if you have already made entries with special characters - this may lead to corrupt characters. Be sure to read more on http://www.s9y.org/index.php?node=46 about this issue.'); +@define('CALENDAR_ENABLE_EXTERNAL_EVENTS', 'Enable Plugin API hook'); +@define('CALENDAR_EXTEVENT_DESC', 'If enabled, plugins can hook into the calendar to display their own events highlighted. Only enable if you have installed plugins that need this, otherwise it just decreases performance.'); diff --git a/lang/serendipity_lang_no.inc.php b/lang/serendipity_lang_no.inc.php index 7c0683a..be8f537 100644 --- a/lang/serendipity_lang_no.inc.php +++ b/lang/serendipity_lang_no.inc.php @@ -772,3 +772,5 @@ @define('CHARSET_NATIVE', 'Native'); @define('INSTALL_CHARSET', 'Charset selection'); @define('INSTALL_CHARSET_DESC', 'Here you can toggle UTF-8 or native (ISO, EUC, ...) charactersets. Some languages only have UTF-8 translations so that setting the charset to "Native" will have no effects. UTF-8 is suggested for new installations. Do not change this setting if you have already made entries with special characters - this may lead to corrupt characters. Be sure to read more on http://www.s9y.org/index.php?node=46 about this issue.'); +@define('CALENDAR_ENABLE_EXTERNAL_EVENTS', 'Enable Plugin API hook'); +@define('CALENDAR_EXTEVENT_DESC', 'If enabled, plugins can hook into the calendar to display their own events highlighted. Only enable if you have installed plugins that need this, otherwise it just decreases performance.'); diff --git a/lang/serendipity_lang_pt.inc.php b/lang/serendipity_lang_pt.inc.php index f2a0625..3fea5c5 100644 --- a/lang/serendipity_lang_pt.inc.php +++ b/lang/serendipity_lang_pt.inc.php @@ -772,3 +772,5 @@ @define('CHARSET_NATIVE', 'Native'); @define('INSTALL_CHARSET', 'Charset selection'); @define('INSTALL_CHARSET_DESC', 'Here you can toggle UTF-8 or native (ISO, EUC, ...) charactersets. Some languages only have UTF-8 translations so that setting the charset to "Native" will have no effects. UTF-8 is suggested for new installations. Do not change this setting if you have already made entries with special characters - this may lead to corrupt characters. Be sure to read more on http://www.s9y.org/index.php?node=46 about this issue.'); +@define('CALENDAR_ENABLE_EXTERNAL_EVENTS', 'Enable Plugin API hook'); +@define('CALENDAR_EXTEVENT_DESC', 'If enabled, plugins can hook into the calendar to display their own events highlighted. Only enable if you have installed plugins that need this, otherwise it just decreases performance.'); diff --git a/lang/serendipity_lang_pt_PT.inc.php b/lang/serendipity_lang_pt_PT.inc.php index a0aa36b..2885b4f 100644 --- a/lang/serendipity_lang_pt_PT.inc.php +++ b/lang/serendipity_lang_pt_PT.inc.php @@ -773,3 +773,5 @@ @define('CHARSET_NATIVE', 'Native'); @define('INSTALL_CHARSET', 'Charset selection'); @define('INSTALL_CHARSET_DESC', 'Here you can toggle UTF-8 or native (ISO, EUC, ...) charactersets. Some languages only have UTF-8 translations so that setting the charset to "Native" will have no effects. UTF-8 is suggested for new installations. Do not change this setting if you have already made entries with special characters - this may lead to corrupt characters. Be sure to read more on http://www.s9y.org/index.php?node=46 about this issue.'); +@define('CALENDAR_ENABLE_EXTERNAL_EVENTS', 'Enable Plugin API hook'); +@define('CALENDAR_EXTEVENT_DESC', 'If enabled, plugins can hook into the calendar to display their own events highlighted. Only enable if you have installed plugins that need this, otherwise it just decreases performance.'); diff --git a/lang/serendipity_lang_ro.inc.php b/lang/serendipity_lang_ro.inc.php index d55b108..781b19b 100644 --- a/lang/serendipity_lang_ro.inc.php +++ b/lang/serendipity_lang_ro.inc.php @@ -769,3 +769,5 @@ @define('CHARSET_NATIVE', 'Native'); @define('INSTALL_CHARSET', 'Charset selection'); @define('INSTALL_CHARSET_DESC', 'Here you can toggle UTF-8 or native (ISO, EUC, ...) charactersets. Some languages only have UTF-8 translations so that setting the charset to "Native" will have no effects. UTF-8 is suggested for new installations. Do not change this setting if you have already made entries with special characters - this may lead to corrupt characters. Be sure to read more on http://www.s9y.org/index.php?node=46 about this issue.'); +@define('CALENDAR_ENABLE_EXTERNAL_EVENTS', 'Enable Plugin API hook'); +@define('CALENDAR_EXTEVENT_DESC', 'If enabled, plugins can hook into the calendar to display their own events highlighted. Only enable if you have installed plugins that need this, otherwise it just decreases performance.'); diff --git a/lang/serendipity_lang_ru.inc.php b/lang/serendipity_lang_ru.inc.php index c7fc425..65927cb 100644 --- a/lang/serendipity_lang_ru.inc.php +++ b/lang/serendipity_lang_ru.inc.php @@ -772,3 +772,5 @@ $i18n_filename_to = array('_', 'a', 'A', 'b', 'B', 'v', 'V', 'g', 'G', 'd', 'D @define('CHARSET_NATIVE', 'Native'); @define('INSTALL_CHARSET', 'Charset selection'); @define('INSTALL_CHARSET_DESC', 'Here you can toggle UTF-8 or native (ISO, EUC, ...) charactersets. Some languages only have UTF-8 translations so that setting the charset to "Native" will have no effects. UTF-8 is suggested for new installations. Do not change this setting if you have already made entries with special characters - this may lead to corrupt characters. Be sure to read more on http://www.s9y.org/index.php?node=46 about this issue.'); +@define('CALENDAR_ENABLE_EXTERNAL_EVENTS', 'Enable Plugin API hook'); +@define('CALENDAR_EXTEVENT_DESC', 'If enabled, plugins can hook into the calendar to display their own events highlighted. Only enable if you have installed plugins that need this, otherwise it just decreases performance.'); diff --git a/lang/serendipity_lang_se.inc.php b/lang/serendipity_lang_se.inc.php index b344758..3d85ad2 100644 --- a/lang/serendipity_lang_se.inc.php +++ b/lang/serendipity_lang_se.inc.php @@ -771,3 +771,5 @@ @define('CHARSET_NATIVE', 'Native'); @define('INSTALL_CHARSET', 'Charset selection'); @define('INSTALL_CHARSET_DESC', 'Here you can toggle UTF-8 or native (ISO, EUC, ...) charactersets. Some languages only have UTF-8 translations so that setting the charset to "Native" will have no effects. UTF-8 is suggested for new installations. Do not change this setting if you have already made entries with special characters - this may lead to corrupt characters. Be sure to read more on http://www.s9y.org/index.php?node=46 about this issue.'); +@define('CALENDAR_ENABLE_EXTERNAL_EVENTS', 'Enable Plugin API hook'); +@define('CALENDAR_EXTEVENT_DESC', 'If enabled, plugins can hook into the calendar to display their own events highlighted. Only enable if you have installed plugins that need this, otherwise it just decreases performance.'); diff --git a/lang/serendipity_lang_tn.inc.php b/lang/serendipity_lang_tn.inc.php index 4649ba9..37a97af 100644 --- a/lang/serendipity_lang_tn.inc.php +++ b/lang/serendipity_lang_tn.inc.php @@ -772,3 +772,5 @@ @define('CHARSET_NATIVE', 'Native'); @define('INSTALL_CHARSET', 'Charset selection'); @define('INSTALL_CHARSET_DESC', 'Here you can toggle UTF-8 or native (ISO, EUC, ...) charactersets. Some languages only have UTF-8 translations so that setting the charset to "Native" will have no effects. UTF-8 is suggested for new installations. Do not change this setting if you have already made entries with special characters - this may lead to corrupt characters. Be sure to read more on http://www.s9y.org/index.php?node=46 about this issue.'); +@define('CALENDAR_ENABLE_EXTERNAL_EVENTS', 'Enable Plugin API hook'); +@define('CALENDAR_EXTEVENT_DESC', 'If enabled, plugins can hook into the calendar to display their own events highlighted. Only enable if you have installed plugins that need this, otherwise it just decreases performance.'); diff --git a/lang/serendipity_lang_tw.inc.php b/lang/serendipity_lang_tw.inc.php index 53fd3a1..c25e3ed 100644 --- a/lang/serendipity_lang_tw.inc.php +++ b/lang/serendipity_lang_tw.inc.php @@ -772,3 +772,5 @@ @define('CHARSET_NATIVE', 'Native'); @define('INSTALL_CHARSET', 'Charset selection'); @define('INSTALL_CHARSET_DESC', 'Here you can toggle UTF-8 or native (ISO, EUC, ...) charactersets. Some languages only have UTF-8 translations so that setting the charset to "Native" will have no effects. UTF-8 is suggested for new installations. Do not change this setting if you have already made entries with special characters - this may lead to corrupt characters. Be sure to read more on http://www.s9y.org/index.php?node=46 about this issue.'); +@define('CALENDAR_ENABLE_EXTERNAL_EVENTS', 'Enable Plugin API hook'); +@define('CALENDAR_EXTEVENT_DESC', 'If enabled, plugins can hook into the calendar to display their own events highlighted. Only enable if you have installed plugins that need this, otherwise it just decreases performance.'); diff --git a/lang/serendipity_lang_zh.inc.php b/lang/serendipity_lang_zh.inc.php index bbb8dce..acea701 100644 --- a/lang/serendipity_lang_zh.inc.php +++ b/lang/serendipity_lang_zh.inc.php @@ -770,3 +770,5 @@ @define('CHARSET_NATIVE', 'Native'); @define('INSTALL_CHARSET', 'Charset selection'); @define('INSTALL_CHARSET_DESC', 'Here you can toggle UTF-8 or native (ISO, EUC, ...) charactersets. Some languages only have UTF-8 translations so that setting the charset to "Native" will have no effects. UTF-8 is suggested for new installations. Do not change this setting if you have already made entries with special characters - this may lead to corrupt characters. Be sure to read more on http://www.s9y.org/index.php?node=46 about this issue.'); +@define('CALENDAR_ENABLE_EXTERNAL_EVENTS', 'Enable Plugin API hook'); +@define('CALENDAR_EXTEVENT_DESC', 'If enabled, plugins can hook into the calendar to display their own events highlighted. Only enable if you have installed plugins that need this, otherwise it just decreases performance.'); diff --git a/templates/default-rtl/plugin_calendar.tpl b/templates/default-rtl/plugin_calendar.tpl index 47fdfd3..84c325c 100644 --- a/templates/default-rtl/plugin_calendar.tpl +++ b/templates/default-rtl/plugin_calendar.tpl @@ -26,7 +26,7 @@ {foreach from=$plugin_calendar_weeks item="week"} {foreach from=$week.days item="day"} - {if isset($day.properties.Active) and $day.properties.Active}{/if}{$day.name|@default:" "}{if isset($day.properties.Active) and $day.properties.Active}{/if} + {if isset($day.properties.Active) and $day.properties.Active}{/if}{$day.name|@default:" "}{if isset($day.properties.Active) and $day.properties.Active}{/if} {/foreach} {/foreach} diff --git a/templates/default/plugin_calendar.tpl b/templates/default/plugin_calendar.tpl index 996001a..9f3a563 100644 --- a/templates/default/plugin_calendar.tpl +++ b/templates/default/plugin_calendar.tpl @@ -26,7 +26,7 @@ {foreach from=$plugin_calendar_weeks item="week"} {foreach from=$week.days item="day"} - {if isset($day.properties.Active) and $day.properties.Active}{/if}{$day.name|@default:" "}{if isset($day.properties.Active) and $day.properties.Active}{/if} + {if isset($day.properties.Active) and $day.properties.Active}{/if}{$day.name|@default:" "}{if isset($day.properties.Active) and $day.properties.Active}{/if} {/foreach} {/foreach} diff --git a/templates/wp/plugin_calendar.tpl b/templates/wp/plugin_calendar.tpl index c638a00..7f38fc8 100644 --- a/templates/wp/plugin_calendar.tpl +++ b/templates/wp/plugin_calendar.tpl @@ -24,7 +24,7 @@ {foreach from=$plugin_calendar_weeks item="week"} {foreach from=$week.days item="day"} - {if isset($day.properties.Active) and $day.properties.Active}{/if}{$day.name|@default:" "}{if isset($day.properties.Active) and $day.properties.Active}{/if} + {if isset($day.properties.Active) and $day.properties.Active}{/if}{$day.name|@default:" "}{if isset($day.properties.Active) and $day.properties.Active}{/if} {/foreach} {/foreach}