承接 sitegeist/csv-labels 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

sitegeist/csv-labels

最新稳定版本:1.0.4

Composer 安装命令:

composer require sitegeist/csv-labels

包简介

Use CSV files to provide translation labels to TYPO3

README 文档

README

This utility extension extends the language handling of TYPO3 to be able to use a simple CSV file format to specify language labels. While the XLIFF file format is a widely used standard and is more powerful, CSV files can be a pragmatic approach for language files that only contain a handful of entries.

This extension does not remove or disable XLIFF files, it merely provides another file format to choose from. We at sitegeist use the CSV file format to define language labels for Fluid Components.

Getting started

Install the extension either from TER or via composer:

composer require sitegeist/csv-labels

File format

locallang.csv:

"id","description","default","de"
"Actions","","Actions","Aktionen"
"ConfirmDelete","Message in the delete user dialog","Should the following user be deleted?","Soll der folgende Nutzer gelöscht werden?"

Rules:

  • The column id represents the label identifier
  • The column description represents the label description (for documentation purposes)
  • All other columns are treated as a translation for the locale from the header line
  • The csv files use , as delimiter and " as text delimiters (default configuration of fgetcsv)

Usage

<!-- either explicitly -->
<f:translate key="EXT:my_extension/Resources/Private/Language/locallang.csv:Actions" />
<!-- or as a fallback, in case the xlf file doesn't exist -->
<f:translate key="EXT:my_extension/Resources/Private/Language/locallang.xlf:Actions" />
<!-- this means that it can also be used in extbase context without the full path -->
<f:translate key="Actions" />

Authors & Sponsors

The development and the public-releases of this package is generously sponsored by my employer https://sitegeist.de.

统计信息

  • 总下载量: 74.54k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 3
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-2.0-or-later
  • 更新时间: 2021-02-03