chore:Save directory settings UI tip uses internationalization translation
This commit is contained in:
@@ -69,8 +69,7 @@ export function RetrieveTabPanel({
|
||||
if (!messages) return false; // Should not happen if panel is rendered
|
||||
if (!window.showDirectoryPicker) {
|
||||
putMessageInMs(
|
||||
// messages.text.ClipboardApp.pickSaveUnsupported ||
|
||||
"Directory picker not supported.",
|
||||
messages.text.ClipboardApp.pickSaveUnsupported,
|
||||
false
|
||||
);
|
||||
return false;
|
||||
@@ -80,8 +79,7 @@ export function RetrieveTabPanel({
|
||||
const directoryHandle = await window.showDirectoryPicker();
|
||||
await setReceiverDirectoryHandle(directoryHandle);
|
||||
putMessageInMs(
|
||||
// messages.text.ClipboardApp.pickSaveSuccess ||
|
||||
"Save location set.",
|
||||
messages.text.ClipboardApp.pickSaveSuccess,
|
||||
false
|
||||
);
|
||||
return true;
|
||||
@@ -89,8 +87,7 @@ export function RetrieveTabPanel({
|
||||
if (err.name !== "AbortError") {
|
||||
console.error("Failed to set up folder receive:", err);
|
||||
putMessageInMs(
|
||||
// messages.text.ClipboardApp.pickSaveError ||
|
||||
"Could not set save location.",
|
||||
messages.text.ClipboardApp.pickSaveError,
|
||||
false
|
||||
);
|
||||
}
|
||||
|
||||
@@ -298,6 +298,9 @@ export const de: Messages = {
|
||||
failMsg: "Fehler beim Beitreten zum Raum:",
|
||||
},
|
||||
pickSaveMsg: "Direkt auf Festplatte speichern?",
|
||||
pickSaveUnsupported: "Verzeichnisauswahl nicht unterstützt.",
|
||||
pickSaveSuccess: "Speicherort festgelegt.",
|
||||
pickSaveError: "Speicherort konnte nicht festgelegt werden.",
|
||||
roomStatus: {
|
||||
senderEmptyMsg: "Raum ist leer",
|
||||
receiverEmptyMsg:
|
||||
|
||||
@@ -232,11 +232,11 @@ export const en: Messages = {
|
||||
OtherFileTransferring_tips:
|
||||
"Please wait for current transfer to complete",
|
||||
download_tips: "Click to download file",
|
||||
PendingSave_tips: "Click to save file locally", // 新增
|
||||
PendingSave_tips: "Click to save file locally",
|
||||
Saved_dis: "Saved",
|
||||
Waiting_dis: "Waiting",
|
||||
Download_dis: "Download",
|
||||
Save_dis: "Save", // 新增
|
||||
Save_dis: "Save",
|
||||
},
|
||||
FileListDisplay: {
|
||||
sending_dis: "Sending",
|
||||
@@ -291,6 +291,9 @@ export const en: Messages = {
|
||||
failMsg: "Failed to join room:",
|
||||
},
|
||||
pickSaveMsg: "Save Directly to Disk ?",
|
||||
pickSaveUnsupported: "Directory picker not supported.",
|
||||
pickSaveSuccess: "Save location set.",
|
||||
pickSaveError: "Could not set save location.",
|
||||
roomStatus: {
|
||||
senderEmptyMsg: "Room is empty",
|
||||
receiverEmptyMsg: "You can accept an invitation to join the room",
|
||||
|
||||
@@ -292,6 +292,9 @@ export const es: Messages = {
|
||||
failMsg: "Error al unirse a la sala:",
|
||||
},
|
||||
pickSaveMsg: "¿Guardar Directamente en Disco?",
|
||||
pickSaveUnsupported: "Selector de directorio no compatible.",
|
||||
pickSaveSuccess: "Ubicación de guardado establecida.",
|
||||
pickSaveError: "No se pudo establecer la ubicación de guardado.",
|
||||
roomStatus: {
|
||||
senderEmptyMsg: "La sala está vacía",
|
||||
receiverEmptyMsg: "Puedes aceptar una invitación para unirte a la sala",
|
||||
|
||||
@@ -298,6 +298,9 @@ export const fr: Messages = {
|
||||
failMsg: "Échec de la connexion à la salle :",
|
||||
},
|
||||
pickSaveMsg: "Enregistrer directement sur le disque ?",
|
||||
pickSaveUnsupported: "Sélecteur de répertoire non pris en charge.",
|
||||
pickSaveSuccess: "Emplacement de sauvegarde défini.",
|
||||
pickSaveError: "Impossible de définir l'emplacement de sauvegarde.",
|
||||
roomStatus: {
|
||||
senderEmptyMsg: "La salle est vide",
|
||||
receiverEmptyMsg:
|
||||
|
||||
@@ -285,6 +285,9 @@ export const ja: Messages = {
|
||||
failMsg: "ルームへの参加に失敗しました:",
|
||||
},
|
||||
pickSaveMsg: "ディスクに直接保存しますか?",
|
||||
pickSaveUnsupported: "ディレクトリピッカーはサポートされていません。",
|
||||
pickSaveSuccess: "保存場所が設定されました。",
|
||||
pickSaveError: "保存場所を設定できませんでした。",
|
||||
roomStatus: {
|
||||
senderEmptyMsg: "ルームは空です",
|
||||
receiverEmptyMsg: "招待を受けてルームに参加できます",
|
||||
|
||||
@@ -283,6 +283,9 @@ export const ko: Messages = {
|
||||
failMsg: "방 참여 실패:",
|
||||
},
|
||||
pickSaveMsg: "직접 디스크에 저장하시겠습니까?",
|
||||
pickSaveUnsupported: "디렉토리 선택기가 지원되지 않습니다.",
|
||||
pickSaveSuccess: "저장 위치가 설정되었습니다.",
|
||||
pickSaveError: "저장 위치를 설정할 수 없습니다.",
|
||||
roomStatus: {
|
||||
senderEmptyMsg: "방이 비어 있습니다",
|
||||
receiverEmptyMsg: "초대를 수락하여 방에 참여할 수 있습니다",
|
||||
|
||||
@@ -270,6 +270,9 @@ export const zh: Messages = {
|
||||
failMsg: "加入房间失败:",
|
||||
},
|
||||
pickSaveMsg: "直接保存到磁盘?",
|
||||
pickSaveUnsupported: "不支持目录选择器。",
|
||||
pickSaveSuccess: "保存位置已设置。",
|
||||
pickSaveError: "无法设置保存位置。",
|
||||
roomStatus: {
|
||||
senderEmptyMsg: "房间为空",
|
||||
receiverEmptyMsg: "您可以接受邀请加入房间",
|
||||
|
||||
@@ -266,6 +266,9 @@ export type ClipboardApp = {
|
||||
waitting_tips: string;
|
||||
joinRoom: JoinRoom;
|
||||
pickSaveMsg: string;
|
||||
pickSaveUnsupported: string;
|
||||
pickSaveSuccess: string;
|
||||
pickSaveError: string;
|
||||
roomStatus: RoomStatus;
|
||||
html: ClipboardAppHtml;
|
||||
fileExistMsg?: string;
|
||||
|
||||
Reference in New Issue
Block a user