l10n_server-2.x-dev/l10n_community/l10n_community.routing.yml

l10n_community/l10n_community.routing.yml
l10n_community.welcome_page:
  path: '/translate'
  defaults:
    _title_callback:  '\Drupal\l10n_community\Controller\L10nCommunityWelcomePageController::title'
    _controller: '\Drupal\l10n_community\Controller\L10nCommunityWelcomePageController::build'
  requirements:
    _permission: 'access localization community'
l10n_community.language.explore:
  path: '/translate/languages'
  defaults:
    _title: 'Explore languages'
    _controller: '\Drupal\l10n_community\Controller\L10nCommunityLanguagesController::explore'
  requirements:
    _permission: 'access localization community'
l10n_community.language.import:
  path: '/translate/languages/{l10n_community_language}/import'
  defaults:
    _title: 'Import'
    _controller: '\Drupal\l10n_community\Form\ImportForm'
  requirements:
    _permission: 'access localization community'

l10n_community.project.explore:
  path: '/translate/projects'
  defaults:
    _title: 'Explore projects'
    _controller: '\Drupal\l10n_community\Controller\L10nCommunityProjectsController::explore'
  requirements:
    _permission: 'access localization community'

l10n_community.language.translate.translate:
  path: '/group/{group}/translate'
  defaults:
    _title_callback: '\Drupal\l10n_community\Controller\L10nCommunityLanguagesController::translateTitle'
    _controller: '\Drupal\l10n_community\Controller\L10nCommunityLanguagesController::translate'
  requirements:
    _permission: 'browse translations'
  options:
    parameters:
      group:
        type: entity:group
l10n_community.language.translate.import:
  path: '/group/{group}/import'
  defaults:
    _title_callback: '\Drupal\l10n_community\Controller\L10nCommunityLanguagesController::importTitle'
    _controller: '\Drupal\l10n_community\Controller\L10nCommunityLanguagesController::import'
  requirements:
    _permission: 'import gettext files'
  options:
    parameters:
      group:
        type: entity:group
l10n_community.language.translate.export:
  path: '/group/{group}/export'
  defaults:
    _form: '\Drupal\l10n_community\Form\ExportForm'
    _title_callback: '\Drupal\l10n_community\Controller\L10nCommunityLanguagesController::exportTitle'
  requirements:
    _permission: 'export gettext templates and translations'
  options:
    parameters:
      group:
        type: entity:group

l10n_community.project.export:
  path: '/translate/projects/{project}/export'
  defaults:
    _title: 'Overview'
    _controller: '\Drupal\l10n_community\Controller\L10nCommunityProjectsController::export'
  requirements:
    _permission: 'access localization community'
  options:
    parameters:
      project:
        type: entity:l10n_server_project
l10n_community.language.translate.reset:
  path: '/group/{group}/reset/{project}/{release}'
  defaults:
    _title: 'Export'
    _controller: '\Drupal\l10n_community\Controller\L10nCommunityLanguagesController::reset'
  requirements:
    _permission: 'access localization community'
  options:
    parameters:
      group:
        type: entity:group
      project:
        type: entity:l10n_server_project
      release:
        type: entity:l10n_server_release

l10n_community.translation_details:
  path: '/translate/translation-details/{translation}'
  defaults:
    _title: 'Translation history information'
    _controller: '\Drupal\l10n_community\Controller\L10nCommunityLanguagesController::translationDetails'
  requirements:
    _permission: 'browse translations'
  options:
    parameters:
      translation:
        type: entity:l10n_server_translation

l10n_community.source_details:
  path: '/translate/source-details/{string}'
  defaults:
    _title: 'Source string usage details'
    _controller: '\Drupal\l10n_community\Controller\L10nCommunityLanguagesController::sourceDetails'
  requirements:
    _permission: 'browse translations'
  options:
    parameters:
      string:
        type: entity:l10n_server_string

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc