Преданонс модуля ccfilter и нужна помощь в английском

Главные вкладки

Аватар пользователя olk olk 19 декабря 2008 в 15:23

Вообщем потихоньку дописываю модуль фильтров, но перед тем как выложить его на drupal.org, хотелось бы, что бы люди знающие, поправили мой «чудовищный» английский :).
поэтому выкладываю readme.txt с просьбой поправить уж совсем не правильные выражения (а то засмеют на d.o).

$Id;

The ccfilter module - popular collections filters.

Ccfilter: PHP inline code.
The filter type php inline code - allows you to embed in the content of material code on php,
code must be entered into between the tags [phpcode] and [/phpcode], program code concluded
between the tags must be from a valid PHP-code. This can be useful when you need one material
at the same time show and the source code of such programs and this code.
The result of the implementation of the code will be placed in a unit <div class="ccfilter phpcode"> ... </div>.
You can also broaden the definition of the class through an indication of your class = class, for example,
when entering [phpcode class = myclass] ... [/phpcode], the result of the code will be placed
in a unit <div class="ccfilter phpcode myclass"> ... </div>.

Ccfilter: Collapse text.
The filter type collapse - the text concluded between the tags [collapse] and [/collapse], you can minimize / deployed to watch.
If the opening tag would be clarification collapsed, the original state of the text will be minimized.
Tag can be set in the opening tag after the = (eg [collapse collapsed = Click here to see the text].
If you do not specify a label, it will use the pre-header.
Also allowed to write [collapse collapsed title = Click here to see the text].

Ccfilter: Tooltip.
The filter type tooltip - in the conclusion of the text between the tags [tooltip=title] and [/tooltip],
when the mouse to the instructions the text, pop-up as a hint text specified in the opening tag after the "=".
Tag [tooltip] can be replaced by synonyms [acronym] and [abbr], in addition to the tag [tooltip] allowed to write
[tooltip title=Tut text your pop-up tips]. You can also broaden the definition of the class through
an indication of your class = class, for example, when entering [tooltip class = myclass] ... [/tooltip],
the result will be conclusion of the text between the tags <span class="ccfilter tooltip myclass"> ... </span>

Ccfilter: Description.
The filter type description - the text concluded between the tags [decription ]..[/description]
(or short form [d]...[/d]), will be concluded between the tags <div class="ccfilter descr"> and </div>,
or if you specified clarification inline, in the opening tag, the text will be concluded between the tags
<span class="ccfilter descr"> and </span>. You can also broaden the definition of the class through an
indication of your class = class, for example, when entering [description class = myclass] ... [/description],
the result will be concluded between the tags <div class="ccfilter desc myclass"> and </div>.

Ccfilter: Smileys.
The filter type smileys - converted text smileys to images.

Ccfilter: Hidden text.
The filter type hidden text - hides content to unregistered users. Upon conclusion of the text between the
tags [hidden = value] and [/hidden], It will be visible only to registered users,
if the attribute value instead of the text will return to this value, in addition to the tag [hidden] is permissible
to write [hidden title = value]. If the use of the form [hidden] ... [/hidden],
then for unregistered users will be displayed text, some in the filter settings.
The result will be conclusion of the text between the tags <div class="ccfilter hidden-text"> and </div>
for registered users, and block <div class="ccfilter hidden-text hidded"> ... </div> for unregistered users.
You can also broaden the definition of the class through an indication of your class = class, for example,
when entering [hidden class = myclass] ... [/hidden], the result will be placed in a unit
<div class="ccfilter hidden-text myclass"> ... </div>.

INSTALLATION INSTRUCTIONS
---
1. Extract this module to sites/[ all | {domain} ]/modules folder.
2. Login as the user who has administrator permissions (user/1).
3. Activate ccfilter in the "Filters" category,
   on the Administer > Site building > Modules page at admin/build/modules.

CONFIGURATION
---
1. To use the ccfilter in a particular input format, go to
   Administer > Site configuration > Input formats
   at admin/settings/filters

2. Select configure for your choice of input format,
   and activate one of the ccfilters.

3. Make sure that the HTML filter allows <div> tags and <fieldset> if use ccfiltet:collapse text,
   or that the filter you have chosen is arranged after the HTML filter,
   depending on your choice of ccfilter filter.

4.  If you input format used ccfilter:php inline code, move up priority of the this filter in your chosen format (admin/settings/filters/x/order).

KNOWN ISSUES
---
Please use the issue queue to report any issues you think need to be fixed.

ну и тот же текст по русски

Модуль ccfilter  - коллекция популярных фильтров.

Ccfilter: PHP inline code.
Фильтр типа php inline code - позволяет встроить в контент материала код на php,
код должен быть заключен между тэгами [phpcode] и [/phpcode], Код заключенный
между этими тэгами должен представлять из себя валидный PHP-код. Это может
оказаться полезно, когда вам нужно в одном материале одновременно показать
и исходный код программы и например действие этого кода. Результат выполнения
кода будет помещен в блок <div class="ccfilter phpcode"> ... </div>.
Кроме того, вы можете расширить определение класса через указание
class=Ваш класс, например при указании [phpcode class=myclass] ... [/phpcode],
результат выполнения кода будет помещен
в блок <div class="ccfilter phpcode myclass"> ... </div>.

Ccfilter: Collapse text.
Фильтр типа collapse - текст заключенный между тегами [collapse] и [/collapse],
можно сворачивать/разворачивать для просмотра. Если открывающий тэг будет иметь уточнение collapsed,
то первоначальное состояние текста будет свернутым. Метку можно задать, в открывающем теге
после знака = (например [collapse collapsed=Нажмите здесь, что бы увидеть текст]).
Если вы не укажете метку, то будет использован предопределенный заголовок.
Также допустима запись вида [collapse collapsed title=Нажмите здесь, что бы увидеть текст].

 Ccfilter: Tooltip.
Фильтр типа tooltip - при заключении текста между тегами [tooltip=title] и [/tooltip], при наведении
мыши на указаный участок текста, "всплывет" в качестве подсказки текст, указаный
в открывающем теге после знака "=". Тэг [tooltip] может быть заменен на синонимы [acronym] и [abbr],
кроме того для тэга [tooltip] допустима запись вида [tooltip title=Тут текст вашей всплывающей подсказки].
Вы также можете расширить определение класса через указание class=Ваш класс, например
при указании [tooltip class=myclass] ... [/tooltip], результат будет размещен между
тэгам <span class="ccfilter tooltip myclass"> ... </span>.

Ccfilter: Description.
Фильтр типа description - текст заключенный между тегами [decription]..[/description]
(или сокращенная форма записи [d]...[/d]), будет размещен между тэгами
<div class="ccfilter descr"> ...</div>, или если вы указали уточнение inline, в
открывающем тэге, текст будет заключен между тэгами <span class="ccfilter descr"> и </span>.
Кроме того, вы можете расширить определение класса через указание class=Ваш класс,
например при указании [description class=myclass] ... [/description], результат будет
заключен между тэгами <div class="ccfilter desc myclass"> ... </div>.

Ccfilter: Smileys.
Фильтр типа smileys - преобразует текстовые смайлики в их графическое представление.

Ccfilter: Hidden text.
Фильтр типа hidden text - скрывает контент для незарегистрированных пользователей.
При заключении текста между тегами [hidden=Значение] и [/hidden], он будет виден только
для зарегистрированных пользователей, если установлен атрибут Значение, то вместо текста
будет выведено данное Значение ,кроме того для тэга [hidden] допустима запись
вида [hidden title=Значение]. Если использовать форму [hidden] ... [/hidden],
то для незарегистрированных пользователей будет выводится текст, определенный в
настройках фильтра. Результат будет помещен в блок <div class="ccfilter hidden-text"> ... </div>
для зарегистрированного пользователя, и в блок <div class="ccfilter hidden-text hidded"> ... </div>
для незарегистрированного пользователя. Кроме того, вы можете расширить определение класса
через указание class=Ваш класс, например при указании [hidden class=myclass] ... [/hidden],
результат будет помещен в блок <div class="ccfilter hidden-text myclass"> ... </div>.

ИНСТАЛЛЯЦИЯ
---
1. Поместите файлы модуля в дирректорию sites/[ all | {domain} ]/modules folder.
2. Войдите в систему с правами администратора (user/1).
3. Включите модуль ccfilter на странице конфигурирования модулей (admin/build/modules)
   в категории "Фильтры".

КОНФИГУРИРОВАНИЕ
---
1. Для подключения ccfilter перейдите на страницу конфигурирования форматов ввода
   Administer > Site configuration > Input formats (admin/settings/filters)

2. Выберите необходимый формат и включите в него необходимые фильтры из набора ссfilter.

3. Включите в разрешенные тэги HTML фильтр  <span>,<div> и <fieldset> если
    используете ccfiltet:collapse text,  или поместите ccfilter после HTML фильтра в
    цепочке выполнения фильтров на странице перераспределения фильтров (admin/settings/filters/%/order).

4. Если вы используете в формате ввода ccfilter:php inline code, поднимите его приоритет
   в цепочке выполнения фильтров выше остальных, на странице перераспределения фильтров
   (admin/settings/filters/x/order).

ИЗВЕСТНЫЕ ПРОБЛЕМЫ
---
Пожалуйста, используйте этот issue queue для отчетов о любых проблемах в модуле которые должны быть исправлены.

Комментарии

Аватар пользователя yugin yugin 20 декабря 2008 в 18:19
The ccfilter module - collection of popular filters.
 
Ccfilter: PHP inline code.
"PHP inline code" filter type - allows you to embed the PHP-code into the content.
Put your PHP-code between the tags [phpcode] and [/phpcode].
PHP-code between these tags MUST BE a valid PHP-code.
This can be useful, when you need to show your code and the result of this code at the same time on one page.
The result of the implementation of the code will be placed between <div class="ccfilter phpcode"> ... </div>.
Besides, you can expand the definition of the class through an indication "class = Your_class".
For example, the result of the code between [phpcode class = myclass] ... [/phpcode], will be placed
in <div class="ccfilter phpcode myclass"> ... </div>.

Ccfilter: Collapse text.
"Collapse" filter type - the text entered between the tags [collapse] and [/collapse] can be collapsed/expanded.
If the opening tag has "collapsed" indication, the original state of the text will be minimized.
The indicating tag can be placed in the opening tag after the "=".
Example: [collapse collapsed = Click here to see the text].
If you do not specify an indication, it will use the predefined header.
It is also allowed to use [collapse collapsed title = Click here to see the text].

Ccfilter: Tooltip.
"Tooltip" filter type - the text entered between the tags [tooltip=title] and [/tooltip]
will pop-up as a hint text specified in the opening tag after the "=" on mouse over.
Tag [tooltip] can be replaced by synonyms [acronym] and [abbr].
In addition to the tag [tooltip], it is allowed to use [tooltip title=Here is your pop-up text].
You can also expand the definition of the class through an indication of "class = Your_class".
For example, the text entered between [tooltip class = myclass] ... [/tooltip],
will be placed between the tags <span class="ccfilter tooltip myclass"> ... </span>.

Ccfilter: Description.
"Description" filter type - the text entered between the tags [decription ]..[/description]
(or short form [d]...[/d]), will be placed between the tags <div class="ccfilter descr"> and </div>.
If you indicate "inline" in the opening tag, the text will be placed between the tags <span class="ccfilter descr"> and </span>.
You can also expand the definition of the class through an indication of "class = Your_class"
For example, the result of entering text between [description class = myclass] ... [/description],
will be placed between the tags <div class="ccfilter desc myclass"> and </div>.

Ccfilter: Smileys.
The filter type smileys - converted text smileys to images.

Ccfilter: Hidden text.
"Hidden text" filter type - hides content for unregistered users.
Upon entering the text between the tags [hidden = value] and [/hidden], it will be visible to registered users only.
If the "value" attribute is indicated, this value will be returned instead of the hidden text.
In addition to the tag [hidden] it is allowed to use [hidden title = value].
In case of using the form [hidden] ... [/hidden], the text defined in the filter settings will be displayed for unregistered users.
The result will be placed between the tags:
for registered users <div class="ccfilter hidden-text"> and </div>
for unregistered users <div class="ccfilter hidden-text hidded"> ... </div>
You can also expand the definition of the class through an indication of "class = Your_class".
For example, the result of entering text between [hidden class = myclass] ... [/hidden],
will be placed in <div class="ccfilter hidden-text myclass"> ... </div>.

INSTALLATION INSTRUCTIONS
---
1. Extract this module to sites/[ all | {domain} ]/modules folder.
2. Login as the user who has administrator permissions (user/1).
3. Activate ccfilter in the "Filters" category,
   on the Administer > Site building > Modules page at admin/build/modules.
 
CONFIGURATION
---
1. In order to use the ccfilter, go to Administer > Site configuration > Input formats at admin/settings/filters
 
2. Choose the format, and include the necessary ccfilters in it.
 
3. Make sure that the HTML filter allows <span>, <div> and <fieldset> tags if you use "ccfiltet:collapse text",
   or that the filter you have chosen is placed after the HTML filter, depending on your choice of ccfilter filter.
   
4.  If you use "ccfilter:php inline code" format, move its priority to the top in the filter queue at (admin/settings/filters/x/order).
 
KNOWN ISSUES
---
Please use the issue queue to report any issues you think need to be fixed.

Аватар пользователя yugin yugin 20 декабря 2008 в 18:27

вот блин. редактировал предыдущий коммент, нажимаю сохранить, а он мне "Зарегистрируйтесь, чтобы получить доступ..." И кнопка редактирования пропала.
В общем, я что хотел сказать. Вроде так. Проверьте. В процессе выявились некоторые несоответствия русского с английским. Вернее, наоборот. Поправил. Замечания и пожелания приветствуются.