lekoala/silverstripe-multilingual 问题修复 & 功能扩展

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

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

lekoala/silverstripe-multilingual

最新稳定版本:2.0.0

Composer 安装命令:

composer require lekoala/silverstripe-multilingual

包简介

i18n tools for SilverStripe

README 文档

README

Build Status scrutinizer Code coverage

Intro

Provide some helper tools when working with Fluent and multilingual websites

LangHelper

The LangHelper class provide a consistent i18n function regardless of Fluent being installed or not.

You can call global translation under the "Global" entity. These are accessible with LangHelper::globalTranslation or g() shortcut.

FluentLocale only if cookies are enabled

This module disable by default persist_cookie for Fluent.

You need to make sure to call LangHelper::persistLocaleIfCookiesAreAllowed (works with two types of cookie consent modules) or call with your own logic LangHelper::persistLocale.

Improved text collector task

ConfigurableI18nTextCollectorTask

This improved text collector helps you to collect translation from specific modules.

It supports merge (even of older version of SilverStripe, that now does that as well), auto translating new string from google api, clear unused strings...

This is available from a convenient interface.

Translations import/export task

TranslationsImportExportTask

Collecting translations for customers is not always easy. In order to provide a simple mean to collect label, everything can be exported to a csv file. This will create as many columns as the number of .yml files in your lang folder.

It can then be imported back from the file to your yml files.

If you use lekoala/silverstripe-excel-import-export, this file can be exported in xlsx.

This is available from a convenient interface.

Todo

  • Make BuildTaskTools into a specific module

Compatibility

Tested with ^5

Maintainer

LeKoala - thomas@lekoala.be

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-01-06