I18N for File actions menu (Top Menu Entry and Talk bots)
維護者通常 1 天內回覆
還沒有人認領這個 Issue。
評估
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 新手友好度
- 45/100
- Issue 類型
- 功能
- 描述清晰度
- 基本清楚
- 活躍度
- 停滯
- 技術堆疊
- php
研究方向
找出 File Actions Menu、Top Menu Entry 和 Talk Bots 的註冊處理方式,然後追蹤目前如何處理 displayName。在保留與純字串相容性的同時支援本地化的 displayName 項目,包括提議的回退至預設語言;驗證全部三種選單類型的註冊行為。
由索引模型根據 Issue 內容生成。
描述
Describe why it is important and where it will be useful
In Nextcloud each user can set the applications language to have the best user experience and lowest entry barrier. Unfortunately the current implementation of the registration of File Actions Menu, Top Menu Entry and Talk Bots does only support to register a menu in one single language without any hint which is the (preferred) language of the Nextcloud instance.
Describe your proposed solution
Enhance the registration of menu entries like that. If you check if displayName is a plain string or an object this solution is downwards compatible,too.
{
"name": "unique_name_of_file_actions_menu",
"displayName": [
{
"lang": "en",
"text": "Display name (for UI listing)"
},
{
"lang": "de",
"text": "Anzeige name"
},
{
"lang": "default",
"text": "Display name (for UI listing)"
}
],
"actionHandler": "/action_handler_route"
"mime": "mime of files where to display action menu",
"icon": "img/icon.svg",
"permissions": "permissions",
"order": "order_in_file_actions_menu",
}
Describe alternatives you've considered, if relevant
No response
Additional context
No response
- 主要語言
- PHP
- 星號
- 202
- 分支
- 30
- 平均合併
- 3 天 20 小時
- 30 天內合併 PR
- 24
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 沒有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
nextcloud/app_api 的其他 Issue
-
bug docker
難度 2/5 1-3 小時 新手友好度 72/100
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 85/100
維護者通常 1 天內回覆
-
deploy discussion
難度 5/5 一週以上 新手友好度 20/100
nextcloud/app_api#1236 · 1 個 reaction ·
維護者通常 1 天內回覆
-
deploy docker enhancement
難度 4/5 3-5 天 新手友好度 48/100
維護者通常 1 天內回覆
-
bug deploy docker
難度 4/5 3-5 天 新手友好度 42/100
維護者通常 1 天內回覆
查看 nextcloud/app_api 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 77/100
Adyen/adyen-magento2#3453 ·
維護者通常 8 天內回覆
-
component/media domain/discovery
難度 2/5 1-3 小時 新手友好度 82/100
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 82/100
-
難度 2/5 1-3 小時 新手友好度 79/100
維護者通常 1 天內回覆
-
enhancement priority: low
難度 2/5 1-3 小時 新手友好度 82/100
magicsunday/webtrees-statistics#664 ·
維護者通常 1 天內回覆