From: garvinhicking Date: Fri, 29 Jul 2005 12:56:09 +0000 (+0000) Subject: Some new plugin hooks, category plugin can hide/show certain subcategories X-Git-Tag: 0.9~266 X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=7a19d0a6d5542e7125de0933538280b332efa92c;p=s9y.git Some new plugin hooks, category plugin can hide/show certain subcategories --- diff --git a/docs/NEWS b/docs/NEWS index 40174e6..b76dac6 100644 --- a/docs/NEWS +++ b/docs/NEWS @@ -3,6 +3,15 @@ Version 0.9 () ------------------------------------------------------------------------ + * Plugin API: Added plugin hooks for category properties, made smarty + init function accept plugin values. See the plugin "Properties for + Categories" for example usage. The plugin allows to create sub-blogs + based on categories (garvinhicking) + + * Categories plugin can be configured to only show specific sub- + categories and hide other categories when descending the tree + (garvinhicking) + * "Edit entries" panel can now delete entries and returns to the originating panel. Also it now utilizes Cookies (via JS) to remember the last used settings (sortorder, filters) (garvinhicking) diff --git a/include/admin/category.inc.php b/include/admin/category.inc.php index a6598ff..4af3e99 100644 --- a/include/admin/category.inc.php +++ b/include/admin/category.inc.php @@ -137,10 +137,13 @@ if ($serendipity['GET']['adminAction'] == 'doDelete') { '. sprintf(EDIT_THIS_CAT, htmlspecialchars($this_cat['category_name'])) .''; $save = SAVE; } else { + $cid = false; + $this_cat = array(); echo ''. CREATE_NEW_CAT .''; $save = CREATE; } @@ -190,6 +193,7 @@ if ($serendipity['GET']['adminAction'] == 'doDelete') { +
diff --git a/include/functions.inc.php b/include/functions.inc.php index 560c50e..2c2d49e 100644 --- a/include/functions.inc.php +++ b/include/functions.inc.php @@ -573,7 +573,8 @@ function serendipity_addCategory($name, $desc, $authorid, $icon, $parentid) { serendipity_db_query($query); $cid = serendipity_db_insert_id('category', 'categoryid'); - + serendipity_plugin_api::hook_event('backend_category_addNew', $cid); + $data = array( 'categoryid' => $cid, 'category_name' => $name, @@ -596,6 +597,7 @@ function serendipity_updateCategory($cid, $name, $desc, $authorid, $icon, $paren WHERE categoryid = ". (int)$cid ." $admin_category"; serendipity_db_query($query); + serendipity_plugin_api::hook_event('backend_category_update', $cid); $data = array( 'categoryid' => $cid, diff --git a/include/functions_entries.inc.php b/include/functions_entries.inc.php index d28803c..40dd30e 100644 --- a/include/functions_entries.inc.php +++ b/include/functions_entries.inc.php @@ -9,6 +9,8 @@ function serendipity_deleteCategory($category_range, $admin_category) { return false; } + serendipity_plugin_api::hook_event('backend_category_delete', $category_range); + return serendipity_db_query("DELETE FROM {$serendipity['dbPrefix']}category WHERE category_left BETWEEN {$category_range} {$admin_category}"); } diff --git a/include/plugin_internal.inc.php b/include/plugin_internal.inc.php index 3038406..1c95550 100644 --- a/include/plugin_internal.inc.php +++ b/include/plugin_internal.inc.php @@ -1098,8 +1098,8 @@ class serendipity_categories_plugin extends serendipity_plugin { $propbag->add('description', CATEGORY_PLUGIN_DESC); $propbag->add('stackable', true); $propbag->add('author', 'Serendipity Team'); - $propbag->add('version', '1.0'); - $propbag->add('configuration', array('authorid', 'image', 'sort_order', 'sort_method', 'allow_select')); + $propbag->add('version', '2.0'); + $propbag->add('configuration', array('authorid', 'parent_base', 'image', 'sort_order', 'sort_method', 'allow_select', 'hide_parallel')); $propbag->add('groups', array('FRONTEND_VIEWS')); } @@ -1123,6 +1123,31 @@ class serendipity_categories_plugin extends serendipity_plugin { $propbag->add('default', 'all'); break; + case 'parent_base': + $categories = array('all' => ALL_CATEGORIES); + $cats = serendipity_fetchCategories(); + + if (is_array($cats)) { + $cats = serendipity_walkRecursive($cats, 'categoryid', 'parentid', VIEWMODE_THREADED); + foreach($cats as $cat) { + $categories[$cat['categoryid']] = str_repeat(' . ', $cat['depth']) . $cat['category_name']; + } + } + + $propbag->add('type', 'select'); + $propbag->add('name', CATEGORIES_PARENT_BASE); + $propbag->add('description', CATEGORIES_PARENT_BASE_DESC); + $propbag->add('select_values', $categories); + $propbag->add('default', 'all'); + break; + + case 'hide_parallel': + $propbag->add('type', 'boolean'); + $propbag->add('name', CATEGORIES_HIDE_PARALLEL); + $propbag->add('description', CATEGORIES_HIDE_PARALLEL_DESC); + $propbag->add('default', false); + break; + case 'allow_select': $propbag->add('type', 'boolean'); $propbag->add('name', CATEGORIES_ALLOW_SELECT); @@ -1189,9 +1214,48 @@ class serendipity_categories_plugin extends serendipity_plugin { $image = $this->get_config('image', serendipity_getTemplateFile('img/xml.gif')); $image = (($image == "'none'" || $image == 'none') ? '' : $image); + + $use_parent = $this->get_config('parent_base'); + $parentdepth = 0; + + $hide_parallel = serendipity_db_bool($this->get_config('hide_parallel')); + $hidedepth = 0; + if (is_array($categories) && count($categories)) { $categories = serendipity_walkRecursive($categories, 'categoryid', 'parentid', VIEWMODE_THREADED); - foreach ( $categories as $cat ) { + foreach ($categories as $cat) { + // Hide parents not wanted + if ($use_parent && $use_parent != 'all') { + if ($parentdepth == 0 && $cat['parentid'] != $use_parent && $cat['categoryid'] != $use_parent) { + continue; + } else { + if ($cat['depth'] < $parentdepth) { + $parentdepth = 0; + continue; + } + + if ($parentdepth == 0) { + $parentdepth = $cat['depth']; + } + } + } + + // Hide parents outside of our tree + if ($hide_parallel && $serendipity['GET']['category']) { + if ($hidedepth == 0 && $cat['parentid'] != $serendipity['GET']['category'] && $cat['categoryid'] != $serendipity['GET']['category']) { + continue; + } else { + if ($cat['depth'] < $hidedepth) { + $hidedepth = 0; + continue; + } + + if ($hidedepth == 0) { + $hidedepth = $cat['depth']; + } + } + } + $html .= '
'; if ($is_form) { diff --git a/lang/serendipity_lang_bg.inc.php b/lang/serendipity_lang_bg.inc.php index e9d83bd..b6fc0bb 100644 --- a/lang/serendipity_lang_bg.inc.php +++ b/lang/serendipity_lang_bg.inc.php @@ -748,3 +748,7 @@ @define('PERMISSION_ADMINTEMPLATES', 'adminTemplates: Administrate templates'); @define('INSTALL_BLOG_EMAIL', 'Blog\'s E-Mail address'); @define('INSTALL_BLOG_EMAIL_DESC', 'This configures the E-Mail address that is used as the "From"-Part of outgoing mails. Be sure to set this to an address that is recognized by the mailserver used on your host - many mailservers reject messages that have unknown From-addresses.'); +@define('CATEGORIES_PARENT_BASE', 'Only show categories below...'); +@define('CATEGORIES_PARENT_BASE_DESC', 'You can choose a parent category so that only the child categories are shown.'); +@define('CATEGORIES_HIDE_PARALLEL', 'Hide categories that are not part of the category tree'); +@define('CATEGORIES_HIDE_PARALLEL_DESC', 'If you want to hide categories that are part of a different category tree, you need to enable this. This feature makes most sense if used in conjunction with a multi-blog using the "Properties/Tempaltes of categories" plugin.'); \ No newline at end of file diff --git a/lang/serendipity_lang_cn.inc.php b/lang/serendipity_lang_cn.inc.php index fcb9293..f76a63a 100644 --- a/lang/serendipity_lang_cn.inc.php +++ b/lang/serendipity_lang_cn.inc.php @@ -762,3 +762,7 @@ @define('PERMISSION_ADMINTEMPLATES', 'adminTemplates: Administrate templates'); @define('INSTALL_BLOG_EMAIL', 'Blog\'s E-Mail address'); @define('INSTALL_BLOG_EMAIL_DESC', 'This configures the E-Mail address that is used as the "From"-Part of outgoing mails. Be sure to set this to an address that is recognized by the mailserver used on your host - many mailservers reject messages that have unknown From-addresses.'); +@define('CATEGORIES_PARENT_BASE', 'Only show categories below...'); +@define('CATEGORIES_PARENT_BASE_DESC', 'You can choose a parent category so that only the child categories are shown.'); +@define('CATEGORIES_HIDE_PARALLEL', 'Hide categories that are not part of the category tree'); +@define('CATEGORIES_HIDE_PARALLEL_DESC', 'If you want to hide categories that are part of a different category tree, you need to enable this. This feature makes most sense if used in conjunction with a multi-blog using the "Properties/Tempaltes of categories" plugin.'); \ No newline at end of file diff --git a/lang/serendipity_lang_cs.inc.php b/lang/serendipity_lang_cs.inc.php index 7ecec23..54342e7 100644 --- a/lang/serendipity_lang_cs.inc.php +++ b/lang/serendipity_lang_cs.inc.php @@ -764,3 +764,7 @@ @define('PERMISSION_ADMINTEMPLATES', 'adminTemplates: Administrate templates'); @define('INSTALL_BLOG_EMAIL', 'Blog\'s E-Mail address'); @define('INSTALL_BLOG_EMAIL_DESC', 'This configures the E-Mail address that is used as the "From"-Part of outgoing mails. Be sure to set this to an address that is recognized by the mailserver used on your host - many mailservers reject messages that have unknown From-addresses.'); +@define('CATEGORIES_PARENT_BASE', 'Only show categories below...'); +@define('CATEGORIES_PARENT_BASE_DESC', 'You can choose a parent category so that only the child categories are shown.'); +@define('CATEGORIES_HIDE_PARALLEL', 'Hide categories that are not part of the category tree'); +@define('CATEGORIES_HIDE_PARALLEL_DESC', 'If you want to hide categories that are part of a different category tree, you need to enable this. This feature makes most sense if used in conjunction with a multi-blog using the "Properties/Tempaltes of categories" plugin.'); \ No newline at end of file diff --git a/lang/serendipity_lang_cz.inc.php b/lang/serendipity_lang_cz.inc.php index 77cc3a5..7b12918 100644 --- a/lang/serendipity_lang_cz.inc.php +++ b/lang/serendipity_lang_cz.inc.php @@ -764,3 +764,7 @@ @define('PERMISSION_ADMINTEMPLATES', 'adminTemplates: Administrate templates'); @define('INSTALL_BLOG_EMAIL', 'Blog\'s E-Mail address'); @define('INSTALL_BLOG_EMAIL_DESC', 'This configures the E-Mail address that is used as the "From"-Part of outgoing mails. Be sure to set this to an address that is recognized by the mailserver used on your host - many mailservers reject messages that have unknown From-addresses.'); +@define('CATEGORIES_PARENT_BASE', 'Only show categories below...'); +@define('CATEGORIES_PARENT_BASE_DESC', 'You can choose a parent category so that only the child categories are shown.'); +@define('CATEGORIES_HIDE_PARALLEL', 'Hide categories that are not part of the category tree'); +@define('CATEGORIES_HIDE_PARALLEL_DESC', 'If you want to hide categories that are part of a different category tree, you need to enable this. This feature makes most sense if used in conjunction with a multi-blog using the "Properties/Tempaltes of categories" plugin.'); \ No newline at end of file diff --git a/lang/serendipity_lang_da.inc.php b/lang/serendipity_lang_da.inc.php index 6e49bd3..d5e90be 100644 --- a/lang/serendipity_lang_da.inc.php +++ b/lang/serendipity_lang_da.inc.php @@ -763,3 +763,7 @@ @define('PERMISSION_ADMINTEMPLATES', 'adminTemplates: Administrate templates'); @define('INSTALL_BLOG_EMAIL', 'Blog\'s E-Mail address'); @define('INSTALL_BLOG_EMAIL_DESC', 'This configures the E-Mail address that is used as the "From"-Part of outgoing mails. Be sure to set this to an address that is recognized by the mailserver used on your host - many mailservers reject messages that have unknown From-addresses.'); +@define('CATEGORIES_PARENT_BASE', 'Only show categories below...'); +@define('CATEGORIES_PARENT_BASE_DESC', 'You can choose a parent category so that only the child categories are shown.'); +@define('CATEGORIES_HIDE_PARALLEL', 'Hide categories that are not part of the category tree'); +@define('CATEGORIES_HIDE_PARALLEL_DESC', 'If you want to hide categories that are part of a different category tree, you need to enable this. This feature makes most sense if used in conjunction with a multi-blog using the "Properties/Tempaltes of categories" plugin.'); \ No newline at end of file diff --git a/lang/serendipity_lang_de.inc.php b/lang/serendipity_lang_de.inc.php index e4a286f..00e8d10 100644 --- a/lang/serendipity_lang_de.inc.php +++ b/lang/serendipity_lang_de.inc.php @@ -763,3 +763,7 @@ @define('PERMISSION_ADMINTEMPLATES', 'adminTemplates: Templates verwalten'); @define('INSTALL_BLOG_EMAIL', 'Blog\'s E-Mail address'); @define('INSTALL_BLOG_EMAIL_DESC', 'This configures the E-Mail address that is used as the "From"-Part of outgoing mails. Be sure to set this to an address that is recognized by the mailserver used on your host - many mailservers reject messages that have unknown From-addresses.'); +@define('CATEGORIES_PARENT_BASE', 'Only show categories below...'); +@define('CATEGORIES_PARENT_BASE_DESC', 'You can choose a parent category so that only the child categories are shown.'); +@define('CATEGORIES_HIDE_PARALLEL', 'Hide categories that are not part of the category tree'); +@define('CATEGORIES_HIDE_PARALLEL_DESC', 'If you want to hide categories that are part of a different category tree, you need to enable this. This feature makes most sense if used in conjunction with a multi-blog using the "Properties/Tempaltes of categories" plugin.'); \ No newline at end of file diff --git a/lang/serendipity_lang_en.inc.php b/lang/serendipity_lang_en.inc.php index 89670dc..ac0c9fa 100644 --- a/lang/serendipity_lang_en.inc.php +++ b/lang/serendipity_lang_en.inc.php @@ -761,3 +761,7 @@ @define('PERMISSION_ADMINTEMPLATES', 'adminTemplates: Administrate templates'); @define('INSTALL_BLOG_EMAIL', 'Blog\'s E-Mail address'); @define('INSTALL_BLOG_EMAIL_DESC', 'This configures the E-Mail address that is used as the "From"-Part of outgoing mails. Be sure to set this to an address that is recognized by the mailserver used on your host - many mailservers reject messages that have unknown From-addresses.'); +@define('CATEGORIES_PARENT_BASE', 'Only show categories below...'); +@define('CATEGORIES_PARENT_BASE_DESC', 'You can choose a parent category so that only the child categories are shown.'); +@define('CATEGORIES_HIDE_PARALLEL', 'Hide categories that are not part of the category tree'); +@define('CATEGORIES_HIDE_PARALLEL_DESC', 'If you want to hide categories that are part of a different category tree, you need to enable this. This feature makes most sense if used in conjunction with a multi-blog using the "Properties/Tempaltes of categories" plugin.'); \ No newline at end of file diff --git a/lang/serendipity_lang_es.inc.php b/lang/serendipity_lang_es.inc.php index 57e3bfb..834d7ce 100644 --- a/lang/serendipity_lang_es.inc.php +++ b/lang/serendipity_lang_es.inc.php @@ -766,3 +766,7 @@ @define('PERMISSION_ADMINTEMPLATES', 'adminTemplates: Administrate templates'); @define('INSTALL_BLOG_EMAIL', 'Blog\'s E-Mail address'); @define('INSTALL_BLOG_EMAIL_DESC', 'This configures the E-Mail address that is used as the "From"-Part of outgoing mails. Be sure to set this to an address that is recognized by the mailserver used on your host - many mailservers reject messages that have unknown From-addresses.'); +@define('CATEGORIES_PARENT_BASE', 'Only show categories below...'); +@define('CATEGORIES_PARENT_BASE_DESC', 'You can choose a parent category so that only the child categories are shown.'); +@define('CATEGORIES_HIDE_PARALLEL', 'Hide categories that are not part of the category tree'); +@define('CATEGORIES_HIDE_PARALLEL_DESC', 'If you want to hide categories that are part of a different category tree, you need to enable this. This feature makes most sense if used in conjunction with a multi-blog using the "Properties/Tempaltes of categories" plugin.'); \ No newline at end of file diff --git a/lang/serendipity_lang_fa.inc.php b/lang/serendipity_lang_fa.inc.php index ea1bdc8..9a47356 100644 --- a/lang/serendipity_lang_fa.inc.php +++ b/lang/serendipity_lang_fa.inc.php @@ -763,3 +763,7 @@ @define('PERMISSION_ADMINTEMPLATES', 'adminTemplates: Administrate templates'); @define('INSTALL_BLOG_EMAIL', 'Blog\'s E-Mail address'); @define('INSTALL_BLOG_EMAIL_DESC', 'This configures the E-Mail address that is used as the "From"-Part of outgoing mails. Be sure to set this to an address that is recognized by the mailserver used on your host - many mailservers reject messages that have unknown From-addresses.'); +@define('CATEGORIES_PARENT_BASE', 'Only show categories below...'); +@define('CATEGORIES_PARENT_BASE_DESC', 'You can choose a parent category so that only the child categories are shown.'); +@define('CATEGORIES_HIDE_PARALLEL', 'Hide categories that are not part of the category tree'); +@define('CATEGORIES_HIDE_PARALLEL_DESC', 'If you want to hide categories that are part of a different category tree, you need to enable this. This feature makes most sense if used in conjunction with a multi-blog using the "Properties/Tempaltes of categories" plugin.'); \ No newline at end of file diff --git a/lang/serendipity_lang_fi.inc.php b/lang/serendipity_lang_fi.inc.php index 9dca7fb..129bcdf 100644 --- a/lang/serendipity_lang_fi.inc.php +++ b/lang/serendipity_lang_fi.inc.php @@ -761,3 +761,7 @@ @define('PERMISSION_ADMINTEMPLATES', 'adminTemplates: Administrate templates'); @define('INSTALL_BLOG_EMAIL', 'Blog\'s E-Mail address'); @define('INSTALL_BLOG_EMAIL_DESC', 'This configures the E-Mail address that is used as the "From"-Part of outgoing mails. Be sure to set this to an address that is recognized by the mailserver used on your host - many mailservers reject messages that have unknown From-addresses.'); +@define('CATEGORIES_PARENT_BASE', 'Only show categories below...'); +@define('CATEGORIES_PARENT_BASE_DESC', 'You can choose a parent category so that only the child categories are shown.'); +@define('CATEGORIES_HIDE_PARALLEL', 'Hide categories that are not part of the category tree'); +@define('CATEGORIES_HIDE_PARALLEL_DESC', 'If you want to hide categories that are part of a different category tree, you need to enable this. This feature makes most sense if used in conjunction with a multi-blog using the "Properties/Tempaltes of categories" plugin.'); \ No newline at end of file diff --git a/lang/serendipity_lang_fr.inc.php b/lang/serendipity_lang_fr.inc.php index 7ee511c..23b0b95 100644 --- a/lang/serendipity_lang_fr.inc.php +++ b/lang/serendipity_lang_fr.inc.php @@ -768,3 +768,7 @@ @define('PERMISSION_ADMINTEMPLATES', 'adminTemplates: Administrate templates'); @define('INSTALL_BLOG_EMAIL', 'Blog\'s E-Mail address'); @define('INSTALL_BLOG_EMAIL_DESC', 'This configures the E-Mail address that is used as the "From"-Part of outgoing mails. Be sure to set this to an address that is recognized by the mailserver used on your host - many mailservers reject messages that have unknown From-addresses.'); +@define('CATEGORIES_PARENT_BASE', 'Only show categories below...'); +@define('CATEGORIES_PARENT_BASE_DESC', 'You can choose a parent category so that only the child categories are shown.'); +@define('CATEGORIES_HIDE_PARALLEL', 'Hide categories that are not part of the category tree'); +@define('CATEGORIES_HIDE_PARALLEL_DESC', 'If you want to hide categories that are part of a different category tree, you need to enable this. This feature makes most sense if used in conjunction with a multi-blog using the "Properties/Tempaltes of categories" plugin.'); \ No newline at end of file diff --git a/lang/serendipity_lang_hu.inc.php b/lang/serendipity_lang_hu.inc.php index 20093ca..df87c48 100644 --- a/lang/serendipity_lang_hu.inc.php +++ b/lang/serendipity_lang_hu.inc.php @@ -762,3 +762,7 @@ @define('PERMISSION_ADMINTEMPLATES', 'adminTemplates: Administrate templates'); @define('INSTALL_BLOG_EMAIL', 'Blog\'s E-Mail address'); @define('INSTALL_BLOG_EMAIL_DESC', 'This configures the E-Mail address that is used as the "From"-Part of outgoing mails. Be sure to set this to an address that is recognized by the mailserver used on your host - many mailservers reject messages that have unknown From-addresses.'); +@define('CATEGORIES_PARENT_BASE', 'Only show categories below...'); +@define('CATEGORIES_PARENT_BASE_DESC', 'You can choose a parent category so that only the child categories are shown.'); +@define('CATEGORIES_HIDE_PARALLEL', 'Hide categories that are not part of the category tree'); +@define('CATEGORIES_HIDE_PARALLEL_DESC', 'If you want to hide categories that are part of a different category tree, you need to enable this. This feature makes most sense if used in conjunction with a multi-blog using the "Properties/Tempaltes of categories" plugin.'); \ No newline at end of file diff --git a/lang/serendipity_lang_is.inc.php b/lang/serendipity_lang_is.inc.php index 2656033..0173496 100644 --- a/lang/serendipity_lang_is.inc.php +++ b/lang/serendipity_lang_is.inc.php @@ -761,3 +761,7 @@ @define('PERMISSION_ADMINTEMPLATES', 'adminTemplates: Administrate templates'); @define('INSTALL_BLOG_EMAIL', 'Blog\'s E-Mail address'); @define('INSTALL_BLOG_EMAIL_DESC', 'This configures the E-Mail address that is used as the "From"-Part of outgoing mails. Be sure to set this to an address that is recognized by the mailserver used on your host - many mailservers reject messages that have unknown From-addresses.'); +@define('CATEGORIES_PARENT_BASE', 'Only show categories below...'); +@define('CATEGORIES_PARENT_BASE_DESC', 'You can choose a parent category so that only the child categories are shown.'); +@define('CATEGORIES_HIDE_PARALLEL', 'Hide categories that are not part of the category tree'); +@define('CATEGORIES_HIDE_PARALLEL_DESC', 'If you want to hide categories that are part of a different category tree, you need to enable this. This feature makes most sense if used in conjunction with a multi-blog using the "Properties/Tempaltes of categories" plugin.'); \ No newline at end of file diff --git a/lang/serendipity_lang_it.inc.php b/lang/serendipity_lang_it.inc.php index ca3077a..e6f719c 100644 --- a/lang/serendipity_lang_it.inc.php +++ b/lang/serendipity_lang_it.inc.php @@ -763,3 +763,7 @@ @define('PERMISSION_ADMINTEMPLATES', 'adminTemplates: Administrate templates'); @define('INSTALL_BLOG_EMAIL', 'Blog\'s E-Mail address'); @define('INSTALL_BLOG_EMAIL_DESC', 'This configures the E-Mail address that is used as the "From"-Part of outgoing mails. Be sure to set this to an address that is recognized by the mailserver used on your host - many mailservers reject messages that have unknown From-addresses.'); +@define('CATEGORIES_PARENT_BASE', 'Only show categories below...'); +@define('CATEGORIES_PARENT_BASE_DESC', 'You can choose a parent category so that only the child categories are shown.'); +@define('CATEGORIES_HIDE_PARALLEL', 'Hide categories that are not part of the category tree'); +@define('CATEGORIES_HIDE_PARALLEL_DESC', 'If you want to hide categories that are part of a different category tree, you need to enable this. This feature makes most sense if used in conjunction with a multi-blog using the "Properties/Tempaltes of categories" plugin.'); \ No newline at end of file diff --git a/lang/serendipity_lang_ja.inc.php b/lang/serendipity_lang_ja.inc.php index 51e7f5a..1132b3a 100644 --- a/lang/serendipity_lang_ja.inc.php +++ b/lang/serendipity_lang_ja.inc.php @@ -763,3 +763,7 @@ Serendipity のアップグレードステージを無視しました。正し @define('PERMISSION_ADMINTEMPLATES', 'adminTemplates: Administrate templates'); @define('INSTALL_BLOG_EMAIL', 'Blog\'s E-Mail address'); @define('INSTALL_BLOG_EMAIL_DESC', 'This configures the E-Mail address that is used as the "From"-Part of outgoing mails. Be sure to set this to an address that is recognized by the mailserver used on your host - many mailservers reject messages that have unknown From-addresses.'); +@define('CATEGORIES_PARENT_BASE', 'Only show categories below...'); +@define('CATEGORIES_PARENT_BASE_DESC', 'You can choose a parent category so that only the child categories are shown.'); +@define('CATEGORIES_HIDE_PARALLEL', 'Hide categories that are not part of the category tree'); +@define('CATEGORIES_HIDE_PARALLEL_DESC', 'If you want to hide categories that are part of a different category tree, you need to enable this. This feature makes most sense if used in conjunction with a multi-blog using the "Properties/Tempaltes of categories" plugin.'); \ No newline at end of file diff --git a/lang/serendipity_lang_ko.inc.php b/lang/serendipity_lang_ko.inc.php index 7971881..666e52e 100644 --- a/lang/serendipity_lang_ko.inc.php +++ b/lang/serendipity_lang_ko.inc.php @@ -761,5 +761,10 @@ @define('PERMISSION_ADMINIMAGESSYNC', 'adminImagesSync: 작은 그림 동기화'); @define('PERMISSION_ADMINCOMMENTS', 'adminComments: 덧글 관리'); @define('PERMISSION_ADMINTEMPLATES', 'adminTemplates: 템플릿 관리'); +@define('CATEGORIES_PARENT_BASE', 'Only show categories below...'); +@define('CATEGORIES_PARENT_BASE_DESC', 'You can choose a parent category so that only the child categories are shown.'); +@define('CATEGORIES_HIDE_PARALLEL', 'Hide categories that are not part of the category tree'); +@define('CATEGORIES_HIDE_PARALLEL_DESC', 'If you want to hide categories that are part of a different category tree, you need to enable this. This feature makes most sense if used in conjunction with a multi-blog using the "Properties/Tempaltes of categories" plugin.'); @define('INSTALL_BLOG_EMAIL', '블로그의 전자우편 주소'); @define('INSTALL_BLOG_EMAIL_DESC', '발송하는 전자우편의 "보낸 사람" 부분에 나타날 전자우편 주소를 설정합니다. 호스트의 메일 서버에서 인식하는 주소로 반드시 설정하십시오. 상당수의 메일 서버는 보낸 사람 주소를 알 수 없는 전자우편을 거부합니다.'); + diff --git a/lang/serendipity_lang_nl.inc.php b/lang/serendipity_lang_nl.inc.php index fb1329e..35ce9d6 100644 --- a/lang/serendipity_lang_nl.inc.php +++ b/lang/serendipity_lang_nl.inc.php @@ -765,3 +765,7 @@ @define('PERMISSION_ADMINTEMPLATES', 'adminTemplates: Administrate templates'); @define('INSTALL_BLOG_EMAIL', 'Blog\'s E-Mail address'); @define('INSTALL_BLOG_EMAIL_DESC', 'This configures the E-Mail address that is used as the "From"-Part of outgoing mails. Be sure to set this to an address that is recognized by the mailserver used on your host - many mailservers reject messages that have unknown From-addresses.'); +@define('CATEGORIES_PARENT_BASE', 'Only show categories below...'); +@define('CATEGORIES_PARENT_BASE_DESC', 'You can choose a parent category so that only the child categories are shown.'); +@define('CATEGORIES_HIDE_PARALLEL', 'Hide categories that are not part of the category tree'); +@define('CATEGORIES_HIDE_PARALLEL_DESC', 'If you want to hide categories that are part of a different category tree, you need to enable this. This feature makes most sense if used in conjunction with a multi-blog using the "Properties/Tempaltes of categories" plugin.'); \ No newline at end of file diff --git a/lang/serendipity_lang_no.inc.php b/lang/serendipity_lang_no.inc.php index 70a52fb..ab4d042 100644 --- a/lang/serendipity_lang_no.inc.php +++ b/lang/serendipity_lang_no.inc.php @@ -764,3 +764,7 @@ @define('PERMISSION_ADMINTEMPLATES', 'adminTemplates: Administrate templates'); @define('INSTALL_BLOG_EMAIL', 'Blog\'s E-Mail address'); @define('INSTALL_BLOG_EMAIL_DESC', 'This configures the E-Mail address that is used as the "From"-Part of outgoing mails. Be sure to set this to an address that is recognized by the mailserver used on your host - many mailservers reject messages that have unknown From-addresses.'); +@define('CATEGORIES_PARENT_BASE', 'Only show categories below...'); +@define('CATEGORIES_PARENT_BASE_DESC', 'You can choose a parent category so that only the child categories are shown.'); +@define('CATEGORIES_HIDE_PARALLEL', 'Hide categories that are not part of the category tree'); +@define('CATEGORIES_HIDE_PARALLEL_DESC', 'If you want to hide categories that are part of a different category tree, you need to enable this. This feature makes most sense if used in conjunction with a multi-blog using the "Properties/Tempaltes of categories" plugin.'); \ No newline at end of file diff --git a/lang/serendipity_lang_pt.inc.php b/lang/serendipity_lang_pt.inc.php index 121a44a..a7bb0d6 100644 --- a/lang/serendipity_lang_pt.inc.php +++ b/lang/serendipity_lang_pt.inc.php @@ -764,3 +764,7 @@ @define('PERMISSION_ADMINTEMPLATES', 'adminTemplates: Administrate templates'); @define('INSTALL_BLOG_EMAIL', 'Blog\'s E-Mail address'); @define('INSTALL_BLOG_EMAIL_DESC', 'This configures the E-Mail address that is used as the "From"-Part of outgoing mails. Be sure to set this to an address that is recognized by the mailserver used on your host - many mailservers reject messages that have unknown From-addresses.'); +@define('CATEGORIES_PARENT_BASE', 'Only show categories below...'); +@define('CATEGORIES_PARENT_BASE_DESC', 'You can choose a parent category so that only the child categories are shown.'); +@define('CATEGORIES_HIDE_PARALLEL', 'Hide categories that are not part of the category tree'); +@define('CATEGORIES_HIDE_PARALLEL_DESC', 'If you want to hide categories that are part of a different category tree, you need to enable this. This feature makes most sense if used in conjunction with a multi-blog using the "Properties/Tempaltes of categories" plugin.'); \ No newline at end of file diff --git a/lang/serendipity_lang_pt_PT.inc.php b/lang/serendipity_lang_pt_PT.inc.php index 55ab361..eb62820 100644 --- a/lang/serendipity_lang_pt_PT.inc.php +++ b/lang/serendipity_lang_pt_PT.inc.php @@ -765,3 +765,7 @@ @define('PERMISSION_ADMINTEMPLATES', 'adminTemplates: Administrate templates'); @define('INSTALL_BLOG_EMAIL', 'Blog\'s E-Mail address'); @define('INSTALL_BLOG_EMAIL_DESC', 'This configures the E-Mail address that is used as the "From"-Part of outgoing mails. Be sure to set this to an address that is recognized by the mailserver used on your host - many mailservers reject messages that have unknown From-addresses.'); +@define('CATEGORIES_PARENT_BASE', 'Only show categories below...'); +@define('CATEGORIES_PARENT_BASE_DESC', 'You can choose a parent category so that only the child categories are shown.'); +@define('CATEGORIES_HIDE_PARALLEL', 'Hide categories that are not part of the category tree'); +@define('CATEGORIES_HIDE_PARALLEL_DESC', 'If you want to hide categories that are part of a different category tree, you need to enable this. This feature makes most sense if used in conjunction with a multi-blog using the "Properties/Tempaltes of categories" plugin.'); \ No newline at end of file diff --git a/lang/serendipity_lang_ro.inc.php b/lang/serendipity_lang_ro.inc.php index df59a00..88cc877 100644 --- a/lang/serendipity_lang_ro.inc.php +++ b/lang/serendipity_lang_ro.inc.php @@ -761,3 +761,7 @@ @define('PERMISSION_ADMINTEMPLATES', 'adminTemplates: Administrate templates'); @define('INSTALL_BLOG_EMAIL', 'Blog\'s E-Mail address'); @define('INSTALL_BLOG_EMAIL_DESC', 'This configures the E-Mail address that is used as the "From"-Part of outgoing mails. Be sure to set this to an address that is recognized by the mailserver used on your host - many mailservers reject messages that have unknown From-addresses.'); +@define('CATEGORIES_PARENT_BASE', 'Only show categories below...'); +@define('CATEGORIES_PARENT_BASE_DESC', 'You can choose a parent category so that only the child categories are shown.'); +@define('CATEGORIES_HIDE_PARALLEL', 'Hide categories that are not part of the category tree'); +@define('CATEGORIES_HIDE_PARALLEL_DESC', 'If you want to hide categories that are part of a different category tree, you need to enable this. This feature makes most sense if used in conjunction with a multi-blog using the "Properties/Tempaltes of categories" plugin.'); \ No newline at end of file diff --git a/lang/serendipity_lang_ru.inc.php b/lang/serendipity_lang_ru.inc.php index 65527e6..032e06f 100644 --- a/lang/serendipity_lang_ru.inc.php +++ b/lang/serendipity_lang_ru.inc.php @@ -765,3 +765,7 @@ $i18n_filename_to = array('_', 'a', 'A', 'b', 'B', 'v', 'V', 'g', 'G', 'd', 'D @define('PERMISSION_ADMINTEMPLATES', 'adminTemplates: Administrate templates'); @define('INSTALL_BLOG_EMAIL', 'Blog\'s E-Mail address'); @define('INSTALL_BLOG_EMAIL_DESC', 'This configures the E-Mail address that is used as the "From"-Part of outgoing mails. Be sure to set this to an address that is recognized by the mailserver used on your host - many mailservers reject messages that have unknown From-addresses.'); +@define('CATEGORIES_PARENT_BASE', 'Only show categories below...'); +@define('CATEGORIES_PARENT_BASE_DESC', 'You can choose a parent category so that only the child categories are shown.'); +@define('CATEGORIES_HIDE_PARALLEL', 'Hide categories that are not part of the category tree'); +@define('CATEGORIES_HIDE_PARALLEL_DESC', 'If you want to hide categories that are part of a different category tree, you need to enable this. This feature makes most sense if used in conjunction with a multi-blog using the "Properties/Tempaltes of categories" plugin.'); \ No newline at end of file diff --git a/lang/serendipity_lang_se.inc.php b/lang/serendipity_lang_se.inc.php index cd2a563..1f204ae 100644 --- a/lang/serendipity_lang_se.inc.php +++ b/lang/serendipity_lang_se.inc.php @@ -763,3 +763,7 @@ @define('PERMISSION_ADMINTEMPLATES', 'adminTemplates: Administrate templates'); @define('INSTALL_BLOG_EMAIL', 'Blog\'s E-Mail address'); @define('INSTALL_BLOG_EMAIL_DESC', 'This configures the E-Mail address that is used as the "From"-Part of outgoing mails. Be sure to set this to an address that is recognized by the mailserver used on your host - many mailservers reject messages that have unknown From-addresses.'); +@define('CATEGORIES_PARENT_BASE', 'Only show categories below...'); +@define('CATEGORIES_PARENT_BASE_DESC', 'You can choose a parent category so that only the child categories are shown.'); +@define('CATEGORIES_HIDE_PARALLEL', 'Hide categories that are not part of the category tree'); +@define('CATEGORIES_HIDE_PARALLEL_DESC', 'If you want to hide categories that are part of a different category tree, you need to enable this. This feature makes most sense if used in conjunction with a multi-blog using the "Properties/Tempaltes of categories" plugin.'); \ No newline at end of file diff --git a/lang/serendipity_lang_tn.inc.php b/lang/serendipity_lang_tn.inc.php index d2b9c62..97a1d5b 100644 --- a/lang/serendipity_lang_tn.inc.php +++ b/lang/serendipity_lang_tn.inc.php @@ -764,3 +764,7 @@ @define('PERMISSION_ADMINTEMPLATES', 'adminTemplates: Administrate templates'); @define('INSTALL_BLOG_EMAIL', 'Blog\'s E-Mail address'); @define('INSTALL_BLOG_EMAIL_DESC', 'This configures the E-Mail address that is used as the "From"-Part of outgoing mails. Be sure to set this to an address that is recognized by the mailserver used on your host - many mailservers reject messages that have unknown From-addresses.'); +@define('CATEGORIES_PARENT_BASE', 'Only show categories below...'); +@define('CATEGORIES_PARENT_BASE_DESC', 'You can choose a parent category so that only the child categories are shown.'); +@define('CATEGORIES_HIDE_PARALLEL', 'Hide categories that are not part of the category tree'); +@define('CATEGORIES_HIDE_PARALLEL_DESC', 'If you want to hide categories that are part of a different category tree, you need to enable this. This feature makes most sense if used in conjunction with a multi-blog using the "Properties/Tempaltes of categories" plugin.'); \ No newline at end of file diff --git a/lang/serendipity_lang_tw.inc.php b/lang/serendipity_lang_tw.inc.php index bf7f046..d638162 100644 --- a/lang/serendipity_lang_tw.inc.php +++ b/lang/serendipity_lang_tw.inc.php @@ -764,3 +764,7 @@ @define('PERMISSION_ADMINTEMPLATES', 'adminTemplates: Administrate templates'); @define('INSTALL_BLOG_EMAIL', 'Blog\'s E-Mail address'); @define('INSTALL_BLOG_EMAIL_DESC', 'This configures the E-Mail address that is used as the "From"-Part of outgoing mails. Be sure to set this to an address that is recognized by the mailserver used on your host - many mailservers reject messages that have unknown From-addresses.'); +@define('CATEGORIES_PARENT_BASE', 'Only show categories below...'); +@define('CATEGORIES_PARENT_BASE_DESC', 'You can choose a parent category so that only the child categories are shown.'); +@define('CATEGORIES_HIDE_PARALLEL', 'Hide categories that are not part of the category tree'); +@define('CATEGORIES_HIDE_PARALLEL_DESC', 'If you want to hide categories that are part of a different category tree, you need to enable this. This feature makes most sense if used in conjunction with a multi-blog using the "Properties/Tempaltes of categories" plugin.'); \ No newline at end of file diff --git a/lang/serendipity_lang_zh.inc.php b/lang/serendipity_lang_zh.inc.php index feddecd..6677a64 100644 --- a/lang/serendipity_lang_zh.inc.php +++ b/lang/serendipity_lang_zh.inc.php @@ -762,3 +762,7 @@ @define('PERMISSION_ADMINTEMPLATES', 'adminTemplates: Administrate templates'); @define('INSTALL_BLOG_EMAIL', 'Blog\'s E-Mail address'); @define('INSTALL_BLOG_EMAIL_DESC', 'This configures the E-Mail address that is used as the "From"-Part of outgoing mails. Be sure to set this to an address that is recognized by the mailserver used on your host - many mailservers reject messages that have unknown From-addresses.'); +@define('CATEGORIES_PARENT_BASE', 'Only show categories below...'); +@define('CATEGORIES_PARENT_BASE_DESC', 'You can choose a parent category so that only the child categories are shown.'); +@define('CATEGORIES_HIDE_PARALLEL', 'Hide categories that are not part of the category tree'); +@define('CATEGORIES_HIDE_PARALLEL_DESC', 'If you want to hide categories that are part of a different category tree, you need to enable this. This feature makes most sense if used in conjunction with a multi-blog using the "Properties/Tempaltes of categories" plugin.'); \ No newline at end of file