承接 nedryse/simple-translator 相关项目开发

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

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

nedryse/simple-translator

最新稳定版本:v1.1.0

Composer 安装命令:

composer require nedryse/simple-translator

包简介

Simple implementation of \Nette\Localization\ITranslator interface. Just print the key as is. Usefull when you have no time for managing gettext translation but want translatable application in the future.

README 文档

README

#nedryse/simple-translator (cc)# Pavel Železný (2bfree), 2014 (pavelzelezny.cz)

Requirements

Nette Framework 2.4.0 or higher

Documentation

Simple implementation of \Nette\Localization\ITranslator interface. Just print the key as is. Usefull when you have no time for managing gettext translation but want translatable application in the future.

Instalation

Prefered way to install is by Composer

composer require nedryse/simple-translator:~1.1

Or by manualy adding into the composer.json

{
	"require":{
		"nedryse/simple-translator": "~1.1"
	}
}

Setup

Add following code into the config.neon

common:
	extensions:
		translator: Nedryse\Nette\Localization\SimpleTranslatorExtension

Usage

In Latte templates of presenters and components you can use standard tlanslator macro

{_'Translatable text'}
{_'We have %d translatable text', $count}
{_'Field %s have to be translated', $fieldName}
{_'Field %s with %d letter have to be translated', $fieldName, $count}

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: WTFPL
  • 更新时间: 2014-12-25