承接 mouf/utils.i18n.fine.language-detection 相关项目开发

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

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

mouf/utils.i18n.fine.language-detection

Composer 安装命令:

composer require mouf/utils.i18n.fine.language-detection

包简介

Language detection is a PHP internationalisation package, it depends of translation-interface. This package contain many class to return a language select for internationalisation. It's could be with : Browser detection, fix language, data set in session, a link between domain name and language or a

README 文档

README

Scrutinizer

If you are not familiar with Fine, you should stop reading right now! Please get started with the main presentation.

Language detection is a PHP internationalisation package, it depends of translation-interface package. This package contains many class to return the selected language for internationalisation.

It's could be with :

  • Browser detection,
  • fix language,
  • data set in session,
  • a link between domain name and language
  • a cascading of many solutions.

The language can be used to translate message in fine or whatever.

Dependencies

Fine comes as a Composer package and requires the "Mouf" framework to run. The first step is therefore to install Mouf.

Once Mouf is installed, you can process to the Fine installation.

Install Fine

This package is automatically added with the utils.i18n.fine.common Edit your composer.json file, and add a dependency on *mouf/utils.i18n.fine.langauge-detection.

A minimal composer.json file might look like this:

	{
	    "require": {
	        "mouf/mouf": "~2.0",
	        "mouf/utils.i18n.fine.language-detection": "4.0.*"
	    },
	    "autoload": {
	        "psr-0": {
	            "Test": "src/"
	        }
	    },
	    "minimum-stability": "dev"
	}

As explained above, Fine is a package of the Mouf framework. Mouf allows you (amoung other things) to visualy "build" your project's dependencies and instances.

To install the dependency, run php composer.phar install

After this you can create an instance

Language format

The language format is on 2 letters. If the language is not found this return null.

Implement your own language detection

Please read this documentation or the translation interface package

统计信息

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

GitHub 信息

  • Stars: 1
  • Watchers: 6
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2013-10-23