mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-23 08:56:17 -04:00
增加对话框ok,cancel按钮国际化
This commit is contained in:
parent
91517a1d16
commit
cf5c0cfe81
4 changed files with 7 additions and 30 deletions
|
@ -4,6 +4,9 @@
|
|||
"ep_adminpads2_autoupdate.title": "Enables or disables automatic updates for the current query.",
|
||||
"ep_adminpads2_confirm": "Do you really want to delete the pad {{padID}}?",
|
||||
"ep_adminpads2_delete.value": "Delete",
|
||||
"ep_adminpads2_view.value": "View",
|
||||
"ep_adminpads2_ok.value": "OK",
|
||||
"ep_adminpads2_cancel.value": "Cancel",
|
||||
"ep_adminpads2_last-edited": "Last edited",
|
||||
"ep_adminpads2_loading": "Loading…",
|
||||
"ep_adminpads2_manage-pads": "Manage pads",
|
||||
|
|
|
@ -1,28 +0,0 @@
|
|||
{
|
||||
"@metadata": {
|
||||
"authors": [
|
||||
"Bengtsson96",
|
||||
"WikiPhoenix"
|
||||
]
|
||||
},
|
||||
"ep_adminpads2_action": "Åtgärd",
|
||||
"ep_adminpads2_autoupdate-label": "Uppdatera automatiskt när blocket ändras",
|
||||
"ep_adminpads2_autoupdate.title": "Aktivera eller inaktivera automatiska uppdatering för nuvarande förfrågan.",
|
||||
"ep_adminpads2_confirm": "Vill du verkligen radera blocket {{padID}}?",
|
||||
"ep_adminpads2_delete.value": "Radera",
|
||||
"ep_adminpads2_last-edited": "Senast redigerad",
|
||||
"ep_adminpads2_loading": "Läser in …",
|
||||
"ep_adminpads2_manage-pads": "Hantera block",
|
||||
"ep_adminpads2_no-results": "Inga resultat",
|
||||
"ep_adminpads2_pad-user-count": "Antal blockanvändare",
|
||||
"ep_adminpads2_padname": "Blocknamn",
|
||||
"ep_adminpads2_search-box.placeholder": "Sökord",
|
||||
"ep_adminpads2_search-button.value": "Sök",
|
||||
"ep_adminpads2_search-done": "Sökning slutförd",
|
||||
"ep_adminpads2_search-error-explanation": "Servern stötte på ett fel vid sökning efter block:",
|
||||
"ep_adminpads2_search-error-title": "Misslyckades att hämta blocklista",
|
||||
"ep_adminpads2_search-heading": "Sök efter block",
|
||||
"ep_adminpads2_title": "Blockadministration",
|
||||
"ep_adminpads2_unknown-error": "Okänt fel",
|
||||
"ep_adminpads2_unknown-status": "Okänd status"
|
||||
}
|
|
@ -12,6 +12,8 @@
|
|||
"ep_adminpads2_confirm": "您确定要删除文档 {{padID}}?",
|
||||
"ep_adminpads2_delete.value": "删除",
|
||||
"ep_adminpads2_view.value": "查看",
|
||||
"ep_adminpads2_ok.value": "确认",
|
||||
"ep_adminpads2_cancel.value": "取消",
|
||||
"ep_adminpads2_last-edited": "编辑时间",
|
||||
"ep_adminpads2_loading": "正在加载…",
|
||||
"ep_adminpads2_manage-pads": "会话管理",
|
||||
|
|
|
@ -90,11 +90,11 @@ export const PadPage = ()=>{
|
|||
<div className="settings-button-bar">
|
||||
<button onClick={()=>{
|
||||
setDeleteDialog(false)
|
||||
}}>Cancel</button>
|
||||
}}><Trans i18nKey="ep_admin_pads:ep_adminpads2_cancel.value"/></button>
|
||||
<button onClick={()=>{
|
||||
deletePad(padToDelete)
|
||||
setDeleteDialog(false)
|
||||
}}>Ok</button>
|
||||
}}><Trans i18nKey="ep_admin_pads:ep_adminpads2_ok.value"/></button>
|
||||
</div>
|
||||
</div>
|
||||
</Dialog.Content>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue