Руководство по Trac / Настройка интерфейса Trac

Edgewall Software, “TracGuide / Customizing the Trac Interface”, public translation into Russian from English More about this translation.

See also 18 similar translations

Translate into another language.

Participants

Darion555 points
chocky434 points
Join Translated.by to translate! If you already have a Translated.by account, please sign in.
If you do not want to register an account, you can sign in with OpenID.
Pages: ← previous Ctrl next next untranslated
1 2 3 4 5

TracGuide / Customizing the Trac Interface

Руководство по Trac / Настройка интерфейса Trac

History of edits (Latest: Darion 3 years ago) §

= Customizing the Trac Interface =

= Настройка интерфейса Trac =

History of edits (Latest: Darion 3 years ago) §

[[TracGuideToc]]

[[TracGuideToc]]

History of edits (Latest: Darion 3 years ago) §

— Это ключевое слово "Table of Contents", переводить не нужно Darion

== Introduction ==

== Вступление ==

History of edits (Latest: Darion 3 years ago) §

This page is meant to give users suggestions on how they can customize the look of Trac. Topics on this page cover editing the HTML templates and CSS files, but not the program code itself. The topics are intended to show users how they can modify the look of Trac to meet their specific needs. Suggestions for changes to Trac's interface applicable to all users should be filed as tickets, not listed on this page.

Эта страница предназначена для того, чтобы дать пользователям рекомендации по настройке внешнего вида Trac. На этой странице описывается редактирование HTML-шаблонов и CSS-файлов, но не кода программы. ?разделы? предназначены для того, чтобы показать пользователям, как они могут изменить внешний вид Trac для соответствия их нуждам. Предложения по изменению интерфейса Trac, касающиеся всех пользователей, следует вносить в виде тикетов, а не перечислять на этой странице.

History of edits (Latest: chocky 3 years ago) §

— "should be filed as tickets, not listed on this page." - пока не понимаю что это значит Darion

— может быть так.. а может и нет chocky

== Project Logo and Icon ==

== Логотип и иконка проекта ==

History of edits (Latest: Darion 3 years ago) §

— Иконка... грр, забыл как она называется. Может кто вспомнит? Darion

The easiest parts of the Trac interface to customize are the logo and the site icon. Both of these can be configured with settings in [wiki:TracIni trac.ini].

Элементы интерфейса Trac, которые проще всего изменить, - это логотип и иконка. Они оба могут быть настроены в файле [wiki:TracIni trac.ini].

History of edits (Latest: chocky 3 years ago) §

— Здесь и ниже - заменить, когда кто-нибудь вспомнит, как она называется. Darion

The logo or icon image should be put in a folder named "htdocs" in your project's environment folder. (''Note: in projects created with a Trac version prior to 0.9 you will need to create this folder'')

Картинки для логотипа или иконки должны быть размещены в папке ''htdocs'' вашего рабочего окружения. (''Заметьте, в проектах, созданных в версиях Trac ниже 0.9, вам нужно будет создать эту папку'')

History of edits (Latest: chocky 3 years ago) §

''Note: you can actually put the logo and icon anywhere on your server (as long as it's accessible through the web server), and use their absolute or server-relative URLs in the configuration.''

'' На самом деле вы можете разместить логотип и иконку где угодно на вашем сервере (там где они доступны через веб-сервер), и использовать их абсолютные или относительные URL в конфигурации.''

History of edits (Latest: Darion 3 years ago) §

Now configure the appropriate section of your [wiki:TracIni trac.ini]:

Сконфигурируем соответствующую секцию файла [wiki:TracIni trac.ini]:

History of edits (Latest: Darion 3 years ago) §

=== Logo ===

=== Логотип ===

History of edits (Latest: Darion 3 years ago) §

Change the `src` setting to `site/` followed by the name of your image file. The `width` and `height` settings should be modified to match your image's dimensions (the Trac chrome handler uses "`site/`" for files within the project directory `htdocs` and "`common/`" for the common ones).

Поменяйте параметр `src` на `site/` + имя вашего файла-картинки. Параметры `width` и `height` необходимо изменить в соответствии с размерами вашей картинки (Trac chrome handler использует "`site/`" для файлов внутри директории проекта `htdocs` и "`common/`" для общих файлов).

History of edits (Latest: chocky 3 years ago) §

— Trac chrome handler переводим? Как? chocky

{{{

{{{

History of edits (Latest: Darion 3 years ago) §

[header_logo]

[header_logo]

History of edits (Latest: Darion 3 years ago) §

src = site/my_logo.gif

src = site/my_logo.gif

History of edits (Latest: Darion 3 years ago) §

alt = My Project

alt = My Project

History of edits (Latest: Darion 3 years ago) §

width = 300

width = 300

History of edits (Latest: Darion 3 years ago) §

height = 100

height = 100

History of edits (Latest: Darion 3 years ago) §

}}}

}}}

History of edits (Latest: Darion 3 years ago) §

=== Icon ===

=== Иконка ===

History of edits (Latest: Darion 3 years ago) §

Icons should be a 16x16 image in `.gif` or `.ico` format. Change the `icon` setting to `site/` followed by the name of your icon file. Icons will typically be displayed by your web browser next to the site's URL and in the `Bookmarks` menu.

Иконка должна быть картинкой размером 16х16 в формате `.gif` или `.ico`. Измените параметр `icon` на `site/` + имя вашего файла-иконки. Иконки обычно отображаются в браузере рядом с URL сайта и в меню `Закладки`.

History of edits (Latest: chocky 3 years ago) §

{{{

{{{

History of edits (Latest: Darion 3 years ago) §

[project]

[project]

History of edits (Latest: Darion 3 years ago) §

icon = site/my_icon.ico

icon = site/my_icon.ico

History of edits (Latest: Darion 3 years ago) §

}}}

}}}

History of edits (Latest: Darion 3 years ago) §

Note though that this icon is ignored by Internet Explorer, which only accepts a file named ``favicon.ico`` at the root of the host. To make the project icon work in both IE and other browsers, you can store the icon in the document root of the host, and reference it from ``trac.ini`` as follows:

Однако обратите внимание, что Internet Explorer проигнорирует эту иконку, он допускает только файл под именем ``favicon.ico`` в корне хоста. Чтобы заставить иконку проекта работать и в IE, и в других браузерах, можно хранить иконку в корневом каталоге документов и ссылаться на нее в файле ``trac.ini`` следующим образом:

History of edits (Latest: chocky 3 years ago) §
Pages: ← previous Ctrl next next untranslated
1 2 3 4 5