Index: trunk/extensions/CategoryBrowser/CategoryBrowser_i18n.php |
— | — | @@ -1,145 +0,0 @@ |
2 | | -<?php |
3 | | -/** |
4 | | - * ***** BEGIN LICENSE BLOCK ***** |
5 | | - * This file is part of CategoryBrowser. |
6 | | - * |
7 | | - * CategoryBrowser is free software; you can redistribute it and/or modify |
8 | | - * it under the terms of the GNU General Public License as published by |
9 | | - * the Free Software Foundation; either version 2 of the License, or |
10 | | - * (at your option) any later version. |
11 | | - * |
12 | | - * CategoryBrowser is distributed in the hope that it will be useful, |
13 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
14 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
15 | | - * GNU General Public License for more details. |
16 | | - * |
17 | | - * You should have received a copy of the GNU General Public License |
18 | | - * along with CategoryBrowser; if not, write to the Free Software |
19 | | - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
20 | | - * |
21 | | - * ***** END LICENSE BLOCK ***** |
22 | | - * |
23 | | - * CategoryBrowser is an AJAX-enabled category filter and browser for MediaWiki. |
24 | | - * |
25 | | - * To activate this extension : |
26 | | - * * Create a new directory named CategoryBrowser into the directory "extensions" of MediaWiki. |
27 | | - * * Place the files from the extension archive there. |
28 | | - * * Add this line at the end of your LocalSettings.php file : |
29 | | - * require_once "$IP/extensions/CategoryBrowser/CategoryBrowser.php"; |
30 | | - * |
31 | | - * @version 0.3.1 |
32 | | - * @link http://www.mediawiki.org/wiki/Extension:CategoryBrowser |
33 | | - * @author Dmitriy Sintsov <questpc@rambler.ru> |
34 | | - * @addtogroup Extensions |
35 | | - */ |
36 | | - |
37 | | -/** |
38 | | - * Messages list. |
39 | | - */ |
40 | | - |
41 | | -$messages = array(); |
42 | | - |
43 | | -/** English (English) |
44 | | - * @author QuestPC |
45 | | - */ |
46 | | -$messages['en'] = array( |
47 | | - 'categorybrowser' => 'Category browser', |
48 | | - 'categorybrowser-desc' => 'Provides a [[Special:CategoryBrowser|special page]] to filter out most populated categories and to navigate them using an AJAX interface', |
49 | | - 'cb_requires_javascript' => 'The Category Browser extension requires JavaScript to be enabled in the browser.', |
50 | | - 'cb_ie6_warning' => 'The condition editor does not work in Internet Explorer 6.0 or earlier versions. |
51 | | -However, browsing of pre-defined conditions should work normally. |
52 | | -Please change or upgrade your browser, if possible.', |
53 | | - 'cb_show_no_parents_only' => 'Show only categories which has no parents', |
54 | | - 'cb_cat_name_filter' => 'Search for category by name:', |
55 | | - 'cb_cat_name_filter_clear' => 'Press to clear category name filter', |
56 | | - 'cb_cat_name_filter_ci' => 'Case insensitive', |
57 | | - 'cb_copy_line_hint' => 'Use the [+] and [>+] buttons to copy and paste operators into the selected expression', |
58 | | - 'cb_has_subcategories' => '$1 {{PLURAL:$1|subcategory|subcategories}}', |
59 | | - 'cb_has_pages' => '$1 {{PLURAL:$1|page|pages}}', |
60 | | - 'cb_has_files' => '$1 {{PLURAL:$1|file|files}}', |
61 | | - 'cb_has_parentcategories' => 'parent categories (if any)', |
62 | | - 'cb_previous_items_link' => 'Previous', |
63 | | - 'cb_previous_items_stats' => ' ($1 - $2)', |
64 | | - 'cb_previous_items_line' => '$1 $2', |
65 | | - 'cb_next_items_link' => 'Next', |
66 | | - 'cb_next_items_stats' => ' (from $1)', |
67 | | - 'cb_next_items_line' => '$1 $2', |
68 | | - 'cb_cat_subcats' => 'subcategories', |
69 | | - 'cb_cat_pages' => 'pages', |
70 | | - 'cb_cat_files' => 'files', |
71 | | - 'cb_apply_button' => 'Apply', |
72 | | - 'cb_op1_template' => '$1[$2]', |
73 | | - 'cb_op2_template' => '$1 $2 $3', |
74 | | - 'cb_all_op' => 'All', |
75 | | - 'cb_lbracket_op' => '(', |
76 | | - 'cb_rbracket_op' => ')', |
77 | | - 'cb_or_op' => 'or', |
78 | | - 'cb_and_op' => 'and', |
79 | | - 'cb_ge_op' => '>=', |
80 | | - 'cb_le_op' => '<=', |
81 | | - 'cb_eq_op' => '=', |
82 | | - 'cb_edit_left_hint' => 'Move left, if possible', |
83 | | - 'cb_edit_right_hint' => 'Move right, if possible', |
84 | | - 'cb_edit_remove_hint' => 'Delete, if possible', |
85 | | - 'cb_edit_copy_hint' => 'Copy operator to clipboard', |
86 | | - 'cb_edit_append_hint' => 'Insert operator to last position', |
87 | | - 'cb_edit_clear_hint' => 'Clear current expression (select all)', |
88 | | - 'cb_edit_paste_hint' => 'Paste operator into current position, if possible', |
89 | | - 'cb_edit_paste_right_hint' => 'Paste operator into next position, if possible', |
90 | | -); |
91 | | - |
92 | | -/** Message documentation (Message documentation) |
93 | | - * @author QuestPC |
94 | | - */ |
95 | | -$messages['qqq'] = array( |
96 | | - 'cb_cat_name_filter_ci' => 'Dialog string for case insensitive category name search.', |
97 | | - 'cb_op1_template' => 'One operand operation visualisation template. Argument 1 is an operator name. Argument 2 is operation\'s parameter.', |
98 | | - 'cb_op2_template' => 'Two operands operation visualisation template. Argument 1 is first parameter. Argument 2 is operator name. Argument 3 is second parameter.', |
99 | | - 'cb_all_op' => 'Operator to select all categories available.', |
100 | | - 'cb_lbracket_op' => 'Opening bracket, allows to change execution order.', |
101 | | - 'cb_rbracket_op' => 'Closing bracket, allows to change execution order.', |
102 | | - 'cb_or_op' => 'Name of logical "or" operator in your language. Short (mathematical) form is preferred.', |
103 | | - 'cb_and_op' => 'Name of logical "and" operator in your language. Short (mathematical) form is preferred.', |
104 | | - 'cb_ge_op' => 'Name of comparsion operator "greater or equal" in your language. Short (mathematical) form is preferred.', |
105 | | - 'cb_le_op' => 'Name of comparsion operator "less or equal" in your language. Short (mathematical) form is preferred.', |
106 | | - 'cb_eq_op' => 'Name of comparsion operator "equal" in your language. Short (mathematical) form is preferred.', |
107 | | -); |
108 | | - |
109 | | -/** Russian (Русский) |
110 | | - * @author QuestPC |
111 | | - */ |
112 | | -$messages['ru'] = array( |
113 | | - 'categorybrowser' => 'Просмотр категорий', |
114 | | - 'categorybrowser-desc' => 'Предоставляет специальную страницу [[Служебная:CategoryBrowser]] для выбора наиболее ёмких категорий вики сайта с целью последующей навигации с использованием AJAX-интерфейса', |
115 | | - 'cb_requires_javascript' => 'Расширение для просмотра категорий требует включения поддержки Javascript в браузере', |
116 | | - 'cb_ie6_warning' => 'Редактор выражений не поддерживается в Internet Explorer версии 6.0 или более ранних. |
117 | | -Возможен лишь просмотр предопределенных выражений. |
118 | | -Пожалуйста поменяйте или обновите ваш браузер.', |
119 | | - 'cb_show_no_parents_only' => 'Показывать только категории без родителей', |
120 | | - 'cb_cat_name_filter' => 'Поиск категории по имени:', |
121 | | - 'cb_cat_name_filter_clear' => 'Нажмите здесь для очистки поля поиска категории по имени', |
122 | | - 'cb_cat_name_filter_ci' => 'Без учёта регистра', |
123 | | - 'cb_copy_line_hint' => 'Используйте кнопки [+] и [>+] для копирования оператора в выбранное выражение', |
124 | | - 'cb_has_subcategories' => '$1 {{PLURAL:$1|подкатегория|подкатегории|подкатегорий}}', |
125 | | - 'cb_has_pages' => '$1 {{PLURAL:$1|страница|страницы|страниц}}', |
126 | | - 'cb_has_files' => '$1 {{PLURAL:$1|файл|файла|файлов}}', |
127 | | - 'cb_has_parentcategories' => 'родительские категории (если есть)', |
128 | | - 'cb_previous_items_link' => 'Предыдущие', |
129 | | - 'cb_next_items_link' => 'Следующие', |
130 | | - 'cb_next_items_stats' => ' (начиная с $1)', |
131 | | - 'cb_cat_subcats' => 'подкатегорий', |
132 | | - 'cb_cat_pages' => 'страниц', |
133 | | - 'cb_cat_files' => 'файлов', |
134 | | - 'cb_apply_button' => 'Применить', |
135 | | - 'cb_all_op' => 'Все', |
136 | | - 'cb_or_op' => 'или', |
137 | | - 'cb_and_op' => 'и', |
138 | | - 'cb_edit_left_hint' => 'Переместить влево, если возможно', |
139 | | - 'cb_edit_right_hint' => 'Переместить вправо, если возможно', |
140 | | - 'cb_edit_remove_hint' => 'Удалить, если возможно', |
141 | | - 'cb_edit_copy_hint' => 'Скопировать оператор в буфер обмена', |
142 | | - 'cb_edit_append_hint' => 'Вставить оператор в последнюю позицию', |
143 | | - 'cb_edit_clear_hint' => 'Очистить текущее выражение (выбрать всё)', |
144 | | - 'cb_edit_paste_hint' => 'Вставить оператор в текущую позицию, если возможно', |
145 | | - 'cb_edit_paste_right_hint' => 'Вставить оператор в следующую позицию, если возможно', |
146 | | -); |
Index: trunk/extensions/CategoryBrowser/CategoryBrowser.i18n.php |
— | — | @@ -0,0 +1,145 @@ |
| 2 | +<?php |
| 3 | +/** |
| 4 | + * ***** BEGIN LICENSE BLOCK ***** |
| 5 | + * This file is part of CategoryBrowser. |
| 6 | + * |
| 7 | + * CategoryBrowser is free software; you can redistribute it and/or modify |
| 8 | + * it under the terms of the GNU General Public License as published by |
| 9 | + * the Free Software Foundation; either version 2 of the License, or |
| 10 | + * (at your option) any later version. |
| 11 | + * |
| 12 | + * CategoryBrowser is distributed in the hope that it will be useful, |
| 13 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 15 | + * GNU General Public License for more details. |
| 16 | + * |
| 17 | + * You should have received a copy of the GNU General Public License |
| 18 | + * along with CategoryBrowser; if not, write to the Free Software |
| 19 | + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
| 20 | + * |
| 21 | + * ***** END LICENSE BLOCK ***** |
| 22 | + * |
| 23 | + * CategoryBrowser is an AJAX-enabled category filter and browser for MediaWiki. |
| 24 | + * |
| 25 | + * To activate this extension : |
| 26 | + * * Create a new directory named CategoryBrowser into the directory "extensions" of MediaWiki. |
| 27 | + * * Place the files from the extension archive there. |
| 28 | + * * Add this line at the end of your LocalSettings.php file : |
| 29 | + * require_once "$IP/extensions/CategoryBrowser/CategoryBrowser.php"; |
| 30 | + * |
| 31 | + * @version 0.3.1 |
| 32 | + * @link http://www.mediawiki.org/wiki/Extension:CategoryBrowser |
| 33 | + * @author Dmitriy Sintsov <questpc@rambler.ru> |
| 34 | + * @addtogroup Extensions |
| 35 | + */ |
| 36 | + |
| 37 | +/** |
| 38 | + * Messages list. |
| 39 | + */ |
| 40 | + |
| 41 | +$messages = array(); |
| 42 | + |
| 43 | +/** English (English) |
| 44 | + * @author QuestPC |
| 45 | + */ |
| 46 | +$messages['en'] = array( |
| 47 | + 'categorybrowser' => 'Category browser', |
| 48 | + 'categorybrowser-desc' => 'Provides a [[Special:CategoryBrowser|special page]] to filter out most populated categories and to navigate them using an AJAX interface', |
| 49 | + 'cb_requires_javascript' => 'The Category Browser extension requires JavaScript to be enabled in the browser.', |
| 50 | + 'cb_ie6_warning' => 'The condition editor does not work in Internet Explorer 6.0 or earlier versions. |
| 51 | +However, browsing of pre-defined conditions should work normally. |
| 52 | +Please change or upgrade your browser, if possible.', |
| 53 | + 'cb_show_no_parents_only' => 'Show only categories which has no parents', |
| 54 | + 'cb_cat_name_filter' => 'Search for category by name:', |
| 55 | + 'cb_cat_name_filter_clear' => 'Press to clear category name filter', |
| 56 | + 'cb_cat_name_filter_ci' => 'Case insensitive', |
| 57 | + 'cb_copy_line_hint' => 'Use the [+] and [>+] buttons to copy and paste operators into the selected expression', |
| 58 | + 'cb_has_subcategories' => '$1 {{PLURAL:$1|subcategory|subcategories}}', |
| 59 | + 'cb_has_pages' => '$1 {{PLURAL:$1|page|pages}}', |
| 60 | + 'cb_has_files' => '$1 {{PLURAL:$1|file|files}}', |
| 61 | + 'cb_has_parentcategories' => 'parent categories (if any)', |
| 62 | + 'cb_previous_items_link' => 'Previous', |
| 63 | + 'cb_previous_items_stats' => ' ($1 - $2)', |
| 64 | + 'cb_previous_items_line' => '$1 $2', |
| 65 | + 'cb_next_items_link' => 'Next', |
| 66 | + 'cb_next_items_stats' => ' (from $1)', |
| 67 | + 'cb_next_items_line' => '$1 $2', |
| 68 | + 'cb_cat_subcats' => 'subcategories', |
| 69 | + 'cb_cat_pages' => 'pages', |
| 70 | + 'cb_cat_files' => 'files', |
| 71 | + 'cb_apply_button' => 'Apply', |
| 72 | + 'cb_op1_template' => '$1[$2]', |
| 73 | + 'cb_op2_template' => '$1 $2 $3', |
| 74 | + 'cb_all_op' => 'All', |
| 75 | + 'cb_lbracket_op' => '(', |
| 76 | + 'cb_rbracket_op' => ')', |
| 77 | + 'cb_or_op' => 'or', |
| 78 | + 'cb_and_op' => 'and', |
| 79 | + 'cb_ge_op' => '>=', |
| 80 | + 'cb_le_op' => '<=', |
| 81 | + 'cb_eq_op' => '=', |
| 82 | + 'cb_edit_left_hint' => 'Move left, if possible', |
| 83 | + 'cb_edit_right_hint' => 'Move right, if possible', |
| 84 | + 'cb_edit_remove_hint' => 'Delete, if possible', |
| 85 | + 'cb_edit_copy_hint' => 'Copy operator to clipboard', |
| 86 | + 'cb_edit_append_hint' => 'Insert operator to last position', |
| 87 | + 'cb_edit_clear_hint' => 'Clear current expression (select all)', |
| 88 | + 'cb_edit_paste_hint' => 'Paste operator into current position, if possible', |
| 89 | + 'cb_edit_paste_right_hint' => 'Paste operator into next position, if possible', |
| 90 | +); |
| 91 | + |
| 92 | +/** Message documentation (Message documentation) |
| 93 | + * @author QuestPC |
| 94 | + */ |
| 95 | +$messages['qqq'] = array( |
| 96 | + 'cb_cat_name_filter_ci' => 'Dialog string for case insensitive category name search.', |
| 97 | + 'cb_op1_template' => 'One operand operation visualisation template. Argument 1 is an operator name. Argument 2 is operation\'s parameter.', |
| 98 | + 'cb_op2_template' => 'Two operands operation visualisation template. Argument 1 is first parameter. Argument 2 is operator name. Argument 3 is second parameter.', |
| 99 | + 'cb_all_op' => 'Operator to select all categories available.', |
| 100 | + 'cb_lbracket_op' => 'Opening bracket, allows to change execution order.', |
| 101 | + 'cb_rbracket_op' => 'Closing bracket, allows to change execution order.', |
| 102 | + 'cb_or_op' => 'Name of logical "or" operator in your language. Short (mathematical) form is preferred.', |
| 103 | + 'cb_and_op' => 'Name of logical "and" operator in your language. Short (mathematical) form is preferred.', |
| 104 | + 'cb_ge_op' => 'Name of comparsion operator "greater or equal" in your language. Short (mathematical) form is preferred.', |
| 105 | + 'cb_le_op' => 'Name of comparsion operator "less or equal" in your language. Short (mathematical) form is preferred.', |
| 106 | + 'cb_eq_op' => 'Name of comparsion operator "equal" in your language. Short (mathematical) form is preferred.', |
| 107 | +); |
| 108 | + |
| 109 | +/** Russian (Русский) |
| 110 | + * @author QuestPC |
| 111 | + */ |
| 112 | +$messages['ru'] = array( |
| 113 | + 'categorybrowser' => 'Просмотр категорий', |
| 114 | + 'categorybrowser-desc' => 'Предоставляет специальную страницу [[Служебная:CategoryBrowser]] для выбора наиболее ёмких категорий вики сайта с целью последующей навигации с использованием AJAX-интерфейса', |
| 115 | + 'cb_requires_javascript' => 'Расширение для просмотра категорий требует включения поддержки Javascript в браузере', |
| 116 | + 'cb_ie6_warning' => 'Редактор выражений не поддерживается в Internet Explorer версии 6.0 или более ранних. |
| 117 | +Возможен лишь просмотр предопределенных выражений. |
| 118 | +Пожалуйста поменяйте или обновите ваш браузер.', |
| 119 | + 'cb_show_no_parents_only' => 'Показывать только категории без родителей', |
| 120 | + 'cb_cat_name_filter' => 'Поиск категории по имени:', |
| 121 | + 'cb_cat_name_filter_clear' => 'Нажмите здесь для очистки поля поиска категории по имени', |
| 122 | + 'cb_cat_name_filter_ci' => 'Без учёта регистра', |
| 123 | + 'cb_copy_line_hint' => 'Используйте кнопки [+] и [>+] для копирования оператора в выбранное выражение', |
| 124 | + 'cb_has_subcategories' => '$1 {{PLURAL:$1|подкатегория|подкатегории|подкатегорий}}', |
| 125 | + 'cb_has_pages' => '$1 {{PLURAL:$1|страница|страницы|страниц}}', |
| 126 | + 'cb_has_files' => '$1 {{PLURAL:$1|файл|файла|файлов}}', |
| 127 | + 'cb_has_parentcategories' => 'родительские категории (если есть)', |
| 128 | + 'cb_previous_items_link' => 'Предыдущие', |
| 129 | + 'cb_next_items_link' => 'Следующие', |
| 130 | + 'cb_next_items_stats' => ' (начиная с $1)', |
| 131 | + 'cb_cat_subcats' => 'подкатегорий', |
| 132 | + 'cb_cat_pages' => 'страниц', |
| 133 | + 'cb_cat_files' => 'файлов', |
| 134 | + 'cb_apply_button' => 'Применить', |
| 135 | + 'cb_all_op' => 'Все', |
| 136 | + 'cb_or_op' => 'или', |
| 137 | + 'cb_and_op' => 'и', |
| 138 | + 'cb_edit_left_hint' => 'Переместить влево, если возможно', |
| 139 | + 'cb_edit_right_hint' => 'Переместить вправо, если возможно', |
| 140 | + 'cb_edit_remove_hint' => 'Удалить, если возможно', |
| 141 | + 'cb_edit_copy_hint' => 'Скопировать оператор в буфер обмена', |
| 142 | + 'cb_edit_append_hint' => 'Вставить оператор в последнюю позицию', |
| 143 | + 'cb_edit_clear_hint' => 'Очистить текущее выражение (выбрать всё)', |
| 144 | + 'cb_edit_paste_hint' => 'Вставить оператор в текущую позицию, если возможно', |
| 145 | + 'cb_edit_paste_right_hint' => 'Вставить оператор в следующую позицию, если возможно', |
| 146 | +); |
Property changes on: trunk/extensions/CategoryBrowser/CategoryBrowser.i18n.php |
___________________________________________________________________ |
Added: svn:eol-style |
1 | 147 | + native |
Index: trunk/extensions/CategoryBrowser/CategoryBrowser.php |
— | — | @@ -92,7 +92,7 @@ |
93 | 93 | self::$ExtDir = str_replace( "\\", "/", dirname( __FILE__ ) ); |
94 | 94 | $top_dir = array_pop( explode( '/', self::$ExtDir ) ); |
95 | 95 | self::$ScriptPath = $wgScriptPath . '/extensions' . ( ( $top_dir == 'extensions' ) ? '' : '/' . $top_dir ); |
96 | | - $wgExtensionMessagesFiles['CategoryBrowser'] = self::$ExtDir . '/CategoryBrowser_i18n.php'; |
| 96 | + $wgExtensionMessagesFiles['CategoryBrowser'] = self::$ExtDir . '/CategoryBrowser.i18n.php'; |
97 | 97 | |
98 | 98 | // do not forget to autoload all the required classes (for AJAX to work correctly) |
99 | 99 | $wgAutoloadClasses['CB_XML'] = |
— | — | @@ -112,6 +112,7 @@ |
113 | 113 | $wgAutoloadClasses['CategoryBrowserPage'] = self::$ExtDir . '/CategoryBrowserPage.php'; |
114 | 114 | |
115 | 115 | $wgExtensionCredits['specialpage'][] = array( |
| 116 | + 'path' => __FILE__, |
116 | 117 | 'name' => 'CategoryBrowser', |
117 | 118 | 'author' => 'QuestPC', |
118 | 119 | 'url' => 'http://www.mediawiki.org/wiki/Extension:CategoryBrowser', |