flownative/neos-trados 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

flownative/neos-trados

Composer 安装命令:

composer require flownative/neos-trados

包简介

XML import/export for Neos, suited for Trados translations

README 文档

README

MIT license Packagist Maintenance level: Acquaintance

Trados Support for Neos

Features

  • Export content into an XML format Trados can digest and that carries only needed data
  • Import translations into a specific language

Installation

composer require flownative/neos-trados

Usage

The export command:

Export sites content (e.g. trados:export --filename "acme.com.xml" --source-language "en")

COMMAND:
  flownative.neos.trados:trados:export

USAGE:
  ./flow trados:export [<options>] <starting point> <source language>

ARGUMENTS:
  --starting-point              The node with which to start the export, relative to the
                                site node. Optional.
  --source-language             The language to use as base for the export.

OPTIONS:
  --target-language             The target language for the translation, optional.
  --filename                    Path and filename to the XML file to create.
  --modified-after
  --exclude-child-documents     If child documents should not be included in the export.

The import command:

Import sites content (e.g. trados:import --filename "acme.com.xml" --workspace "czech-review")

COMMAND:
  flownative.neos.trados:trados:import

USAGE:
  ./flow trados:import [<options>] <filename>

ARGUMENTS:
  --filename           Path and filename to the XML file to import.

OPTIONS:
  --target-language    The target language for the translation, optional if
                       included in XML.
  --workspace          A workspace to import into, optional but recommended

Workflow

The workflow usually goes like this:

  1. The site content is exported using trados:export
  2. The XML is translated by some translation agency
  3. The translated XML is imported into a fresh workspace using trados:import
  4. The changes are reviewed and published in the workspace module

Configuration

The command usually exports all properties of type string. If you want to exclude certain properties, you can configure that in your NodeTypes.yaml file like this:

'TYPO3.Neos:Document':
  options:
    Flownative:
      Neos:
        Trados:
          properties:
            twitterCardType:
              skip: true

In order to configure which dimension should be translated, this can be configured using Settings.yaml:

Flownative:
  Neos:
    Trados:
      languageDimension: 'language_country'

Trados setup

To configure Trados in a way that only shows the content that should be translated, you need to create a custom XML file type as filter. It needs to specify the tags that sould be filtered. This explains it: https://www.youtube.com/watch?v=TrxLLP5OaIc

Thanks to Robin Clemens for the hint!

flownative/neos-trados 适用场景与选型建议

flownative/neos-trados 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 10.26k 次下载、GitHub Stars 达 5, 最近一次更新时间为 2018 年 02 月 19 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 flownative/neos-trados 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 flownative/neos-trados 我们能提供哪些服务?
定制开发 / 二次开发

基于 flownative/neos-trados 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 10.26k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 5
  • 点击次数: 16
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 5
  • Watchers: 4
  • Forks: 9
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-02-19