flagrow/linguist
Composer 安装命令:
composer require flagrow/linguist
包简介
Customize translations
README 文档
README
With this extension you can configure alternate or missing translation strings for your forum. Includes:
- No manual translation file editing required, everything is configured via the admin UI
- Translate frontend or backend strings
- Override the translation for a specific locale or all installed locales
- Easily search for strings by name or value in any language
- Multiple filters to find strings that are missing translations or belong to a specific extension
After editing translations, Linguist will offer you the opportunity to clear the forum cache. For performance reasons, Linguist won't attempt to clear the cache by itself.
If the new translations don't show up, try clearing the cache again by using Dashboard > Tools > Clear cache or by running php flarum cache:clear.
Also note Flarum uses a "one place, one translation key" approach to translations, so you might have to edit several keys to replace a specific keyword.
Installation
composer require fof/linguist
Updating
composer require fof/linguist php flarum migrate php flarum cache:clear
Configuration
Once enabled, a new tab will show up in the admin to configure translations.
The tab will list all translations strings registered by extensions on your forum. You can customize the text by entering your own value in the field.
A special field "all" allows you to define a single text that will be shown in all languages.
Keep in mind some strings contain references in the form {referencename} that you have to keep identical if you want the data to show up.
Links
An extension by FriendsOfFlarum
flagrow/linguist 适用场景与选型建议
flagrow/linguist 是一款 基于 TypeScript 开发的 Composer 扩展包,目前已累计 2.83k 次下载、GitHub Stars 达 16, 最近一次更新时间为 2017 年 10 月 05 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「translation」 「locale」 「extension」 「flarum」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 flagrow/linguist 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 flagrow/linguist 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 flagrow/linguist 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Package for convenient work with Laravel's localization features
A custom URL rule class for Yii 2 which allows to create translated URL rules
A Laravel Eloquent model trait for translatable resource
The Yii2 extension uses jQuery jquery.carousel-1.1.min.js and makes image carousel from php array of structure defined.
TYPO3 CMS extension to create gallery content element with preset crop ratios and pagination
UI Kit 3 Extension for Yii2
统计信息
- 总下载量: 2.83k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 16
- 点击次数: 11
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-10-05