承接 doldenroller/k3-translation-status 相关项目开发

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

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

doldenroller/k3-translation-status

最新稳定版本:v3.0.0

Composer 安装命令:

composer require doldenroller/k3-translation-status

包简介

Show all available translations of a page and if they are finished.

README 文档

README

Infosection to display all translations of a page in two lists, seperated wether the language is translated or not. By default a message is displayed if all languages are translated. Additionally the the template of the current page is displayed. screenshot translation-status

Install

Download Zip file

Copy plugin folder into site/plugins

Composer

I have no clue about the composer... but if I get right this should work. Run composer require doldenroller/kirby-translation-status.

Usage

Find and show translations of your page in the panel or use it as language switch in your blueprints.

Example

Basic setup:

sections:
  mysection:
    headline: Page Translations
    type: translationstatus
    finished: Translated Languages
    unfinished: Translations to be done
    allfinished: All Translations done

With translations in Blueprint:

sections:
  mysection:
    headline: Page Translations
    type: translationstatus
    finished:
      en: Translated Languages
      de: Übersetzte Sprachen
    unfinished:
      en: Translations to be done
      de: Noch zu erledigen
    allfinished:
      en: All Translations done
      de: Alle Übersetzungen angelegt
    extend: true

Translations can also be setup in your languagefiles of your setup:

  'translations.finished' => '',
  'translations.unfinished' => '',
  'translations.all' => '',

More Options: With the extend: true property, the finished list is still showing when all translations are done, so you can still use it as a language switch. The template: false property hides the intended Template information.

And finally you can exclude pages by template. Either with the ignore: property like this:

  # as comma-sperated list
  ignore: news, jobs

  # or as normal list
  ignore:
    - news
    - jobs

This can also be setup as global option in your config

  // again either comma-separeted
  'doldenroller.templatestatus.ignore' => 'solutions, default'

  // or as array
  'doldenroller.templatestatus.ignore' => ['solutions', 'default']

Update/Changes in v2.0

First of all Kirby4 support is added. And the active language is underlined.

The config option changed from templatestatus.ignore to doldenroller.templatestatus.ignore.

And now it is possible to delete a translated content file. This can also be disabled or restricted in the blueprint or in config. The restriction can be made that only user-roles or users can delete the translated content. By now the users are found by their e-mailadresses. Maybe UUID support will be added in the future.

In the blueprint restrictions can be set with the delete: property like this:

  # complete disabled
  delete: false

  # as comma-sperated list
  delete: admin, chief-editor@website.com

  # or as normal list
  delete:
    - admin
    - chief-editor@website.com

Or as global config-option:

  // complete disabled
  'doldenroller.templatestatus.delete' => false

  // again either comma-separeted
  'doldenroller.templatestatus.delete' => 'admin, chief-editor@website.com'

  // or as array
  'doldenroller.templatestatus.delete' => ['admin', 'chief-editor@website.com']

In the examples above all users with theadmin user role and the user with the e-mailadress chief-editor@website.com can delete translated content.

Update/Changes in v3.0

Kirby 5 support is added.

Possible enhencements

These could be difficult but would be nice features:

  1. Update hint, that shows when content is updated
  2. Delete / reset language, because sometimes its easier to start from scratch
  3. Add user identification by user-UUID (Not my prioraty, because I mostly work without UUIDs)
  4. Refresh/update section when new translation is created
  5. Check compability with Kirby5

Older Versions

  • For Kirby 3 please use v1.0.0
  • For Kirby 4 please use v2.0.0

License

MIT

It is discouraged to use this plugin in any project that promotes racism, sexism, homophobia animal abuse, violence or any other form of hate speech.

doldenroller/k3-translation-status 适用场景与选型建议

doldenroller/k3-translation-status 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 1 次下载、GitHub Stars 达 11, 最近一次更新时间为 2023 年 05 月 22 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「kirby4」 「kirby4-cms」 「kirby4-plugin」 「kirby4-multilanguage」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 doldenroller/k3-translation-status 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 doldenroller/k3-translation-status 我们能提供哪些服务?
定制开发 / 二次开发

基于 doldenroller/k3-translation-status 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

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

GitHub 信息

  • Stars: 11
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-05-22