承接 netcore/module-translate 相关项目开发

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

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

netcore/module-translate

Composer 安装命令:

composer require netcore/module-translate

包简介

README 文档

README

Module allows you to manage available languages in page and manage translations for them.

Pre-installation

This package is part of Netcore CMS ecosystem and is only functional in a project that has following packages installed:

https://github.com/netcore/netcore

https://github.com/netcore/module-admin

Installation

Require this package with composer:

composer require netcore/module-translate

Publish config, assets, migrations. Migrate and seed:

php artisan module:publish-config Translate
php artisan module:publish Translate
php artisan module:publish-migration Translate
php artisan migrate
php artisan module:seed Translate

Usage

  • To show your translated strings in page you should use "lg" function like this
lg('group.key', 'Lorem ipsum')
  • or if you want to use replaceable attributes in translated string
lg('group.key', ['attribute' => 'value'], null, 'Lorem ipsum :attribute')
  • and if you want to use this function in blade files, just add @, for example:
@lg('group.key', 'Lorem ipsum')

Finding translations

  • This command will find all translations in project which uses "lg" function and create Excel sheet with keys and values(in available languages) in resources/seed_translations folder with the name specified in config (default: translations)
php artisan translations:find

Importing translations

  • This command will import translations located in Excel sheet to database
php artisan translations:import

More info about core package can be found in (https://github.com/netcore/translations)

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Unknown
  • 更新时间: 2017-11-02

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固