Skip to content

armgit / bento

Public Imported from GitHub
0

Bento, the office suite that fits in a file

home/webext: place a granted folder by probing the disk; cards for documents without a preview (#515)

nyblnet081123a8e6b0
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 13ef8848..257e8d86 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -611,6 +611,22 @@ jobs:
# request. Every failure mode here is silent by nature.
run: node scripts/test-webext-update.ts
+ - name: WebExtension placement rig
+ # A granted folder has no path; the library can only open a document
+ # by its file:// URL. Placement GUESSES paths and PROVES one by bytes
+ # and by the grant itself — the property that matters is that a wrong
+ # guess (same name, other bytes; same bytes, a copy elsewhere) is never
+ # recorded. Also the title card drawn for a document with no preview.
+ run: node scripts/test-webext-place.ts
+
+ - name: WebExtension file-grant rig
+ # Saving in place for a document outside every granted folder: a
+ # per-file handle the extension holds, the downloads API for Downloads,
+ # the one-time offer. Each must write only the sender's own file, use a
+ # handle only when proven to be that file (name and bytes), and fail to
+ # the browser's own picker — never to nothing.
+ run: node scripts/test-webext-filegrant.ts
+
- name: WebExtension localisation rig
# Every failure mode of a message catalogue is silent: a key the code
# uses but English lacks renders as the key name, a locale missing a key
diff --git a/home/webext/_locales/ar/messages.json b/home/webext/_locales/ar/messages.json
index 5c4c2bdb..d95593d0 100644
--- a/home/webext/_locales/ar/messages.json
+++ b/home/webext/_locales/ar/messages.json
@@ -189,7 +189,7 @@
"message": "اختر المجلد الذي توجد فيه مستنداتك"
},
"setupStep1Note": {
- "message": "مجلد واحد واسع يكفي عادةً — فهو يشمل كل ما بداخله."
+ "message": "يكفي عادةً مجلد واسع واحد — فهو يغطي كل ما بداخله. لن يسلّم Chrome مجلد المنزل نفسه ولا Library: اختر المستندات أو سطح المكتب أو المجلد الذي تعيش فيه مستنداتك."
},
"setupStep2": {
"message": "فعّل الوصول إلى الملفات المحلية"
@@ -484,5 +484,149 @@
},
"surveyOnlySeen": {
"message": "لا يمكن العثور بهذه الطريقة إلا على المستندات التي فُتحت في هذا المتصفح."
+ },
+ "placingFolder": {
+ "message": "جارٍ البحث عن ”$1“ على القرص…"
+ },
+ "placeNoDisk": {
+ "message": "لم يسمح Chrome للامتداد بقراءة ”$1“ من القرص للعثور عليه (رُفضت قوائم file://)."
+ },
+ "placeTried": {
+ "message": "بُحث عن ”$1“ في $2 موضعًا على القرص — ليس هناك."
+ },
+ "badgeNotAdded": {
+ "message": "غير مضاف"
+ },
+ "badgeNotAddedTip": {
+ "message": "عُثر عليه على القرص. يفتح، لكن الحفظ سيسأل عن المكان — أضف مجلده ليُحفظ في مكانه."
+ },
+ "folderFoundTip": {
+ "message": "عُثر عليه على القرص ولم يُضف: تفتح مستنداته، لكن الحفظ يسأل عن المكان."
+ },
+ "menuAddFolder": {
+ "message": "إضافة مجلده ليُحفظ في مكانه…"
+ },
+ "pickThisFolder": {
+ "message": "في المحدِّد اختر المجلد ”$1“ — يجب أن يراك Chrome تختاره."
+ },
+ "pickedWrongFolder": {
+ "message": "”$1“ ليس مجلد هذا المستند (”$2“). حاول مجددًا واختر ذاك."
+ },
+ "folderAlreadyAdded": {
+ "message": "”$1“ مضاف بالفعل."
+ },
+ "bentoFolderBtn": {
+ "message": "إنشاء مجلد Bento…"
+ },
+ "bentoFolderHow": {
+ "message": "في مربع الحوار أنشئ مجلدًا جديدًا باسم ”Bento“ داخل المستندات واختره."
+ },
+ "bentoFolderMade": {
+ "message": "”$1“ هو مجلد Bento الخاص بك — تذهب المستندات الجديدة إليه وتُحفظ في مكانها."
+ },
+ "bentoFolderTip": {
+ "message": "مجلد داخل المستندات يحفظ في مكانه ويستقبل المستندات الجديدة. لن يمنح Chrome مجلد المستندات نفسه."
+ },
+ "defaultFolder": {
+ "message": "المستندات الجديدة تأتي هنا"
+ },
+ "fgTitle": {
+ "message": "حفظ ”$1“ في مكانه من الآن فصاعدًا؟"
+ },
+ "fgTitleLapsed": {
+ "message": "إعادة ربط ”$1“؟"
+ },
+ "fgLead": {
+ "message": "يحتفظ bento/home بالإذن لهذا الملف وحده، فيكتب كل حفظ فيه مباشرة. اختر الملف نفسه في مربع الحوار التالي."
+ },
+ "fgLeadLapsed": {
+ "message": "لدى bento/home هذا الملف بالفعل؛ يريد المتصفح أن تؤكده مجددًا."
+ },
+ "fgChoose": {
+ "message": "اختيار الملف…"
+ },
+ "fgReconnect": {
+ "message": "إعادة الربط"
+ },
+ "fgOnce": {
+ "message": "هذه المرة فقط"
+ },
+ "fgNotSame": {
+ "message": "هذا ليس الملف الذي طلب (”$1“). اختر ذاك، أو أغلق هذه النافذة."
+ },
+ "fgDenied": {
+ "message": "لم يُمنح الإذن."
+ },
+ "droppedGranted": {
+ "message": "أُضيف: $1 مجلدات، $2 ملفات."
+ },
+ "setFilesTitle": {
+ "message": "الملفات"
+ },
+ "setFilesSub": {
+ "message": "مستندات خارج أي مجلد مضاف تُحفظ في مكانها بنفسها — اختيرت مرة، أو أُفلتت في المكتبة."
+ },
+ "dropNoHandle": {
+ "message": "”$1“: لم يسلّم المتصفح مقبض ملف لهذا الإفلات."
+ },
+ "dropNotBento": {
+ "message": "”$1“ ليس مستند Bento ‏(.bento.html) — لم يُضف."
+ },
+ "setDownloadsTitle": {
+ "message": "التنزيلات"
+ },
+ "setDownloadsSub": {
+ "message": "يمكن للمستندات في مجلد التنزيلات أن تُحفظ في مكانها عبر تنزيلات Chrome — إلا إذا كان Chrome مضبوطًا ليسأل عن مكان حفظ كل ملف، مما يحوّل كل حفظ إلى مربع حوار."
+ },
+ "setDownloadsOff": {
+ "message": "سأل Chrome عن مكان الحفظ — الحفظ في التنزيلات متوقف حتى يتغير ذلك الإعداد"
+ },
+ "setDownloadsRetry": {
+ "message": "حاول مجددًا"
+ },
+ "dropTwins": {
+ "message": "”$1“: $2 ملفات على القرص لها هذه البايتات بالضبط — أُضيف، لكنه لا يستطيع الحفظ في مكانه حتى تختلف."
+ },
+ "addFiles": {
+ "message": "إضافة ملفات…"
+ },
+ "tdGrant": {
+ "message": "الحفظ هنا دون سؤال…"
+ },
+ "tdViaFolder": {
+ "message": "يُحفظ في مكانه — مجلده مضاف"
+ },
+ "tdViaFile": {
+ "message": "يُحفظ في مكانه — هذا الملف مضاف"
+ },
+ "tdViaDownloads": {
+ "message": "يُحفظ في مكانه — إنه في التنزيلات"
+ },
+ "tdNotYet": {
+ "message": "يسأل عن مكان الحفظ في كل مرة"
+ },
+ "badgeNotSavingTip": {
+ "message": "لا يستطيع هذا المستند الحفظ في مكانه بعد — افتح لوحة bento/home لإصلاح ذلك."
+ },
+ "noticeOsBlocked": {
+ "message": "يمنع macOS المتصفح من $1، لذا لا تُدرج المستندات هناك حتى تسمح بذلك: إعدادات النظام → الخصوصية والأمن → الملفات والمجلدات → Google Chrome."
+ },
+ "noticeOsBlockedPath": {
+ "message": "إعدادات النظام → الخصوصية والأمن → الملفات والمجلدات"
+ },
+ "fgLeadFolder": {
+ "message": "اختر المجلد ”$1“ في مربع الحوار التالي، وسيُحفظ كل مستند فيه في مكانه من الآن — هذا المستند وجيرانه."
+ },
+ "fgChooseFolder": {
+ "message": "اختيار المجلد ”$1“…"
+ },
+ "fgOnlyFile": {
+ "message": "هذا الملف فقط…"
+ },
+ "fgNotContaining": {
+ "message": "”$1“ لا يحتوي هذا المستند — اختر ”$2“ أو مجلدًا أعلى منه."
+ },
+ "tdGrantFolder": {
+ "message": "حفظ كل ما في ”$1“ دون سؤال…"
}
}
diff --git a/home/webext/_locales/bn/messages.json b/home/webext/_locales/bn/messages.json
index 57be1e37..0f698476 100644
--- a/home/webext/_locales/bn/messages.json
+++ b/home/webext/_locales/bn/messages.json
@@ -189,7 +189,7 @@
"message": "আপনার নথি যে ফোল্ডারে থাকে সেটি বাছুন"
},
"setupStep1Note": {
- "message": "সাধারণত একটি বড় ফোল্ডারই যথেষ্ট — এর ভেতরের সবকিছু এতে ধরা পড়ে।"
+ "message": "সাধারণত একটি বড় ফোল্ডারই যথেষ্ট — ভেতরের সবকিছু এতে পড়ে। Chrome হোম ফোল্ডার নিজে বা Library দেবে না: Documents, Desktop বা যে ফোল্ডারে আপনার নথি আছে সেটি বেছে নিন।"
},
"setupStep2": {
"message": "স্থানীয় ফাইল অ্যাক্সেস চালু করুন"
@@ -484,5 +484,149 @@
},
"surveyOnlySeen": {
"message": "এভাবে কেবল এই ব্রাউজারে খোলা নথিই পাওয়া যায়।"
+ },
+ "placingFolder": {
+ "message": "ডিস্কে “$1” খোঁজা হচ্ছে…"
+ },
+ "placeNoDisk": {
+ "message": "Chrome এক্সটেনশনকে “$1” খুঁজতে ডিস্ক থেকে পড়তে দেয়নি (file:// তালিকা প্রত্যাখ্যাত)।"
+ },
+ "placeTried": {
+ "message": "ডিস্কে $2টি জায়গায় “$1” খোঁজা হয়েছে — সেখানে নেই।"
+ },
+ "badgeNotAdded": {
+ "message": "যোগ করা হয়নি"
+ },
+ "badgeNotAddedTip": {
+ "message": "ডিস্কে পাওয়া গেছে। খোলে, কিন্তু সংরক্ষণের সময় কোথায় তা জিজ্ঞেস করবে — জায়গায় সংরক্ষণ করতে এর ফোল্ডার যোগ করুন।"
+ },
+ "folderFoundTip": {
+ "message": "ডিস্কে পাওয়া গেছে, যোগ করা হয়নি: এর নথি খোলে, কিন্তু সংরক্ষণ কোথায় তা জিজ্ঞেস করে।"
+ },
+ "menuAddFolder": {
+ "message": "জায়গায় সংরক্ষণ করতে এর ফোল্ডার যোগ করুন…"
+ },
+ "pickThisFolder": {
+ "message": "নির্বাচকে “$1” ফোল্ডারটি বেছে নিন — Chrome-কে দেখতে হবে আপনি সেটি বেছে নিচ্ছেন।"
+ },
+ "pickedWrongFolder": {
+ "message": "“$1” এই নথির ফোল্ডার নয় (“$2”)। আবার চেষ্টা করুন এবং সেটি বেছে নিন।"
+ },
+ "folderAlreadyAdded": {
+ "message": "“$1” ইতিমধ্যে যোগ করা আছে।"
+ },
+ "bentoFolderBtn": {
+ "message": "একটি Bento ফোল্ডার তৈরি করুন…"
+ },
+ "bentoFolderHow": {
+ "message": "ডায়ালগে Documents-এর ভেতরে “Bento” নামে একটি নতুন ফোল্ডার তৈরি করে সেটি বেছে নিন।"
+ },
+ "bentoFolderMade": {
+ "message": "“$1” আপনার Bento ফোল্ডার — নতুন নথি সেখানে যায় এবং জায়গায় সংরক্ষিত হয়।"
+ },
+ "bentoFolderTip": {
+ "message": "Documents-এর ভেতরের একটি ফোল্ডার যা জায়গায় সংরক্ষণ করে ও নতুন নথি নেয়। Chrome খোদ Documents দেবে না।"
+ },
+ "defaultFolder": {
+ "message": "নতুন নথি এখানে আসে"
+ },
+ "fgTitle": {
+ "message": "এখন থেকে “$1” জায়গায় সংরক্ষণ করবেন?"
+ },
+ "fgTitleLapsed": {
+ "message": "“$1” আবার সংযুক্ত করবেন?"
+ },
+ "fgLead": {
+ "message": "bento/home শুধু এই একটি ফাইলের অনুমতি রাখে, তাই প্রতিটি সংরক্ষণ সরাসরি এতে লেখা হয়। পরের ডায়ালগে একই ফাইল বেছে নিন।"
+ },
+ "fgLeadLapsed": {
+ "message": "bento/home-এর কাছে এই ফাইলটি আগে থেকেই আছে; ব্রাউজার চায় আপনি আবার নিশ্চিত করুন।"
+ },
+ "fgChoose": {
+ "message": "ফাইল বেছে নিন…"
+ },
+ "fgReconnect": {
+ "message": "আবার সংযুক্ত করুন"
+ },
+ "fgOnce": {
+ "message": "শুধু এবারের মতো"
+ },
+ "fgNotSame": {
+ "message": "এটি সেই ফাইল নয় যেটি চেয়েছিল (“$1”)। সেটি বেছে নিন, বা এই উইন্ডো বন্ধ করুন।"
+ },
+ "fgDenied": {
+ "message": "অনুমতি দেওয়া হয়নি।"
+ },
+ "droppedGranted": {
+ "message": "যোগ হয়েছে: $1টি ফোল্ডার, $2টি ফাইল।"
+ },
+ "setFilesTitle": {
+ "message": "ফাইল"
+ },
+ "setFilesSub": {
+ "message": "যোগ করা কোনো ফোল্ডারের বাইরের নথি যা নিজে থেকেই জায়গায় সংরক্ষিত হয় — একবার বেছে নেওয়া, বা লাইব্রেরিতে টেনে ফেলা।"
+ },
+ "dropNoHandle": {
+ "message": "“$1”: ব্রাউজার এই ড্রপের জন্য কোনো ফাইল হ্যান্ডল দেয়নি।"
+ },
+ "dropNotBento": {
+ "message": "“$1” Bento নথি (.bento.html) নয় — যোগ করা হয়নি।"
+ },
+ "setDownloadsTitle": {
+ "message": "ডাউনলোড"
+ },
+ "setDownloadsSub": {
+ "message": "ডাউনলোড ফোল্ডারের নথি Chrome-এর ডাউনলোডের মাধ্যমে জায়গায় সংরক্ষিত হতে পারে — যদি না Chrome প্রতিটি ফাইল কোথায় সংরক্ষণ করবে তা জিজ্ঞেস করতে সেট থাকে, যা প্রতিটি সংরক্ষণকে একটি ডায়ালগে পরিণত করে।"
+ },
+ "setDownloadsOff": {
+ "message": "Chrome জিজ্ঞেস করেছে কোথায় সংরক্ষণ করতে হবে — ওই সেটিং না বদলানো পর্যন্ত ডাউনলোডে সংরক্ষণ বন্ধ"
+ },
+ "setDownloadsRetry": {
+ "message": "আবার চেষ্টা করুন"
+ },
+ "dropTwins": {
+ "message": "“$1”: ডিস্কে $2টি ফাইলে হুবহু এই বাইটগুলো আছে — যোগ হয়েছে, কিন্তু সেগুলো আলাদা না হওয়া পর্যন্ত জায়গায় সংরক্ষণ করতে পারবে না।"
+ },
+ "addFiles": {
+ "message": "ফাইল যোগ করুন…"
+ },
+ "tdGrant": {
+ "message": "না জিজ্ঞেস করে এখানে সংরক্ষণ করুন…"
+ },
+ "tdViaFolder": {
+ "message": "জায়গায় সংরক্ষণ হয় — এর ফোল্ডার যোগ করা আছে"
+ },
+ "tdViaFile": {
+ "message": "জায়গায় সংরক্ষণ হয় — এই ফাইল যোগ করা আছে"
+ },
+ "tdViaDownloads": {
+ "message": "জায়গায় সংরক্ষণ হয় — এটি ডাউনলোডে আছে"
+ },
+ "tdNotYet": {
+ "message": "প্রতিবার জিজ্ঞেস করে কোথায় সংরক্ষণ করবে"
+ },
+ "badgeNotSavingTip": {
+ "message": "এই নথি এখনও জায়গায় সংরক্ষণ করতে পারে না — ঠিক করতে bento/home প্যানেল খুলুন।"
+ },
+ "noticeOsBlocked": {
+ "message": "macOS ব্রাউজারকে $1 থেকে দূরে রাখছে, তাই আপনি অনুমতি না দেওয়া পর্যন্ত সেখানকার নথি তালিকাভুক্ত হয় না: System Settings → Privacy & Security → Files and Folders → Google Chrome."
+ },
+ "noticeOsBlockedPath": {
+ "message": "System Settings → Privacy & Security → Files and Folders"
+ },
+ "fgLeadFolder": {
+ "message": "পরের ডায়ালগে “$1” ফোল্ডারটি বেছে নিন — এখন থেকে এর প্রতিটি নথি জায়গায় সংরক্ষিত হবে: এটি ও পাশেরগুলো।"
+ },
+ "fgChooseFolder": {
+ "message": "“$1” ফোল্ডার বেছে নিন…"
+ },
+ "fgOnlyFile": {
+ "message": "শুধু এই ফাইল…"
+ },
+ "fgNotContaining": {
+ "message": "“$1”-এ এই নথি নেই — “$2” বা তার উপরের কোনো ফোল্ডার বেছে নিন।"
+ },
+ "tdGrantFolder": {
+ "message": "“$1”-এর সবকিছু না জিজ্ঞেস করে সংরক্ষণ করুন…"
}
}
diff --git a/home/webext/_locales/da/messages.json b/home/webext/_locales/da/messages.json
index b6484d85..9fea53c8 100644
--- a/home/webext/_locales/da/messages.json
+++ b/home/webext/_locales/da/messages.json
@@ -189,7 +189,7 @@
"message": "Vælg den mappe, dine dokumenter ligger i"
},
"setupStep1Note": {
- "message": "Én bred mappe er som regel nok — den dækker alt indeni."
+ "message": "Én bred mappe er som regel nok — den dækker alt i den. Chrome udleverer ikke selve hjemmemappen eller Library: vælg Dokumenter, Skrivebord eller den mappe, dine dokumenter ligger i."
},
"setupStep2": {
"message": "Slå adgang til lokale filer til"
@@ -484,5 +484,149 @@
},
"surveyOnlySeen": {
"message": "Kun dokumenter, der er åbnet i denne browser, kan findes sådan."
+ },
+ "placingFolder": {
+ "message": "Leder efter “$1” på disken…"
+ },
+ "placeNoDisk": {
+ "message": "Chrome lod ikke udvidelsen læse “$1” fra disken for at finde den (file://-lister afvist)."
+ },
+ "placeTried": {
+ "message": "Ledte efter “$1” $2 steder på disken — ikke der."
+ },
+ "badgeNotAdded": {
+ "message": "ikke tilføjet"
+ },
+ "badgeNotAddedTip": {
+ "message": "Fundet på disken. Den åbner, men gemning spørger hvor — tilføj mappen for at gemme på stedet."
+ },
+ "folderFoundTip": {
+ "message": "Fundet på disken, ikke tilføjet: dens dokumenter åbner, men gemning spørger hvor."
+ },
+ "menuAddFolder": {
+ "message": "Tilføj dens mappe for at gemme på stedet…"
+ },
+ "pickThisFolder": {
+ "message": "Vælg mappen “$1” i vælgeren — Chrome skal se dig vælge den."
+ },
+ "pickedWrongFolder": {
+ "message": "“$1” er ikke mappen, dette dokument ligger i (“$2”). Prøv igen og vælg den."
+ },
+ "folderAlreadyAdded": {
+ "message": "“$1” er allerede tilføjet."
+ },
+ "bentoFolderBtn": {
+ "message": "Opret en Bento-mappe…"
+ },
+ "bentoFolderHow": {
+ "message": "Opret i dialogen en ny mappe kaldet “Bento” i Dokumenter, og vælg den."
+ },
+ "bentoFolderMade": {
+ "message": "“$1” er din Bento-mappe — nye dokumenter havner der og gemmes på stedet."
+ },
+ "bentoFolderTip": {
+ "message": "En mappe i Dokumenter, der gemmer på stedet og modtager nye dokumenter. Chrome giver ikke selve Dokumenter."
+ },
+ "defaultFolder": {
+ "message": "nye dokumenter havner her"
+ },
+ "fgTitle": {
+ "message": "Gem “$1” på stedet fra nu af?"
+ },
+ "fgTitleLapsed": {
+ "message": "Forbind “$1” igen?"
+ },
+ "fgLead": {
+ "message": "bento/home beholder tilladelsen til netop denne fil, så hver gemning skriver direkte til den. Vælg den samme fil i næste dialog."
+ },
+ "fgLeadLapsed": {
+ "message": "bento/home har allerede denne fil; browseren vil have dig til at bekræfte den igen."
+ },
+ "fgChoose": {
+ "message": "Vælg filen…"
+ },
+ "fgReconnect": {
+ "message": "Forbind igen"
+ },
+ "fgOnce": {
+ "message": "Kun denne gang"
+ },
+ "fgNotSame": {
+ "message": "Det er ikke den fil, der spurgte (“$1”). Vælg den, eller luk dette vindue."
+ },
+ "fgDenied": {
+ "message": "Tilladelsen blev ikke givet."
+ },
+ "droppedGranted": {
+ "message": "Tilføjet: $1 mapper, $2 filer."
+ },
+ "setFilesTitle": {
+ "message": "Filer"
+ },
+ "setFilesSub": {
+ "message": "Dokumenter uden for enhver tilføjet mappe, der selv gemmer på stedet — valgt én gang, eller trukket ind i biblioteket."
+ },
+ "dropNoHandle": {
+ "message": "“$1”: browseren gav intet fil-handle for dette drop."
+ },
+ "dropNotBento": {
+ "message": "“$1” er ikke et Bento-dokument (.bento.html) — ikke tilføjet."
+ },
+ "setDownloadsTitle": {
+ "message": "Overførsler"
+ },
+ "setDownloadsSub": {
+ "message": "Dokumenter i mappen Overførsler kan gemme på stedet via Chromes overførsler — medmindre Chrome er sat til at spørge, hvor hver fil skal gemmes, hvilket gør hver gemning til en dialog."
+ },
+ "setDownloadsOff": {
+ "message": "Chrome spurgte, hvor der skulle gemmes — gemning i Overførsler er slået fra, indtil den indstilling ændres"
+ },
+ "setDownloadsRetry": {
+ "message": "Prøv igen"
+ },
+ "dropTwins": {
+ "message": "“$1”: $2 filer på disken har præcis disse bytes — tilføjet, men kan ikke gemme på stedet, før de adskiller sig."
+ },
+ "addFiles": {
+ "message": "Tilføj filer…"
+ },
+ "tdGrant": {
+ "message": "Gem her uden at spørge…"
+ },
+ "tdViaFolder": {
+ "message": "gemmer på stedet — mappen er tilføjet"
+ },
+ "tdViaFile": {
+ "message": "gemmer på stedet — denne fil er tilføjet"
+ },
+ "tdViaDownloads": {
+ "message": "gemmer på stedet — ligger i Overførsler"
+ },
+ "tdNotYet": {
+ "message": "spørger hvor der skal gemmes, hver gang"
+ },
+ "badgeNotSavingTip": {
+ "message": "Dette dokument kan endnu ikke gemme på stedet — åbn bento/home-panelet for at ordne det."
+ },
+ "noticeOsBlocked": {
+ "message": "macOS holder browseren ude af $1, så dokumenter der vises ikke, før du tillader det: Systemindstillinger → Anonymitet og sikkerhed → Filer og mapper → Google Chrome."
+ },
+ "noticeOsBlockedPath": {
+ "message": "Systemindstillinger → Anonymitet og sikkerhed → Filer og mapper"
+ },
+ "fgLeadFolder": {
+ "message": "Vælg mappen “$1” i næste dialog, så gemmes alle dokumenter i den på stedet fra nu af — dette og naboerne."
+ },
+ "fgChooseFolder": {
+ "message": "Vælg mappen “$1”…"
+ },
+ "fgOnlyFile": {
+ "message": "Kun denne fil…"
+ },
+ "fgNotContaining": {
+ "message": "“$1” indeholder ikke dette dokument — vælg “$2” eller en mappe over den."
+ },
+ "tdGrantFolder": {
+ "message": "Gem alt i “$1” uden at spørge…"
}
}
diff --git a/home/webext/_locales/de/messages.json b/home/webext/_locales/de/messages.json
index a83c0b9f..c0a6dde8 100644
--- a/home/webext/_locales/de/messages.json
+++ b/home/webext/_locales/de/messages.json
@@ -199,7 +199,7 @@
"message": "Wählen Sie den Ordner, in dem Ihre Dokumente liegen"
},
"setupStep1Note": {
- "message": "Ein großzügiger Ordner genügt meist — er deckt alles darin ab."
+ "message": "Ein breiter Ordner reicht meist — er deckt alles darin ab. Den Home-Ordner selbst oder Library gibt Chrome nicht frei: Wählen Sie Dokumente, Schreibtisch oder den Ordner, in dem Ihre Dokumente liegen."
},
"setupStep2": {
"message": "Zugriff auf lokale Dateien einschalten",
@@ -517,5 +517,149 @@
},
"surveyOnlySeen": {
"message": "So lassen sich nur Dokumente finden, die in diesem Browser geöffnet wurden."
+ },
+ "placingFolder": {
+ "message": "Suche „$1“ auf der Festplatte …"
+ },
+ "placeNoDisk": {
+ "message": "Chrome ließ die Erweiterung „$1“ nicht von der Festplatte lesen, um den Ordner zu finden (file://-Verzeichnisse verweigert)."
+ },
+ "placeTried": {
+ "message": "„$1“ an $2 Orten auf der Festplatte gesucht — nicht dort."
+ },
+ "badgeNotAdded": {
+ "message": "nicht hinzugefügt"
+ },
+ "badgeNotAddedTip": {
+ "message": "Auf der Festplatte gefunden. Öffnet sich, aber beim Speichern wird nach dem Ort gefragt — fügen Sie den Ordner hinzu, um direkt zu speichern."
+ },
+ "folderFoundTip": {
+ "message": "Auf der Festplatte gefunden, nicht hinzugefügt: Dokumente öffnen sich, aber Speichern fragt nach dem Ort."
+ },
+ "menuAddFolder": {
+ "message": "Ordner hinzufügen, um direkt zu speichern …"
+ },
+ "pickThisFolder": {
+ "message": "Wählen Sie im Dialog den Ordner „$1“ — Chrome muss sehen, dass Sie ihn wählen."
+ },
+ "pickedWrongFolder": {
+ "message": "„$1“ ist nicht der Ordner dieses Dokuments („$2“). Versuchen Sie es erneut und wählen Sie diesen."
+ },
+ "folderAlreadyAdded": {
+ "message": "„$1“ ist bereits hinzugefügt."
+ },
+ "bentoFolderBtn": {
+ "message": "Bento-Ordner anlegen …"
+ },
+ "bentoFolderHow": {
+ "message": "Legen Sie im Dialog in „Dokumente“ einen neuen Ordner namens „Bento“ an und wählen Sie ihn."
+ },
+ "bentoFolderMade": {
+ "message": "„$1“ ist Ihr Bento-Ordner — neue Dokumente landen dort und speichern direkt."
+ },
+ "bentoFolderTip": {
+ "message": "Ein Ordner in „Dokumente“, der direkt speichert und neue Dokumente aufnimmt. „Dokumente“ selbst gibt Chrome nicht frei."
+ },
+ "defaultFolder": {
+ "message": "neue Dokumente kommen hierher"
+ },
+ "fgTitle": {
+ "message": "„$1“ ab jetzt direkt speichern?"
+ },
+ "fgTitleLapsed": {
+ "message": "„$1“ wieder verbinden?"
+ },
+ "fgLead": {
+ "message": "bento/home behält die Berechtigung für genau diese Datei, sodass jedes Speichern direkt hineinschreibt. Wählen Sie im nächsten Dialog dieselbe Datei."
+ },
+ "fgLeadLapsed": {
+ "message": "bento/home hat diese Datei bereits; der Browser möchte, dass Sie sie erneut bestätigen."
+ },
+ "fgChoose": {
+ "message": "Datei wählen …"
+ },
+ "fgReconnect": {
+ "message": "Wieder verbinden"
+ },
+ "fgOnce": {
+ "message": "Nur dieses Mal"
+ },
+ "fgNotSame": {
+ "message": "Das ist nicht die Datei, die gefragt hat („$1“). Wählen Sie diese, oder schließen Sie das Fenster."
+ },
+ "fgDenied": {
+ "message": "Die Berechtigung wurde nicht erteilt."
+ },
+ "droppedGranted": {
+ "message": "Hinzugefügt: $1 Ordner, $2 Dateien."
+ },
+ "setFilesTitle": {
+ "message": "Dateien"
+ },
+ "setFilesSub": {
+ "message": "Dokumente außerhalb jedes hinzugefügten Ordners, die für sich direkt speichern — einmal gewählt oder in die Bibliothek gezogen."
+ },
+ "dropNoHandle": {
+ "message": "„$1“: Der Browser hat für diesen Drop kein Datei-Handle übergeben."
+ },
+ "dropNotBento": {
+ "message": "„$1“ ist kein Bento-Dokument (.bento.html) — nicht hinzugefügt."
+ },
+ "setDownloadsTitle": {
+ "message": "Downloads"
+ },
+ "setDownloadsSub": {
+ "message": "Dokumente im Downloads-Ordner können über Chromes Downloads direkt speichern — außer Chrome ist so eingestellt, dass es bei jeder Datei nach dem Speicherort fragt; dann wird jedes Speichern zu einem Dialog."
+ },
+ "setDownloadsOff": {
+ "message": "Chrome hat nach dem Speicherort gefragt — Speichern in Downloads ist aus, bis sich diese Einstellung ändert"
+ },
+ "setDownloadsRetry": {
+ "message": "Erneut versuchen"
+ },
+ "dropTwins": {
+ "message": "„$1“: $2 Dateien auf der Festplatte haben genau diese Bytes — hinzugefügt, aber direkt speichern geht erst, wenn sie sich unterscheiden."
+ },
+ "addFiles": {
+ "message": "Dateien hinzufügen …"
+ },
+ "tdGrant": {
+ "message": "Hier ohne Nachfrage speichern …"
+ },
+ "tdViaFolder": {
+ "message": "speichert direkt — sein Ordner ist hinzugefügt"
+ },
+ "tdViaFile": {
+ "message": "speichert direkt — diese Datei ist hinzugefügt"
+ },
+ "tdViaDownloads": {
+ "message": "speichert direkt — liegt in Downloads"
+ },
+ "tdNotYet": {
+ "message": "fragt bei jedem Speichern nach dem Ort"
+ },
+ "badgeNotSavingTip": {
+ "message": "Dieses Dokument kann noch nicht direkt speichern — öffnen Sie das bento/home-Panel, um das zu ändern."
+ },
+ "noticeOsBlocked": {
+ "message": "macOS hält den Browser von $1 fern, daher werden Dokumente dort erst aufgeführt, wenn Sie es erlauben: Systemeinstellungen → Datenschutz & Sicherheit → Dateien und Ordner → Google Chrome."
+ },
+ "noticeOsBlockedPath": {
+ "message": "Systemeinstellungen → Datenschutz & Sicherheit → Dateien und Ordner"
+ },
+ "fgLeadFolder": {
+ "message": "Wählen Sie im nächsten Dialog den Ordner „$1“, dann speichert jedes Dokument darin ab jetzt direkt — dieses und seine Nachbarn."
+ },
+ "fgChooseFolder": {
+ "message": "Ordner „$1“ wählen …"
+ },
+ "fgOnlyFile": {
+ "message": "Nur diese Datei …"
+ },
+ "fgNotContaining": {
+ "message": "„$1“ enthält dieses Dokument nicht — wählen Sie „$2“ oder einen Ordner darüber."
+ },
+ "tdGrantFolder": {
+ "message": "Alles in „$1“ ohne Nachfrage speichern …"
}
}
diff --git a/home/webext/_locales/en/messages.json b/home/webext/_locales/en/messages.json
index 4bba3d36..7038e5e7 100644
--- a/home/webext/_locales/en/messages.json
+++ b/home/webext/_locales/en/messages.json
@@ -207,7 +207,7 @@
"message": "Choose the folder your documents live in"
},
"setupStep1Note": {
- "message": "One broad folder is usually enough — it covers everything inside it."
+ "message": "One broad folder is usually enough — it covers everything inside it. Chrome will not hand over your home folder itself, or Library: choose Documents, Desktop, or the folder your documents live in."
},
"setupStep2": {
"message": "Turn on local file access",
@@ -542,5 +542,197 @@
},
"surveyOnlySeen": {
"message": "Only documents opened in this browser can be found this way."
+ },
+ "placingFolder": {
+ "message": "Looking for “$1” on disk…",
+ "description": "Toast while the extension probes the disk for where a granted folder lives. $1 is the folder name."
+ },
+ "placeNoDisk": {
+ "message": "Chrome would not let the extension read “$1” from disk to find it (file:// listings refused).",
+ "description": "Unplaced-folder banner: the disk probe could not read any file:// listing. $1 is the folder name."
+ },
+ "placeTried": {
+ "message": "Looked for “$1” in $2 places on disk — not there.",
+ "description": "Unplaced-folder banner: the disk probe ran and found nothing. $1 folder name, $2 a count."
+ },
+ "badgeNotAdded": {
+ "message": "not added",
+ "description": "Badge on a document found on disk whose folder has no grant."
+ },
+ "badgeNotAddedTip": {
+ "message": "Found on disk. It opens, but saving will ask where — add its folder to save in place.",
+ "description": "Tooltip of that badge."
+ },
+ "folderFoundTip": {
+ "message": "Found on disk, not added: its documents open, but saving asks where.",
+ "description": "Sidebar tooltip on a folder found on disk without a grant."
+ },
+ "menuAddFolder": {
+ "message": "Add its folder to save in place…",
+ "description": "Card menu: grant the folder a found document sits in."
+ },
+ "pickThisFolder": {
+ "message": "In the picker, choose the folder “$1” — Chrome has to see you pick it.",
+ "description": "Toast before the folder picker opens. $1 is the folder name."
+ },
+ "pickedWrongFolder": {
+ "message": "“$1” is not the folder this document is in (“$2”). Try again and pick that one.",
+ "description": "Toast when the picked folder does not contain the document. $1 picked, $2 expected."
+ },
+ "folderAlreadyAdded": {
+ "message": "“$1” is already added.",
+ "description": "Toast when the picked folder is already granted. $1 is the folder name."
+ },
+ "bentoFolderBtn": {
+ "message": "Create a Bento folder…",
+ "description": "Button: make and grant a Bento folder in Documents."
+ },
+ "bentoFolderHow": {
+ "message": "In the dialog, make a new folder called “Bento” inside Documents and choose it.",
+ "description": "Toast before the folder picker opens for the Bento folder. Keep the folder name “Bento”."
+ },
+ "bentoFolderMade": {
+ "message": "“$1” is your Bento folder — new documents go there and save in place.",
+ "description": "Toast after the Bento folder is granted. $1 is the folder name."
+ },
+ "bentoFolderTip": {
+ "message": "A folder inside Documents that saves in place and takes new documents. Chrome will not grant Documents itself.",
+ "description": "Tooltip of the Create-a-Bento-folder button."
+ },
+ "defaultFolder": {
+ "message": "new documents go here",
+ "description": "Settings folder row: marks the folder new documents are created in."
+ },
+ "fgTitle": {
+ "message": "Save “$1” in place from now on?",
+ "description": "Offer window title. $1 file name."
+ },
+ "fgTitleLapsed": {
+ "message": "Reconnect “$1”?",
+ "description": "Offer window title when the extension already holds the file but its permission lapsed. $1 file name."
+ },
+ "fgLead": {
+ "message": "bento/home keeps permission for this one file, so every save writes straight back to it. Pick the same file in the next dialog.",
+ "description": "Offer window body."
+ },
+ "fgLeadLapsed": {
+ "message": "bento/home already has this file; the browser wants you to confirm it again.",
+ "description": "Offer window body when reconnecting."
+ },
+ "fgChoose": {
+ "message": "Choose the file…",
+ "description": "Offer window: opens the OS file picker."
+ },
+ "fgReconnect": {
+ "message": "Reconnect",
+ "description": "Offer window: renews a lapsed permission."
+ },
+ "fgOnce": {
+ "message": "Just this once",
+ "description": "Offer window: decline; the document's own Save dialog follows."
+ },
+ "fgNotSame": {
+ "message": "That is not the file that asked (“$1”). Pick that one, or close this window.",
+ "description": "Offer window: the picked file is not the one that asked. $1 expected file name."
+ },
+ "fgDenied": {
+ "message": "Permission was not granted.",
+ "description": "Offer window: the permission prompt was refused."
+ },
+ "droppedGranted": {
+ "message": "Added: $1 folders, $2 files.",
+ "description": "Toast after files/folders were dropped onto the library. $1 folders, $2 files (numbers)."
+ },
+ "setFilesTitle": {
+ "message": "Files",
+ "description": "Settings section: per-file grants."
+ },
+ "setFilesSub": {
+ "message": "Documents outside any added folder that save in place on their own — picked once, or dropped onto the library.",
+ "description": "Settings section explanation."
+ },
+ "dropNoHandle": {
+ "message": "“$1”: the browser handed over no file handle for this drop.",
+ "description": "Toast when a dropped item yields no file handle. $1 file name."
+ },
+ "dropNotBento": {
+ "message": "“$1” is not a Bento document (.bento.html) — not added.",
+ "description": "Toast when a dropped file is not a .bento.html. $1 file name."
+ },
+ "setDownloadsTitle": {
+ "message": "Downloads",
+ "description": "Settings section title: the Downloads door."
+ },
+ "setDownloadsSub": {
+ "message": "Documents in your Downloads folder can save in place through Chrome's downloads — unless Chrome is set to ask where to save each file, which turns every save into a dialog.",
+ "description": "Settings: explanation of the Downloads door and the Chrome setting that breaks it."
+ },
+ "setDownloadsOff": {
+ "message": "Chrome asked where to save — saving into Downloads is off until that setting changes",
+ "description": "Settings row: the Downloads door was switched off because Chrome prompted."
+ },
+ "setDownloadsRetry": {
+ "message": "Try again",
+ "description": "Settings: re-enable the Downloads door after changing the Chrome setting."
+ },
+ "dropTwins": {
+ "message": "“$1”: $2 files on disk have exactly these bytes — added, but it cannot save in place until they differ.",
+ "description": "Toast when a dropped file has byte-identical twins on disk. $1 file name, $2 count."
+ },
+ "addFiles": {
+ "message": "Add files…",
+ "description": "Settings: opens a multi-select file picker to grant several documents at once."
+ },
+ "tdGrant": {
+ "message": "Save here without asking…",
+ "description": "Side panel: button that grants the active tab's document so it saves in place."
+ },
+ "tdViaFolder": {
+ "message": "saves in place — its folder is added",
+ "description": "Side panel: the active document saves in place through a folder grant."
+ },
+ "tdViaFile": {
+ "message": "saves in place — this file is added",
+ "description": "Side panel: the active document saves in place through its own file grant."
+ },
+ "tdViaDownloads": {
+ "message": "saves in place — it is in Downloads",
+ "description": "Side panel: the active document saves in place because it is in Downloads."
+ },
+ "tdNotYet": {
+ "message": "asks where to save, every time",
+ "description": "Side panel: the active document has no grant."
+ },
+ "badgeNotSavingTip": {
+ "message": "This document cannot save in place yet — open the bento/home panel to fix that.",
+ "description": "Toolbar icon tooltip on a tab whose document cannot save in place."
+ },
+ "noticeOsBlocked": {
+ "message": "macOS is keeping the browser out of $1, so documents there are not listed until you allow it: System Settings → Privacy & Security → Files and Folders → Google Chrome.",
+ "description": "Notice when macOS refuses the browser a folder. $1 is the folder names. REVIEW: the System Settings path must match the OS's own labels."
+ },
+ "noticeOsBlockedPath": {
+ "message": "System Settings → Privacy & Security → Files and Folders",
+ "description": "The System Settings path, repeated as a code line under the notice. REVIEW: match the OS's own labels."
+ },
+ "fgLeadFolder": {
+ "message": "Choose the folder “$1” in the next dialog and every document in it saves straight back from now on — this one and its neighbours.",
+ "description": "Offer window body when the document's folder can be granted. $1 folder name."
+ },
+ "fgChooseFolder": {
+ "message": "Choose the folder “$1”…",
+ "description": "Offer window primary button: grant the document's folder. $1 folder name."
+ },
+ "fgOnlyFile": {
+ "message": "Only this file…",
+ "description": "Offer window secondary button: grant only the one file."
+ },
+ "fgNotContaining": {
+ "message": "“$1” does not contain this document — choose “$2”, or a folder above it.",
+ "description": "Status when the chosen folder does not contain the document. $1 chosen folder, $2 the document's folder."
+ },
+ "tdGrantFolder": {
+ "message": "Save everything in “$1” without asking…",
+ "description": "Side panel button: grant the active document's folder. $1 folder name."
}
}
diff --git a/home/webext/_locales/es/messages.json b/home/webext/_locales/es/messages.json
index 5037bb16..fe64ea74 100644
--- a/home/webext/_locales/es/messages.json
+++ b/home/webext/_locales/es/messages.json
@@ -199,7 +199,7 @@
"message": "Elige la carpeta donde viven tus documentos"
},
"setupStep1Note": {
- "message": "Una carpeta amplia suele bastar — cubre todo lo que hay dentro."
+ "message": "Suele bastar una carpeta amplia: cubre todo lo que contiene. Chrome no entrega la carpeta personal en sí ni Library: elige Documentos, Escritorio o la carpeta donde están tus documentos."
},
"setupStep2": {
"message": "Activa el acceso a archivos locales",
@@ -517,5 +517,149 @@
},
"surveyOnlySeen": {
"message": "Así solo se encuentran los documentos abiertos en este navegador."
+ },
+ "placingFolder": {
+ "message": "Buscando «$1» en el disco…"
+ },
+ "placeNoDisk": {
+ "message": "Chrome no dejó que la extensión leyera «$1» del disco para encontrarla (listados file:// rechazados)."
+ },
+ "placeTried": {
+ "message": "Se buscó «$1» en $2 lugares del disco: no está ahí."
+ },
+ "badgeNotAdded": {
+ "message": "no añadida"
+ },
+ "badgeNotAddedTip": {
+ "message": "Encontrado en el disco. Se abre, pero al guardar preguntará dónde: añade su carpeta para guardar en el sitio."
+ },
+ "folderFoundTip": {
+ "message": "Encontrada en el disco, no añadida: sus documentos se abren, pero guardar pregunta dónde."
+ },
+ "menuAddFolder": {
+ "message": "Añadir su carpeta para guardar en el sitio…"
+ },
+ "pickThisFolder": {
+ "message": "En el selector, elige la carpeta «$1»: Chrome tiene que ver que la eliges."
+ },
+ "pickedWrongFolder": {
+ "message": "«$1» no es la carpeta de este documento («$2»). Inténtalo de nuevo y elige esa."
+ },
+ "folderAlreadyAdded": {
+ "message": "«$1» ya está añadida."
+ },
+ "bentoFolderBtn": {
+ "message": "Crear una carpeta Bento…"
+ },
+ "bentoFolderHow": {
+ "message": "En el diálogo, crea una carpeta nueva llamada «Bento» dentro de Documentos y elígela."
+ },
+ "bentoFolderMade": {
+ "message": "«$1» es tu carpeta Bento: los documentos nuevos van ahí y se guardan en el sitio."
+ },
+ "bentoFolderTip": {
+ "message": "Una carpeta dentro de Documentos que guarda en el sitio y recibe los documentos nuevos. Chrome no concede Documentos en sí."
+ },
+ "defaultFolder": {
+ "message": "los documentos nuevos van aquí"
+ },
+ "fgTitle": {
+ "message": "¿Guardar «$1» en el sitio a partir de ahora?"
+ },
+ "fgTitleLapsed": {
+ "message": "¿Reconectar «$1»?"
+ },
+ "fgLead": {
+ "message": "bento/home conserva el permiso para este único archivo, así que cada guardado escribe directamente en él. Elige el mismo archivo en el siguiente diálogo."
+ },
+ "fgLeadLapsed": {
+ "message": "bento/home ya tiene este archivo; el navegador quiere que lo confirmes otra vez."
+ },
+ "fgChoose": {
+ "message": "Elegir el archivo…"
+ },
+ "fgReconnect": {
+ "message": "Reconectar"
+ },
+ "fgOnce": {
+ "message": "Solo esta vez"
+ },
+ "fgNotSame": {
+ "message": "Ese no es el archivo que lo pidió («$1»). Elige ese, o cierra esta ventana."
+ },
+ "fgDenied": {
+ "message": "No se concedió el permiso."
+ },
+ "droppedGranted": {
+ "message": "Añadidos: $1 carpetas, $2 archivos."
+ },
+ "setFilesTitle": {
+ "message": "Archivos"
+ },
+ "setFilesSub": {
+ "message": "Documentos fuera de cualquier carpeta añadida que se guardan en el sitio por sí solos: elegidos una vez, o arrastrados a la biblioteca."
+ },
+ "dropNoHandle": {
+ "message": "«$1»: el navegador no entregó ningún identificador de archivo para esta acción."
+ },
+ "dropNotBento": {
+ "message": "«$1» no es un documento Bento (.bento.html): no se añadió."
+ },
+ "setDownloadsTitle": {
+ "message": "Descargas"
+ },
+ "setDownloadsSub": {
+ "message": "Los documentos de la carpeta Descargas pueden guardarse en el sitio a través de las descargas de Chrome, salvo que Chrome esté configurado para preguntar dónde guardar cada archivo, lo que convierte cada guardado en un diálogo."
+ },
+ "setDownloadsOff": {
+ "message": "Chrome preguntó dónde guardar: guardar en Descargas está desactivado hasta que cambie ese ajuste"
+ },
+ "setDownloadsRetry": {
+ "message": "Reintentar"
+ },
+ "dropTwins": {
+ "message": "«$1»: $2 archivos del disco tienen exactamente estos bytes; añadido, pero no puede guardar en el sitio hasta que difieran."
+ },
+ "addFiles": {
+ "message": "Añadir archivos…"
+ },
+ "tdGrant": {
+ "message": "Guardar aquí sin preguntar…"
+ },
+ "tdViaFolder": {
+ "message": "guarda en el sitio: su carpeta está añadida"
+ },
+ "tdViaFile": {
+ "message": "guarda en el sitio: este archivo está añadido"
+ },
+ "tdViaDownloads": {
+ "message": "guarda en el sitio: está en Descargas"
+ },
+ "tdNotYet": {
+ "message": "pregunta dónde guardar, cada vez"
+ },
+ "badgeNotSavingTip": {
+ "message": "Este documento aún no puede guardar en el sitio: abre el panel de bento/home para arreglarlo."
+ },
+ "noticeOsBlocked": {
+ "message": "macOS impide al navegador acceder a $1, así que los documentos que hay ahí no se listan hasta que lo permitas: Ajustes del Sistema → Privacidad y seguridad → Archivos y carpetas → Google Chrome."
+ },
+ "noticeOsBlockedPath": {
+ "message": "Ajustes del Sistema → Privacidad y seguridad → Archivos y carpetas"
+ },
+ "fgLeadFolder": {
+ "message": "Elige la carpeta «$1» en el siguiente diálogo y todos sus documentos se guardarán en el sitio a partir de ahora: este y sus vecinos."
+ },
+ "fgChooseFolder": {
+ "message": "Elegir la carpeta «$1»…"
+ },
+ "fgOnlyFile": {
+ "message": "Solo este archivo…"
+ },
+ "fgNotContaining": {
+ "message": "«$1» no contiene este documento: elige «$2» o una carpeta superior."
+ },
+ "tdGrantFolder": {
+ "message": "Guardar todo en «$1» sin preguntar…"
}
}
diff --git a/home/webext/_locales/fa/messages.json b/home/webext/_locales/fa/messages.json
index b64d628f..97c6e851 100644
--- a/home/webext/_locales/fa/messages.json
+++ b/home/webext/_locales/fa/messages.json
@@ -189,7 +189,7 @@
"message": "پوشه‌ای را که سندهایتان در آن است انتخاب کنید"
},
"setupStep1Note": {
- "message": "معمولاً یک پوشهٔ فراگیر کافی است — هرچه درونش باشد را می‌پوشاند."
+ "message": "معمولاً یک پوشهٔ گسترده کافی است — هرچه درونش باشد را پوشش می‌دهد. Chrome خودِ پوشهٔ خانه یا Library را واگذار نمی‌کند: Documents، Desktop یا پوشه‌ای را که سندهایتان در آن است انتخاب کنید."
},
"setupStep2": {
"message": "دسترسی به فایل‌های محلی را روشن کنید"
@@ -484,5 +484,149 @@
},
"surveyOnlySeen": {
"message": "با این روش تنها سندهایی پیدا می‌شوند که در این مرورگر باز شده‌اند."
+ },
+ "placingFolder": {
+ "message": "در حال جست‌وجوی «$1» روی دیسک…"
+ },
+ "placeNoDisk": {
+ "message": "Chrome اجازه نداد افزونه «$1» را از دیسک بخواند تا آن را پیدا کند (فهرست‌های file:// رد شد)."
+ },
+ "placeTried": {
+ "message": "«$1» در $2 جای دیسک جست‌وجو شد — آنجا نیست."
+ },
+ "badgeNotAdded": {
+ "message": "افزوده نشده"
+ },
+ "badgeNotAddedTip": {
+ "message": "روی دیسک پیدا شد. باز می‌شود، اما هنگام ذخیره می‌پرسد کجا — پوشه‌اش را بیفزایید تا در جای خود ذخیره شود."
+ },
+ "folderFoundTip": {
+ "message": "روی دیسک پیدا شد، افزوده نشده: سندهایش باز می‌شوند، اما ذخیره می‌پرسد کجا."
+ },
+ "menuAddFolder": {
+ "message": "افزودن پوشه‌اش برای ذخیره در جای خود…"
+ },
+ "pickThisFolder": {
+ "message": "در انتخابگر پوشهٔ «$1» را انتخاب کنید — Chrome باید ببیند که شما آن را انتخاب می‌کنید."
+ },
+ "pickedWrongFolder": {
+ "message": "«$1» پوشهٔ این سند نیست («$2»). دوباره امتحان کنید و همان را انتخاب کنید."
+ },
+ "folderAlreadyAdded": {
+ "message": "«$1» از قبل افزوده شده است."
+ },
+ "bentoFolderBtn": {
+ "message": "ساخت پوشهٔ Bento…"
+ },
+ "bentoFolderHow": {
+ "message": "در پنجره، پوشه‌ای جدید به نام «Bento» درون Documents بسازید و آن را انتخاب کنید."
+ },
+ "bentoFolderMade": {
+ "message": "«$1» پوشهٔ Bento شماست — سندهای جدید به آنجا می‌روند و در جای خود ذخیره می‌شوند."
+ },
+ "bentoFolderTip": {
+ "message": "پوشه‌ای درون Documents که در جای خود ذخیره می‌کند و سندهای جدید را می‌گیرد. Chrome خودِ Documents را واگذار نمی‌کند."
+ },
+ "defaultFolder": {
+ "message": "سندهای جدید به اینجا می‌آیند"
+ },
+ "fgTitle": {
+ "message": "از این پس «$1» در جای خود ذخیره شود؟"
+ },
+ "fgTitleLapsed": {
+ "message": "«$1» دوباره متصل شود؟"
+ },
+ "fgLead": {
+ "message": "bento/home اجازه را فقط برای همین یک پرونده نگه می‌دارد، پس هر ذخیره مستقیم در آن نوشته می‌شود. در پنجرهٔ بعدی همان پرونده را انتخاب کنید."
+ },
+ "fgLeadLapsed": {
+ "message": "bento/home این پرونده را از قبل دارد؛ مرورگر می‌خواهد دوباره تأییدش کنید."
+ },
+ "fgChoose": {
+ "message": "انتخاب پرونده…"
+ },
+ "fgReconnect": {
+ "message": "اتصال دوباره"
+ },
+ "fgOnce": {
+ "message": "فقط همین بار"
+ },
+ "fgNotSame": {
+ "message": "این آن پرونده‌ای نیست که درخواست داد («$1»). آن را انتخاب کنید یا این پنجره را ببندید."
+ },
+ "fgDenied": {
+ "message": "اجازه داده نشد."
+ },
+ "droppedGranted": {
+ "message": "افزوده شد: $1 پوشه، $2 پرونده."
+ },
+ "setFilesTitle": {
+ "message": "پرونده‌ها"
+ },
+ "setFilesSub": {
+ "message": "سندهای بیرون از هر پوشهٔ افزوده‌شده که خودشان در جای خود ذخیره می‌شوند — یک بار انتخاب‌شده یا به کتابخانه کشیده‌شده."
+ },
+ "dropNoHandle": {
+ "message": "«$1»: مرورگر برای این رهاکردن هیچ دستگیرهٔ پرونده‌ای نداد."
+ },
+ "dropNotBento": {
+ "message": "«$1» سند Bento ‏(.bento.html) نیست — افزوده نشد."
+ },
+ "setDownloadsTitle": {
+ "message": "دانلودها"
+ },
+ "setDownloadsSub": {
+ "message": "سندهای پوشهٔ دانلودها می‌توانند از طریق دانلودهای Chrome در جای خود ذخیره شوند — مگر اینکه Chrome طوری تنظیم شده باشد که محل ذخیرهٔ هر پرونده را بپرسد، که هر ذخیره را به یک پنجره تبدیل می‌کند."
+ },
+ "setDownloadsOff": {
+ "message": "Chrome پرسید کجا ذخیره شود — ذخیره در دانلودها تا زمانی که آن تنظیم تغییر کند خاموش است"
+ },
+ "setDownloadsRetry": {
+ "message": "دوباره امتحان کنید"
+ },
+ "dropTwins": {
+ "message": "«$1»: $2 پرونده روی دیسک دقیقاً همین بایت‌ها را دارند — افزوده شد، اما تا وقتی متفاوت نشوند نمی‌تواند در جای خود ذخیره کند."
+ },
+ "addFiles": {
+ "message": "افزودن پرونده‌ها…"
+ },
+ "tdGrant": {
+ "message": "ذخیره در همین‌جا بدون پرسش…"
+ },
+ "tdViaFolder": {
+ "message": "در جای خود ذخیره می‌شود — پوشه‌اش افزوده شده"
+ },
+ "tdViaFile": {
+ "message": "در جای خود ذخیره می‌شود — این پرونده افزوده شده"
+ },
+ "tdViaDownloads": {
+ "message": "در جای خود ذخیره می‌شود — در دانلودها است"
+ },
+ "tdNotYet": {
+ "message": "هر بار می‌پرسد کجا ذخیره شود"
+ },
+ "badgeNotSavingTip": {
+ "message": "این سند هنوز نمی‌تواند در جای خود ذخیره شود — برای رفع آن پنل bento/home را باز کنید."
+ },
+ "noticeOsBlocked": {
+ "message": "macOS مرورگر را از $1 دور نگه می‌دارد، بنابراین سندهای آنجا تا زمانی که اجازه ندهید فهرست نمی‌شوند: System Settings → Privacy & Security → Files and Folders → Google Chrome."
+ },
+ "noticeOsBlockedPath": {
+ "message": "System Settings → Privacy & Security → Files and Folders"
+ },
+ "fgLeadFolder": {
+ "message": "در پنجرهٔ بعد پوشهٔ «$1» را انتخاب کنید تا از این پس هر سند درون آن در جای خود ذخیره شود — این سند و همسایه‌هایش."
+ },
+ "fgChooseFolder": {
+ "message": "انتخاب پوشهٔ «$1»…"
+ },
+ "fgOnlyFile": {
+ "message": "فقط همین پرونده…"
+ },
+ "fgNotContaining": {
+ "message": "«$1» این سند را ندارد — «$2» یا پوشه‌ای بالاتر از آن را انتخاب کنید."
+ },
+ "tdGrantFolder": {
+ "message": "ذخیرهٔ همه‌چیز در «$1» بدون پرسش…"
}
}
diff --git a/home/webext/_locales/fi/messages.json b/home/webext/_locales/fi/messages.json
index 9a502f5d..6daf96fc 100644
--- a/home/webext/_locales/fi/messages.json
+++ b/home/webext/_locales/fi/messages.json
@@ -189,7 +189,7 @@
"message": "Valitse kansio, jossa asiakirjasi ovat"
},
"setupStep1Note": {
- "message": "Yksi laaja kansio riittää yleensä — se kattaa kaiken sen sisällä."
+ "message": "Yksi laaja kansio riittää yleensä — se kattaa kaiken sisällään. Chrome ei luovuta itse kotikansiota eikä Library-kansiota: valitse Dokumentit, Työpöytä tai kansio, jossa asiakirjasi ovat."
},
"setupStep2": {
"message": "Ota paikallisten tiedostojen käyttö käyttöön"
@@ -484,5 +484,149 @@
},
"surveyOnlySeen": {
"message": "Näin löytyvät vain tässä selaimessa avatut asiakirjat."
+ },
+ "placingFolder": {
+ "message": "Etsitään kansiota ”$1” levyltä…"
+ },
+ "placeNoDisk": {
+ "message": "Chrome ei antanut laajennuksen lukea kansiota ”$1” levyltä sen löytämiseksi (file://-listaukset evätty)."
+ },
+ "placeTried": {
+ "message": "Kansiota ”$1” etsittiin $2 paikasta levyltä — ei siellä."
+ },
+ "badgeNotAdded": {
+ "message": "ei lisätty"
+ },
+ "badgeNotAddedTip": {
+ "message": "Löytyi levyltä. Avautuu, mutta tallennus kysyy minne — lisää kansio, niin tallennus tapahtuu paikalleen."
+ },
+ "folderFoundTip": {
+ "message": "Löytyi levyltä, ei lisätty: sen asiakirjat avautuvat, mutta tallennus kysyy minne."
+ },
+ "menuAddFolder": {
+ "message": "Lisää kansio, jotta tallennus tapahtuu paikalleen…"
+ },
+ "pickThisFolder": {
+ "message": "Valitse valitsimessa kansio ”$1” — Chromen on nähtävä sinun valitsevan sen."
+ },
+ "pickedWrongFolder": {
+ "message": "”$1” ei ole tämän asiakirjan kansio (”$2”). Yritä uudelleen ja valitse se."
+ },
+ "folderAlreadyAdded": {
+ "message": "”$1” on jo lisätty."
+ },
+ "bentoFolderBtn": {
+ "message": "Luo Bento-kansio…"
+ },
+ "bentoFolderHow": {
+ "message": "Luo valintaikkunassa Dokumentit-kansioon uusi kansio nimeltä ”Bento” ja valitse se."
+ },
+ "bentoFolderMade": {
+ "message": "”$1” on Bento-kansiosi — uudet asiakirjat menevät sinne ja tallentuvat paikalleen."
+ },
+ "bentoFolderTip": {
+ "message": "Dokumentit-kansion sisällä oleva kansio, joka tallentaa paikalleen ja ottaa uudet asiakirjat vastaan. Itse Dokumentit-kansiota Chrome ei luovuta."
+ },
+ "defaultFolder": {
+ "message": "uudet asiakirjat tulevat tänne"
+ },
+ "fgTitle": {
+ "message": "Tallennetaanko ”$1” tästä lähtien paikalleen?"
+ },
+ "fgTitleLapsed": {
+ "message": "Yhdistetäänkö ”$1” uudelleen?"
+ },
+ "fgLead": {
+ "message": "bento/home säilyttää luvan juuri tälle tiedostolle, joten jokainen tallennus kirjoittaa suoraan siihen. Valitse sama tiedosto seuraavassa ikkunassa."
+ },
+ "fgLeadLapsed": {
+ "message": "bento/home tuntee tämän tiedoston jo; selain haluaa, että vahvistat sen uudelleen."
+ },
+ "fgChoose": {
+ "message": "Valitse tiedosto…"
+ },
+ "fgReconnect": {
+ "message": "Yhdistä uudelleen"
+ },
+ "fgOnce": {
+ "message": "Vain tämän kerran"
+ },
+ "fgNotSame": {
+ "message": "Tuo ei ole tiedosto, joka kysyi (”$1”). Valitse se, tai sulje tämä ikkuna."
+ },
+ "fgDenied": {
+ "message": "Lupaa ei annettu."
+ },
+ "droppedGranted": {
+ "message": "Lisätty: $1 kansiota, $2 tiedostoa."
+ },
+ "setFilesTitle": {
+ "message": "Tiedostot"
+ },
+ "setFilesSub": {
+ "message": "Lisättyjen kansioiden ulkopuoliset asiakirjat, jotka tallentuvat paikalleen itsestään — kerran valitut tai kirjastoon pudotetut."
+ },
+ "dropNoHandle": {
+ "message": "”$1”: selain ei antanut tiedostokahvaa tälle pudotukselle."
+ },
+ "dropNotBento": {
+ "message": "”$1” ei ole Bento-asiakirja (.bento.html) — ei lisätty."
+ },
+ "setDownloadsTitle": {
+ "message": "Lataukset"
+ },
+ "setDownloadsSub": {
+ "message": "Lataukset-kansion asiakirjat voivat tallentua paikalleen Chromen latausten kautta — paitsi jos Chrome on asetettu kysymään jokaisen tiedoston tallennuspaikkaa, jolloin jokainen tallennus on valintaikkuna."
+ },
+ "setDownloadsOff": {
+ "message": "Chrome kysyi tallennuspaikkaa — tallennus Lataukset-kansioon on pois päältä, kunnes tuo asetus muuttuu"
+ },
+ "setDownloadsRetry": {
+ "message": "Yritä uudelleen"
+ },
+ "dropTwins": {
+ "message": "”$1”: $2 tiedostolla levyllä on täsmälleen nämä tavut — lisätty, mutta paikalleen tallennus onnistuu vasta kun ne eroavat."
+ },
+ "addFiles": {
+ "message": "Lisää tiedostoja…"
+ },
+ "tdGrant": {
+ "message": "Tallenna tähän kysymättä…"
+ },
+ "tdViaFolder": {
+ "message": "tallentuu paikalleen — kansio on lisätty"
+ },
+ "tdViaFile": {
+ "message": "tallentuu paikalleen — tämä tiedosto on lisätty"
+ },
+ "tdViaDownloads": {
+ "message": "tallentuu paikalleen — on Lataukset-kansiossa"
+ },
+ "tdNotYet": {
+ "message": "kysyy tallennuspaikkaa joka kerta"
+ },
+ "badgeNotSavingTip": {
+ "message": "Tämä asiakirja ei vielä tallennu paikalleen — avaa bento/home-paneeli korjataksesi sen."
+ },
+ "noticeOsBlocked": {
+ "message": "macOS estää selaimelta pääsyn kansioon $1, joten sen asiakirjat eivät näy ennen kuin sallit sen: Järjestelmäasetukset → Tietosuoja ja suojaus → Tiedostot ja kansiot → Google Chrome."
+ },
+ "noticeOsBlockedPath": {
+ "message": "Järjestelmäasetukset → Tietosuoja ja suojaus → Tiedostot ja kansiot"
+ },
+ "fgLeadFolder": {
+ "message": "Valitse seuraavassa ikkunassa kansio ”$1”, niin jokainen sen asiakirja tallentuu tästä lähtien paikalleen — tämä ja naapurit."
+ },
+ "fgChooseFolder": {
+ "message": "Valitse kansio ”$1”…"
+ },
+ "fgOnlyFile": {
+ "message": "Vain tämä tiedosto…"
+ },
+ "fgNotContaining": {
+ "message": "”$1” ei sisällä tätä asiakirjaa — valitse ”$2” tai sen yläpuolinen kansio."
+ },
+ "tdGrantFolder": {
+ "message": "Tallenna kaikki kansiossa ”$1” kysymättä…"
}
}
diff --git a/home/webext/_locales/fil/messages.json b/home/webext/_locales/fil/messages.json
index f2d0e1a0..c01a41da 100644
--- a/home/webext/_locales/fil/messages.json
+++ b/home/webext/_locales/fil/messages.json
@@ -189,7 +189,7 @@
"message": "Piliin ang folder kung saan naroon ang mga dokumento mo"
},
"setupStep1Note": {
- "message": "Kadalasan ay sapat na ang isang malawak na folder — saklaw nito ang lahat ng nasa loob."
+ "message": "Karaniwang sapat na ang isang malawak na folder — sakop nito ang lahat ng nasa loob. Hindi ibibigay ng Chrome ang home folder mismo o ang Library: piliin ang Documents, Desktop, o ang folder kung nasaan ang iyong mga dokumento."
},
"setupStep2": {
"message": "I-on ang access sa lokal na file"
@@ -484,5 +484,149 @@
},
"surveyOnlySeen": {
"message": "Ang mga dokumentong binuksan sa browser na ito lang ang makikita sa paraang ito."
+ },
+ "placingFolder": {
+ "message": "Hinahanap ang “$1” sa disk…"
+ },
+ "placeNoDisk": {
+ "message": "Hindi pinayagan ng Chrome ang extension na basahin ang “$1” mula sa disk para hanapin ito (tinanggihan ang mga file:// listing)."
+ },
+ "placeTried": {
+ "message": "Hinanap ang “$1” sa $2 lugar sa disk — wala roon."
+ },
+ "badgeNotAdded": {
+ "message": "hindi pa naidagdag"
+ },
+ "badgeNotAddedTip": {
+ "message": "Natagpuan sa disk. Bumubukas, pero magtatanong kung saan kapag nag-save — idagdag ang folder nito para ma-save sa lugar."
+ },
+ "folderFoundTip": {
+ "message": "Natagpuan sa disk, hindi pa naidagdag: bumubukas ang mga dokumento nito, pero nagtatanong ang pag-save kung saan."
+ },
+ "menuAddFolder": {
+ "message": "Idagdag ang folder nito para ma-save sa lugar…"
+ },
+ "pickThisFolder": {
+ "message": "Sa picker, piliin ang folder na “$1” — kailangang makita ng Chrome na ikaw ang pumili."
+ },
+ "pickedWrongFolder": {
+ "message": "Hindi “$1” ang folder ng dokumentong ito (“$2”). Subukan muli at piliin iyon."
+ },
+ "folderAlreadyAdded": {
+ "message": "Naidagdag na ang “$1”."
+ },
+ "bentoFolderBtn": {
+ "message": "Gumawa ng Bento folder…"
+ },
+ "bentoFolderHow": {
+ "message": "Sa dialog, gumawa ng bagong folder na “Bento” sa loob ng Documents at piliin ito."
+ },
+ "bentoFolderMade": {
+ "message": "Ang “$1” ang iyong Bento folder — dito pupunta ang mga bagong dokumento at mase-save sa lugar."
+ },
+ "bentoFolderTip": {
+ "message": "Folder sa loob ng Documents na nagse-save sa lugar at tumatanggap ng mga bagong dokumento. Hindi ibibigay ng Chrome ang Documents mismo."
+ },
+ "defaultFolder": {
+ "message": "dito pumupunta ang mga bagong dokumento"
+ },
+ "fgTitle": {
+ "message": "I-save ang “$1” sa lugar mula ngayon?"
+ },
+ "fgTitleLapsed": {
+ "message": "Ikonekta muli ang “$1”?"
+ },
+ "fgLead": {
+ "message": "Pinananatili ng bento/home ang pahintulot para sa isang file na ito, kaya bawat pag-save ay direktang sumusulat dito. Piliin ang parehong file sa susunod na dialog."
+ },
+ "fgLeadLapsed": {
+ "message": "Nasa bento/home na ang file na ito; gusto ng browser na kumpirmahin mo itong muli."
+ },
+ "fgChoose": {
+ "message": "Piliin ang file…"
+ },
+ "fgReconnect": {
+ "message": "Ikonekta muli"
+ },
+ "fgOnce": {
+ "message": "Ngayon lang"
+ },
+ "fgNotSame": {
+ "message": "Hindi iyan ang file na humiling (“$1”). Piliin iyon, o isara ang window na ito."
+ },
+ "fgDenied": {
+ "message": "Hindi ibinigay ang pahintulot."
+ },
+ "droppedGranted": {
+ "message": "Naidagdag: $1 folder, $2 file."
+ },
+ "setFilesTitle": {
+ "message": "Mga file"
+ },
+ "setFilesSub": {
+ "message": "Mga dokumentong nasa labas ng anumang idinagdag na folder na kusang nagse-save sa lugar — napili nang isang beses, o inihulog sa library."
+ },
+ "dropNoHandle": {
+ "message": "“$1”: walang ibinigay na file handle ang browser para sa drop na ito."
+ },
+ "dropNotBento": {
+ "message": "Hindi Bento na dokumento (.bento.html) ang “$1” — hindi idinagdag."
+ },
+ "setDownloadsTitle": {
+ "message": "Mga download"
+ },
+ "setDownloadsSub": {
+ "message": "Ang mga dokumento sa folder ng Mga download ay maaaring mag-save sa lugar sa pamamagitan ng mga download ng Chrome — maliban kung nakatakda ang Chrome na magtanong kung saan ise-save ang bawat file, na ginagawang dialog ang bawat pag-save."
+ },
+ "setDownloadsOff": {
+ "message": "Nagtanong ang Chrome kung saan ise-save — naka-off ang pag-save sa Mga download hanggang magbago ang setting na iyon"
+ },
+ "setDownloadsRetry": {
+ "message": "Subukan muli"
+ },
+ "dropTwins": {
+ "message": "“$1”: $2 file sa disk ang may eksaktong ganitong bytes — naidagdag, pero hindi makakapag-save sa lugar hangga’t hindi sila nagkakaiba."
+ },
+ "addFiles": {
+ "message": "Magdagdag ng mga file…"
+ },
+ "tdGrant": {
+ "message": "I-save dito nang hindi nagtatanong…"
+ },
+ "tdViaFolder": {
+ "message": "nagse-save sa lugar — naidagdag ang folder nito"
+ },
+ "tdViaFile": {
+ "message": "nagse-save sa lugar — naidagdag ang file na ito"
+ },
+ "tdViaDownloads": {
+ "message": "nagse-save sa lugar — nasa Mga download ito"
+ },
+ "tdNotYet": {
+ "message": "nagtatanong kung saan ise-save, sa bawat pagkakataon"
+ },
+ "badgeNotSavingTip": {
+ "message": "Hindi pa makakapag-save sa lugar ang dokumentong ito — buksan ang bento/home panel para ayusin iyon."
+ },
+ "noticeOsBlocked": {
+ "message": "Hinaharangan ng macOS ang browser sa $1, kaya hindi nakalista ang mga dokumento roon hangga’t hindi mo pinapayagan: System Settings → Privacy & Security → Files and Folders → Google Chrome."
+ },
+ "noticeOsBlockedPath": {
+ "message": "System Settings → Privacy & Security → Files and Folders"
+ },
+ "fgLeadFolder": {
+ "message": "Piliin ang folder na “$1” sa susunod na dialog at mula ngayon, bawat dokumento roon ay direktang mase-save — ito at ang mga katabi nito."
+ },
+ "fgChooseFolder": {
+ "message": "Piliin ang folder na “$1”…"
+ },
+ "fgOnlyFile": {
+ "message": "Ang file na ito lang…"
+ },
+ "fgNotContaining": {
+ "message": "Hindi naglalaman ng dokumentong ito ang “$1” — piliin ang “$2”, o isang folder sa itaas nito."
+ },
+ "tdGrantFolder": {
+ "message": "I-save ang lahat sa “$1” nang hindi nagtatanong…"
}
}
diff --git a/home/webext/_locales/fr/messages.json b/home/webext/_locales/fr/messages.json
index 84bd0dfa..b5c4de60 100644
--- a/home/webext/_locales/fr/messages.json
+++ b/home/webext/_locales/fr/messages.json
@@ -199,7 +199,7 @@
"message": "Choisissez le dossier où vivent vos documents"
},
"setupStep1Note": {
- "message": "Un dossier large suffit en général — il couvre tout ce qu’il contient."
+ "message": "Un dossier large suffit en général : il couvre tout ce qu’il contient. Chrome refuse le dossier personnel lui-même et Library : choisissez Documents, Bureau ou le dossier où vivent vos documents."
},
"setupStep2": {
"message": "Activez l’accès aux fichiers locaux",
@@ -517,5 +517,149 @@
},
"surveyOnlySeen": {
"message": "Seuls les documents ouverts dans ce navigateur peuvent être trouvés ainsi."
+ },
+ "placingFolder": {
+ "message": "Recherche de « $1 » sur le disque…"
+ },
+ "placeNoDisk": {
+ "message": "Chrome n’a pas laissé l’extension lire « $1 » sur le disque pour le retrouver (listes file:// refusées)."
+ },
+ "placeTried": {
+ "message": "« $1 » cherché à $2 endroits sur le disque — pas là."
+ },
+ "badgeNotAdded": {
+ "message": "non ajouté"
+ },
+ "badgeNotAddedTip": {
+ "message": "Trouvé sur le disque. Il s’ouvre, mais l’enregistrement demandera où — ajoutez son dossier pour enregistrer sur place."
+ },
+ "folderFoundTip": {
+ "message": "Trouvé sur le disque, non ajouté : ses documents s’ouvrent, mais l’enregistrement demande où."
+ },
+ "menuAddFolder": {
+ "message": "Ajouter son dossier pour enregistrer sur place…"
+ },
+ "pickThisFolder": {
+ "message": "Dans le sélecteur, choisissez le dossier « $1 » — Chrome doit vous voir le choisir."
+ },
+ "pickedWrongFolder": {
+ "message": "« $1 » n’est pas le dossier de ce document (« $2 »). Réessayez et choisissez celui-là."
+ },
+ "folderAlreadyAdded": {
+ "message": "« $1 » est déjà ajouté."
+ },
+ "bentoFolderBtn": {
+ "message": "Créer un dossier Bento…"
+ },
+ "bentoFolderHow": {
+ "message": "Dans le dialogue, créez un nouveau dossier nommé « Bento » dans Documents et choisissez-le."
+ },
+ "bentoFolderMade": {
+ "message": "« $1 » est votre dossier Bento : les nouveaux documents y vont et s’enregistrent sur place."
+ },
+ "bentoFolderTip": {
+ "message": "Un dossier dans Documents qui enregistre sur place et reçoit les nouveaux documents. Chrome n’accorde pas Documents lui-même."
+ },
+ "defaultFolder": {
+ "message": "les nouveaux documents vont ici"
+ },
+ "fgTitle": {
+ "message": "Enregistrer « $1 » sur place désormais ?"
+ },
+ "fgTitleLapsed": {
+ "message": "Reconnecter « $1 » ?"
+ },
+ "fgLead": {
+ "message": "bento/home garde l’autorisation pour ce seul fichier : chaque enregistrement y écrit directement. Choisissez le même fichier dans le prochain dialogue."
+ },
+ "fgLeadLapsed": {
+ "message": "bento/home a déjà ce fichier ; le navigateur vous demande de le confirmer à nouveau."
+ },
+ "fgChoose": {
+ "message": "Choisir le fichier…"
+ },
+ "fgReconnect": {
+ "message": "Reconnecter"
+ },
+ "fgOnce": {
+ "message": "Juste cette fois"
+ },
+ "fgNotSame": {
+ "message": "Ce n’est pas le fichier qui a demandé (« $1 »). Choisissez celui-là, ou fermez cette fenêtre."
+ },
+ "fgDenied": {
+ "message": "L’autorisation n’a pas été accordée."
+ },
+ "droppedGranted": {
+ "message": "Ajoutés : $1 dossiers, $2 fichiers."
+ },
+ "setFilesTitle": {
+ "message": "Fichiers"
+ },
+ "setFilesSub": {
+ "message": "Documents hors de tout dossier ajouté qui s’enregistrent sur place par eux-mêmes — choisis une fois, ou déposés dans la bibliothèque."
+ },
+ "dropNoHandle": {
+ "message": "« $1 » : le navigateur n’a fourni aucun handle de fichier pour ce dépôt."
+ },
+ "dropNotBento": {
+ "message": "« $1 » n’est pas un document Bento (.bento.html) — non ajouté."
+ },
+ "setDownloadsTitle": {
+ "message": "Téléchargements"
+ },
+ "setDownloadsSub": {
+ "message": "Les documents du dossier Téléchargements peuvent s’enregistrer sur place via les téléchargements de Chrome — sauf si Chrome est réglé pour demander où enregistrer chaque fichier, ce qui transforme chaque enregistrement en dialogue."
+ },
+ "setDownloadsOff": {
+ "message": "Chrome a demandé où enregistrer — l’enregistrement dans Téléchargements est désactivé tant que ce réglage ne change pas"
+ },
+ "setDownloadsRetry": {
+ "message": "Réessayer"
+ },
+ "dropTwins": {
+ "message": "« $1 » : $2 fichiers sur le disque ont exactement ces octets — ajouté, mais l’enregistrement sur place attendra qu’ils diffèrent."
+ },
+ "addFiles": {
+ "message": "Ajouter des fichiers…"
+ },
+ "tdGrant": {
+ "message": "Enregistrer ici sans demander…"
+ },
+ "tdViaFolder": {
+ "message": "s’enregistre sur place — son dossier est ajouté"
+ },
+ "tdViaFile": {
+ "message": "s’enregistre sur place — ce fichier est ajouté"
+ },
+ "tdViaDownloads": {
+ "message": "s’enregistre sur place — il est dans Téléchargements"
+ },
+ "tdNotYet": {
+ "message": "demande où enregistrer, à chaque fois"
+ },
+ "badgeNotSavingTip": {
+ "message": "Ce document ne peut pas encore s’enregistrer sur place — ouvrez le panneau bento/home pour y remédier."
+ },
+ "noticeOsBlocked": {
+ "message": "macOS empêche le navigateur d’accéder à $1 ; les documents qui s’y trouvent ne seront listés qu’après votre autorisation : Réglages Système → Confidentialité et sécurité → Fichiers et dossiers → Google Chrome."
+ },
+ "noticeOsBlockedPath": {
+ "message": "Réglages Système → Confidentialité et sécurité → Fichiers et dossiers"
+ },
+ "fgLeadFolder": {
+ "message": "Choisissez le dossier « $1 » dans le prochain dialogue : chaque document qu’il contient s’enregistrera désormais sur place — celui-ci et ses voisins."
+ },
+ "fgChooseFolder": {
+ "message": "Choisir le dossier « $1 »…"
+ },
+ "fgOnlyFile": {
+ "message": "Seulement ce fichier…"
+ },
+ "fgNotContaining": {
+ "message": "« $1 » ne contient pas ce document — choisissez « $2 », ou un dossier au-dessus."
+ },
+ "tdGrantFolder": {
+ "message": "Tout enregistrer dans « $1 » sans demander…"
}
}
diff --git a/home/webext/_locales/he/messages.json b/home/webext/_locales/he/messages.json
index 6d20307c..afe9b18e 100644
--- a/home/webext/_locales/he/messages.json
+++ b/home/webext/_locales/he/messages.json
@@ -189,7 +189,7 @@
"message": "בחרו את התיקייה שבה נמצאים המסמכים שלכם"
},
"setupStep1Note": {
- "message": "תיקייה רחבה אחת מספיקה בדרך כלל — היא מכסה את כל מה שבתוכה."
+ "message": "בדרך כלל מספיקה תיקייה רחבה אחת — היא מכסה את כל מה שבתוכה. Chrome לא ימסור את תיקיית הבית עצמה או את Library: בחרו מסמכים, שולחן עבודה או את התיקייה שבה המסמכים שלכם נמצאים."
},
"setupStep2": {
"message": "הפעילו גישה לקבצים מקומיים"
@@ -484,5 +484,149 @@
},
"surveyOnlySeen": {
"message": "כך אפשר למצוא רק מסמכים שנפתחו בדפדפן הזה."
+ },
+ "placingFolder": {
+ "message": "מחפש את „$1” בדיסק…"
+ },
+ "placeNoDisk": {
+ "message": "Chrome לא אפשר לתוסף לקרוא את „$1” מהדיסק כדי למצוא אותו (רשימות file:// נדחו)."
+ },
+ "placeTried": {
+ "message": "חיפשנו את „$1” ב־$2 מקומות בדיסק — לא שם."
+ },
+ "badgeNotAdded": {
+ "message": "לא נוספה"
+ },
+ "badgeNotAddedTip": {
+ "message": "נמצא בדיסק. נפתח, אבל שמירה תשאל לאן — הוסיפו את התיקייה שלו כדי לשמור במקום."
+ },
+ "folderFoundTip": {
+ "message": "נמצאה בדיסק, לא נוספה: המסמכים שלה נפתחים, אבל שמירה שואלת לאן."
+ },
+ "menuAddFolder": {
+ "message": "הוספת התיקייה שלו כדי לשמור במקום…"
+ },
+ "pickThisFolder": {
+ "message": "בבוחר, בחרו את התיקייה „$1” — Chrome חייב לראות אתכם בוחרים אותה."
+ },
+ "pickedWrongFolder": {
+ "message": "„$1” אינה התיקייה של המסמך הזה („$2”). נסו שוב ובחרו אותה."
+ },
+ "folderAlreadyAdded": {
+ "message": "„$1” כבר נוספה."
+ },
+ "bentoFolderBtn": {
+ "message": "יצירת תיקיית Bento…"
+ },
+ "bentoFolderHow": {
+ "message": "בתיבת הדו־שיח צרו תיקייה חדשה בשם „Bento” בתוך מסמכים ובחרו אותה."
+ },
+ "bentoFolderMade": {
+ "message": "„$1” היא תיקיית ה־Bento שלכם — מסמכים חדשים הולכים לשם ונשמרים במקום."
+ },
+ "bentoFolderTip": {
+ "message": "תיקייה בתוך מסמכים ששומרת במקום ומקבלת מסמכים חדשים. Chrome לא ימסור את תיקיית מסמכים עצמה."
+ },
+ "defaultFolder": {
+ "message": "מסמכים חדשים מגיעים לכאן"
+ },
+ "fgTitle": {
+ "message": "לשמור את „$1” במקום מעכשיו?"
+ },
+ "fgTitleLapsed": {
+ "message": "לחבר מחדש את „$1”?"
+ },
+ "fgLead": {
+ "message": "bento/home שומר הרשאה לקובץ הזה בלבד, כך שכל שמירה כותבת ישירות אליו. בחרו את אותו קובץ בתיבת הדו־שיח הבאה."
+ },
+ "fgLeadLapsed": {
+ "message": "ל־bento/home כבר יש את הקובץ הזה; הדפדפן מבקש שתאשרו אותו שוב."
+ },
+ "fgChoose": {
+ "message": "בחירת הקובץ…"
+ },
+ "fgReconnect": {
+ "message": "חיבור מחדש"
+ },
+ "fgOnce": {
+ "message": "רק הפעם"
+ },
+ "fgNotSame": {
+ "message": "זה לא הקובץ שביקש („$1”). בחרו אותו, או סגרו את החלון."
+ },
+ "fgDenied": {
+ "message": "ההרשאה לא ניתנה."
+ },
+ "droppedGranted": {
+ "message": "נוספו: $1 תיקיות, $2 קבצים."
+ },
+ "setFilesTitle": {
+ "message": "קבצים"
+ },
+ "setFilesSub": {
+ "message": "מסמכים מחוץ לכל תיקייה שנוספה שנשמרים במקום בעצמם — נבחרו פעם אחת, או נגררו לספרייה."
+ },
+ "dropNoHandle": {
+ "message": "„$1”: הדפדפן לא מסר ידית קובץ עבור הגרירה הזו."
+ },
+ "dropNotBento": {
+ "message": "„$1” אינו מסמך Bento ‏(.bento.html) — לא נוסף."
+ },
+ "setDownloadsTitle": {
+ "message": "הורדות"
+ },
+ "setDownloadsSub": {
+ "message": "מסמכים בתיקיית ההורדות יכולים להישמר במקום דרך ההורדות של Chrome — אלא אם Chrome מוגדר לשאול היכן לשמור כל קובץ, מה שהופך כל שמירה לתיבת דו־שיח."
+ },
+ "setDownloadsOff": {
+ "message": "Chrome שאל היכן לשמור — השמירה להורדות כבויה עד שההגדרה הזו תשתנה"
+ },
+ "setDownloadsRetry": {
+ "message": "לנסות שוב"
+ },
+ "dropTwins": {
+ "message": "„$1”: ל־$2 קבצים בדיסק יש בדיוק את הבתים האלה — נוסף, אבל לא יוכל לשמור במקום עד שיהיו שונים."
+ },
+ "addFiles": {
+ "message": "הוספת קבצים…"
+ },
+ "tdGrant": {
+ "message": "לשמור כאן בלי לשאול…"
+ },
+ "tdViaFolder": {
+ "message": "נשמר במקום — התיקייה שלו נוספה"
+ },
+ "tdViaFile": {
+ "message": "נשמר במקום — הקובץ הזה נוסף"
+ },
+ "tdViaDownloads": {
+ "message": "נשמר במקום — הוא בהורדות"
+ },
+ "tdNotYet": {
+ "message": "שואל היכן לשמור, בכל פעם"
+ },
+ "badgeNotSavingTip": {
+ "message": "המסמך הזה עדיין לא יכול להישמר במקום — פתחו את חלונית bento/home כדי לתקן זאת."
+ },
+ "noticeOsBlocked": {
+ "message": "macOS מונע מהדפדפן גישה ל־$1, ולכן מסמכים שם לא מוצגים עד שתאשרו: הגדרות המערכת → פרטיות ואבטחה → קבצים ותיקיות → Google Chrome."
+ },
+ "noticeOsBlockedPath": {
+ "message": "הגדרות המערכת → פרטיות ואבטחה → קבצים ותיקיות"
+ },
+ "fgLeadFolder": {
+ "message": "בחרו בתיבת הדו־שיח הבאה את התיקייה „$1” — ומעכשיו כל מסמך בה יישמר במקום: זה והשכנים שלו."
+ },
+ "fgChooseFolder": {
+ "message": "בחירת התיקייה „$1”…"
+ },
+ "fgOnlyFile": {
+ "message": "רק הקובץ הזה…"
+ },
+ "fgNotContaining": {
+ "message": "„$1” אינה מכילה את המסמך הזה — בחרו „$2” או תיקייה מעליה."
+ },
+ "tdGrantFolder": {
+ "message": "לשמור הכול ב־„$1” בלי לשאול…"
}
}
diff --git a/home/webext/_locales/hi/messages.json b/home/webext/_locales/hi/messages.json
index a0f1e310..1454474d 100644
--- a/home/webext/_locales/hi/messages.json
+++ b/home/webext/_locales/hi/messages.json
@@ -189,7 +189,7 @@
"message": "वह फ़ोल्डर चुनें जिसमें आपके दस्तावेज़ रहते हैं"
},
"setupStep1Note": {
- "message": "आमतौर पर एक बड़ा फ़ोल्डर काफ़ी है — उसके भीतर की हर चीज़ इसमें आ जाती है।"
+ "message": "आमतौर पर एक व्यापक फ़ोल्डर काफ़ी है — वह अंदर की हर चीज़ को कवर करता है। Chrome स्वयं होम फ़ोल्डर या Library नहीं देगा: Documents, Desktop या वह फ़ोल्डर चुनें जहाँ आपके दस्तावेज़ रखे हैं।"
},
"setupStep2": {
"message": "स्थानीय फ़ाइल पहुँच चालू करें"
@@ -484,5 +484,149 @@
},
"surveyOnlySeen": {
"message": "इस तरह केवल वही दस्तावेज़ मिलते हैं जो इस ब्राउज़र में खोले गए हों।"
+ },
+ "placingFolder": {
+ "message": "डिस्क पर “$1” खोजा जा रहा है…"
+ },
+ "placeNoDisk": {
+ "message": "Chrome ने एक्सटेंशन को “$1” खोजने के लिए डिस्क से पढ़ने नहीं दिया (file:// सूचियाँ अस्वीकृत)।"
+ },
+ "placeTried": {
+ "message": "डिस्क पर $2 जगहों में “$1” खोजा — वहाँ नहीं है।"
+ },
+ "badgeNotAdded": {
+ "message": "जोड़ा नहीं गया"
+ },
+ "badgeNotAddedTip": {
+ "message": "डिस्क पर मिला। खुलता है, पर सहेजते समय पूछेगा कहाँ — उसी जगह सहेजने के लिए इसका फ़ोल्डर जोड़ें।"
+ },
+ "folderFoundTip": {
+ "message": "डिस्क पर मिला, जोड़ा नहीं गया: इसके दस्तावेज़ खुलते हैं, पर सहेजना पूछता है कहाँ।"
+ },
+ "menuAddFolder": {
+ "message": "उसी जगह सहेजने के लिए इसका फ़ोल्डर जोड़ें…"
+ },
+ "pickThisFolder": {
+ "message": "चयनकर्ता में “$1” फ़ोल्डर चुनें — Chrome को आपको उसे चुनते देखना होगा।"
+ },
+ "pickedWrongFolder": {
+ "message": "“$1” इस दस्तावेज़ का फ़ोल्डर नहीं है (“$2”)। फिर से कोशिश करें और वही चुनें।"
+ },
+ "folderAlreadyAdded": {
+ "message": "“$1” पहले से जोड़ा हुआ है।"
+ },
+ "bentoFolderBtn": {
+ "message": "एक Bento फ़ोल्डर बनाएँ…"
+ },
+ "bentoFolderHow": {
+ "message": "डायलॉग में Documents के अंदर “Bento” नाम का नया फ़ोल्डर बनाएँ और उसे चुनें।"
+ },
+ "bentoFolderMade": {
+ "message": "“$1” आपका Bento फ़ोल्डर है — नए दस्तावेज़ वहाँ जाते हैं और उसी जगह सहेजे जाते हैं।"
+ },
+ "bentoFolderTip": {
+ "message": "Documents के अंदर एक फ़ोल्डर जो उसी जगह सहेजता है और नए दस्तावेज़ लेता है। Chrome स्वयं Documents नहीं देगा।"
+ },
+ "defaultFolder": {
+ "message": "नए दस्तावेज़ यहाँ आते हैं"
+ },
+ "fgTitle": {
+ "message": "अब से “$1” उसी जगह सहेजें?"
+ },
+ "fgTitleLapsed": {
+ "message": "“$1” फिर से जोड़ें?"
+ },
+ "fgLead": {
+ "message": "bento/home केवल इस एक फ़ाइल की अनुमति रखता है, इसलिए हर बार सहेजना सीधे उसी में लिखता है। अगले डायलॉग में वही फ़ाइल चुनें।"
+ },
+ "fgLeadLapsed": {
+ "message": "bento/home के पास यह फ़ाइल पहले से है; ब्राउज़र चाहता है कि आप इसे फिर पुष्टि करें।"
+ },
+ "fgChoose": {
+ "message": "फ़ाइल चुनें…"
+ },
+ "fgReconnect": {
+ "message": "फिर से जोड़ें"
+ },
+ "fgOnce": {
+ "message": "बस इस बार"
+ },
+ "fgNotSame": {
+ "message": "यह वह फ़ाइल नहीं है जिसने पूछा था (“$1”)। वही चुनें, या यह विंडो बंद करें।"
+ },
+ "fgDenied": {
+ "message": "अनुमति नहीं दी गई।"
+ },
+ "droppedGranted": {
+ "message": "जोड़े गए: $1 फ़ोल्डर, $2 फ़ाइलें।"
+ },
+ "setFilesTitle": {
+ "message": "फ़ाइलें"
+ },
+ "setFilesSub": {
+ "message": "जोड़े गए किसी भी फ़ोल्डर के बाहर के दस्तावेज़ जो अपने आप उसी जगह सहेजते हैं — एक बार चुने गए, या लाइब्रेरी में खींचकर छोड़े गए।"
+ },
+ "dropNoHandle": {
+ "message": "“$1”: ब्राउज़र ने इस ड्रॉप के लिए कोई फ़ाइल हैंडल नहीं दिया।"
+ },
+ "dropNotBento": {
+ "message": "“$1” Bento दस्तावेज़ (.bento.html) नहीं है — जोड़ा नहीं गया।"
+ },
+ "setDownloadsTitle": {
+ "message": "डाउनलोड"
+ },
+ "setDownloadsSub": {
+ "message": "डाउनलोड फ़ोल्डर के दस्तावेज़ Chrome के डाउनलोड के ज़रिए उसी जगह सहेज सकते हैं — जब तक Chrome हर फ़ाइल के लिए सहेजने की जगह पूछने पर सेट न हो, जिससे हर सहेजना एक डायलॉग बन जाता है।"
+ },
+ "setDownloadsOff": {
+ "message": "Chrome ने पूछा कहाँ सहेजें — वह सेटिंग बदलने तक डाउनलोड में सहेजना बंद है"
+ },
+ "setDownloadsRetry": {
+ "message": "फिर कोशिश करें"
+ },
+ "dropTwins": {
+ "message": "“$1”: डिस्क पर $2 फ़ाइलों में ठीक यही बाइट्स हैं — जोड़ा गया, पर जब तक वे अलग न हों, उसी जगह सहेज नहीं सकता।"
+ },
+ "addFiles": {
+ "message": "फ़ाइलें जोड़ें…"
+ },
+ "tdGrant": {
+ "message": "बिना पूछे यहीं सहेजें…"
+ },
+ "tdViaFolder": {
+ "message": "उसी जगह सहेजता है — इसका फ़ोल्डर जोड़ा हुआ है"
+ },
+ "tdViaFile": {
+ "message": "उसी जगह सहेजता है — यह फ़ाइल जोड़ी हुई है"
+ },
+ "tdViaDownloads": {
+ "message": "उसी जगह सहेजता है — यह डाउनलोड में है"
+ },
+ "tdNotYet": {
+ "message": "हर बार पूछता है कहाँ सहेजें"
+ },
+ "badgeNotSavingTip": {
+ "message": "यह दस्तावेज़ अभी उसी जगह सहेज नहीं सकता — इसे ठीक करने के लिए bento/home पैनल खोलें।"
+ },
+ "noticeOsBlocked": {
+ "message": "macOS ब्राउज़र को $1 से दूर रख रहा है, इसलिए वहाँ के दस्तावेज़ तब तक सूचीबद्ध नहीं होते जब तक आप अनुमति न दें: System Settings → Privacy & Security → Files and Folders → Google Chrome."
+ },
+ "noticeOsBlockedPath": {
+ "message": "System Settings → Privacy & Security → Files and Folders"
+ },
+ "fgLeadFolder": {
+ "message": "अगले डायलॉग में “$1” फ़ोल्डर चुनें — अब से उसमें हर दस्तावेज़ उसी जगह सहेजा जाएगा: यह और इसके पड़ोसी।"
+ },
+ "fgChooseFolder": {
+ "message": "“$1” फ़ोल्डर चुनें…"
+ },
+ "fgOnlyFile": {
+ "message": "केवल यह फ़ाइल…"
+ },
+ "fgNotContaining": {
+ "message": "“$1” में यह दस्तावेज़ नहीं है — “$2” या उसके ऊपर का कोई फ़ोल्डर चुनें।"
+ },
+ "tdGrantFolder": {
+ "message": "“$1” में सब कुछ बिना पूछे सहेजें…"
}
}
diff --git a/home/webext/_locales/id/messages.json b/home/webext/_locales/id/messages.json
index b0683fa1..eda84488 100644
--- a/home/webext/_locales/id/messages.json
+++ b/home/webext/_locales/id/messages.json
@@ -189,7 +189,7 @@
"message": "Pilih folder tempat dokumen Anda berada"
},
"setupStep1Note": {
- "message": "Satu folder luas biasanya cukup — ia mencakup semua yang ada di dalamnya."
+ "message": "Satu folder yang luas biasanya cukup — mencakup semua isinya. Chrome tidak akan menyerahkan folder beranda itu sendiri atau Library: pilih Dokumen, Desktop, atau folder tempat dokumen Anda berada."
},
"setupStep2": {
"message": "Nyalakan akses berkas lokal"
@@ -484,5 +484,149 @@
},
"surveyOnlySeen": {
"message": "Cara ini hanya menemukan dokumen yang pernah dibuka di peramban ini."
+ },
+ "placingFolder": {
+ "message": "Mencari “$1” di disk…"
+ },
+ "placeNoDisk": {
+ "message": "Chrome tidak mengizinkan ekstensi membaca “$1” dari disk untuk menemukannya (daftar file:// ditolak)."
+ },
+ "placeTried": {
+ "message": "Mencari “$1” di $2 tempat di disk — tidak ada."
+ },
+ "badgeNotAdded": {
+ "message": "belum ditambahkan"
+ },
+ "badgeNotAddedTip": {
+ "message": "Ditemukan di disk. Bisa dibuka, tetapi saat menyimpan akan ditanya ke mana — tambahkan foldernya agar tersimpan di tempat."
+ },
+ "folderFoundTip": {
+ "message": "Ditemukan di disk, belum ditambahkan: dokumennya bisa dibuka, tetapi menyimpan menanyakan ke mana."
+ },
+ "menuAddFolder": {
+ "message": "Tambahkan foldernya agar tersimpan di tempat…"
+ },
+ "pickThisFolder": {
+ "message": "Di pemilih, pilih folder “$1” — Chrome harus melihat Anda memilihnya."
+ },
+ "pickedWrongFolder": {
+ "message": "“$1” bukan folder dokumen ini (“$2”). Coba lagi dan pilih yang itu."
+ },
+ "folderAlreadyAdded": {
+ "message": "“$1” sudah ditambahkan."
+ },
+ "bentoFolderBtn": {
+ "message": "Buat folder Bento…"
+ },
+ "bentoFolderHow": {
+ "message": "Di dialog, buat folder baru bernama “Bento” di dalam Dokumen dan pilih folder itu."
+ },
+ "bentoFolderMade": {
+ "message": "“$1” adalah folder Bento Anda — dokumen baru masuk ke sana dan tersimpan di tempat."
+ },
+ "bentoFolderTip": {
+ "message": "Folder di dalam Dokumen yang menyimpan di tempat dan menerima dokumen baru. Chrome tidak akan memberikan Dokumen itu sendiri."
+ },
+ "defaultFolder": {
+ "message": "dokumen baru masuk ke sini"
+ },
+ "fgTitle": {
+ "message": "Simpan “$1” di tempat mulai sekarang?"
+ },
+ "fgTitleLapsed": {
+ "message": "Hubungkan kembali “$1”?"
+ },
+ "fgLead": {
+ "message": "bento/home menyimpan izin hanya untuk berkas ini, sehingga setiap penyimpanan menulis langsung ke sana. Pilih berkas yang sama di dialog berikutnya."
+ },
+ "fgLeadLapsed": {
+ "message": "bento/home sudah memiliki berkas ini; peramban ingin Anda mengonfirmasinya lagi."
+ },
+ "fgChoose": {
+ "message": "Pilih berkas…"
+ },
+ "fgReconnect": {
+ "message": "Hubungkan kembali"
+ },
+ "fgOnce": {
+ "message": "Hanya kali ini"
+ },
+ "fgNotSame": {
+ "message": "Itu bukan berkas yang meminta (“$1”). Pilih yang itu, atau tutup jendela ini."
+ },
+ "fgDenied": {
+ "message": "Izin tidak diberikan."
+ },
+ "droppedGranted": {
+ "message": "Ditambahkan: $1 folder, $2 berkas."
+ },
+ "setFilesTitle": {
+ "message": "Berkas"
+ },
+ "setFilesSub": {
+ "message": "Dokumen di luar folder mana pun yang ditambahkan, yang tersimpan di tempat dengan sendirinya — dipilih sekali, atau dijatuhkan ke pustaka."
+ },
+ "dropNoHandle": {
+ "message": "“$1”: peramban tidak memberikan handle berkas untuk penjatuhan ini."
+ },
+ "dropNotBento": {
+ "message": "“$1” bukan dokumen Bento (.bento.html) — tidak ditambahkan."
+ },
+ "setDownloadsTitle": {
+ "message": "Unduhan"
+ },
+ "setDownloadsSub": {
+ "message": "Dokumen di folder Unduhan dapat tersimpan di tempat melalui unduhan Chrome — kecuali Chrome disetel untuk menanyakan lokasi setiap berkas, yang mengubah setiap penyimpanan menjadi dialog."
+ },
+ "setDownloadsOff": {
+ "message": "Chrome menanyakan lokasi penyimpanan — menyimpan ke Unduhan dimatikan sampai setelan itu berubah"
+ },
+ "setDownloadsRetry": {
+ "message": "Coba lagi"
+ },
+ "dropTwins": {
+ "message": "“$1”: $2 berkas di disk memiliki byte yang persis sama — ditambahkan, tetapi tidak bisa menyimpan di tempat sampai keduanya berbeda."
+ },
+ "addFiles": {
+ "message": "Tambahkan berkas…"
+ },
+ "tdGrant": {
+ "message": "Simpan di sini tanpa bertanya…"
+ },
+ "tdViaFolder": {
+ "message": "tersimpan di tempat — foldernya sudah ditambahkan"
+ },
+ "tdViaFile": {
+ "message": "tersimpan di tempat — berkas ini sudah ditambahkan"
+ },
+ "tdViaDownloads": {
+ "message": "tersimpan di tempat — ada di Unduhan"
+ },
+ "tdNotYet": {
+ "message": "selalu bertanya ke mana menyimpan"
+ },
+ "badgeNotSavingTip": {
+ "message": "Dokumen ini belum bisa menyimpan di tempat — buka panel bento/home untuk memperbaikinya."
+ },
+ "noticeOsBlocked": {
+ "message": "macOS menghalangi peramban mengakses $1, jadi dokumen di sana tidak ditampilkan sampai Anda mengizinkannya: System Settings → Privacy & Security → Files and Folders → Google Chrome."
+ },
+ "noticeOsBlockedPath": {
+ "message": "System Settings → Privacy & Security → Files and Folders"
+ },
+ "fgLeadFolder": {
+ "message": "Pilih folder “$1” di dialog berikutnya dan setiap dokumen di dalamnya tersimpan di tempat mulai sekarang — yang ini dan tetangganya."
+ },
+ "fgChooseFolder": {
+ "message": "Pilih folder “$1”…"
+ },
+ "fgOnlyFile": {
+ "message": "Hanya berkas ini…"
+ },
+ "fgNotContaining": {
+ "message": "“$1” tidak memuat dokumen ini — pilih “$2”, atau folder di atasnya."
+ },
+ "tdGrantFolder": {
+ "message": "Simpan semua di “$1” tanpa bertanya…"
}
}
diff --git a/home/webext/_locales/it/messages.json b/home/webext/_locales/it/messages.json
index b356d8be..32c896e7 100644
--- a/home/webext/_locales/it/messages.json
+++ b/home/webext/_locales/it/messages.json
@@ -199,7 +199,7 @@
"message": "Scegli la cartella dove vivono i tuoi documenti"
},
"setupStep1Note": {
- "message": "Di solito basta una cartella ampia — copre tutto ciò che contiene."
+ "message": "Di solito basta una cartella ampia: copre tutto ciò che contiene. Chrome non concede la cartella home stessa né Library: scegli Documenti, Scrivania o la cartella in cui stanno i tuoi documenti."
},
"setupStep2": {
"message": "Attiva l’accesso ai file locali",
@@ -517,5 +517,149 @@
},
"surveyOnlySeen": {
"message": "Così si trovano solo i documenti aperti in questo browser."
+ },
+ "placingFolder": {
+ "message": "Ricerca di «$1» sul disco…"
+ },
+ "placeNoDisk": {
+ "message": "Chrome non ha permesso all’estensione di leggere «$1» dal disco per trovarla (elenchi file:// rifiutati)."
+ },
+ "placeTried": {
+ "message": "Cercato «$1» in $2 posizioni sul disco: non è lì."
+ },
+ "badgeNotAdded": {
+ "message": "non aggiunta"
+ },
+ "badgeNotAddedTip": {
+ "message": "Trovato sul disco. Si apre, ma il salvataggio chiederà dove: aggiungi la sua cartella per salvare sul posto."
+ },
+ "folderFoundTip": {
+ "message": "Trovata sul disco, non aggiunta: i suoi documenti si aprono, ma il salvataggio chiede dove."
+ },
+ "menuAddFolder": {
+ "message": "Aggiungi la sua cartella per salvare sul posto…"
+ },
+ "pickThisFolder": {
+ "message": "Nel selettore scegli la cartella «$1»: Chrome deve vederti sceglierla."
+ },
+ "pickedWrongFolder": {
+ "message": "«$1» non è la cartella di questo documento («$2»). Riprova e scegli quella."
+ },
+ "folderAlreadyAdded": {
+ "message": "«$1» è già aggiunta."
+ },
+ "bentoFolderBtn": {
+ "message": "Crea una cartella Bento…"
+ },
+ "bentoFolderHow": {
+ "message": "Nella finestra, crea una nuova cartella chiamata «Bento» dentro Documenti e scegli quella."
+ },
+ "bentoFolderMade": {
+ "message": "«$1» è la tua cartella Bento: i nuovi documenti vanno lì e si salvano sul posto."
+ },
+ "bentoFolderTip": {
+ "message": "Una cartella dentro Documenti che salva sul posto e accoglie i nuovi documenti. Chrome non concede Documenti in sé."
+ },
+ "defaultFolder": {
+ "message": "i nuovi documenti vanno qui"
+ },
+ "fgTitle": {
+ "message": "Salvare «$1» sul posto d’ora in poi?"
+ },
+ "fgTitleLapsed": {
+ "message": "Ricollegare «$1»?"
+ },
+ "fgLead": {
+ "message": "bento/home conserva il permesso per questo solo file, così ogni salvataggio scrive direttamente lì. Scegli lo stesso file nella prossima finestra."
+ },
+ "fgLeadLapsed": {
+ "message": "bento/home ha già questo file; il browser vuole che lo confermi di nuovo."
+ },
+ "fgChoose": {
+ "message": "Scegli il file…"
+ },
+ "fgReconnect": {
+ "message": "Ricollega"
+ },
+ "fgOnce": {
+ "message": "Solo questa volta"
+ },
+ "fgNotSame": {
+ "message": "Non è il file che ha chiesto («$1»). Scegli quello, o chiudi questa finestra."
+ },
+ "fgDenied": {
+ "message": "Il permesso non è stato concesso."
+ },
+ "droppedGranted": {
+ "message": "Aggiunti: $1 cartelle, $2 file."
+ },
+ "setFilesTitle": {
+ "message": "File"
+ },
+ "setFilesSub": {
+ "message": "Documenti fuori da ogni cartella aggiunta che si salvano sul posto da soli: scelti una volta, o trascinati nella libreria."
+ },
+ "dropNoHandle": {
+ "message": "«$1»: il browser non ha fornito alcun handle di file per questo trascinamento."
+ },
+ "dropNotBento": {
+ "message": "«$1» non è un documento Bento (.bento.html): non aggiunto."
+ },
+ "setDownloadsTitle": {
+ "message": "Download"
+ },
+ "setDownloadsSub": {
+ "message": "I documenti nella cartella Download possono salvarsi sul posto tramite i download di Chrome — a meno che Chrome non sia impostato per chiedere dove salvare ogni file, il che trasforma ogni salvataggio in una finestra."
+ },
+ "setDownloadsOff": {
+ "message": "Chrome ha chiesto dove salvare: il salvataggio in Download è disattivato finché quell’impostazione non cambia"
+ },
+ "setDownloadsRetry": {
+ "message": "Riprova"
+ },
+ "dropTwins": {
+ "message": "«$1»: $2 file sul disco hanno esattamente questi byte — aggiunto, ma non può salvare sul posto finché non differiscono."
+ },
+ "addFiles": {
+ "message": "Aggiungi file…"
+ },
+ "tdGrant": {
+ "message": "Salva qui senza chiedere…"
+ },
+ "tdViaFolder": {
+ "message": "salva sul posto: la sua cartella è aggiunta"
+ },
+ "tdViaFile": {
+ "message": "salva sul posto: questo file è aggiunto"
+ },
+ "tdViaDownloads": {
+ "message": "salva sul posto: è in Download"
+ },
+ "tdNotYet": {
+ "message": "chiede dove salvare, ogni volta"
+ },
+ "badgeNotSavingTip": {
+ "message": "Questo documento non può ancora salvare sul posto: apri il pannello bento/home per rimediare."
+ },
+ "noticeOsBlocked": {
+ "message": "macOS impedisce al browser di accedere a $1, quindi i documenti lì non vengono elencati finché non lo consenti: Impostazioni di Sistema → Privacy e sicurezza → File e cartelle → Google Chrome."
+ },
+ "noticeOsBlockedPath": {
+ "message": "Impostazioni di Sistema → Privacy e sicurezza → File e cartelle"
+ },
+ "fgLeadFolder": {
+ "message": "Scegli la cartella «$1» nella prossima finestra e da ora ogni documento al suo interno si salverà sul posto: questo e i suoi vicini."
+ },
+ "fgChooseFolder": {
+ "message": "Scegli la cartella «$1»…"
+ },
+ "fgOnlyFile": {
+ "message": "Solo questo file…"
+ },
+ "fgNotContaining": {
+ "message": "«$1» non contiene questo documento: scegli «$2» o una cartella superiore."
+ },
+ "tdGrantFolder": {
+ "message": "Salva tutto in «$1» senza chiedere…"
}
}
diff --git a/home/webext/_locales/ja/messages.json b/home/webext/_locales/ja/messages.json
index ed349beb..09a14ce5 100644
--- a/home/webext/_locales/ja/messages.json
+++ b/home/webext/_locales/ja/messages.json
@@ -199,7 +199,7 @@
"message": "ドキュメントを置いているフォルダを選ぶ"
},
"setupStep1Note": {
- "message": "通常は広めのフォルダを 1 つで十分です — 中身すべてが対象になります。"
+ "message": "広めのフォルダーが一つあれば通常十分です。その中のすべてが対象になります。ホームフォルダー自体や Library は Chrome が渡してくれません。書類、デスクトップ、またはドキュメントのあるフォルダーを選んでください。"
},
"setupStep2": {
"message": "ローカルファイルへのアクセスをオンにする",
@@ -517,5 +517,149 @@
},
"surveyOnlySeen": {
"message": "この方法で見つかるのは、このブラウザーで開いたドキュメントだけです。"
+ },
+ "placingFolder": {
+ "message": "ディスク上で「$1」を探しています…"
+ },
+ "placeNoDisk": {
+ "message": "Chrome は「$1」を探すために拡張機能がディスクを読むことを許可しませんでした(file:// の一覧が拒否されました)。"
+ },
+ "placeTried": {
+ "message": "ディスク上の $2 か所で「$1」を探しましたが、見つかりませんでした。"
+ },
+ "badgeNotAdded": {
+ "message": "未追加"
+ },
+ "badgeNotAddedTip": {
+ "message": "ディスク上で見つかりました。開けますが、保存時に保存先を尋ねられます。その場で保存するにはフォルダーを追加してください。"
+ },
+ "folderFoundTip": {
+ "message": "ディスク上で見つかった未追加のフォルダーです。中のドキュメントは開けますが、保存時に保存先を尋ねられます。"
+ },
+ "menuAddFolder": {
+ "message": "その場で保存するためにフォルダーを追加…"
+ },
+ "pickThisFolder": {
+ "message": "ダイアログでフォルダー「$1」を選んでください。Chrome はあなたが選ぶのを見届ける必要があります。"
+ },
+ "pickedWrongFolder": {
+ "message": "「$1」はこのドキュメントのフォルダー(「$2」)ではありません。もう一度、そのフォルダーを選んでください。"
+ },
+ "folderAlreadyAdded": {
+ "message": "「$1」はすでに追加されています。"
+ },
+ "bentoFolderBtn": {
+ "message": "Bento フォルダーを作成…"
+ },
+ "bentoFolderHow": {
+ "message": "ダイアログで「書類」の中に「Bento」という新しいフォルダーを作り、それを選んでください。"
+ },
+ "bentoFolderMade": {
+ "message": "「$1」があなたの Bento フォルダーです。新しいドキュメントはそこに作られ、その場に保存されます。"
+ },
+ "bentoFolderTip": {
+ "message": "「書類」の中のフォルダーで、その場に保存し、新しいドキュメントの置き場になります。「書類」そのものは Chrome が渡してくれません。"
+ },
+ "defaultFolder": {
+ "message": "新しいドキュメントはここに入ります"
+ },
+ "fgTitle": {
+ "message": "今後「$1」をその場に保存しますか?"
+ },
+ "fgTitleLapsed": {
+ "message": "「$1」を再接続しますか?"
+ },
+ "fgLead": {
+ "message": "bento/home はこのファイル一つの許可を保持するので、以降の保存は直接このファイルに書き込まれます。次のダイアログで同じファイルを選んでください。"
+ },
+ "fgLeadLapsed": {
+ "message": "bento/home はこのファイルをすでに知っています。ブラウザーが再確認を求めています。"
+ },
+ "fgChoose": {
+ "message": "ファイルを選択…"
+ },
+ "fgReconnect": {
+ "message": "再接続"
+ },
+ "fgOnce": {
+ "message": "今回だけ"
+ },
+ "fgNotSame": {
+ "message": "それは要求したファイル(「$1」)ではありません。そのファイルを選ぶか、このウィンドウを閉じてください。"
+ },
+ "fgDenied": {
+ "message": "許可されませんでした。"
+ },
+ "droppedGranted": {
+ "message": "追加しました: フォルダー $1、ファイル $2。"
+ },
+ "setFilesTitle": {
+ "message": "ファイル"
+ },
+ "setFilesSub": {
+ "message": "追加したどのフォルダーにも属さないが、単独でその場に保存されるドキュメント。一度選んだもの、またはライブラリにドロップしたもの。"
+ },
+ "dropNoHandle": {
+ "message": "「$1」: このドロップに対してブラウザーがファイルハンドルを渡しませんでした。"
+ },
+ "dropNotBento": {
+ "message": "「$1」は Bento ドキュメント(.bento.html)ではないため追加しませんでした。"
+ },
+ "setDownloadsTitle": {
+ "message": "ダウンロード"
+ },
+ "setDownloadsSub": {
+ "message": "ダウンロードフォルダーのドキュメントは Chrome のダウンロード機能を通じてその場に保存できます。ただし Chrome が「ダウンロード前に各ファイルの保存場所を確認する」設定になっていると、保存のたびにダイアログになります。"
+ },
+ "setDownloadsOff": {
+ "message": "Chrome が保存場所を尋ねたため、その設定が変わるまでダウンロードフォルダーへの保存はオフです"
+ },
+ "setDownloadsRetry": {
+ "message": "もう一度試す"
+ },
+ "dropTwins": {
+ "message": "「$1」: ディスク上の $2 個のファイルがまったく同じバイト列です。追加はしましたが、内容が異なるまでその場に保存できません。"
+ },
+ "addFiles": {
+ "message": "ファイルを追加…"
+ },
+ "tdGrant": {
+ "message": "確認なしでここに保存…"
+ },
+ "tdViaFolder": {
+ "message": "その場に保存されます(フォルダー追加済み)"
+ },
+ "tdViaFile": {
+ "message": "その場に保存されます(このファイル追加済み)"
+ },
+ "tdViaDownloads": {
+ "message": "その場に保存されます(ダウンロード内)"
+ },
+ "tdNotYet": {
+ "message": "保存のたびに保存先を尋ねます"
+ },
+ "badgeNotSavingTip": {
+ "message": "このドキュメントはまだその場に保存できません。bento/home パネルを開いて設定してください。"
+ },
+ "noticeOsBlocked": {
+ "message": "macOS がブラウザーの $1 へのアクセスを止めているため、許可するまでそこにあるドキュメントは一覧に出ません。システム設定 → プライバシーとセキュリティ → ファイルとフォルダ → Google Chrome で許可してください。"
+ },
+ "noticeOsBlockedPath": {
+ "message": "システム設定 → プライバシーとセキュリティ → ファイルとフォルダ"
+ },
+ "fgLeadFolder": {
+ "message": "次のダイアログでフォルダー「$1」を選ぶと、今後その中のすべてのドキュメント(これも隣のものも)がその場に保存されます。"
+ },
+ "fgChooseFolder": {
+ "message": "フォルダー「$1」を選択…"
+ },
+ "fgOnlyFile": {
+ "message": "このファイルだけ…"
+ },
+ "fgNotContaining": {
+ "message": "「$1」にはこのドキュメントがありません。「$2」かその上のフォルダーを選んでください。"
+ },
+ "tdGrantFolder": {
+ "message": "「$1」内はすべて確認なしで保存…"
}
}
diff --git a/home/webext/_locales/ko/messages.json b/home/webext/_locales/ko/messages.json
index 20f886f2..5ef10adb 100644
--- a/home/webext/_locales/ko/messages.json
+++ b/home/webext/_locales/ko/messages.json
@@ -189,7 +189,7 @@
"message": "문서가 있는 폴더를 선택하세요"
},
"setupStep1Note": {
- "message": "넓은 폴더 하나면 대개 충분합니다 — 그 안의 모든 것이 포함됩니다."
+ "message": "보통 넓은 폴더 하나면 충분합니다. 그 안의 모든 것이 포함됩니다. 홈 폴더 자체나 Library는 Chrome이 넘겨주지 않으니 문서, 데스크탑, 또는 문서가 들어 있는 폴더를 고르세요."
},
"setupStep2": {
"message": "로컬 파일 접근을 켜세요"
@@ -484,5 +484,149 @@
},
"surveyOnlySeen": {
"message": "이 방법으로는 이 브라우저에서 연 문서만 찾을 수 있습니다."
+ },
+ "placingFolder": {
+ "message": "디스크에서 “$1” 찾는 중…"
+ },
+ "placeNoDisk": {
+ "message": "Chrome이 “$1”을(를) 찾기 위해 확장 프로그램이 디스크를 읽는 것을 허용하지 않았습니다(file:// 목록 거부됨)."
+ },
+ "placeTried": {
+ "message": "디스크의 $2곳에서 “$1”을(를) 찾았지만 없었습니다."
+ },
+ "badgeNotAdded": {
+ "message": "추가되지 않음"
+ },
+ "badgeNotAddedTip": {
+ "message": "디스크에서 찾았습니다. 열리지만 저장할 때 위치를 묻습니다. 제자리에 저장하려면 폴더를 추가하세요."
+ },
+ "folderFoundTip": {
+ "message": "디스크에서 찾았지만 추가되지 않은 폴더: 문서는 열리지만 저장할 때 위치를 묻습니다."
+ },
+ "menuAddFolder": {
+ "message": "제자리에 저장하도록 폴더 추가…"
+ },
+ "pickThisFolder": {
+ "message": "선택 창에서 “$1” 폴더를 고르세요. Chrome이 직접 고르는 것을 확인해야 합니다."
+ },
+ "pickedWrongFolder": {
+ "message": "“$1”은(는) 이 문서의 폴더(“$2”)가 아닙니다. 다시 시도해 그 폴더를 고르세요."
+ },
+ "folderAlreadyAdded": {
+ "message": "“$1”은(는) 이미 추가되어 있습니다."
+ },
+ "bentoFolderBtn": {
+ "message": "Bento 폴더 만들기…"
+ },
+ "bentoFolderHow": {
+ "message": "대화상자에서 문서 안에 “Bento”라는 새 폴더를 만들고 그것을 선택하세요."
+ },
+ "bentoFolderMade": {
+ "message": "“$1”이(가) Bento 폴더입니다. 새 문서는 거기에 만들어지고 제자리에 저장됩니다."
+ },
+ "bentoFolderTip": {
+ "message": "문서 안에 있는 폴더로, 제자리에 저장하고 새 문서를 받습니다. 문서 폴더 자체는 Chrome이 넘겨주지 않습니다."
+ },
+ "defaultFolder": {
+ "message": "새 문서는 여기에 만들어집니다"
+ },
+ "fgTitle": {
+ "message": "이제부터 “$1”을(를) 제자리에 저장할까요?"
+ },
+ "fgTitleLapsed": {
+ "message": "“$1”을(를) 다시 연결할까요?"
+ },
+ "fgLead": {
+ "message": "bento/home이 이 파일 하나에 대한 권한을 보관하므로 이후 저장은 곧바로 이 파일에 쓰입니다. 다음 대화상자에서 같은 파일을 고르세요."
+ },
+ "fgLeadLapsed": {
+ "message": "bento/home에 이 파일이 이미 있습니다. 브라우저가 다시 확인을 요청합니다."
+ },
+ "fgChoose": {
+ "message": "파일 선택…"
+ },
+ "fgReconnect": {
+ "message": "다시 연결"
+ },
+ "fgOnce": {
+ "message": "이번만"
+ },
+ "fgNotSame": {
+ "message": "요청한 파일(“$1”)이 아닙니다. 그 파일을 고르거나 이 창을 닫으세요."
+ },
+ "fgDenied": {
+ "message": "권한이 허용되지 않았습니다."
+ },
+ "droppedGranted": {
+ "message": "추가됨: 폴더 $1개, 파일 $2개."
+ },
+ "setFilesTitle": {
+ "message": "파일"
+ },
+ "setFilesSub": {
+ "message": "추가된 폴더 밖에 있지만 스스로 제자리에 저장되는 문서. 한 번 선택했거나 라이브러리에 끌어다 놓은 것."
+ },
+ "dropNoHandle": {
+ "message": "“$1”: 이 드롭에 대해 브라우저가 파일 핸들을 넘겨주지 않았습니다."
+ },
+ "dropNotBento": {
+ "message": "“$1”은(는) Bento 문서(.bento.html)가 아니라 추가하지 않았습니다."
+ },
+ "setDownloadsTitle": {
+ "message": "다운로드"
+ },
+ "setDownloadsSub": {
+ "message": "다운로드 폴더의 문서는 Chrome의 다운로드를 통해 제자리에 저장할 수 있습니다. 단, Chrome이 파일마다 저장 위치를 묻도록 설정되어 있으면 저장할 때마다 대화상자가 뜹니다."
+ },
+ "setDownloadsOff": {
+ "message": "Chrome이 저장 위치를 물었습니다. 그 설정이 바뀔 때까지 다운로드 폴더 저장은 꺼져 있습니다"
+ },
+ "setDownloadsRetry": {
+ "message": "다시 시도"
+ },
+ "dropTwins": {
+ "message": "“$1”: 디스크의 $2개 파일이 정확히 같은 바이트입니다. 추가는 됐지만 서로 달라질 때까지 제자리에 저장할 수 없습니다."
+ },
+ "addFiles": {
+ "message": "파일 추가…"
+ },
+ "tdGrant": {
+ "message": "묻지 않고 여기에 저장…"
+ },
+ "tdViaFolder": {
+ "message": "제자리에 저장됨 — 폴더가 추가되어 있음"
+ },
+ "tdViaFile": {
+ "message": "제자리에 저장됨 — 이 파일이 추가되어 있음"
+ },
+ "tdViaDownloads": {
+ "message": "제자리에 저장됨 — 다운로드 폴더에 있음"
+ },
+ "tdNotYet": {
+ "message": "저장할 때마다 위치를 묻습니다"
+ },
+ "badgeNotSavingTip": {
+ "message": "이 문서는 아직 제자리에 저장할 수 없습니다. bento/home 패널을 열어 해결하세요."
+ },
+ "noticeOsBlocked": {
+ "message": "macOS가 브라우저의 $1 접근을 막고 있어, 허용할 때까지 그곳의 문서는 나열되지 않습니다: 시스템 설정 → 개인정보 보호 및 보안 → 파일 및 폴더 → Google Chrome."
+ },
+ "noticeOsBlockedPath": {
+ "message": "시스템 설정 → 개인정보 보호 및 보안 → 파일 및 폴더"
+ },
+ "fgLeadFolder": {
+ "message": "다음 대화상자에서 “$1” 폴더를 선택하면, 이제부터 그 안의 모든 문서(이 문서와 옆의 문서들)가 제자리에 저장됩니다."
+ },
+ "fgChooseFolder": {
+ "message": "“$1” 폴더 선택…"
+ },
+ "fgOnlyFile": {
+ "message": "이 파일만…"
+ },
+ "fgNotContaining": {
+ "message": "“$1”에는 이 문서가 없습니다. “$2” 또는 그 위의 폴더를 선택하세요."
+ },
+ "tdGrantFolder": {
+ "message": "“$1”의 모든 것을 묻지 않고 저장…"
}
}
diff --git a/home/webext/_locales/ms/messages.json b/home/webext/_locales/ms/messages.json
index 9e1cd6e9..8370c7be 100644
--- a/home/webext/_locales/ms/messages.json
+++ b/home/webext/_locales/ms/messages.json
@@ -189,7 +189,7 @@
"message": "Pilih folder tempat dokumen anda berada"
},
"setupStep1Note": {
- "message": "Satu folder luas biasanya memadai — ia merangkumi segala-galanya di dalamnya."
+ "message": "Satu folder yang luas biasanya mencukupi — ia meliputi semua di dalamnya. Chrome tidak akan menyerahkan folder rumah itu sendiri atau Library: pilih Dokumen, Desktop, atau folder tempat dokumen anda berada."
},
"setupStep2": {
"message": "Hidupkan akses fail setempat"
@@ -484,5 +484,149 @@
},
"surveyOnlySeen": {
"message": "Cara ini hanya menemui dokumen yang pernah dibuka dalam pelayar ini."
+ },
+ "placingFolder": {
+ "message": "Mencari “$1” pada cakera…"
+ },
+ "placeNoDisk": {
+ "message": "Chrome tidak membenarkan sambungan membaca “$1” daripada cakera untuk mencarinya (senarai file:// ditolak)."
+ },
+ "placeTried": {
+ "message": "Mencari “$1” di $2 tempat pada cakera — tiada di sana."
+ },
+ "badgeNotAdded": {
+ "message": "belum ditambah"
+ },
+ "badgeNotAddedTip": {
+ "message": "Ditemui pada cakera. Boleh dibuka, tetapi semasa menyimpan akan ditanya ke mana — tambah foldernya untuk menyimpan di tempat."
+ },
+ "folderFoundTip": {
+ "message": "Ditemui pada cakera, belum ditambah: dokumennya boleh dibuka, tetapi menyimpan bertanya ke mana."
+ },
+ "menuAddFolder": {
+ "message": "Tambah foldernya untuk menyimpan di tempat…"
+ },
+ "pickThisFolder": {
+ "message": "Dalam pemilih, pilih folder “$1” — Chrome mesti melihat anda memilihnya."
+ },
+ "pickedWrongFolder": {
+ "message": "“$1” bukan folder dokumen ini (“$2”). Cuba lagi dan pilih yang itu."
+ },
+ "folderAlreadyAdded": {
+ "message": "“$1” sudah ditambah."
+ },
+ "bentoFolderBtn": {
+ "message": "Cipta folder Bento…"
+ },
+ "bentoFolderHow": {
+ "message": "Dalam dialog, cipta folder baharu bernama “Bento” dalam Dokumen dan pilihnya."
+ },
+ "bentoFolderMade": {
+ "message": "“$1” ialah folder Bento anda — dokumen baharu masuk ke sana dan disimpan di tempat."
+ },
+ "bentoFolderTip": {
+ "message": "Folder dalam Dokumen yang menyimpan di tempat dan menerima dokumen baharu. Chrome tidak akan memberikan Dokumen itu sendiri."
+ },
+ "defaultFolder": {
+ "message": "dokumen baharu masuk ke sini"
+ },
+ "fgTitle": {
+ "message": "Simpan “$1” di tempat mulai sekarang?"
+ },
+ "fgTitleLapsed": {
+ "message": "Sambung semula “$1”?"
+ },
+ "fgLead": {
+ "message": "bento/home menyimpan kebenaran untuk fail ini sahaja, jadi setiap simpanan menulis terus kepadanya. Pilih fail yang sama dalam dialog seterusnya."
+ },
+ "fgLeadLapsed": {
+ "message": "bento/home sudah ada fail ini; pelayar mahu anda mengesahkannya sekali lagi."
+ },
+ "fgChoose": {
+ "message": "Pilih fail…"
+ },
+ "fgReconnect": {
+ "message": "Sambung semula"
+ },
+ "fgOnce": {
+ "message": "Sekali ini sahaja"
+ },
+ "fgNotSame": {
+ "message": "Itu bukan fail yang bertanya (“$1”). Pilih yang itu, atau tutup tetingkap ini."
+ },
+ "fgDenied": {
+ "message": "Kebenaran tidak diberikan."
+ },
+ "droppedGranted": {
+ "message": "Ditambah: $1 folder, $2 fail."
+ },
+ "setFilesTitle": {
+ "message": "Fail"
+ },
+ "setFilesSub": {
+ "message": "Dokumen di luar mana-mana folder yang ditambah yang menyimpan di tempat dengan sendirinya — dipilih sekali, atau dijatuhkan ke perpustakaan."
+ },
+ "dropNoHandle": {
+ "message": "“$1”: pelayar tidak memberikan pemegang fail untuk lepasan ini."
+ },
+ "dropNotBento": {
+ "message": "“$1” bukan dokumen Bento (.bento.html) — tidak ditambah."
+ },
+ "setDownloadsTitle": {
+ "message": "Muat turun"
+ },
+ "setDownloadsSub": {
+ "message": "Dokumen dalam folder Muat turun boleh disimpan di tempat melalui muat turun Chrome — melainkan Chrome ditetapkan untuk bertanya di mana untuk menyimpan setiap fail, yang menjadikan setiap simpanan satu dialog."
+ },
+ "setDownloadsOff": {
+ "message": "Chrome bertanya di mana untuk menyimpan — menyimpan ke Muat turun dimatikan sehingga tetapan itu berubah"
+ },
+ "setDownloadsRetry": {
+ "message": "Cuba lagi"
+ },
+ "dropTwins": {
+ "message": "“$1”: $2 fail pada cakera mempunyai bait yang sama persis — ditambah, tetapi tidak boleh menyimpan di tempat sehingga ia berbeza."
+ },
+ "addFiles": {
+ "message": "Tambah fail…"
+ },
+ "tdGrant": {
+ "message": "Simpan di sini tanpa bertanya…"
+ },
+ "tdViaFolder": {
+ "message": "disimpan di tempat — foldernya telah ditambah"
+ },
+ "tdViaFile": {
+ "message": "disimpan di tempat — fail ini telah ditambah"
+ },
+ "tdViaDownloads": {
+ "message": "disimpan di tempat — berada dalam Muat turun"
+ },
+ "tdNotYet": {
+ "message": "sentiasa bertanya di mana untuk menyimpan"
+ },
+ "badgeNotSavingTip": {
+ "message": "Dokumen ini belum boleh menyimpan di tempat — buka panel bento/home untuk membetulkannya."
+ },
+ "noticeOsBlocked": {
+ "message": "macOS menghalang pelayar daripada $1, jadi dokumen di sana tidak disenaraikan sehingga anda membenarkannya: System Settings → Privacy & Security → Files and Folders → Google Chrome."
+ },
+ "noticeOsBlockedPath": {
+ "message": "System Settings → Privacy & Security → Files and Folders"
+ },
+ "fgLeadFolder": {
+ "message": "Pilih folder “$1” dalam dialog seterusnya dan setiap dokumen di dalamnya disimpan di tempat mulai sekarang — yang ini dan jirannya."
+ },
+ "fgChooseFolder": {
+ "message": "Pilih folder “$1”…"
+ },
+ "fgOnlyFile": {
+ "message": "Fail ini sahaja…"
+ },
+ "fgNotContaining": {
+ "message": "“$1” tidak mengandungi dokumen ini — pilih “$2”, atau folder di atasnya."
+ },
+ "tdGrantFolder": {
+ "message": "Simpan semua dalam “$1” tanpa bertanya…"
}
}
diff --git a/home/webext/_locales/nb/messages.json b/home/webext/_locales/nb/messages.json
index 727da498..bf8cbe5b 100644
--- a/home/webext/_locales/nb/messages.json
+++ b/home/webext/_locales/nb/messages.json
@@ -189,7 +189,7 @@
"message": "Velg mappen dokumentene dine ligger i"
},
"setupStep1Note": {
- "message": "Én bred mappe holder som regel — den dekker alt inni."
+ "message": "Én bred mappe er som regel nok — den dekker alt i den. Chrome gir ikke fra seg selve hjemmemappen eller Library: velg Dokumenter, Skrivebord eller mappen dokumentene dine ligger i."
},
"setupStep2": {
"message": "Slå på tilgang til lokale filer"
@@ -484,5 +484,149 @@
},
"surveyOnlySeen": {
"message": "Bare dokumenter som er åpnet i denne nettleseren kan finnes slik."
+ },
+ "placingFolder": {
+ "message": "Leter etter «$1» på disken …"
+ },
+ "placeNoDisk": {
+ "message": "Chrome lot ikke utvidelsen lese «$1» fra disken for å finne den (file://-lister avvist)."
+ },
+ "placeTried": {
+ "message": "Lette etter «$1» på $2 steder på disken — ikke der."
+ },
+ "badgeNotAdded": {
+ "message": "ikke lagt til"
+ },
+ "badgeNotAddedTip": {
+ "message": "Funnet på disken. Den åpnes, men lagring spør hvor — legg til mappen for å lagre på stedet."
+ },
+ "folderFoundTip": {
+ "message": "Funnet på disken, ikke lagt til: dokumentene åpnes, men lagring spør hvor."
+ },
+ "menuAddFolder": {
+ "message": "Legg til mappen for å lagre på stedet …"
+ },
+ "pickThisFolder": {
+ "message": "Velg mappen «$1» i velgeren — Chrome må se at du velger den."
+ },
+ "pickedWrongFolder": {
+ "message": "«$1» er ikke mappen dette dokumentet ligger i («$2»). Prøv igjen og velg den."
+ },
+ "folderAlreadyAdded": {
+ "message": "«$1» er allerede lagt til."
+ },
+ "bentoFolderBtn": {
+ "message": "Opprett en Bento-mappe …"
+ },
+ "bentoFolderHow": {
+ "message": "Lag en ny mappe kalt «Bento» i Dokumenter i dialogen, og velg den."
+ },
+ "bentoFolderMade": {
+ "message": "«$1» er Bento-mappen din — nye dokumenter havner der og lagres på stedet."
+ },
+ "bentoFolderTip": {
+ "message": "En mappe i Dokumenter som lagrer på stedet og tar imot nye dokumenter. Chrome gir ikke fra seg selve Dokumenter."
+ },
+ "defaultFolder": {
+ "message": "nye dokumenter havner her"
+ },
+ "fgTitle": {
+ "message": "Lagre «$1» på stedet fra nå av?"
+ },
+ "fgTitleLapsed": {
+ "message": "Koble til «$1» igjen?"
+ },
+ "fgLead": {
+ "message": "bento/home beholder tillatelsen for akkurat denne filen, så hver lagring skriver rett til den. Velg den samme filen i neste dialog."
+ },
+ "fgLeadLapsed": {
+ "message": "bento/home har allerede denne filen; nettleseren vil at du bekrefter den igjen."
+ },
+ "fgChoose": {
+ "message": "Velg filen …"
+ },
+ "fgReconnect": {
+ "message": "Koble til igjen"
+ },
+ "fgOnce": {
+ "message": "Bare denne gangen"
+ },
+ "fgNotSame": {
+ "message": "Det er ikke filen som spurte («$1»). Velg den, eller lukk dette vinduet."
+ },
+ "fgDenied": {
+ "message": "Tillatelsen ble ikke gitt."
+ },
+ "droppedGranted": {
+ "message": "Lagt til: $1 mapper, $2 filer."
+ },
+ "setFilesTitle": {
+ "message": "Filer"
+ },
+ "setFilesSub": {
+ "message": "Dokumenter utenfor enhver lagt-til mappe som lagrer på stedet på egen hånd — valgt én gang, eller sluppet i biblioteket."
+ },
+ "dropNoHandle": {
+ "message": "«$1»: nettleseren ga ikke noe filhåndtak for dette slippet."
+ },
+ "dropNotBento": {
+ "message": "«$1» er ikke et Bento-dokument (.bento.html) — ikke lagt til."
+ },
+ "setDownloadsTitle": {
+ "message": "Nedlastinger"
+ },
+ "setDownloadsSub": {
+ "message": "Dokumenter i Nedlastinger-mappen kan lagres på stedet via Chromes nedlastinger — med mindre Chrome er satt til å spørre hvor hver fil skal lagres, som gjør hver lagring til en dialog."
+ },
+ "setDownloadsOff": {
+ "message": "Chrome spurte hvor det skulle lagres — lagring i Nedlastinger er av til den innstillingen endres"
+ },
+ "setDownloadsRetry": {
+ "message": "Prøv igjen"
+ },
+ "dropTwins": {
+ "message": "«$1»: $2 filer på disken har nøyaktig disse bytene — lagt til, men kan ikke lagre på stedet før de er forskjellige."
+ },
+ "addFiles": {
+ "message": "Legg til filer …"
+ },
+ "tdGrant": {
+ "message": "Lagre her uten å spørre …"
+ },
+ "tdViaFolder": {
+ "message": "lagrer på stedet — mappen er lagt til"
+ },
+ "tdViaFile": {
+ "message": "lagrer på stedet — denne filen er lagt til"
+ },
+ "tdViaDownloads": {
+ "message": "lagrer på stedet — ligger i Nedlastinger"
+ },
+ "tdNotYet": {
+ "message": "spør hvor det skal lagres, hver gang"
+ },
+ "badgeNotSavingTip": {
+ "message": "Dette dokumentet kan ikke lagre på stedet ennå — åpne bento/home-panelet for å ordne det."
+ },
+ "noticeOsBlocked": {
+ "message": "macOS holder nettleseren ute av $1, så dokumenter der vises ikke før du tillater det: Systeminnstillinger → Personvern og sikkerhet → Filer og mapper → Google Chrome."
+ },
+ "noticeOsBlockedPath": {
+ "message": "Systeminnstillinger → Personvern og sikkerhet → Filer og mapper"
+ },
+ "fgLeadFolder": {
+ "message": "Velg mappen «$1» i neste dialog, så lagres hvert dokument i den på stedet fra nå av — dette og naboene."
+ },
+ "fgChooseFolder": {
+ "message": "Velg mappen «$1» …"
+ },
+ "fgOnlyFile": {
+ "message": "Bare denne filen …"
+ },
+ "fgNotContaining": {
+ "message": "«$1» inneholder ikke dette dokumentet — velg «$2» eller en mappe over den."
+ },
+ "tdGrantFolder": {
+ "message": "Lagre alt i «$1» uten å spørre …"
}
}
diff --git a/home/webext/_locales/nl/messages.json b/home/webext/_locales/nl/messages.json
index 230d1ec3..d1aa8165 100644
--- a/home/webext/_locales/nl/messages.json
+++ b/home/webext/_locales/nl/messages.json
@@ -189,7 +189,7 @@
"message": "Kies de map waar je documenten staan"
},
"setupStep1Note": {
- "message": "Eén ruime map is meestal genoeg — die dekt alles wat erin zit."
+ "message": "Eén brede map is meestal genoeg — die dekt alles erin. Chrome geeft je thuismap zelf of Library niet vrij: kies Documenten, Bureaublad of de map waar je documenten staan."
},
"setupStep2": {
"message": "Zet toegang tot lokale bestanden aan"
@@ -484,5 +484,149 @@
},
"surveyOnlySeen": {
"message": "Zo worden alleen documenten gevonden die in deze browser zijn geopend."
+ },
+ "placingFolder": {
+ "message": "Zoeken naar “$1” op de schijf…"
+ },
+ "placeNoDisk": {
+ "message": "Chrome liet de extensie “$1” niet van de schijf lezen om hem te vinden (file://-lijsten geweigerd)."
+ },
+ "placeTried": {
+ "message": "Gezocht naar “$1” op $2 plekken op de schijf — niet daar."
+ },
+ "badgeNotAdded": {
+ "message": "niet toegevoegd"
+ },
+ "badgeNotAddedTip": {
+ "message": "Gevonden op de schijf. Opent wel, maar opslaan vraagt waar — voeg de map toe om ter plekke op te slaan."
+ },
+ "folderFoundTip": {
+ "message": "Gevonden op de schijf, niet toegevoegd: de documenten openen, maar opslaan vraagt waar."
+ },
+ "menuAddFolder": {
+ "message": "Map toevoegen om ter plekke op te slaan…"
+ },
+ "pickThisFolder": {
+ "message": "Kies in de kiezer de map “$1” — Chrome moet zien dat u die kiest."
+ },
+ "pickedWrongFolder": {
+ "message": "“$1” is niet de map van dit document (“$2”). Probeer opnieuw en kies die."
+ },
+ "folderAlreadyAdded": {
+ "message": "“$1” is al toegevoegd."
+ },
+ "bentoFolderBtn": {
+ "message": "Een Bento-map maken…"
+ },
+ "bentoFolderHow": {
+ "message": "Maak in het venster een nieuwe map met de naam “Bento” in Documenten en kies die."
+ },
+ "bentoFolderMade": {
+ "message": "“$1” is uw Bento-map — nieuwe documenten komen daar en worden ter plekke opgeslagen."
+ },
+ "bentoFolderTip": {
+ "message": "Een map in Documenten die ter plekke opslaat en nieuwe documenten ontvangt. Documenten zelf geeft Chrome niet vrij."
+ },
+ "defaultFolder": {
+ "message": "nieuwe documenten komen hier"
+ },
+ "fgTitle": {
+ "message": "“$1” voortaan ter plekke opslaan?"
+ },
+ "fgTitleLapsed": {
+ "message": "“$1” opnieuw verbinden?"
+ },
+ "fgLead": {
+ "message": "bento/home houdt de toestemming voor dit ene bestand, zodat elke keer opslaan er direct in schrijft. Kies hetzelfde bestand in het volgende venster."
+ },
+ "fgLeadLapsed": {
+ "message": "bento/home heeft dit bestand al; de browser wil dat u het opnieuw bevestigt."
+ },
+ "fgChoose": {
+ "message": "Bestand kiezen…"
+ },
+ "fgReconnect": {
+ "message": "Opnieuw verbinden"
+ },
+ "fgOnce": {
+ "message": "Alleen deze keer"
+ },
+ "fgNotSame": {
+ "message": "Dat is niet het bestand dat vroeg (“$1”). Kies dat, of sluit dit venster."
+ },
+ "fgDenied": {
+ "message": "Toestemming is niet verleend."
+ },
+ "droppedGranted": {
+ "message": "Toegevoegd: $1 mappen, $2 bestanden."
+ },
+ "setFilesTitle": {
+ "message": "Bestanden"
+ },
+ "setFilesSub": {
+ "message": "Documenten buiten elke toegevoegde map die zelf ter plekke opslaan — één keer gekozen, of in de bibliotheek gesleept."
+ },
+ "dropNoHandle": {
+ "message": "“$1”: de browser gaf geen bestandshandle voor deze drop."
+ },
+ "dropNotBento": {
+ "message": "“$1” is geen Bento-document (.bento.html) — niet toegevoegd."
+ },
+ "setDownloadsTitle": {
+ "message": "Downloads"
+ },
+ "setDownloadsSub": {
+ "message": "Documenten in de map Downloads kunnen ter plekke opslaan via de downloads van Chrome — tenzij Chrome is ingesteld om bij elk bestand te vragen waar het moet worden opgeslagen, waardoor elke keer opslaan een venster wordt."
+ },
+ "setDownloadsOff": {
+ "message": "Chrome vroeg waar op te slaan — opslaan in Downloads staat uit tot die instelling verandert"
+ },
+ "setDownloadsRetry": {
+ "message": "Opnieuw proberen"
+ },
+ "dropTwins": {
+ "message": "“$1”: $2 bestanden op de schijf hebben precies deze bytes — toegevoegd, maar ter plekke opslaan kan pas als ze verschillen."
+ },
+ "addFiles": {
+ "message": "Bestanden toevoegen…"
+ },
+ "tdGrant": {
+ "message": "Hier opslaan zonder vragen…"
+ },
+ "tdViaFolder": {
+ "message": "slaat ter plekke op — de map is toegevoegd"
+ },
+ "tdViaFile": {
+ "message": "slaat ter plekke op — dit bestand is toegevoegd"
+ },
+ "tdViaDownloads": {
+ "message": "slaat ter plekke op — staat in Downloads"
+ },
+ "tdNotYet": {
+ "message": "vraagt elke keer waar op te slaan"
+ },
+ "badgeNotSavingTip": {
+ "message": "Dit document kan nog niet ter plekke opslaan — open het bento/home-paneel om dat te regelen."
+ },
+ "noticeOsBlocked": {
+ "message": "macOS houdt de browser uit $1, dus documenten daar worden pas getoond als u het toestaat: Systeeminstellingen → Privacy en beveiliging → Bestanden en mappen → Google Chrome."
+ },
+ "noticeOsBlockedPath": {
+ "message": "Systeeminstellingen → Privacy en beveiliging → Bestanden en mappen"
+ },
+ "fgLeadFolder": {
+ "message": "Kies in het volgende venster de map “$1”; elk document erin slaat voortaan ter plekke op — dit en de buren."
+ },
+ "fgChooseFolder": {
+ "message": "Map “$1” kiezen…"
+ },
+ "fgOnlyFile": {
+ "message": "Alleen dit bestand…"
+ },
+ "fgNotContaining": {
+ "message": "“$1” bevat dit document niet — kies “$2” of een map erboven."
+ },
+ "tdGrantFolder": {
+ "message": "Alles in “$1” opslaan zonder vragen…"
}
}
diff --git a/home/webext/_locales/pl/messages.json b/home/webext/_locales/pl/messages.json
index c39f5be4..56277af3 100644
--- a/home/webext/_locales/pl/messages.json
+++ b/home/webext/_locales/pl/messages.json
@@ -189,7 +189,7 @@
"message": "Wybierz folder, w którym trzymasz dokumenty"
},
"setupStep1Note": {
- "message": "Zwykle wystarczy jeden szeroki folder — obejmuje wszystko, co jest w środku."
+ "message": "Zwykle wystarczy jeden szeroki folder — obejmuje wszystko w środku. Chrome nie udostępni samego folderu domowego ani Library: wybierz Dokumenty, Biurko lub folder, w którym leżą Twoje dokumenty."
},
"setupStep2": {
"message": "Włącz dostęp do plików lokalnych"
@@ -484,5 +484,149 @@
},
"surveyOnlySeen": {
"message": "W ten sposób znajdziesz tylko dokumenty otwarte w tej przeglądarce."
+ },
+ "placingFolder": {
+ "message": "Szukanie „$1” na dysku…"
+ },
+ "placeNoDisk": {
+ "message": "Chrome nie pozwolił rozszerzeniu odczytać „$1” z dysku, aby go znaleźć (listy file:// odrzucone)."
+ },
+ "placeTried": {
+ "message": "Szukano „$1” w $2 miejscach na dysku — nie ma go tam."
+ },
+ "badgeNotAdded": {
+ "message": "niedodany"
+ },
+ "badgeNotAddedTip": {
+ "message": "Znaleziony na dysku. Otwiera się, ale zapis zapyta gdzie — dodaj jego folder, aby zapisywać w miejscu."
+ },
+ "folderFoundTip": {
+ "message": "Znaleziony na dysku, niedodany: dokumenty się otwierają, ale zapis pyta gdzie."
+ },
+ "menuAddFolder": {
+ "message": "Dodaj jego folder, aby zapisywać w miejscu…"
+ },
+ "pickThisFolder": {
+ "message": "W oknie wyboru wskaż folder „$1” — Chrome musi widzieć, że go wybierasz."
+ },
+ "pickedWrongFolder": {
+ "message": "„$1” to nie folder tego dokumentu („$2”). Spróbuj ponownie i wybierz tamten."
+ },
+ "folderAlreadyAdded": {
+ "message": "„$1” jest już dodany."
+ },
+ "bentoFolderBtn": {
+ "message": "Utwórz folder Bento…"
+ },
+ "bentoFolderHow": {
+ "message": "W oknie utwórz w Dokumentach nowy folder o nazwie „Bento” i wybierz go."
+ },
+ "bentoFolderMade": {
+ "message": "„$1” to Twój folder Bento — nowe dokumenty trafiają tam i zapisują się w miejscu."
+ },
+ "bentoFolderTip": {
+ "message": "Folder w Dokumentach, który zapisuje w miejscu i przyjmuje nowe dokumenty. Samych Dokumentów Chrome nie udostępni."
+ },
+ "defaultFolder": {
+ "message": "nowe dokumenty trafiają tutaj"
+ },
+ "fgTitle": {
+ "message": "Zapisywać „$1” w miejscu od teraz?"
+ },
+ "fgTitleLapsed": {
+ "message": "Połączyć ponownie „$1”?"
+ },
+ "fgLead": {
+ "message": "bento/home zachowuje uprawnienie do tego jednego pliku, więc każdy zapis trafia prosto do niego. W następnym oknie wybierz ten sam plik."
+ },
+ "fgLeadLapsed": {
+ "message": "bento/home ma już ten plik; przeglądarka chce, abyś potwierdził go ponownie."
+ },
+ "fgChoose": {
+ "message": "Wybierz plik…"
+ },
+ "fgReconnect": {
+ "message": "Połącz ponownie"
+ },
+ "fgOnce": {
+ "message": "Tylko tym razem"
+ },
+ "fgNotSame": {
+ "message": "To nie jest plik, który pytał („$1”). Wybierz tamten albo zamknij to okno."
+ },
+ "fgDenied": {
+ "message": "Uprawnienie nie zostało przyznane."
+ },
+ "droppedGranted": {
+ "message": "Dodano: $1 folderów, $2 plików."
+ },
+ "setFilesTitle": {
+ "message": "Pliki"
+ },
+ "setFilesSub": {
+ "message": "Dokumenty spoza dodanych folderów, które same zapisują się w miejscu — wybrane raz lub upuszczone w bibliotece."
+ },
+ "dropNoHandle": {
+ "message": "„$1”: przeglądarka nie przekazała uchwytu pliku dla tego upuszczenia."
+ },
+ "dropNotBento": {
+ "message": "„$1” nie jest dokumentem Bento (.bento.html) — nie dodano."
+ },
+ "setDownloadsTitle": {
+ "message": "Pobrane"
+ },
+ "setDownloadsSub": {
+ "message": "Dokumenty w folderze Pobrane mogą zapisywać się w miejscu przez pobieranie Chrome — chyba że Chrome jest ustawiony, aby pytać, gdzie zapisać każdy plik, co zamienia każdy zapis w okno dialogowe."
+ },
+ "setDownloadsOff": {
+ "message": "Chrome zapytał, gdzie zapisać — zapis w Pobranych jest wyłączony, dopóki to ustawienie się nie zmieni"
+ },
+ "setDownloadsRetry": {
+ "message": "Spróbuj ponownie"
+ },
+ "dropTwins": {
+ "message": "„$1”: $2 plików na dysku ma dokładnie te bajty — dodano, ale nie zapisze w miejscu, dopóki się nie rozjadą."
+ },
+ "addFiles": {
+ "message": "Dodaj pliki…"
+ },
+ "tdGrant": {
+ "message": "Zapisuj tutaj bez pytania…"
+ },
+ "tdViaFolder": {
+ "message": "zapisuje w miejscu — folder jest dodany"
+ },
+ "tdViaFile": {
+ "message": "zapisuje w miejscu — ten plik jest dodany"
+ },
+ "tdViaDownloads": {
+ "message": "zapisuje w miejscu — jest w Pobranych"
+ },
+ "tdNotYet": {
+ "message": "pyta, gdzie zapisać, za każdym razem"
+ },
+ "badgeNotSavingTip": {
+ "message": "Ten dokument nie może jeszcze zapisywać w miejscu — otwórz panel bento/home, aby to naprawić."
+ },
+ "noticeOsBlocked": {
+ "message": "macOS nie wpuszcza przeglądarki do $1, więc dokumenty stamtąd nie są wyświetlane, dopóki na to nie zezwolisz: Ustawienia systemowe → Prywatność i ochrona → Pliki i foldery → Google Chrome."
+ },
+ "noticeOsBlockedPath": {
+ "message": "Ustawienia systemowe → Prywatność i ochrona → Pliki i foldery"
+ },
+ "fgLeadFolder": {
+ "message": "Wybierz w następnym oknie folder „$1”, a od teraz każdy dokument w nim zapisze się w miejscu — ten i sąsiednie."
+ },
+ "fgChooseFolder": {
+ "message": "Wybierz folder „$1”…"
+ },
+ "fgOnlyFile": {
+ "message": "Tylko ten plik…"
+ },
+ "fgNotContaining": {
+ "message": "„$1” nie zawiera tego dokumentu — wybierz „$2” lub folder wyżej."
+ },
+ "tdGrantFolder": {
+ "message": "Zapisuj wszystko w „$1” bez pytania…"
}
}
diff --git a/home/webext/_locales/pt_BR/messages.json b/home/webext/_locales/pt_BR/messages.json
index dc5de265..8f94ff02 100644
--- a/home/webext/_locales/pt_BR/messages.json
+++ b/home/webext/_locales/pt_BR/messages.json
@@ -199,7 +199,7 @@
"message": "Escolha a pasta onde seus documentos ficam"
},
"setupStep1Note": {
- "message": "Uma pasta ampla costuma bastar — cobre tudo que está dentro."
+ "message": "Uma pasta ampla costuma bastar — ela cobre tudo dentro dela. O Chrome não entrega a pasta pessoal em si nem a Library: escolha Documentos, Mesa ou a pasta onde seus documentos estão."
},
"setupStep2": {
"message": "Ligue o acesso a arquivos locais",
@@ -517,5 +517,149 @@
},
"surveyOnlySeen": {
"message": "Só é possível encontrar assim os documentos abertos neste navegador."
+ },
+ "placingFolder": {
+ "message": "Procurando “$1” no disco…"
+ },
+ "placeNoDisk": {
+ "message": "O Chrome não deixou a extensão ler “$1” do disco para encontrá-la (listagens file:// recusadas)."
+ },
+ "placeTried": {
+ "message": "Procurou “$1” em $2 lugares do disco — não está lá."
+ },
+ "badgeNotAdded": {
+ "message": "não adicionada"
+ },
+ "badgeNotAddedTip": {
+ "message": "Encontrado no disco. Abre, mas ao salvar vai perguntar onde — adicione a pasta para salvar no lugar."
+ },
+ "folderFoundTip": {
+ "message": "Encontrada no disco, não adicionada: seus documentos abrem, mas salvar pergunta onde."
+ },
+ "menuAddFolder": {
+ "message": "Adicionar a pasta para salvar no lugar…"
+ },
+ "pickThisFolder": {
+ "message": "No seletor, escolha a pasta “$1” — o Chrome precisa ver você escolher."
+ },
+ "pickedWrongFolder": {
+ "message": "“$1” não é a pasta deste documento (“$2”). Tente de novo e escolha essa."
+ },
+ "folderAlreadyAdded": {
+ "message": "“$1” já foi adicionada."
+ },
+ "bentoFolderBtn": {
+ "message": "Criar uma pasta Bento…"
+ },
+ "bentoFolderHow": {
+ "message": "Na janela, crie uma nova pasta chamada “Bento” dentro de Documentos e escolha-a."
+ },
+ "bentoFolderMade": {
+ "message": "“$1” é sua pasta Bento — novos documentos vão para lá e salvam no lugar."
+ },
+ "bentoFolderTip": {
+ "message": "Uma pasta dentro de Documentos que salva no lugar e recebe os novos documentos. O Chrome não concede a própria Documentos."
+ },
+ "defaultFolder": {
+ "message": "novos documentos vão aqui"
+ },
+ "fgTitle": {
+ "message": "Salvar “$1” no lugar de agora em diante?"
+ },
+ "fgTitleLapsed": {
+ "message": "Reconectar “$1”?"
+ },
+ "fgLead": {
+ "message": "O bento/home guarda a permissão só para este arquivo, então cada salvamento escreve direto nele. Escolha o mesmo arquivo na próxima janela."
+ },
+ "fgLeadLapsed": {
+ "message": "O bento/home já tem este arquivo; o navegador quer que você o confirme de novo."
+ },
+ "fgChoose": {
+ "message": "Escolher o arquivo…"
+ },
+ "fgReconnect": {
+ "message": "Reconectar"
+ },
+ "fgOnce": {
+ "message": "Só desta vez"
+ },
+ "fgNotSame": {
+ "message": "Esse não é o arquivo que pediu (“$1”). Escolha esse, ou feche esta janela."
+ },
+ "fgDenied": {
+ "message": "A permissão não foi concedida."
+ },
+ "droppedGranted": {
+ "message": "Adicionados: $1 pastas, $2 arquivos."
+ },
+ "setFilesTitle": {
+ "message": "Arquivos"
+ },
+ "setFilesSub": {
+ "message": "Documentos fora de qualquer pasta adicionada que salvam no lugar por conta própria — escolhidos uma vez, ou arrastados para a biblioteca."
+ },
+ "dropNoHandle": {
+ "message": "“$1”: o navegador não entregou nenhum handle de arquivo para este arraste."
+ },
+ "dropNotBento": {
+ "message": "“$1” não é um documento Bento (.bento.html) — não adicionado."
+ },
+ "setDownloadsTitle": {
+ "message": "Downloads"
+ },
+ "setDownloadsSub": {
+ "message": "Documentos na pasta Downloads podem salvar no lugar pelos downloads do Chrome — a menos que o Chrome esteja configurado para perguntar onde salvar cada arquivo, o que transforma cada salvamento em uma janela."
+ },
+ "setDownloadsOff": {
+ "message": "O Chrome perguntou onde salvar — salvar em Downloads está desligado até essa configuração mudar"
+ },
+ "setDownloadsRetry": {
+ "message": "Tentar de novo"
+ },
+ "dropTwins": {
+ "message": "“$1”: $2 arquivos no disco têm exatamente estes bytes — adicionado, mas não pode salvar no lugar até que difiram."
+ },
+ "addFiles": {
+ "message": "Adicionar arquivos…"
+ },
+ "tdGrant": {
+ "message": "Salvar aqui sem perguntar…"
+ },
+ "tdViaFolder": {
+ "message": "salva no lugar — a pasta está adicionada"
+ },
+ "tdViaFile": {
+ "message": "salva no lugar — este arquivo está adicionado"
+ },
+ "tdViaDownloads": {
+ "message": "salva no lugar — está em Downloads"
+ },
+ "tdNotYet": {
+ "message": "pergunta onde salvar, toda vez"
+ },
+ "badgeNotSavingTip": {
+ "message": "Este documento ainda não pode salvar no lugar — abra o painel do bento/home para resolver."
+ },
+ "noticeOsBlocked": {
+ "message": "O macOS está impedindo o navegador de acessar $1, então os documentos de lá não aparecem até você permitir: Ajustes do Sistema → Privacidade e Segurança → Arquivos e Pastas → Google Chrome."
+ },
+ "noticeOsBlockedPath": {
+ "message": "Ajustes do Sistema → Privacidade e Segurança → Arquivos e Pastas"
+ },
+ "fgLeadFolder": {
+ "message": "Escolha a pasta “$1” na próxima janela e todos os documentos nela passam a salvar no lugar — este e os vizinhos."
+ },
+ "fgChooseFolder": {
+ "message": "Escolher a pasta “$1”…"
+ },
+ "fgOnlyFile": {
+ "message": "Só este arquivo…"
+ },
+ "fgNotContaining": {
+ "message": "“$1” não contém este documento — escolha “$2” ou uma pasta acima dela."
+ },
+ "tdGrantFolder": {
+ "message": "Salvar tudo em “$1” sem perguntar…"
}
}
diff --git a/home/webext/_locales/ru/messages.json b/home/webext/_locales/ru/messages.json
index c5298576..882fee3c 100644
--- a/home/webext/_locales/ru/messages.json
+++ b/home/webext/_locales/ru/messages.json
@@ -189,7 +189,7 @@
"message": "Выберите папку, где лежат ваши документы"
},
"setupStep1Note": {
- "message": "Обычно достаточно одной широкой папки — она охватывает всё внутри."
+ "message": "Обычно достаточно одной широкой папки — она охватывает всё внутри. Саму домашнюю папку или Library Chrome не отдаст: выберите «Документы», «Рабочий стол» или папку, где лежат ваши документы."
},
"setupStep2": {
"message": "Включите доступ к локальным файлам"
@@ -484,5 +484,149 @@
},
"surveyOnlySeen": {
"message": "Так находятся только документы, открытые в этом браузере."
+ },
+ "placingFolder": {
+ "message": "Ищем «$1» на диске…"
+ },
+ "placeNoDisk": {
+ "message": "Chrome не дал расширению прочитать «$1» с диска, чтобы найти её (листинги file:// отклонены)."
+ },
+ "placeTried": {
+ "message": "Искали «$1» в $2 местах на диске — там её нет."
+ },
+ "badgeNotAdded": {
+ "message": "не добавлена"
+ },
+ "badgeNotAddedTip": {
+ "message": "Найден на диске. Открывается, но при сохранении спросит куда — добавьте его папку, чтобы сохранять на месте."
+ },
+ "folderFoundTip": {
+ "message": "Найдена на диске, не добавлена: документы открываются, но сохранение спрашивает куда."
+ },
+ "menuAddFolder": {
+ "message": "Добавить его папку, чтобы сохранять на месте…"
+ },
+ "pickThisFolder": {
+ "message": "В диалоге выберите папку «$1» — Chrome должен видеть, что вы её выбираете."
+ },
+ "pickedWrongFolder": {
+ "message": "«$1» — не папка этого документа («$2»). Попробуйте снова и выберите её."
+ },
+ "folderAlreadyAdded": {
+ "message": "«$1» уже добавлена."
+ },
+ "bentoFolderBtn": {
+ "message": "Создать папку Bento…"
+ },
+ "bentoFolderHow": {
+ "message": "В диалоге создайте в «Документах» новую папку с именем «Bento» и выберите её."
+ },
+ "bentoFolderMade": {
+ "message": "«$1» — ваша папка Bento: новые документы попадают туда и сохраняются на месте."
+ },
+ "bentoFolderTip": {
+ "message": "Папка внутри «Документов», которая сохраняет на месте и принимает новые документы. Сами «Документы» Chrome не отдаст."
+ },
+ "defaultFolder": {
+ "message": "новые документы попадают сюда"
+ },
+ "fgTitle": {
+ "message": "Сохранять «$1» на месте с этого момента?"
+ },
+ "fgTitleLapsed": {
+ "message": "Переподключить «$1»?"
+ },
+ "fgLead": {
+ "message": "bento/home сохраняет разрешение только для этого файла, поэтому каждое сохранение пишет прямо в него. В следующем диалоге выберите тот же файл."
+ },
+ "fgLeadLapsed": {
+ "message": "У bento/home уже есть этот файл; браузер просит подтвердить его снова."
+ },
+ "fgChoose": {
+ "message": "Выбрать файл…"
+ },
+ "fgReconnect": {
+ "message": "Переподключить"
+ },
+ "fgOnce": {
+ "message": "Только в этот раз"
+ },
+ "fgNotSame": {
+ "message": "Это не тот файл, который спрашивал («$1»). Выберите его или закройте окно."
+ },
+ "fgDenied": {
+ "message": "Разрешение не было дано."
+ },
+ "droppedGranted": {
+ "message": "Добавлено: папок — $1, файлов — $2."
+ },
+ "setFilesTitle": {
+ "message": "Файлы"
+ },
+ "setFilesSub": {
+ "message": "Документы вне добавленных папок, которые сами сохраняются на месте — выбранные один раз или перетащенные в библиотеку."
+ },
+ "dropNoHandle": {
+ "message": "«$1»: браузер не передал дескриптор файла для этого перетаскивания."
+ },
+ "dropNotBento": {
+ "message": "«$1» — не документ Bento (.bento.html), не добавлен."
+ },
+ "setDownloadsTitle": {
+ "message": "Загрузки"
+ },
+ "setDownloadsSub": {
+ "message": "Документы в папке «Загрузки» могут сохраняться на месте через загрузки Chrome — если только Chrome не настроен спрашивать, куда сохранять каждый файл: тогда каждое сохранение становится диалогом."
+ },
+ "setDownloadsOff": {
+ "message": "Chrome спросил, куда сохранять — сохранение в «Загрузки» отключено, пока эта настройка не изменится"
+ },
+ "setDownloadsRetry": {
+ "message": "Попробовать снова"
+ },
+ "dropTwins": {
+ "message": "«$1»: $2 файла на диске имеют ровно эти байты — добавлен, но сохранять на месте сможет, только когда они разойдутся."
+ },
+ "addFiles": {
+ "message": "Добавить файлы…"
+ },
+ "tdGrant": {
+ "message": "Сохранять здесь без вопросов…"
+ },
+ "tdViaFolder": {
+ "message": "сохраняется на месте — папка добавлена"
+ },
+ "tdViaFile": {
+ "message": "сохраняется на месте — этот файл добавлен"
+ },
+ "tdViaDownloads": {
+ "message": "сохраняется на месте — он в «Загрузках»"
+ },
+ "tdNotYet": {
+ "message": "каждый раз спрашивает, куда сохранять"
+ },
+ "badgeNotSavingTip": {
+ "message": "Этот документ пока не может сохраняться на месте — откройте панель bento/home, чтобы это исправить."
+ },
+ "noticeOsBlocked": {
+ "message": "macOS не пускает браузер в $1, поэтому документы оттуда не показываются, пока вы не разрешите: Системные настройки → Конфиденциальность и безопасность → Файлы и папки → Google Chrome."
+ },
+ "noticeOsBlockedPath": {
+ "message": "Системные настройки → Конфиденциальность и безопасность → Файлы и папки"
+ },
+ "fgLeadFolder": {
+ "message": "Выберите в следующем окне папку «$1» — и с этого момента каждый документ в ней будет сохраняться на месте: этот и соседние."
+ },
+ "fgChooseFolder": {
+ "message": "Выбрать папку «$1»…"
+ },
+ "fgOnlyFile": {
+ "message": "Только этот файл…"
+ },
+ "fgNotContaining": {
+ "message": "«$1» не содержит этот документ — выберите «$2» или папку выше."
+ },
+ "tdGrantFolder": {
+ "message": "Сохранять всё в «$1» без вопросов…"
}
}
diff --git a/home/webext/_locales/sv/messages.json b/home/webext/_locales/sv/messages.json
index 2b7c70b9..87989c11 100644
--- a/home/webext/_locales/sv/messages.json
+++ b/home/webext/_locales/sv/messages.json
@@ -189,7 +189,7 @@
"message": "Välj mappen där dina dokument ligger"
},
"setupStep1Note": {
- "message": "En bred mapp räcker oftast — den täcker allt som finns i den."
+ "message": "En bred mapp räcker oftast — den täcker allt i den. Chrome lämnar inte ut själva hemmappen eller Library: välj Dokument, Skrivbord eller mappen där dina dokument ligger."
},
"setupStep2": {
"message": "Slå på åtkomst till lokala filer"
@@ -484,5 +484,149 @@
},
"surveyOnlySeen": {
"message": "Bara dokument som öppnats i den här webbläsaren kan hittas så här."
+ },
+ "placingFolder": {
+ "message": "Letar efter ”$1” på disken…"
+ },
+ "placeNoDisk": {
+ "message": "Chrome lät inte tillägget läsa ”$1” från disken för att hitta den (file://-listor nekades)."
+ },
+ "placeTried": {
+ "message": "Letade efter ”$1” på $2 platser på disken — inte där."
+ },
+ "badgeNotAdded": {
+ "message": "inte tillagd"
+ },
+ "badgeNotAddedTip": {
+ "message": "Hittad på disken. Den öppnas, men sparning frågar var — lägg till mappen för att spara på plats."
+ },
+ "folderFoundTip": {
+ "message": "Hittad på disken, inte tillagd: dokumenten öppnas, men sparning frågar var."
+ },
+ "menuAddFolder": {
+ "message": "Lägg till dess mapp för att spara på plats…"
+ },
+ "pickThisFolder": {
+ "message": "Välj mappen ”$1” i väljaren — Chrome måste se dig välja den."
+ },
+ "pickedWrongFolder": {
+ "message": "”$1” är inte mappen det här dokumentet ligger i (”$2”). Försök igen och välj den."
+ },
+ "folderAlreadyAdded": {
+ "message": "”$1” är redan tillagd."
+ },
+ "bentoFolderBtn": {
+ "message": "Skapa en Bento-mapp…"
+ },
+ "bentoFolderHow": {
+ "message": "Skapa i dialogen en ny mapp med namnet ”Bento” i Dokument och välj den."
+ },
+ "bentoFolderMade": {
+ "message": "”$1” är din Bento-mapp — nya dokument hamnar där och sparas på plats."
+ },
+ "bentoFolderTip": {
+ "message": "En mapp i Dokument som sparar på plats och tar emot nya dokument. Chrome lämnar inte ut själva Dokument."
+ },
+ "defaultFolder": {
+ "message": "nya dokument hamnar här"
+ },
+ "fgTitle": {
+ "message": "Spara ”$1” på plats från och med nu?"
+ },
+ "fgTitleLapsed": {
+ "message": "Återanslut ”$1”?"
+ },
+ "fgLead": {
+ "message": "bento/home behåller tillståndet för just den här filen, så varje sparning skriver direkt till den. Välj samma fil i nästa dialog."
+ },
+ "fgLeadLapsed": {
+ "message": "bento/home har redan den här filen; webbläsaren vill att du bekräftar den igen."
+ },
+ "fgChoose": {
+ "message": "Välj filen…"
+ },
+ "fgReconnect": {
+ "message": "Återanslut"
+ },
+ "fgOnce": {
+ "message": "Bara den här gången"
+ },
+ "fgNotSame": {
+ "message": "Det är inte filen som frågade (”$1”). Välj den, eller stäng det här fönstret."
+ },
+ "fgDenied": {
+ "message": "Tillståndet gavs inte."
+ },
+ "droppedGranted": {
+ "message": "Tillagt: $1 mappar, $2 filer."
+ },
+ "setFilesTitle": {
+ "message": "Filer"
+ },
+ "setFilesSub": {
+ "message": "Dokument utanför varje tillagd mapp som sparar på plats på egen hand — valda en gång, eller släppta i biblioteket."
+ },
+ "dropNoHandle": {
+ "message": "”$1”: webbläsaren lämnade inget fil-handle för den här släppningen."
+ },
+ "dropNotBento": {
+ "message": "”$1” är inte ett Bento-dokument (.bento.html) — inte tillagt."
+ },
+ "setDownloadsTitle": {
+ "message": "Hämtningar"
+ },
+ "setDownloadsSub": {
+ "message": "Dokument i mappen Hämtningar kan sparas på plats via Chromes hämtningar — om inte Chrome är inställt på att fråga var varje fil ska sparas, vilket gör varje sparning till en dialog."
+ },
+ "setDownloadsOff": {
+ "message": "Chrome frågade var det skulle sparas — sparning i Hämtningar är av tills den inställningen ändras"
+ },
+ "setDownloadsRetry": {
+ "message": "Försök igen"
+ },
+ "dropTwins": {
+ "message": "”$1”: $2 filer på disken har exakt dessa bytes — tillagd, men kan inte spara på plats förrän de skiljer sig."
+ },
+ "addFiles": {
+ "message": "Lägg till filer…"
+ },
+ "tdGrant": {
+ "message": "Spara här utan att fråga…"
+ },
+ "tdViaFolder": {
+ "message": "sparar på plats — mappen är tillagd"
+ },
+ "tdViaFile": {
+ "message": "sparar på plats — den här filen är tillagd"
+ },
+ "tdViaDownloads": {
+ "message": "sparar på plats — ligger i Hämtningar"
+ },
+ "tdNotYet": {
+ "message": "frågar var det ska sparas, varje gång"
+ },
+ "badgeNotSavingTip": {
+ "message": "Det här dokumentet kan inte spara på plats ännu — öppna bento/home-panelen för att ordna det."
+ },
+ "noticeOsBlocked": {
+ "message": "macOS håller webbläsaren borta från $1, så dokument där listas inte förrän du tillåter det: Systeminställningar → Integritet och säkerhet → Filer och mappar → Google Chrome."
+ },
+ "noticeOsBlockedPath": {
+ "message": "Systeminställningar → Integritet och säkerhet → Filer och mappar"
+ },
+ "fgLeadFolder": {
+ "message": "Välj mappen ”$1” i nästa dialog så sparas varje dokument i den på plats från och med nu — det här och grannarna."
+ },
+ "fgChooseFolder": {
+ "message": "Välj mappen ”$1”…"
+ },
+ "fgOnlyFile": {
+ "message": "Bara den här filen…"
+ },
+ "fgNotContaining": {
+ "message": "”$1” innehåller inte det här dokumentet — välj ”$2” eller en mapp ovanför."
+ },
+ "tdGrantFolder": {
+ "message": "Spara allt i ”$1” utan att fråga…"
}
}
diff --git a/home/webext/_locales/th/messages.json b/home/webext/_locales/th/messages.json
index 9e30cc1c..9260f696 100644
--- a/home/webext/_locales/th/messages.json
+++ b/home/webext/_locales/th/messages.json
@@ -189,7 +189,7 @@
"message": "เลือกโฟลเดอร์ที่เก็บเอกสารของคุณ"
},
"setupStep1Note": {
- "message": "โฟลเดอร์กว้าง ๆ เพียงโฟลเดอร์เดียวมักพอ — ครอบคลุมทุกอย่างที่อยู่ข้างใน"
+ "message": "โฟลเดอร์กว้าง ๆ หนึ่งโฟลเดอร์มักเพียงพอ — ครอบคลุมทุกอย่างข้างใน Chrome จะไม่มอบโฟลเดอร์โฮมเองหรือ Library ให้ โปรดเลือก Documents, Desktop หรือโฟลเดอร์ที่เก็บเอกสารของคุณ"
},
"setupStep2": {
"message": "เปิดการเข้าถึงไฟล์ในเครื่อง"
@@ -484,5 +484,149 @@
},
"surveyOnlySeen": {
"message": "วิธีนี้พบเฉพาะเอกสารที่เคยเปิดในเบราว์เซอร์นี้เท่านั้น"
+ },
+ "placingFolder": {
+ "message": "กำลังค้นหา “$1” ในดิสก์…"
+ },
+ "placeNoDisk": {
+ "message": "Chrome ไม่อนุญาตให้ส่วนขยายอ่าน “$1” จากดิสก์เพื่อค้นหา (รายการ file:// ถูกปฏิเสธ)"
+ },
+ "placeTried": {
+ "message": "ค้นหา “$1” ใน $2 ตำแหน่งบนดิสก์แล้ว — ไม่พบ"
+ },
+ "badgeNotAdded": {
+ "message": "ยังไม่ได้เพิ่ม"
+ },
+ "badgeNotAddedTip": {
+ "message": "พบในดิสก์ เปิดได้ แต่เมื่อบันทึกจะถามตำแหน่ง — เพิ่มโฟลเดอร์ของมันเพื่อบันทึกทับที่เดิม"
+ },
+ "folderFoundTip": {
+ "message": "พบในดิสก์ ยังไม่ได้เพิ่ม: เอกสารเปิดได้ แต่การบันทึกจะถามตำแหน่ง"
+ },
+ "menuAddFolder": {
+ "message": "เพิ่มโฟลเดอร์ของมันเพื่อบันทึกทับที่เดิม…"
+ },
+ "pickThisFolder": {
+ "message": "ในตัวเลือก โปรดเลือกโฟลเดอร์ “$1” — Chrome ต้องเห็นคุณเลือกเอง"
+ },
+ "pickedWrongFolder": {
+ "message": "“$1” ไม่ใช่โฟลเดอร์ของเอกสารนี้ (“$2”) ลองอีกครั้งและเลือกโฟลเดอร์นั้น"
+ },
+ "folderAlreadyAdded": {
+ "message": "“$1” ถูกเพิ่มไว้แล้ว"
+ },
+ "bentoFolderBtn": {
+ "message": "สร้างโฟลเดอร์ Bento…"
+ },
+ "bentoFolderHow": {
+ "message": "ในหน้าต่างเลือก ให้สร้างโฟลเดอร์ใหม่ชื่อ “Bento” ใน Documents แล้วเลือกโฟลเดอร์นั้น"
+ },
+ "bentoFolderMade": {
+ "message": "“$1” คือโฟลเดอร์ Bento ของคุณ — เอกสารใหม่จะไปอยู่ที่นั่นและบันทึกทับที่เดิม"
+ },
+ "bentoFolderTip": {
+ "message": "โฟลเดอร์ใน Documents ที่บันทึกทับที่เดิมและรับเอกสารใหม่ Chrome จะไม่มอบ Documents เอง"
+ },
+ "defaultFolder": {
+ "message": "เอกสารใหม่มาที่นี่"
+ },
+ "fgTitle": {
+ "message": "บันทึก “$1” ทับที่เดิมนับจากนี้ไหม"
+ },
+ "fgTitleLapsed": {
+ "message": "เชื่อมต่อ “$1” อีกครั้งไหม"
+ },
+ "fgLead": {
+ "message": "bento/home จะเก็บสิทธิ์สำหรับไฟล์นี้เพียงไฟล์เดียว ทำให้ทุกการบันทึกเขียนกลับไปที่ไฟล์โดยตรง โปรดเลือกไฟล์เดิมในหน้าต่างถัดไป"
+ },
+ "fgLeadLapsed": {
+ "message": "bento/home มีไฟล์นี้อยู่แล้ว เบราว์เซอร์ต้องการให้คุณยืนยันอีกครั้ง"
+ },
+ "fgChoose": {
+ "message": "เลือกไฟล์…"
+ },
+ "fgReconnect": {
+ "message": "เชื่อมต่ออีกครั้ง"
+ },
+ "fgOnce": {
+ "message": "เฉพาะครั้งนี้"
+ },
+ "fgNotSame": {
+ "message": "นั่นไม่ใช่ไฟล์ที่ขอ (“$1”) โปรดเลือกไฟล์นั้น หรือปิดหน้าต่างนี้"
+ },
+ "fgDenied": {
+ "message": "ไม่ได้รับสิทธิ์"
+ },
+ "droppedGranted": {
+ "message": "เพิ่มแล้ว: $1 โฟลเดอร์, $2 ไฟล์"
+ },
+ "setFilesTitle": {
+ "message": "ไฟล์"
+ },
+ "setFilesSub": {
+ "message": "เอกสารนอกโฟลเดอร์ที่เพิ่มไว้ซึ่งบันทึกทับที่เดิมได้เอง — เลือกครั้งเดียว หรือลากมาวางในคลัง"
+ },
+ "dropNoHandle": {
+ "message": "“$1”: เบราว์เซอร์ไม่ได้ส่งมอบ file handle สำหรับการวางนี้"
+ },
+ "dropNotBento": {
+ "message": "“$1” ไม่ใช่เอกสาร Bento (.bento.html) — ไม่ได้เพิ่ม"
+ },
+ "setDownloadsTitle": {
+ "message": "ดาวน์โหลด"
+ },
+ "setDownloadsSub": {
+ "message": "เอกสารในโฟลเดอร์ดาวน์โหลดสามารถบันทึกทับที่เดิมผ่านการดาวน์โหลดของ Chrome — เว้นแต่ Chrome ถูกตั้งค่าให้ถามตำแหน่งบันทึกทุกไฟล์ ซึ่งทำให้ทุกการบันทึกกลายเป็นหน้าต่างถาม"
+ },
+ "setDownloadsOff": {
+ "message": "Chrome ถามตำแหน่งบันทึก — การบันทึกลงดาวน์โหลดถูกปิดจนกว่าการตั้งค่านั้นจะเปลี่ยน"
+ },
+ "setDownloadsRetry": {
+ "message": "ลองอีกครั้ง"
+ },
+ "dropTwins": {
+ "message": "“$1”: มี $2 ไฟล์ในดิสก์ที่มีไบต์ตรงกันทุกประการ — เพิ่มแล้ว แต่จะบันทึกทับที่เดิมไม่ได้จนกว่าจะต่างกัน"
+ },
+ "addFiles": {
+ "message": "เพิ่มไฟล์…"
+ },
+ "tdGrant": {
+ "message": "บันทึกที่นี่โดยไม่ต้องถาม…"
+ },
+ "tdViaFolder": {
+ "message": "บันทึกทับที่เดิม — โฟลเดอร์ถูกเพิ่มแล้ว"
+ },
+ "tdViaFile": {
+ "message": "บันทึกทับที่เดิม — ไฟล์นี้ถูกเพิ่มแล้ว"
+ },
+ "tdViaDownloads": {
+ "message": "บันทึกทับที่เดิม — อยู่ในดาวน์โหลด"
+ },
+ "tdNotYet": {
+ "message": "ถามตำแหน่งบันทึกทุกครั้ง"
+ },
+ "badgeNotSavingTip": {
+ "message": "เอกสารนี้ยังบันทึกทับที่เดิมไม่ได้ — เปิดแผง bento/home เพื่อแก้ไข"
+ },
+ "noticeOsBlocked": {
+ "message": "macOS กำลังกันเบราว์เซอร์ออกจาก $1 เอกสารในนั้นจึงไม่แสดงจนกว่าคุณจะอนุญาต: การตั้งค่าระบบ → ความเป็นส่วนตัวและความปลอดภัย → ไฟล์และโฟลเดอร์ → Google Chrome"
+ },
+ "noticeOsBlockedPath": {
+ "message": "การตั้งค่าระบบ → ความเป็นส่วนตัวและความปลอดภัย → ไฟล์และโฟลเดอร์"
+ },
+ "fgLeadFolder": {
+ "message": "เลือกโฟลเดอร์ “$1” ในหน้าต่างถัดไป แล้วทุกเอกสารในนั้นจะบันทึกทับที่เดิมนับจากนี้ — ทั้งไฟล์นี้และไฟล์ข้างเคียง"
+ },
+ "fgChooseFolder": {
+ "message": "เลือกโฟลเดอร์ “$1”…"
+ },
+ "fgOnlyFile": {
+ "message": "เฉพาะไฟล์นี้…"
+ },
+ "fgNotContaining": {
+ "message": "“$1” ไม่มีเอกสารนี้ — เลือก “$2” หรือโฟลเดอร์ที่อยู่เหนือขึ้นไป"
+ },
+ "tdGrantFolder": {
+ "message": "บันทึกทุกอย่างใน “$1” โดยไม่ต้องถาม…"
}
}
diff --git a/home/webext/_locales/tr/messages.json b/home/webext/_locales/tr/messages.json
index 8691f9f8..efa634b8 100644
--- a/home/webext/_locales/tr/messages.json
+++ b/home/webext/_locales/tr/messages.json
@@ -189,7 +189,7 @@
"message": "Belgelerinizin bulunduğu klasörü seçin"
},
"setupStep1Note": {
- "message": "Genelde geniş tek bir klasör yeter — içindeki her şeyi kapsar."
+ "message": "Genellikle geniş bir klasör yeter — içindeki her şeyi kapsar. Chrome ana klasörünüzün kendisini veya Library’yi vermez: Belgeler’i, Masaüstü’nü ya da belgelerinizin bulunduğu klasörü seçin."
},
"setupStep2": {
"message": "Yerel dosya erişimini açın"
@@ -484,5 +484,149 @@
},
"surveyOnlySeen": {
"message": "Bu yolla yalnızca bu tarayıcıda açılmış belgeler bulunabilir."
+ },
+ "placingFolder": {
+ "message": "“$1” diskte aranıyor…"
+ },
+ "placeNoDisk": {
+ "message": "Chrome, uzantının “$1” klasörünü bulmak için diskten okumasına izin vermedi (file:// listeleri reddedildi)."
+ },
+ "placeTried": {
+ "message": "“$1” diskte $2 yerde arandı — orada değil."
+ },
+ "badgeNotAdded": {
+ "message": "eklenmedi"
+ },
+ "badgeNotAddedTip": {
+ "message": "Diskte bulundu. Açılır, ancak kaydederken yer sorulur — yerinde kaydetmek için klasörünü ekleyin."
+ },
+ "folderFoundTip": {
+ "message": "Diskte bulundu, eklenmedi: belgeleri açılır, ancak kaydetme yer sorar."
+ },
+ "menuAddFolder": {
+ "message": "Yerinde kaydetmek için klasörünü ekle…"
+ },
+ "pickThisFolder": {
+ "message": "Seçicide “$1” klasörünü seçin — Chrome sizin seçtiğinizi görmeli."
+ },
+ "pickedWrongFolder": {
+ "message": "“$1”, bu belgenin klasörü değil (“$2”). Yeniden deneyip onu seçin."
+ },
+ "folderAlreadyAdded": {
+ "message": "“$1” zaten eklendi."
+ },
+ "bentoFolderBtn": {
+ "message": "Bir Bento klasörü oluştur…"
+ },
+ "bentoFolderHow": {
+ "message": "İletişim kutusunda Belgeler içinde “Bento” adlı yeni bir klasör oluşturun ve onu seçin."
+ },
+ "bentoFolderMade": {
+ "message": "“$1” Bento klasörünüz — yeni belgeler oraya gider ve yerinde kaydedilir."
+ },
+ "bentoFolderTip": {
+ "message": "Belgeler içinde yerinde kaydeden ve yeni belgeleri alan bir klasör. Chrome Belgeler’in kendisini vermez."
+ },
+ "defaultFolder": {
+ "message": "yeni belgeler buraya gelir"
+ },
+ "fgTitle": {
+ "message": "“$1” bundan sonra yerinde kaydedilsin mi?"
+ },
+ "fgTitleLapsed": {
+ "message": "“$1” yeniden bağlansın mı?"
+ },
+ "fgLead": {
+ "message": "bento/home yalnızca bu dosya için izni saklar; böylece her kayıt doğrudan ona yazılır. Sonraki iletişim kutusunda aynı dosyayı seçin."
+ },
+ "fgLeadLapsed": {
+ "message": "bento/home bu dosyaya zaten sahip; tarayıcı yeniden onaylamanızı istiyor."
+ },
+ "fgChoose": {
+ "message": "Dosyayı seç…"
+ },
+ "fgReconnect": {
+ "message": "Yeniden bağla"
+ },
+ "fgOnce": {
+ "message": "Yalnızca bu seferlik"
+ },
+ "fgNotSame": {
+ "message": "Bu, soran dosya değil (“$1”). Onu seçin ya da bu pencereyi kapatın."
+ },
+ "fgDenied": {
+ "message": "İzin verilmedi."
+ },
+ "droppedGranted": {
+ "message": "Eklendi: $1 klasör, $2 dosya."
+ },
+ "setFilesTitle": {
+ "message": "Dosyalar"
+ },
+ "setFilesSub": {
+ "message": "Eklenen klasörlerin dışındaki, kendi başına yerinde kaydedilen belgeler — bir kez seçilmiş ya da kitaplığa bırakılmış."
+ },
+ "dropNoHandle": {
+ "message": "“$1”: tarayıcı bu bırakma için dosya tutamacı vermedi."
+ },
+ "dropNotBento": {
+ "message": "“$1” bir Bento belgesi değil (.bento.html) — eklenmedi."
+ },
+ "setDownloadsTitle": {
+ "message": "İndirilenler"
+ },
+ "setDownloadsSub": {
+ "message": "İndirilenler klasöründeki belgeler Chrome’un indirmeleri üzerinden yerinde kaydedilebilir — Chrome her dosya için nereye kaydedileceğini soracak şekilde ayarlanmadıysa; o zaman her kayıt bir iletişim kutusuna dönüşür."
+ },
+ "setDownloadsOff": {
+ "message": "Chrome nereye kaydedileceğini sordu — bu ayar değişene kadar İndirilenler’e kaydetme kapalı"
+ },
+ "setDownloadsRetry": {
+ "message": "Yeniden dene"
+ },
+ "dropTwins": {
+ "message": "“$1”: diskte $2 dosya tam olarak bu baytlara sahip — eklendi, ancak birbirinden ayrılana kadar yerinde kaydedemez."
+ },
+ "addFiles": {
+ "message": "Dosya ekle…"
+ },
+ "tdGrant": {
+ "message": "Buraya sormadan kaydet…"
+ },
+ "tdViaFolder": {
+ "message": "yerinde kaydeder — klasörü eklendi"
+ },
+ "tdViaFile": {
+ "message": "yerinde kaydeder — bu dosya eklendi"
+ },
+ "tdViaDownloads": {
+ "message": "yerinde kaydeder — İndirilenler’de"
+ },
+ "tdNotYet": {
+ "message": "her seferinde nereye kaydedileceğini sorar"
+ },
+ "badgeNotSavingTip": {
+ "message": "Bu belge henüz yerinde kaydedemiyor — düzeltmek için bento/home panelini açın."
+ },
+ "noticeOsBlocked": {
+ "message": "macOS tarayıcıyı $1 dışında tutuyor; izin verene kadar oradaki belgeler listelenmez: Sistem Ayarları → Gizlilik ve Güvenlik → Dosyalar ve Klasörler → Google Chrome."
+ },
+ "noticeOsBlockedPath": {
+ "message": "Sistem Ayarları → Gizlilik ve Güvenlik → Dosyalar ve Klasörler"
+ },
+ "fgLeadFolder": {
+ "message": "Sonraki iletişim kutusunda “$1” klasörünü seçin; içindeki her belge bundan sonra yerinde kaydedilir — bu ve komşuları."
+ },
+ "fgChooseFolder": {
+ "message": "“$1” klasörünü seç…"
+ },
+ "fgOnlyFile": {
+ "message": "Yalnızca bu dosya…"
+ },
+ "fgNotContaining": {
+ "message": "“$1” bu belgeyi içermiyor — “$2” klasörünü ya da üstündeki bir klasörü seçin."
+ },
+ "tdGrantFolder": {
+ "message": "“$1” içindeki her şeyi sormadan kaydet…"
}
}
diff --git a/home/webext/_locales/uk/messages.json b/home/webext/_locales/uk/messages.json
index d1073518..e83428fe 100644
--- a/home/webext/_locales/uk/messages.json
+++ b/home/webext/_locales/uk/messages.json
@@ -189,7 +189,7 @@
"message": "Виберіть папку, де лежать ваші документи"
},
"setupStep1Note": {
- "message": "Зазвичай досить однієї широкої папки — вона охоплює все всередині."
+ "message": "Зазвичай досить однієї широкої папки — вона охоплює все всередині. Саму домашню папку чи Library Chrome не віддасть: виберіть «Документи», «Робочий стіл» або папку, де лежать ваші документи."
},
"setupStep2": {
"message": "Увімкніть доступ до локальних файлів"
@@ -484,5 +484,149 @@
},
"surveyOnlySeen": {
"message": "Так знаходяться лише документи, відкриті в цьому браузері."
+ },
+ "placingFolder": {
+ "message": "Шукаємо «$1» на диску…"
+ },
+ "placeNoDisk": {
+ "message": "Chrome не дав розширенню прочитати «$1» з диска, щоб знайти її (переліки file:// відхилено)."
+ },
+ "placeTried": {
+ "message": "Шукали «$1» у $2 місцях на диску — там її немає."
+ },
+ "badgeNotAdded": {
+ "message": "не додана"
+ },
+ "badgeNotAddedTip": {
+ "message": "Знайдено на диску. Відкривається, але під час збереження запитає куди — додайте його папку, щоб зберігати на місці."
+ },
+ "folderFoundTip": {
+ "message": "Знайдена на диску, не додана: документи відкриваються, але збереження запитує куди."
+ },
+ "menuAddFolder": {
+ "message": "Додати його папку, щоб зберігати на місці…"
+ },
+ "pickThisFolder": {
+ "message": "У діалозі виберіть папку «$1» — Chrome має бачити, що ви її вибираєте."
+ },
+ "pickedWrongFolder": {
+ "message": "«$1» — не папка цього документа («$2»). Спробуйте ще раз і виберіть її."
+ },
+ "folderAlreadyAdded": {
+ "message": "«$1» вже додана."
+ },
+ "bentoFolderBtn": {
+ "message": "Створити папку Bento…"
+ },
+ "bentoFolderHow": {
+ "message": "У діалозі створіть у «Документах» нову папку з назвою «Bento» і виберіть її."
+ },
+ "bentoFolderMade": {
+ "message": "«$1» — ваша папка Bento: нові документи потрапляють туди і зберігаються на місці."
+ },
+ "bentoFolderTip": {
+ "message": "Папка всередині «Документів», яка зберігає на місці та приймає нові документи. Самі «Документи» Chrome не віддасть."
+ },
+ "defaultFolder": {
+ "message": "нові документи потрапляють сюди"
+ },
+ "fgTitle": {
+ "message": "Зберігати «$1» на місці відтепер?"
+ },
+ "fgTitleLapsed": {
+ "message": "Перепідключити «$1»?"
+ },
+ "fgLead": {
+ "message": "bento/home зберігає дозвіл лише для цього файлу, тож кожне збереження пише прямо в нього. У наступному діалозі виберіть той самий файл."
+ },
+ "fgLeadLapsed": {
+ "message": "bento/home уже має цей файл; браузер просить підтвердити його ще раз."
+ },
+ "fgChoose": {
+ "message": "Вибрати файл…"
+ },
+ "fgReconnect": {
+ "message": "Перепідключити"
+ },
+ "fgOnce": {
+ "message": "Лише цього разу"
+ },
+ "fgNotSame": {
+ "message": "Це не той файл, який запитував («$1»). Виберіть його або закрийте вікно."
+ },
+ "fgDenied": {
+ "message": "Дозвіл не надано."
+ },
+ "droppedGranted": {
+ "message": "Додано: папок — $1, файлів — $2."
+ },
+ "setFilesTitle": {
+ "message": "Файли"
+ },
+ "setFilesSub": {
+ "message": "Документи поза доданими папками, які самі зберігаються на місці — вибрані один раз або перетягнуті в бібліотеку."
+ },
+ "dropNoHandle": {
+ "message": "«$1»: браузер не передав дескриптор файлу для цього перетягування."
+ },
+ "dropNotBento": {
+ "message": "«$1» — не документ Bento (.bento.html), не додано."
+ },
+ "setDownloadsTitle": {
+ "message": "Завантаження"
+ },
+ "setDownloadsSub": {
+ "message": "Документи в папці «Завантаження» можуть зберігатися на місці через завантаження Chrome — якщо тільки Chrome не налаштовано запитувати, куди зберігати кожен файл: тоді кожне збереження стає діалогом."
+ },
+ "setDownloadsOff": {
+ "message": "Chrome запитав, куди зберігати — збереження в «Завантаження» вимкнено, доки це налаштування не зміниться"
+ },
+ "setDownloadsRetry": {
+ "message": "Спробувати ще раз"
+ },
+ "dropTwins": {
+ "message": "«$1»: $2 файли на диску мають рівно ці байти — додано, але зберігати на місці зможе лише коли вони розійдуться."
+ },
+ "addFiles": {
+ "message": "Додати файли…"
+ },
+ "tdGrant": {
+ "message": "Зберігати тут без запитань…"
+ },
+ "tdViaFolder": {
+ "message": "зберігається на місці — папку додано"
+ },
+ "tdViaFile": {
+ "message": "зберігається на місці — цей файл додано"
+ },
+ "tdViaDownloads": {
+ "message": "зберігається на місці — він у «Завантаженнях»"
+ },
+ "tdNotYet": {
+ "message": "щоразу запитує, куди зберігати"
+ },
+ "badgeNotSavingTip": {
+ "message": "Цей документ поки не може зберігатися на місці — відкрийте панель bento/home, щоб це виправити."
+ },
+ "noticeOsBlocked": {
+ "message": "macOS не пускає браузер до $1, тому документи звідти не показуються, доки ви не дозволите: Системні параметри → Конфіденційність і безпека → Файли та папки → Google Chrome."
+ },
+ "noticeOsBlockedPath": {
+ "message": "Системні параметри → Конфіденційність і безпека → Файли та папки"
+ },
+ "fgLeadFolder": {
+ "message": "Виберіть у наступному вікні папку «$1» — і відтепер кожен документ у ній зберігатиметься на місці: цей і сусідні."
+ },
+ "fgChooseFolder": {
+ "message": "Вибрати папку «$1»…"
+ },
+ "fgOnlyFile": {
+ "message": "Лише цей файл…"
+ },
+ "fgNotContaining": {
+ "message": "«$1» не містить цей документ — виберіть «$2» або папку вище."
+ },
+ "tdGrantFolder": {
+ "message": "Зберігати все в «$1» без запитань…"
}
}
diff --git a/home/webext/_locales/ur/messages.json b/home/webext/_locales/ur/messages.json
index 8b78984d..3f714b95 100644
--- a/home/webext/_locales/ur/messages.json
+++ b/home/webext/_locales/ur/messages.json
@@ -189,7 +189,7 @@
"message": "وہ فولڈر منتخب کریں جس میں آپ کی دستاویزات رہتی ہیں"
},
"setupStep1Note": {
- "message": "عام طور پر ایک بڑا فولڈر کافی ہے — اُس کے اندر کی ہر چیز اِس میں آ جاتی ہے۔"
+ "message": "عموماً ایک وسیع فولڈر کافی ہے — یہ اندر کی ہر چیز کو شامل کرتا ہے۔ Chrome خود ہوم فولڈر یا Library نہیں دے گا: Documents، Desktop یا وہ فولڈر چنیں جہاں آپ کی دستاویزات رکھی ہیں۔"
},
"setupStep2": {
"message": "مقامی فائل رسائی آن کریں"
@@ -484,5 +484,149 @@
},
"surveyOnlySeen": {
"message": "اس طریقے سے صرف وہی دستاویزات ملتی ہیں جو اس براؤزر میں کھولی گئی ہوں۔"
+ },
+ "placingFolder": {
+ "message": "ڈسک پر ”$1“ تلاش کی جا رہی ہے…"
+ },
+ "placeNoDisk": {
+ "message": "Chrome نے ایکسٹینشن کو ”$1“ تلاش کرنے کے لیے ڈسک سے پڑھنے نہیں دیا (file:// فہرستیں مسترد)۔"
+ },
+ "placeTried": {
+ "message": "ڈسک پر $2 جگہوں پر ”$1“ تلاش کیا — وہاں نہیں ہے۔"
+ },
+ "badgeNotAdded": {
+ "message": "شامل نہیں"
+ },
+ "badgeNotAddedTip": {
+ "message": "ڈسک پر ملا۔ کھلتا ہے، مگر محفوظ کرتے وقت پوچھے گا کہاں — اسی جگہ محفوظ کرنے کے لیے اس کا فولڈر شامل کریں۔"
+ },
+ "folderFoundTip": {
+ "message": "ڈسک پر ملا، شامل نہیں: اس کی دستاویزات کھلتی ہیں، مگر محفوظ کرنا پوچھتا ہے کہاں۔"
+ },
+ "menuAddFolder": {
+ "message": "اسی جگہ محفوظ کرنے کے لیے اس کا فولڈر شامل کریں…"
+ },
+ "pickThisFolder": {
+ "message": "منتخب کنندہ میں فولڈر ”$1“ چنیں — Chrome کو آپ کو اسے چنتے دیکھنا ہوگا۔"
+ },
+ "pickedWrongFolder": {
+ "message": "”$1“ اس دستاویز کا فولڈر نہیں ہے (”$2“)۔ دوبارہ کوشش کریں اور وہی چنیں۔"
+ },
+ "folderAlreadyAdded": {
+ "message": "”$1“ پہلے سے شامل ہے۔"
+ },
+ "bentoFolderBtn": {
+ "message": "ایک Bento فولڈر بنائیں…"
+ },
+ "bentoFolderHow": {
+ "message": "ڈائیلاگ میں Documents کے اندر ”Bento“ نام کا نیا فولڈر بنائیں اور اسے چنیں۔"
+ },
+ "bentoFolderMade": {
+ "message": "”$1“ آپ کا Bento فولڈر ہے — نئی دستاویزات وہاں جاتی ہیں اور اسی جگہ محفوظ ہوتی ہیں۔"
+ },
+ "bentoFolderTip": {
+ "message": "Documents کے اندر ایک فولڈر جو اسی جگہ محفوظ کرتا ہے اور نئی دستاویزات لیتا ہے۔ Chrome خود Documents نہیں دے گا۔"
+ },
+ "defaultFolder": {
+ "message": "نئی دستاویزات یہاں آتی ہیں"
+ },
+ "fgTitle": {
+ "message": "اب سے ”$1“ اسی جگہ محفوظ کریں؟"
+ },
+ "fgTitleLapsed": {
+ "message": "”$1“ دوبارہ جوڑیں؟"
+ },
+ "fgLead": {
+ "message": "bento/home صرف اسی ایک فائل کی اجازت رکھتا ہے، اس لیے ہر محفوظ کرنا براہِ راست اسی میں لکھتا ہے۔ اگلے ڈائیلاگ میں وہی فائل چنیں۔"
+ },
+ "fgLeadLapsed": {
+ "message": "bento/home کے پاس یہ فائل پہلے سے ہے؛ براؤزر چاہتا ہے کہ آپ اس کی دوبارہ تصدیق کریں۔"
+ },
+ "fgChoose": {
+ "message": "فائل چنیں…"
+ },
+ "fgReconnect": {
+ "message": "دوبارہ جوڑیں"
+ },
+ "fgOnce": {
+ "message": "صرف اس بار"
+ },
+ "fgNotSame": {
+ "message": "یہ وہ فائل نہیں جس نے پوچھا تھا (”$1“)۔ وہی چنیں، یا یہ ونڈو بند کریں۔"
+ },
+ "fgDenied": {
+ "message": "اجازت نہیں دی گئی۔"
+ },
+ "droppedGranted": {
+ "message": "شامل ہوئے: $1 فولڈر، $2 فائلیں۔"
+ },
+ "setFilesTitle": {
+ "message": "فائلیں"
+ },
+ "setFilesSub": {
+ "message": "کسی بھی شامل کردہ فولڈر سے باہر کی دستاویزات جو خود اسی جگہ محفوظ ہوتی ہیں — ایک بار چنی گئیں، یا لائبریری میں گھسیٹ کر چھوڑی گئیں۔"
+ },
+ "dropNoHandle": {
+ "message": "”$1“: براؤزر نے اس ڈراپ کے لیے کوئی فائل ہینڈل نہیں دیا۔"
+ },
+ "dropNotBento": {
+ "message": "”$1“ Bento دستاویز (.bento.html) نہیں ہے — شامل نہیں ہوا۔"
+ },
+ "setDownloadsTitle": {
+ "message": "ڈاؤن لوڈز"
+ },
+ "setDownloadsSub": {
+ "message": "ڈاؤن لوڈز فولڈر کی دستاویزات Chrome کے ڈاؤن لوڈز کے ذریعے اسی جگہ محفوظ ہو سکتی ہیں — جب تک Chrome ہر فائل کے لیے محفوظ کرنے کی جگہ پوچھنے پر سیٹ نہ ہو، جو ہر محفوظ کرنے کو ایک ڈائیلاگ بنا دیتا ہے۔"
+ },
+ "setDownloadsOff": {
+ "message": "Chrome نے پوچھا کہاں محفوظ کریں — وہ ترتیب بدلنے تک ڈاؤن لوڈز میں محفوظ کرنا بند ہے"
+ },
+ "setDownloadsRetry": {
+ "message": "دوبارہ کوشش کریں"
+ },
+ "dropTwins": {
+ "message": "”$1“: ڈسک پر $2 فائلوں میں بالکل یہی بائٹس ہیں — شامل ہو گیا، مگر جب تک وہ مختلف نہ ہوں اسی جگہ محفوظ نہیں کر سکتا۔"
+ },
+ "addFiles": {
+ "message": "فائلیں شامل کریں…"
+ },
+ "tdGrant": {
+ "message": "بغیر پوچھے یہیں محفوظ کریں…"
+ },
+ "tdViaFolder": {
+ "message": "اسی جگہ محفوظ ہوتا ہے — اس کا فولڈر شامل ہے"
+ },
+ "tdViaFile": {
+ "message": "اسی جگہ محفوظ ہوتا ہے — یہ فائل شامل ہے"
+ },
+ "tdViaDownloads": {
+ "message": "اسی جگہ محفوظ ہوتا ہے — یہ ڈاؤن لوڈز میں ہے"
+ },
+ "tdNotYet": {
+ "message": "ہر بار پوچھتا ہے کہاں محفوظ کریں"
+ },
+ "badgeNotSavingTip": {
+ "message": "یہ دستاویز ابھی اسی جگہ محفوظ نہیں ہو سکتی — اسے ٹھیک کرنے کے لیے bento/home پینل کھولیں۔"
+ },
+ "noticeOsBlocked": {
+ "message": "macOS براؤزر کو $1 سے دور رکھ رہا ہے، اس لیے وہاں کی دستاویزات تب تک درج نہیں ہوتیں جب تک آپ اجازت نہ دیں: System Settings → Privacy & Security → Files and Folders → Google Chrome۔"
+ },
+ "noticeOsBlockedPath": {
+ "message": "System Settings → Privacy & Security → Files and Folders"
+ },
+ "fgLeadFolder": {
+ "message": "اگلے ڈائیلاگ میں ”$1“ فولڈر چنیں — اب سے اس میں ہر دستاویز اسی جگہ محفوظ ہو گی: یہ اور اس کے ساتھ والی۔"
+ },
+ "fgChooseFolder": {
+ "message": "”$1“ فولڈر چنیں…"
+ },
+ "fgOnlyFile": {
+ "message": "صرف یہ فائل…"
+ },
+ "fgNotContaining": {
+ "message": "”$1“ میں یہ دستاویز نہیں — ”$2“ یا اس کے اوپر کا کوئی فولڈر چنیں۔"
+ },
+ "tdGrantFolder": {
+ "message": "”$1“ میں سب کچھ بغیر پوچھے محفوظ کریں…"
}
}
diff --git a/home/webext/_locales/vi/messages.json b/home/webext/_locales/vi/messages.json
index fb5389f0..5f621270 100644
--- a/home/webext/_locales/vi/messages.json
+++ b/home/webext/_locales/vi/messages.json
@@ -189,7 +189,7 @@
"message": "Chọn thư mục chứa tài liệu của bạn"
},
"setupStep1Note": {
- "message": "Một thư mục rộng thường là đủ — nó bao trùm mọi thứ bên trong."
+ "message": "Một thư mục rộng thường là đủ — nó bao trùm mọi thứ bên trong. Chrome sẽ không trao chính thư mục nhà hay Library: hãy chọn Documents, Desktop, hoặc thư mục chứa tài liệu của bạn."
},
"setupStep2": {
"message": "Bật quyền truy cập tệp cục bộ"
@@ -484,5 +484,149 @@
},
"surveyOnlySeen": {
"message": "Cách này chỉ tìm được tài liệu đã mở trong trình duyệt này."
+ },
+ "placingFolder": {
+ "message": "Đang tìm “$1” trên ổ đĩa…"
+ },
+ "placeNoDisk": {
+ "message": "Chrome không cho tiện ích đọc “$1” từ ổ đĩa để tìm nó (danh sách file:// bị từ chối)."
+ },
+ "placeTried": {
+ "message": "Đã tìm “$1” ở $2 nơi trên ổ đĩa — không có."
+ },
+ "badgeNotAdded": {
+ "message": "chưa thêm"
+ },
+ "badgeNotAddedTip": {
+ "message": "Tìm thấy trên ổ đĩa. Mở được, nhưng khi lưu sẽ hỏi lưu ở đâu — thêm thư mục của nó để lưu tại chỗ."
+ },
+ "folderFoundTip": {
+ "message": "Tìm thấy trên ổ đĩa, chưa thêm: tài liệu mở được, nhưng lưu sẽ hỏi ở đâu."
+ },
+ "menuAddFolder": {
+ "message": "Thêm thư mục của nó để lưu tại chỗ…"
+ },
+ "pickThisFolder": {
+ "message": "Trong hộp chọn, hãy chọn thư mục “$1” — Chrome phải thấy bạn chọn nó."
+ },
+ "pickedWrongFolder": {
+ "message": "“$1” không phải thư mục chứa tài liệu này (“$2”). Hãy thử lại và chọn thư mục đó."
+ },
+ "folderAlreadyAdded": {
+ "message": "“$1” đã được thêm."
+ },
+ "bentoFolderBtn": {
+ "message": "Tạo thư mục Bento…"
+ },
+ "bentoFolderHow": {
+ "message": "Trong hộp thoại, tạo thư mục mới tên “Bento” trong Documents rồi chọn nó."
+ },
+ "bentoFolderMade": {
+ "message": "“$1” là thư mục Bento của bạn — tài liệu mới vào đó và lưu tại chỗ."
+ },
+ "bentoFolderTip": {
+ "message": "Một thư mục trong Documents lưu tại chỗ và nhận tài liệu mới. Chrome không cấp chính Documents."
+ },
+ "defaultFolder": {
+ "message": "tài liệu mới vào đây"
+ },
+ "fgTitle": {
+ "message": "Lưu “$1” tại chỗ từ nay về sau?"
+ },
+ "fgTitleLapsed": {
+ "message": "Kết nối lại “$1”?"
+ },
+ "fgLead": {
+ "message": "bento/home giữ quyền cho riêng tệp này, nên mỗi lần lưu sẽ ghi thẳng vào nó. Hãy chọn đúng tệp đó trong hộp thoại tiếp theo."
+ },
+ "fgLeadLapsed": {
+ "message": "bento/home đã có tệp này; trình duyệt muốn bạn xác nhận lại."
+ },
+ "fgChoose": {
+ "message": "Chọn tệp…"
+ },
+ "fgReconnect": {
+ "message": "Kết nối lại"
+ },
+ "fgOnce": {
+ "message": "Chỉ lần này"
+ },
+ "fgNotSame": {
+ "message": "Đó không phải tệp đã yêu cầu (“$1”). Hãy chọn tệp đó, hoặc đóng cửa sổ này."
+ },
+ "fgDenied": {
+ "message": "Quyền không được cấp."
+ },
+ "droppedGranted": {
+ "message": "Đã thêm: $1 thư mục, $2 tệp."
+ },
+ "setFilesTitle": {
+ "message": "Tệp"
+ },
+ "setFilesSub": {
+ "message": "Tài liệu nằm ngoài mọi thư mục đã thêm nhưng tự lưu tại chỗ — được chọn một lần, hoặc kéo thả vào thư viện."
+ },
+ "dropNoHandle": {
+ "message": "“$1”: trình duyệt không cung cấp handle tệp cho thao tác thả này."
+ },
+ "dropNotBento": {
+ "message": "“$1” không phải tài liệu Bento (.bento.html) — không thêm."
+ },
+ "setDownloadsTitle": {
+ "message": "Tải xuống"
+ },
+ "setDownloadsSub": {
+ "message": "Tài liệu trong thư mục Tải xuống có thể lưu tại chỗ qua cơ chế tải xuống của Chrome — trừ khi Chrome được đặt hỏi vị trí lưu từng tệp, khi đó mỗi lần lưu là một hộp thoại."
+ },
+ "setDownloadsOff": {
+ "message": "Chrome đã hỏi vị trí lưu — lưu vào Tải xuống bị tắt cho đến khi cài đặt đó thay đổi"
+ },
+ "setDownloadsRetry": {
+ "message": "Thử lại"
+ },
+ "dropTwins": {
+ "message": "“$1”: $2 tệp trên ổ đĩa có đúng những byte này — đã thêm, nhưng không thể lưu tại chỗ cho đến khi chúng khác nhau."
+ },
+ "addFiles": {
+ "message": "Thêm tệp…"
+ },
+ "tdGrant": {
+ "message": "Lưu ở đây mà không hỏi…"
+ },
+ "tdViaFolder": {
+ "message": "lưu tại chỗ — thư mục đã được thêm"
+ },
+ "tdViaFile": {
+ "message": "lưu tại chỗ — tệp này đã được thêm"
+ },
+ "tdViaDownloads": {
+ "message": "lưu tại chỗ — nó nằm trong Tải xuống"
+ },
+ "tdNotYet": {
+ "message": "hỏi vị trí lưu mỗi lần"
+ },
+ "badgeNotSavingTip": {
+ "message": "Tài liệu này chưa thể lưu tại chỗ — mở bảng bento/home để khắc phục."
+ },
+ "noticeOsBlocked": {
+ "message": "macOS đang chặn trình duyệt truy cập $1, nên tài liệu ở đó không được liệt kê cho đến khi bạn cho phép: System Settings → Privacy & Security → Files and Folders → Google Chrome."
+ },
+ "noticeOsBlockedPath": {
+ "message": "System Settings → Privacy & Security → Files and Folders"
+ },
+ "fgLeadFolder": {
+ "message": "Chọn thư mục “$1” trong hộp thoại tiếp theo và từ nay mọi tài liệu trong đó sẽ lưu tại chỗ — tài liệu này và các tài liệu bên cạnh."
+ },
+ "fgChooseFolder": {
+ "message": "Chọn thư mục “$1”…"
+ },
+ "fgOnlyFile": {
+ "message": "Chỉ tệp này…"
+ },
+ "fgNotContaining": {
+ "message": "“$1” không chứa tài liệu này — hãy chọn “$2”, hoặc một thư mục phía trên."
+ },
+ "tdGrantFolder": {
+ "message": "Lưu mọi thứ trong “$1” mà không hỏi…"
}
}
diff --git a/home/webext/_locales/zh_CN/messages.json b/home/webext/_locales/zh_CN/messages.json
index 8a8e8f45..ab2c2c84 100644
--- a/home/webext/_locales/zh_CN/messages.json
+++ b/home/webext/_locales/zh_CN/messages.json
@@ -199,7 +199,7 @@
"message": "选择存放文档的文件夹"
},
"setupStep1Note": {
- "message": "通常选一个大一些的文件夹就够了 — 它涵盖其中的全部内容。"
+ "message": "通常一个较大的文件夹就够了——它涵盖其中的一切。Chrome 不会交出主文件夹本身或 Library:请选择“文稿”“桌面”或存放文档的文件夹。"
},
"setupStep2": {
"message": "开启本地文件访问",
@@ -517,5 +517,149 @@
},
"surveyOnlySeen": {
"message": "这种方式只能找到在此浏览器中打开过的文档。"
+ },
+ "placingFolder": {
+ "message": "正在磁盘上查找“$1”……"
+ },
+ "placeNoDisk": {
+ "message": "Chrome 不允许扩展程序从磁盘读取以查找“$1”(file:// 目录列表被拒绝)。"
+ },
+ "placeTried": {
+ "message": "已在磁盘上 $2 个位置查找“$1”,未找到。"
+ },
+ "badgeNotAdded": {
+ "message": "未添加"
+ },
+ "badgeNotAddedTip": {
+ "message": "在磁盘上找到。可以打开,但保存时会询问位置——添加其所在文件夹即可原地保存。"
+ },
+ "folderFoundTip": {
+ "message": "在磁盘上找到但未添加:其中的文档可以打开,但保存时会询问位置。"
+ },
+ "menuAddFolder": {
+ "message": "添加其所在文件夹以便原地保存……"
+ },
+ "pickThisFolder": {
+ "message": "请在选择器中选择文件夹“$1”——Chrome 必须看到您亲自选择。"
+ },
+ "pickedWrongFolder": {
+ "message": "“$1”不是此文档所在的文件夹(“$2”)。请重试并选择那个文件夹。"
+ },
+ "folderAlreadyAdded": {
+ "message": "“$1”已添加。"
+ },
+ "bentoFolderBtn": {
+ "message": "创建 Bento 文件夹……"
+ },
+ "bentoFolderHow": {
+ "message": "请在对话框中于“文稿”内新建一个名为“Bento”的文件夹并选择它。"
+ },
+ "bentoFolderMade": {
+ "message": "“$1”是您的 Bento 文件夹——新文档会放在这里并原地保存。"
+ },
+ "bentoFolderTip": {
+ "message": "“文稿”内的一个文件夹,可原地保存并接收新文档。Chrome 不会交出“文稿”本身。"
+ },
+ "defaultFolder": {
+ "message": "新文档放在这里"
+ },
+ "fgTitle": {
+ "message": "从现在起就地保存“$1”?"
+ },
+ "fgTitleLapsed": {
+ "message": "重新连接“$1”?"
+ },
+ "fgLead": {
+ "message": "bento/home 只保留这一个文件的权限,此后每次保存都直接写回该文件。请在接下来的对话框中选择同一个文件。"
+ },
+ "fgLeadLapsed": {
+ "message": "bento/home 已经有这个文件;浏览器需要您再次确认。"
+ },
+ "fgChoose": {
+ "message": "选择文件……"
+ },
+ "fgReconnect": {
+ "message": "重新连接"
+ },
+ "fgOnce": {
+ "message": "仅此一次"
+ },
+ "fgNotSame": {
+ "message": "那不是发出请求的文件(“$1”)。请选择那个文件,或关闭此窗口。"
+ },
+ "fgDenied": {
+ "message": "未授予权限。"
+ },
+ "droppedGranted": {
+ "message": "已添加:$1 个文件夹,$2 个文件。"
+ },
+ "setFilesTitle": {
+ "message": "文件"
+ },
+ "setFilesSub": {
+ "message": "不在任何已添加文件夹中、但可自行就地保存的文档——选择过一次,或拖放到资料库中。"
+ },
+ "dropNoHandle": {
+ "message": "“$1”:浏览器没有为此次拖放提供文件句柄。"
+ },
+ "dropNotBento": {
+ "message": "“$1”不是 Bento 文档(.bento.html)——未添加。"
+ },
+ "setDownloadsTitle": {
+ "message": "下载"
+ },
+ "setDownloadsSub": {
+ "message": "“下载”文件夹中的文档可以通过 Chrome 的下载功能原地保存——除非 Chrome 被设置为每次下载都询问保存位置,那样每次保存都会弹出对话框。"
+ },
+ "setDownloadsOff": {
+ "message": "Chrome 询问了保存位置——在该设置更改之前,保存到“下载”已关闭"
+ },
+ "setDownloadsRetry": {
+ "message": "重试"
+ },
+ "dropTwins": {
+ "message": "“$1”:磁盘上有 $2 个文件的字节完全相同——已添加,但在它们产生差异之前无法原地保存。"
+ },
+ "addFiles": {
+ "message": "添加文件……"
+ },
+ "tdGrant": {
+ "message": "在此保存且不再询问……"
+ },
+ "tdViaFolder": {
+ "message": "原地保存——其文件夹已添加"
+ },
+ "tdViaFile": {
+ "message": "原地保存——此文件已添加"
+ },
+ "tdViaDownloads": {
+ "message": "原地保存——位于“下载”中"
+ },
+ "tdNotYet": {
+ "message": "每次保存都会询问位置"
+ },
+ "badgeNotSavingTip": {
+ "message": "此文档尚不能原地保存——打开 bento/home 面板来解决。"
+ },
+ "noticeOsBlocked": {
+ "message": "macOS 阻止了浏览器访问 $1,在您允许之前那里的文档不会列出:系统设置 → 隐私与安全性 → 文件和文件夹 → Google Chrome。"
+ },
+ "noticeOsBlockedPath": {
+ "message": "系统设置 → 隐私与安全性 → 文件和文件夹"
+ },
+ "fgLeadFolder": {
+ "message": "在接下来的对话框中选择文件夹“$1”,从此其中每个文档(这一个和它旁边的)都会原地保存。"
+ },
+ "fgChooseFolder": {
+ "message": "选择文件夹“$1”……"
+ },
+ "fgOnlyFile": {
+ "message": "仅此文件……"
+ },
+ "fgNotContaining": {
+ "message": "“$1”不包含此文档——请选择“$2”或其上层文件夹。"
+ },
+ "tdGrantFolder": {
+ "message": "“$1”中的所有内容不再询问直接保存……"
}
}
diff --git a/home/webext/_locales/zh_TW/messages.json b/home/webext/_locales/zh_TW/messages.json
index e5a6e508..e3fc2409 100644
--- a/home/webext/_locales/zh_TW/messages.json
+++ b/home/webext/_locales/zh_TW/messages.json
@@ -199,7 +199,7 @@
"message": "選擇存放文件的資料夾"
},
"setupStep1Note": {
- "message": "通常选一個大一些的資料夾就夠了 — 它涵蓋其中的全部內容。"
+ "message": "通常一個較大的資料夾就夠了——它涵蓋其中的一切。Chrome 不會交出個人資料夾本身或 Library:請選擇「文件」「桌面」或存放文件的資料夾。"
},
"setupStep2": {
"message": "開啟本地檔案访問",
@@ -517,5 +517,149 @@
},
"surveyOnlySeen": {
"message": "這種方式只能找到在此瀏覽器中開啟過的文件。"
+ },
+ "placingFolder": {
+ "message": "正在磁碟上尋找「$1」……"
+ },
+ "placeNoDisk": {
+ "message": "Chrome 不允許擴充功能從磁碟讀取以尋找「$1」(file:// 目錄清單被拒絕)。"
+ },
+ "placeTried": {
+ "message": "已在磁碟上 $2 個位置尋找「$1」,未找到。"
+ },
+ "badgeNotAdded": {
+ "message": "未加入"
+ },
+ "badgeNotAddedTip": {
+ "message": "在磁碟上找到。可以開啟,但儲存時會詢問位置——加入其所在資料夾即可就地儲存。"
+ },
+ "folderFoundTip": {
+ "message": "在磁碟上找到但未加入:其中的文件可以開啟,但儲存時會詢問位置。"
+ },
+ "menuAddFolder": {
+ "message": "加入其所在資料夾以便就地儲存……"
+ },
+ "pickThisFolder": {
+ "message": "請在選擇器中選擇資料夾「$1」——Chrome 必須看到您親自選擇。"
+ },
+ "pickedWrongFolder": {
+ "message": "「$1」不是此文件所在的資料夾(「$2」)。請再試一次並選擇那個資料夾。"
+ },
+ "folderAlreadyAdded": {
+ "message": "「$1」已加入。"
+ },
+ "bentoFolderBtn": {
+ "message": "建立 Bento 資料夾……"
+ },
+ "bentoFolderHow": {
+ "message": "請在對話框中於「文件」內新增一個名為「Bento」的資料夾並選擇它。"
+ },
+ "bentoFolderMade": {
+ "message": "「$1」是您的 Bento 資料夾——新文件會放在這裡並就地儲存。"
+ },
+ "bentoFolderTip": {
+ "message": "「文件」內的一個資料夾,可就地儲存並接收新文件。Chrome 不會交出「文件」本身。"
+ },
+ "defaultFolder": {
+ "message": "新文件放在這裡"
+ },
+ "fgTitle": {
+ "message": "從現在起就地儲存「$1」?"
+ },
+ "fgTitleLapsed": {
+ "message": "重新連線「$1」?"
+ },
+ "fgLead": {
+ "message": "bento/home 只保留這一個檔案的權限,此後每次儲存都直接寫回該檔案。請在接下來的對話框中選擇同一個檔案。"
+ },
+ "fgLeadLapsed": {
+ "message": "bento/home 已經有這個檔案;瀏覽器需要您再次確認。"
+ },
+ "fgChoose": {
+ "message": "選擇檔案……"
+ },
+ "fgReconnect": {
+ "message": "重新連線"
+ },
+ "fgOnce": {
+ "message": "僅此一次"
+ },
+ "fgNotSame": {
+ "message": "那不是提出要求的檔案(「$1」)。請選擇那個檔案,或關閉此視窗。"
+ },
+ "fgDenied": {
+ "message": "未授予權限。"
+ },
+ "droppedGranted": {
+ "message": "已加入:$1 個資料夾,$2 個檔案。"
+ },
+ "setFilesTitle": {
+ "message": "檔案"
+ },
+ "setFilesSub": {
+ "message": "不在任何已加入資料夾中、但可自行就地儲存的文件——選擇過一次,或拖放到資料庫中。"
+ },
+ "dropNoHandle": {
+ "message": "「$1」:瀏覽器沒有為這次拖放提供檔案控制代碼。"
+ },
+ "dropNotBento": {
+ "message": "「$1」不是 Bento 文件(.bento.html)——未加入。"
+ },
+ "setDownloadsTitle": {
+ "message": "下載"
+ },
+ "setDownloadsSub": {
+ "message": "「下載」資料夾中的文件可以透過 Chrome 的下載功能就地儲存——除非 Chrome 被設定為每次下載都詢問儲存位置,那樣每次儲存都會跳出對話框。"
+ },
+ "setDownloadsOff": {
+ "message": "Chrome 詢問了儲存位置——在該設定變更之前,儲存到「下載」已關閉"
+ },
+ "setDownloadsRetry": {
+ "message": "重試"
+ },
+ "dropTwins": {
+ "message": "「$1」:磁碟上有 $2 個檔案的位元組完全相同——已加入,但在它們產生差異之前無法就地儲存。"
+ },
+ "addFiles": {
+ "message": "加入檔案……"
+ },
+ "tdGrant": {
+ "message": "在此儲存且不再詢問……"
+ },
+ "tdViaFolder": {
+ "message": "就地儲存——其資料夾已加入"
+ },
+ "tdViaFile": {
+ "message": "就地儲存——此檔案已加入"
+ },
+ "tdViaDownloads": {
+ "message": "就地儲存——位於「下載」中"
+ },
+ "tdNotYet": {
+ "message": "每次儲存都會詢問位置"
+ },
+ "badgeNotSavingTip": {
+ "message": "此文件尚不能就地儲存——開啟 bento/home 面板來解決。"
+ },
+ "noticeOsBlocked": {
+ "message": "macOS 阻止了瀏覽器存取 $1,在您允許之前那裡的文件不會列出:系統設定 → 隱私權與安全性 → 檔案與檔案夾 → Google Chrome。"
+ },
+ "noticeOsBlockedPath": {
+ "message": "系統設定 → 隱私權與安全性 → 檔案與檔案夾"
+ },
+ "fgLeadFolder": {
+ "message": "在接下來的對話框中選擇資料夾「$1」,從此其中每份文件(這一份和旁邊的)都會就地儲存。"
+ },
+ "fgChooseFolder": {
+ "message": "選擇資料夾「$1」……"
+ },
+ "fgOnlyFile": {
+ "message": "僅此檔案……"
+ },
+ "fgNotContaining": {
+ "message": "「$1」不包含此文件——請選擇「$2」或其上層資料夾。"
+ },
+ "tdGrantFolder": {
+ "message": "「$1」中的所有內容不再詢問直接儲存……"
}
}
diff --git a/home/webext/manifest.json b/home/webext/manifest.json
index 7f1743d1..a483a092 100644
--- a/home/webext/manifest.json
+++ b/home/webext/manifest.json
@@ -8,11 +8,16 @@
"contextMenus",
"notifications",
"sidePanel",
- "storage"
+ "storage",
+ "downloads",
+ "downloads.ui"
],
"optional_permissions": [
"history"
],
+ "host_permissions": [
+ "file:///*"
+ ],
"options_page": "src/home.html#settings",
"background": {
"service_worker": "src/background.js",
diff --git a/home/webext/src/background.js b/home/webext/src/background.js
index b7b7c626..9e28bf9c 100644
--- a/home/webext/src/background.js
+++ b/home/webext/src/background.js
@@ -30,11 +30,25 @@
// The ONLY import here. status.js owns what the UI is told, and the badge is
// UI — duplicating the "is anything lapsed?" rule would let the icon and the
// popup disagree about the same folders.
-import { setLapsedBadge, notifyIfLapsed, openReconnectUi, getGrants } from './status.js'
+import { setLapsedBadge, setTabBadge, notifyIfLapsed, openReconnectUi, getGrants } from './status.js'
import { checkForUpdate } from './update.js'
-import { learnPrefix } from './db.js'
+import { learnPrefix, noteOpened } from './db.js'
import { t } from './i18n.js'
import { pathFromSender, locateIn } from './route.js'
+import { resolveFileGrant, dropFileGrant, declined, downloadsDir, downloadsRelative, writeViaDownloads, downloadsUnusable, setDownloadsUnusable, defaultDeps as defaultFileGrantDeps } from './filegrant.js'
+import { recentOpened } from './db.js'
+
+/** Same-named files the extension knows at OTHER paths: opened documents and the library's last scan. */
+async function knownTwins(path) {
+ const name = path.split('/').pop()
+ const out = new Set()
+ try { for (const p of Object.keys(await recentOpened())) if (p !== path && p.split('/').pop() === name) out.add(p) } catch { /* none */ }
+ try {
+ const scanned = (await chrome.storage.local.get('lastScan'))?.lastScan
+ if (Array.isArray(scanned)) for (const p of scanned) if (p !== path && p.split('/').pop() === name) out.add(p)
+ } catch { /* none */ }
+ return [...out]
+}
// Re-exported: these moved to route.js so the PAGES can place a path too,
// but they are still part of this module's tested surface.
@@ -249,25 +263,158 @@ export async function backup(sender, text, name, deps) {
}
/** Can this sender's file be written in place? Resolves; writes nothing. */
-export async function claim(sender, deps) {
+/**
+ * Where a save for this sender goes, in order: a FOLDER grant (resolve), a
+ * FILE grant for that one document, the DOWNLOADS folder through the
+ * downloads API. Each is checked from scratch on every message; nothing is
+ * carried. `via` says which, for the page's console and the badge.
+ */
+export async function resolveAny(sender, deps = {}) {
const r = await resolve(sender, deps)
- return r.ok ? { ok: true, name: r.name } : { ok: false, reason: r.reason }
+ if (r.ok) return { ...r, via: 'folder' }
+ const path = pathFromSender(sender)
+ if (!path) return r
+ // each further door fails soft: no store, no downloads API, no answer — the
+ // save falls to the picker, never to an exception
+ const fgDeps = deps.filegrant ?? { ...defaultFileGrantDeps(), otherCopies: (p) => knownTwins(p) }
+ const fg = await (deps.resolveFileGrant ?? resolveFileGrant)(path, fgDeps).catch(() => ({ ok: false, reason: 'none' }))
+ if (fg.ok) return { ok: true, name: path.split('/').pop(), handle: fg.handle, key: fg.key, via: 'file' }
+ // the Downloads door, unless this Chrome prompts for every download (then
+ // it was switched off the first time it prompted; Settings says so)
+ const unusable = await (deps.downloadsUnusable ?? downloadsUnusable)(deps.filegrant).catch(() => false)
+ const dir = unusable ? null : await (deps.downloadsDir ?? downloadsDir)(deps.filegrant).catch(() => null)
+ const rel = downloadsRelative(path, dir)
+ if (rel) return { ok: true, name: path.split('/').pop(), rel, via: 'downloads' }
+ return { ok: false, reason: fg.reason === 'lapsed' ? 'file grant needs renewing' : r.reason, path }
+}
+
+export async function claim(sender, deps) {
+ const r = await resolveAny(sender, deps)
+ return r.ok ? { ok: true, name: r.name, via: r.via } : { ok: false, reason: r.reason }
}
/** Write the sender's own file. Re-resolves, so no state is carried. */
-export async function write(sender, text, deps) {
- const r = await resolve(sender, deps)
+export async function write(sender, text, deps = {}) {
+ const r = await resolveAny(sender, deps)
if (!r.ok) return { ok: false, reason: r.reason }
try {
+ if (r.via === 'downloads') {
+ const bytes = await (deps.writeViaDownloads ?? writeViaDownloads)(r.rel, text, deps.filegrant)
+ return { ok: true, bytes, via: r.via }
+ }
const w = await r.handle.createWritable()
await w.write(text)
await w.close()
- return { ok: true, bytes: text.length }
+ return { ok: true, bytes: text.length, via: r.via }
} catch (e) {
+ // a file grant whose file is gone is no grant: forget it
+ if (r.via === 'file' && e?.name === 'NotFoundError') await (deps.dropFileGrant ?? dropFileGrant)(r.key, deps.filegrant).catch(() => {})
+ // Chrome prompted for the download: this door is shut for good in this
+ // Chrome, THIS save finishes through the browser's own picker (the page
+ // is told to), and the next one is offered a file grant instead.
+ if (r.via === 'downloads' && e?.name === 'DownloadsPrompted') {
+ await (deps.setDownloadsUnusable ?? setDownloadsUnusable)(true, deps.filegrant).catch(() => {})
+ return { ok: false, reason: 'Chrome asks where to save each download', retry: 'native' }
+ }
return { ok: false, reason: `${e.name}: ${e.message}` }
}
}
+// ---------------------------------------------------------------- the offer
+//
+// A ⌘S that nothing covers is the moment to ask, once: the page's `claim`
+// gets { ok:false, reason:'setup', token } while a small window
+// (src/filegrant.html) asks the person to pick the file; the page then waits
+// on `claim { token }` as long as the window is open. In memory only, like
+// the assistant's consent: an eviction loses one pending save (the page falls
+// to its picker), and the window's own storing survives regardless.
+const offers = new Map() // token → { path, resolve, promise }
+
+async function offerFileGrant(path, lapsed) {
+ const open = [...offers.values()].find((o) => o.path === path)
+ if (open) return open
+ const token = crypto.randomUUID()
+ let resolve
+ const promise = new Promise((r) => { resolve = r })
+ const entry = { path, resolve, promise, token }
+ offers.set(token, entry)
+ const url = new URL(chrome.runtime.getURL('src/filegrant.html'))
+ url.searchParams.set('path', path)
+ url.searchParams.set('token', token)
+ if (lapsed) url.searchParams.set('lapsed', '1')
+ chrome.windows.create({ url: url.href, type: 'popup', width: 480, height: 320, focused: true })
+ .catch(() => { offers.delete(token); resolve(false) })
+ return entry
+}
+
+/**
+ * How a document at this url would save — for the extension's OWN pages
+ * (the side panel showing the active tab's state). Only they may name a url:
+ * a content script's answer comes from its browser-stamped sender.
+ */
+async function saveStatus(sender, url) {
+ const ours = sender?.id === chrome.runtime.id && typeof sender.url === 'string' && sender.url.startsWith(chrome.runtime.getURL(''))
+ if (!ours || typeof url !== 'string') return { ok: false, reason: 'not an extension page' }
+ const r = await resolveAny({ url, frameId: 0 })
+ return r.ok ? { ok: true, via: r.via, name: r.name } : { ok: false, reason: r.reason, path: pathFromSender({ url, frameId: 0 }) }
+}
+
+/**
+ * A badge on the toolbar icon FOR THIS TAB when the document in it cannot
+ * save in place yet — the cue that the side panel has a button for that.
+ * Per tab, so it says nothing about other documents.
+ */
+async function badgeTab(tabId, sender) {
+ if (tabId == null) return
+ let covered = false
+ try { covered = (await resolveAny(sender)).ok } catch { covered = false }
+ await setTabBadge(tabId, !covered)
+}
+
+/** `claim` with the offer: what the page's first phase gets. */
+export async function claimOrOffer(sender, payload, deps) {
+ // second phase: the page waiting on a window it was told about
+ if (typeof payload?.token === 'string') {
+ const o = offers.get(payload.token)
+ if (!o) return { ok: false, reason: 'no such offer' }
+ const chosen = await o.promise
+ if (!chosen) return { ok: false, reason: 'declined' }
+ const r = await resolveAny(sender, deps)
+ return r.ok ? { ok: true, name: r.name, via: r.via } : { ok: false, reason: r.reason }
+ }
+ const r = await resolveAny(sender, deps)
+ if (r.ok) return { ok: true, name: r.name, via: r.via }
+ const path = pathFromSender(sender)
+ if (!path || !(await isFileAccessOn())) return { ok: false, reason: r.reason }
+ if (await declined(path)) return { ok: false, reason: r.reason }
+ const o = await offerFileGrant(path, r.reason === 'file grant needs renewing')
+ return { ok: false, reason: 'setup', token: o.token }
+}
+
+const isFileAccessOn = () => new Promise((res) => {
+ try { chrome.extension.isAllowedFileSchemeAccess((v) => res(!!v)) } catch { res(false) }
+})
+
+/** The offer window's port: its disconnect is the window closing without an answer. */
+function watchOfferWindow(port) {
+ const ours = port.sender?.id === chrome.runtime.id && typeof port.sender.url === 'string' && port.sender.url.startsWith(chrome.runtime.getURL('src/filegrant.html'))
+ if (!ours) { port.disconnect(); return }
+ const token = port.name.slice('filegrant:'.length)
+ port.onDisconnect.addListener(() => {
+ const o = offers.get(token)
+ if (o) { offers.delete(token); o.resolve(false) }
+ })
+}
+
+/** The window answered (it stored the grant itself, or recorded the decline). */
+function offerAnswered(sender, msg) {
+ const ours = sender?.id === chrome.runtime.id && typeof sender.url === 'string' && sender.url.startsWith(chrome.runtime.getURL('src/filegrant.html'))
+ if (!ours) return { ok: false, reason: 'not the offer window' }
+ const o = offers.get(msg.token)
+ if (o) { offers.delete(msg.token); o.resolve(msg.chosen === true) }
+ return { ok: true }
+}
+
// `chrome` is absent when this module is loaded by the test rig, which imports
// the logic above and never needs the listener.
if (typeof chrome !== 'undefined' && chrome.runtime?.onMessage) {
@@ -277,8 +424,14 @@ if (typeof chrome !== 'undefined' && chrome.runtime?.onMessage) {
// and writes nothing. Opening a document is the moment to learn its folder
// — waiting for a save meant a fresh install listed documents it could not
// open.
+ // Every opened document is remembered by path (db.js noteOpened) so the
+ // library lists it whether or not any grant or scan covers it.
+ if (msg?.op === 'hello') { const p = pathFromSender(sender); if (p) { void noteOpened(p).catch(() => {}); void badgeTab(sender.tab?.id, sender) } }
const run = msg?.op === 'hello' ? claim(sender)
- : msg?.op === 'claim' ? claim(sender)
+ : msg?.op === 'claim' ? claimOrOffer(sender, msg.payload)
+ : msg?.op === 'filegrant.answered' ? Promise.resolve(offerAnswered(sender, msg))
+ : msg?.op === 'save.status' ? saveStatus(sender, msg.url)
+ : msg?.op === 'save.rebadge' ? (async () => { const tabs = await chrome.tabs.query({ url: 'file:///*.bento.html' }).catch(() => []); for (const tb of tabs) await badgeTab(tb.id, { url: tb.url, frameId: 0, tab: tb }); return { ok: true } })()
: msg?.op === 'write' ? write(sender, msg.payload?.text ?? '')
: msg?.op === 'backup' ? backup(sender, msg.payload?.text ?? '', msg.payload?.name)
: Promise.resolve({ ok: false, reason: 'unknown op' })
@@ -293,6 +446,10 @@ if (typeof chrome !== 'undefined' && chrome.runtime?.onMessage) {
return true // async response
})
+ chrome.runtime.onConnect.addListener((port) => {
+ if (port.name.startsWith('filegrant:')) watchOfferWindow(port)
+ })
+
// The worker restarts constantly; the badge has to survive that, and startup
// is also when a browser restart would have dropped a grant — so it is the
// one moment where telling the user is worth an interruption, since it is
diff --git a/home/webext/src/db.js b/home/webext/src/db.js
index 6246c9c0..96738401 100644
--- a/home/webext/src/db.js
+++ b/home/webext/src/db.js
@@ -32,9 +32,14 @@
// clickable.
const DB = 'bento-tray'
-const VERSION = 2
+const VERSION = 3
export const GRANT = 'grant'
export const CACHE = 'cache'
+/** Per-FILE grants (filegrant.js): a real FileSystemFileHandle for one
+ * document outside every granted folder, held here — the extension's own
+ * origin — because a file:// page must never keep one (every local deck
+ * shares that origin's storage). v3. */
+export const FILEGRANT = 'filegrant'
export const open = () => new Promise((res, rej) => {
const r = indexedDB.open(DB, VERSION)
@@ -44,10 +49,15 @@ export const open = () => new Promise((res, rej) => {
// path from a v1 install is explicit rather than incidental.
if (!d.objectStoreNames.contains(GRANT)) d.createObjectStore(GRANT)
if (!d.objectStoreNames.contains(CACHE)) d.createObjectStore(CACHE)
+ if (!d.objectStoreNames.contains(FILEGRANT)) d.createObjectStore(FILEGRANT)
void ev
}
r.onsuccess = () => res(r.result)
r.onerror = () => rej(r.error)
+ // A version bump waits for every older connection to close; without this
+ // an upgrade blocked by another open page hangs every store call forever,
+ // and the symptom is "nothing happened".
+ r.onblocked = () => rej(new Error('bento/home storage is open in another tab at an older version — close other bento/home pages and try again'))
})
export const get = async (store, key) => {
@@ -59,6 +69,28 @@ export const get = async (store, key) => {
})
}
+/** Every record in a store, as [key, value] pairs. */
+export const all = async (store) => {
+ const d = await open()
+ return new Promise((res, rej) => {
+ const os = d.transaction(store, 'readonly').objectStore(store)
+ const keys = os.getAllKeys()
+ const vals = os.getAll()
+ vals.onsuccess = () => res(keys.result.map((k, i) => [k, vals.result[i]]))
+ vals.onerror = () => rej(vals.error)
+ })
+}
+
+export const del = async (store, key) => {
+ const d = await open()
+ return new Promise((res, rej) => {
+ const t = d.transaction(store, 'readwrite')
+ t.objectStore(store).delete(key)
+ t.oncomplete = res
+ t.onerror = () => rej(t.error)
+ })
+}
+
export const put = async (store, key, value) => {
const d = await open()
return new Promise((res, rej) => {
@@ -87,3 +119,18 @@ export async function learnPrefix(folderName, absolutePrefix) {
}
export const prefixes = async () => (await get(GRANT, 'prefixes')) || {}
+
+/**
+ * Documents OPENED in this browser, by absolute path, newest first — every
+ * deck whose bridge said hello. A document dragged into the browser from a
+ * folder the scan does not cover is still a document the person has, and
+ * the library lists it from here: openable by URL, granted or not.
+ */
+export const RECENT_MAX = 60
+export const recentOpened = async () => (await get(GRANT, 'recent')) || {}
+export async function noteOpened(path) {
+ const all = await recentOpened()
+ all[path] = Date.now()
+ const keep = Object.entries(all).sort((a, b) => b[1] - a[1]).slice(0, RECENT_MAX)
+ await put(GRANT, 'recent', Object.fromEntries(keep))
+}
diff --git a/home/webext/src/filegrant-window.js b/home/webext/src/filegrant-window.js
new file mode 100644
index 00000000..0f446c64
--- /dev/null
+++ b/home/webext/src/filegrant-window.js
@@ -0,0 +1,95 @@
+// SPDX-License-Identifier: MIT
+// Copyright (c) 2026 The Bento authors
+//
+// The offer window: a ⌘S in a document nothing covers opened this. The
+// person either picks the file in the OS dialog — the handle is proven to be
+// the bytes at that path, stored in the extension's own IndexedDB, and the
+// waiting save completes through it — or says "just this once", and the
+// document's own Save dialog appears as it would without any extension.
+//
+// The picker runs HERE, in the extension's context and gesture, which is the
+// whole point: a handle obtained by the page would live in the page's
+// origin, which every local document shares.
+
+import { t, localize, initI18n } from './i18n.js'
+import { handleIsPath, decline, listFileGrants } from './filegrant.js'
+import { inBlockedFolder, folderOf, grantFolderFor, grantFileFor } from './grantflow.js'
+
+const q = new URLSearchParams(location.search)
+const path = q.get('path') ?? ''
+const token = q.get('token') ?? ''
+const lapsed = q.get('lapsed') === '1'
+const name = path.split('/').filter(Boolean).pop() ?? path
+
+await initI18n()
+localize()
+document.getElementById('name').textContent = name
+document.getElementById('path').textContent = path
+// literal keys, so the catalogue rig can see every one is used
+// A document in a subfolder is offered its FOLDER (every sibling then saves
+// without asking — one dialog per folder); only one directly in home,
+// Documents, Desktop or Downloads, which Chrome will not grant, gets a file.
+const folderPath = folderOf(path)
+const folderName = folderPath.split('/').filter(Boolean).pop() ?? folderPath
+const byFolder = !lapsed && !inBlockedFolder(path)
+document.getElementById('title').textContent = lapsed ? t('fgTitleLapsed', name) : t('fgTitle', name)
+document.getElementById('lead').textContent = lapsed ? t('fgLeadLapsed') : byFolder ? t('fgLeadFolder', folderName) : t('fgLead')
+const choose = document.getElementById('choose')
+choose.textContent = lapsed ? t('fgReconnect') : byFolder ? t('fgChooseFolder', folderName) : t('fgChoose')
+const onlyFile = document.getElementById('onlyFile')
+onlyFile.hidden = !byFolder
+onlyFile.textContent = t('fgOnlyFile')
+const status = document.getElementById('status')
+
+// A port whose disconnect is this window closing unanswered: the worker then
+// resolves the waiting save as declined instead of holding it for two minutes.
+try { chrome.runtime.connect({ name: `filegrant:${token}` }) } catch { /* fine */ }
+
+const say = (r) => {
+ status.textContent = r.reason === 'denied' ? t('fgDenied')
+ : r.reason === 'not-containing' ? t('fgNotContaining', r.name ?? '', folderName)
+ : r.reason === 'cancelled' ? '' : t('fgNotSame', name)
+}
+
+const answer = async (chosen) => {
+ try { await chrome.runtime.sendMessage({ op: 'filegrant.answered', token, chosen }) } catch { /* worker gone */ }
+ window.close()
+}
+
+
+choose.onclick = async () => {
+ choose.disabled = true
+ try {
+ if (lapsed) {
+ // the handle is here already; only a gesture in THIS window can renew it
+ for (const g of await listFileGrants()) {
+ if (g.name !== name) continue
+ if (await g.handle.requestPermission({ mode: 'readwrite' }) === 'granted' && await handleIsPath(g.handle, path)) { await answer(true); return }
+ }
+ status.textContent = t('fgNotSame', name)
+ choose.disabled = false
+ return
+ }
+ // THE PROOF is in grantflow.js: a folder must really contain this
+ // document (the grant resolves the path); a picked file must be its
+ // bytes and mtime. The picker opens near the document either way.
+ const r = byFolder ? await grantFolderFor(path) : await grantFileFor(path)
+ if (!r.ok) { say(r); choose.disabled = false; return }
+ await answer(true)
+ } catch (e) {
+ if (e?.name !== 'AbortError') status.textContent = e?.message || String(e)
+ choose.disabled = false
+ }
+}
+onlyFile.onclick = async () => {
+ onlyFile.disabled = true
+ try {
+ const r = await grantFileFor(path)
+ if (r.ok) { await answer(true); return }
+ say(r)
+ } catch (e) { if (e?.name !== 'AbortError') status.textContent = e?.message || String(e) }
+ onlyFile.disabled = false
+}
+document.getElementById('once').onclick = async () => { await decline(path); await answer(false) }
+addEventListener('keydown', (e) => { if (e.key === 'Escape') void answer(false) })
+choose.focus()
diff --git a/home/webext/src/filegrant.html b/home/webext/src/filegrant.html
new file mode 100644
index 00000000..ffdc7b2b
--- /dev/null
+++ b/home/webext/src/filegrant.html
@@ -0,0 +1,33 @@
+<!doctype html>
+<meta charset="utf-8">
+<title>bento/home</title>
+<link rel="icon" href="../icons/icon.svg">
+<link rel="stylesheet" href="ui.css">
+<!-- Blocking, and before the body: stamps the theme so the FIRST paint is right. -->
+<script src="theme.js"></script>
+<style>
+ /* The one-time offer on a ⌘S nothing covers (background.js claimOrOffer):
+ * which file, what saying yes means, two answers. A popup window. */
+ body { padding: 20px 22px; display: flex; flex-direction: column; gap: 12px; min-height: 100vh;
+ box-sizing: border-box }
+ h1 { font-size: 16px; margin: 0; line-height: 1.3 }
+ .file { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 8px;
+ background: var(--hover); min-width: 0 }
+ .file b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
+ .file small { color: var(--dim); font-size: 12px; white-space: nowrap; overflow: hidden;
+ text-overflow: ellipsis; direction: ltr; unicode-bidi: isolate; text-align: start }
+ .lead { margin: 0; color: var(--dim); font-size: 13px; line-height: 1.45 }
+ .actions { display: flex; gap: 8px; justify-content: flex-end; align-items: center; margin-top: auto; flex-wrap: wrap }
+ .actions .link { margin-inline-end: auto }
+ .status { font-size: 12px; color: var(--dim); margin: 0; min-height: 1.2em }
+</style>
+<h1 id="title"></h1>
+<div class="file"><b id="name"></b><small id="path"></small></div>
+<p class="lead" id="lead"></p>
+<p class="status" id="status"></p>
+<div class="actions">
+ <button class="btn link" id="onlyFile" hidden></button>
+ <button class="btn" id="once" data-i18n="fgOnce"></button>
+ <button class="btn primary" id="choose"></button>
+</div>
+<script type="module" src="filegrant-window.js"></script>
diff --git a/home/webext/src/filegrant.js b/home/webext/src/filegrant.js
new file mode 100644
index 00000000..7414662e
--- /dev/null
+++ b/home/webext/src/filegrant.js
@@ -0,0 +1,266 @@
+// SPDX-License-Identifier: MIT
+// Copyright (c) 2026 The Bento authors
+//
+// Saving in place for a document that no granted folder covers.
+//
+// THE GAP. Chrome will not grant the home folder, Desktop, Documents or
+// Downloads as wholes to any page or extension, so the documents most people
+// keep — the ones they "just saved" — sit outside every folder grant. Three
+// more doors, in the order the worker tries them after the folder grants:
+//
+// 1. A FILE GRANT: a real FileSystemFileHandle for that one document, held
+// in the extension's own storage (db.js FILEGRANT). Obtained by a drop
+// onto the library, or by the one-time window the first ⌘S opens. Never
+// by the page: every file:// deck shares one storage origin, so a handle
+// a deck kept would be every local deck's.
+// 2. DOWNLOADS, written through `chrome.downloads`: the one folder Chrome
+// lets an extension write into by design, with `conflictAction:
+// 'overwrite'` — no grant at all for a document sitting there.
+// 3. The OFFER: the small window that asks, once per file (a week per
+// decline), and completes the save when the user picks the file.
+//
+// IDENTITY IS PROVEN, NEVER ASSUMED. A file grant is used for a path only when
+// the handle's name is the path's file name AND its bytes are the bytes at
+// that path (the extension can read file://). A same-named other file is
+// refused; a moved file stops matching and is offered again for its new path.
+// The page names nothing: the path is `sender.url`, browser-stamped.
+//
+// Pure where it can be: storage, fetch and the downloads API come in as
+// `deps`, so scripts/test-webext-filegrant.ts drives it in node.
+
+import { FILEGRANT, all, get, put, del } from './db.js'
+import { fileUrl } from './place.js'
+
+/** How long a "just this once" is remembered before the window may ask again. */
+export const DECLINE_MS = 7 * 24 * 3600 * 1000
+
+const basename = (p) => p.split('/').pop() || ''
+const dirname = (p) => p.slice(0, Math.max(0, p.lastIndexOf('/')))
+
+export const defaultDeps = () => ({
+ all: () => all(FILEGRANT),
+ get: (k) => get(FILEGRANT, k),
+ put: (k, v) => put(FILEGRANT, k, v),
+ del: (k) => del(FILEGRANT, k),
+ fetch: (u) => fetch(u),
+ storage: typeof chrome !== 'undefined' ? chrome.storage?.local : null,
+ downloads: typeof chrome !== 'undefined' ? chrome.downloads : null,
+ // the download bubble, off for the length of a write (permission downloads.ui)
+ setUiOptions: typeof chrome !== 'undefined' && chrome.downloads?.setUiOptions ? (o) => chrome.downloads.setUiOptions(o) : null,
+})
+
+/** The grant records: `{ key, name, handle, path?, at }` — declines excluded. */
+export async function listFileGrants(deps = defaultDeps()) {
+ const out = []
+ for (const [key, v] of await deps.all()) if (v && v.handle) out.push({ key, ...v })
+ return out
+}
+
+export const declineKey = (path) => `declined:${path}`
+
+/** Was this path declined within DECLINE_MS? */
+export async function declined(path, deps = defaultDeps()) {
+ const d = await deps.get(declineKey(path))
+ return !!d && typeof d.at === 'number' && Date.now() - d.at < DECLINE_MS
+}
+
+export const decline = (path, deps = defaultDeps()) => deps.put(declineKey(path), { at: Date.now() })
+
+/** Keep a handle as a file grant. `path` when known (a scan matched it, or the window knew it). */
+export async function addFileGrant(handle, path, deps = defaultDeps()) {
+ const key = path || `name:${handle.name}:${Math.random().toString(36).slice(2, 10)}`
+ await deps.put(key, { name: handle.name, handle, path: path || null, at: Date.now() })
+ if (path) await deps.del(declineKey(path)).catch(() => {})
+ return key
+}
+
+const bytesEqual = (a, b) => {
+ if (a.length !== b.length) return false
+ for (let i = 0; i < a.length; i++) if (a[i] !== b[i]) return false
+ return true
+}
+
+/** Are the handle's bytes the bytes at this path? (The proof a grant needs.) */
+export async function handleIsPath(handle, path, deps = defaultDeps()) {
+ try {
+ const r = await deps.fetch(fileUrl(path))
+ if (!r.ok) return false
+ const disk = new Uint8Array(await r.arrayBuffer())
+ const mine = new Uint8Array(await (await handle.getFile()).arrayBuffer())
+ return bytesEqual(disk, mine)
+ } catch { return false }
+}
+
+/** The picked file's mtime equals the mtime at the path (to the second — file:// rounds); true when either is unknown. */
+export async function sameMtime(handle, path, deps = defaultDeps()) {
+ try {
+ const r = await deps.fetch(fileUrl(path), { headers: { range: 'bytes=0-0' } })
+ const disk = Date.parse(r.headers?.get?.('last-modified') ?? '')
+ const mine = (await handle.getFile()).lastModified
+ if (!disk || !mine) return true
+ return Math.abs(disk - mine) < 2000
+ } catch { return true }
+}
+
+/**
+ * Take a handle the person just picked FOR a known path: proven by bytes and
+ * mtime, permission asked inside the caller's gesture, then stored bound to
+ * that path. Returns null (with a reason) when it is not that file.
+ */
+export async function grantPickedFile(handle, path, deps = defaultDeps()) {
+ const log = (...a) => console.info('[bento/home] grant:', ...a)
+ const perm = await handle.requestPermission({ mode: 'readwrite' })
+ log('permission', perm, 'for', handle.name)
+ if (perm !== 'granted') return { ok: false, reason: 'denied' }
+ const bytes = await handleIsPath(handle, path, deps)
+ log('bytes match', bytes, path)
+ if (!bytes) return { ok: false, reason: 'not-same' }
+ const mtime = await sameMtime(handle, path, deps)
+ log('mtime match', mtime)
+ if (!mtime) return { ok: false, reason: 'not-same' }
+ const key = await addFileGrant(handle, path, deps)
+ log('stored as', key)
+ return { ok: true, key }
+}
+
+/**
+ * The file grant that serves a path, proven: name equal, permission granted,
+ * bytes equal. `{ ok:true, handle, key }`, or `{ ok:false, reason:
+ * 'lapsed'|'none' }` — lapsed when a candidate exists but its permission is
+ * gone (only a gesture in the extension's own UI can bring it back).
+ */
+export async function resolveFileGrant(path, deps = defaultDeps()) {
+ const name = basename(path)
+ if (!name) return { ok: false, reason: 'none' }
+ let lapsed = false
+ const grants = await listFileGrants(deps)
+ // A grant BOUND to a path serves that path and no other: two byte-identical
+ // copies of a deck in two folders must never serve each other's saves (the
+ // write would land in the other copy). An unbound grant — a drop whose path
+ // the scan could not settle — is bound here on first use, and only when
+ // the bytes say it is THIS file; `otherCopies` (paths of same-named files
+ // elsewhere, from the scan) lets the caller refuse when a twin exists.
+ const bound = grants.filter((g) => g.path === path)
+ const unbound = grants.filter((g) => !g.path && g.name === name)
+ for (const g of bound) {
+ let perm = 'denied'
+ try { perm = await g.handle.queryPermission({ mode: 'readwrite' }) } catch { continue }
+ if (perm !== 'granted') { lapsed = true; continue }
+ if (!(await handleIsPath(g.handle, path, deps))) continue // the file at that path changed under it: not this grant any more
+ return { ok: true, handle: g.handle, key: g.key }
+ }
+ for (const g of unbound) {
+ let perm = 'denied'
+ try { perm = await g.handle.queryPermission({ mode: 'readwrite' }) } catch { continue }
+ if (perm !== 'granted') { lapsed = true; continue }
+ if (!(await handleIsPath(g.handle, path, deps))) continue
+ // a twin with the same bytes elsewhere makes this ambiguous: refuse rather than guess
+ const twins = deps.otherCopies ? await deps.otherCopies(path) : []
+ let ambiguous = false
+ for (const twin of twins) if (await handleIsPath(g.handle, twin, deps)) { ambiguous = true; break }
+ if (ambiguous) continue
+ await deps.put(g.key, { name: g.name, handle: g.handle, path, at: g.at }).catch(() => {})
+ return { ok: true, handle: g.handle, key: g.key }
+ }
+ return { ok: false, reason: lapsed ? 'lapsed' : 'none' }
+}
+
+/** Forget a grant whose file is gone (NotFoundError on use). */
+export const dropFileGrant = (key, deps = defaultDeps()) => deps.del(key)
+
+// ---------------------------------------------------------------- downloads
+
+/**
+ * Where Chrome downloads to, learned from the downloads API: the most recent
+ * download's absolute filename, or — on a profile with none — a one-byte
+ * probe downloaded and erased. Remembered in extension storage.
+ */
+export async function downloadsDir(deps = defaultDeps()) {
+ const kept = (await deps.storage?.get('downloadsDir'))?.downloadsDir
+ if (typeof kept === 'string' && kept) return kept
+ if (!deps.downloads) return null
+ let dir = null
+ try {
+ const items = await deps.downloads.search({ limit: 1, orderBy: ['-startTime'], exists: true })
+ const f = items?.[0]?.filename
+ if (typeof f === 'string' && f.includes('/')) dir = dirname(f.replace(/\\/g, '/'))
+ if (!dir) {
+ const id = await deps.downloads.download({ url: 'data:text/plain;base64,YmVudG8=', filename: '.bento-home-probe.txt', conflictAction: 'overwrite', saveAs: false })
+ const done = await waitForDownload(id, deps)
+ if (typeof done?.filename === 'string') dir = dirname(done.filename.replace(/\\/g, '/'))
+ try { await deps.downloads.removeFile(id) } catch { /* fine */ }
+ try { await deps.downloads.erase({ id }) } catch { /* fine */ }
+ }
+ } catch { dir = null }
+ if (dir) {
+ // a Windows path from the API is `C:/Users/…`; file:// paths here are `/C:/Users/…`
+ if (/^[A-Za-z]:\//.test(dir)) dir = `/${dir}`
+ await deps.storage?.set({ downloadsDir: dir }).catch(() => {})
+ }
+ return dir
+}
+
+/** The download-relative filename for a path under the downloads folder, or null. */
+export function downloadsRelative(path, dir) {
+ if (!dir || !path) return null
+ const base = dir.replace(/\/+$/, '')
+ if (!path.startsWith(`${base}/`)) return null
+ const rel = path.slice(base.length + 1)
+ return rel && !rel.split('/').includes('..') ? rel : null
+}
+
+function waitForDownload(id, deps) {
+ return new Promise((resolve) => {
+ let settled = false
+ const finish = async () => {
+ if (settled) return
+ settled = true
+ try { deps.downloads.onChanged?.removeListener(onChanged) } catch { /* fine */ }
+ const [item] = (await deps.downloads.search({ id })) ?? []
+ resolve(item ?? null)
+ }
+ const onChanged = (delta) => {
+ if (delta.id !== id || !delta.state) return
+ if (delta.state.current === 'complete' || delta.state.current === 'interrupted') void finish()
+ }
+ deps.downloads.onChanged?.addListener(onChanged)
+ // belt and braces: a download that completed before the listener attached
+ setTimeout(async () => {
+ const [item] = (await deps.downloads.search({ id }).catch(() => [])) ?? []
+ if (item && item.state !== 'in_progress') void finish()
+ }, 300)
+ setTimeout(() => void finish(), 20000)
+ })
+}
+
+/** Is the Downloads door switched off for this Chrome (it prompted once)? */
+export const downloadsUnusable = async (deps = defaultDeps()) => !!(await deps.storage?.get('downloadsUnusable'))?.downloadsUnusable
+export const setDownloadsUnusable = (v, deps = defaultDeps()) => deps.storage?.set({ downloadsUnusable: !!v })
+
+/** Write text to a path under Downloads through the downloads API. Bytes written, or a throw. */
+export async function writeViaDownloads(rel, text, deps = defaultDeps()) {
+ if (!deps.downloads) throw new Error('downloads unavailable')
+ const bytes = new TextEncoder().encode(text)
+ let b64 = ''
+ for (let i = 0; i < bytes.length; i += 0x8000) b64 += String.fromCharCode.apply(null, bytes.subarray(i, i + 0x8000))
+ const url = `data:text/html;base64,${btoa(b64)}`
+ // the download bubble would flash on every autosave; quiet it for the write
+ const ui = deps.setUiOptions
+ if (ui) { try { await ui({ enabled: false }) } catch { /* older Chrome */ } }
+ try {
+ const id = await deps.downloads.download({ url, filename: rel, conflictAction: 'overwrite', saveAs: false })
+ const item = await waitForDownload(id, deps)
+ try { await deps.downloads.erase({ id }) } catch { /* history only */ }
+ if (!item || item.state !== 'complete') {
+ const e = new Error(item?.error ? `download ${item.error}` : 'download did not complete')
+ // USER_CANCELED here means Chrome PROMPTED — "Ask where to save each
+ // file" is on, and the downloads API honours it even with saveAs:false
+ // (measured). This door cannot be silent in that Chrome.
+ if (item?.error === 'USER_CANCELED') e.name = 'DownloadsPrompted'
+ throw e
+ }
+ return bytes.length
+ } finally {
+ if (ui) { try { await ui({ enabled: true }) } catch { /* fine */ } }
+ }
+}
diff --git a/home/webext/src/grantflow.js b/home/webext/src/grantflow.js
new file mode 100644
index 00000000..3aed9325
--- /dev/null
+++ b/home/webext/src/grantflow.js
@@ -0,0 +1,107 @@
+// SPDX-License-Identifier: MIT
+// Copyright (c) 2026 The Bento authors
+//
+// How a document that asks where to save becomes one that never asks —
+// with as little navigating as possible. Shared by the ⌘S offer window and
+// the side panel's button, which run in the extension's own context (the
+// only place a picker may be shown and its handle kept).
+//
+// TWO RULES, both from the maintainer's day of using it: "you need to go
+// back and find the directory again, and often you start at Downloads".
+//
+// 1. GRANT THE FOLDER, NOT THE FILE, whenever Chrome allows it. A document
+// in any subfolder (Documents/Decks, Desktop/teams-test, the Bento
+// folder) gets a folder grant, and every sibling saves silently from
+// then on — one dialog per folder, not one per file. Only a document
+// sitting DIRECTLY in the home folder, Documents, Desktop or Downloads
+// falls back to a file grant: Chrome refuses those four as wholes.
+// 2. OPEN THE PICKER NEAR THE DOCUMENT. `startIn` takes a handle, and the
+// extension holds handles — folder grants and file grants — with known
+// paths. The one sharing the longest path with the document is where the
+// dialog opens (a folder handle opens in itself, a file handle in its
+// parent); with nothing near, the well-known folder the path is under.
+// `id` makes Chrome remember the last folder chosen for these pickers.
+
+import { getGrants, putGrants } from './status.js'
+import { prefixes, learnPrefix } from './db.js'
+import { prefixFor } from './route.js'
+import { listFileGrants, grantPickedFile } from './filegrant.js'
+
+export const PICKER_ID = 'bento-grant'
+
+const segs = (p) => String(p).split('/').filter(Boolean)
+const dirOf = (p) => p.slice(0, p.lastIndexOf('/'))
+
+/** Is this document directly in a folder Chrome will not grant (home, Documents, Desktop, Downloads)? */
+export function inBlockedFolder(path) {
+ const d = dirOf(String(path))
+ return /^\/(Users|home)\/[^/]+(\/(Documents|Desktop|Downloads))?$/.test(d)
+ || /^\/[A-Za-z]:\/Users\/[^/]+(\/(Documents|Desktop|Downloads|OneDrive(\/(Documents|Desktop))?))?$/.test(d)
+}
+
+/** The folder a grant should cover: the document's own folder. */
+export const folderOf = (path) => dirOf(String(path))
+
+const commonDepth = (a, b) => {
+ const x = segs(a), y = segs(b)
+ let i = 0
+ while (i < x.length && i < y.length && x[i] === y[i]) i++
+ return i
+}
+
+/**
+ * Where a picker for this document should open: the held handle nearest to
+ * it, else the well-known folder its path is under. `deps` lets the rig
+ * supply grants without a browser.
+ */
+export async function startInFor(path, deps = {}) {
+ const target = folderOf(path)
+ const cands = []
+ try {
+ const known = await (deps.prefixes ?? prefixes)()
+ for (const dir of await (deps.getGrants ?? getGrants)()) {
+ const at = known[dir.name]
+ if (at) cands.push({ handle: dir, dir: at })
+ }
+ } catch { /* none */ }
+ try {
+ for (const g of await (deps.listFileGrants ?? listFileGrants)()) if (g.path) cands.push({ handle: g.handle, dir: dirOf(g.path) })
+ } catch { /* none */ }
+ let best = null
+ for (const c of cands) {
+ const d = commonDepth(c.dir, target)
+ // only a candidate that shares more than the home itself is "near"
+ if (d >= 3 && (!best || d > best.d)) best = { d, handle: c.handle }
+ }
+ if (best) return best.handle
+ return /\/Downloads\//.test(path) ? 'downloads' : /\/Desktop\//.test(path) ? 'desktop' : 'documents'
+}
+
+/**
+ * Grant the folder a document lives in (or any folder above it that Chrome
+ * will give). The picker opens near the document; the choice is accepted
+ * only when the grant really contains the document — the grant itself
+ * resolves the path (route.js prefixFor). Returns { ok, name } or
+ * { ok:false, reason: 'not-containing'|'denied' }.
+ */
+export async function grantFolderFor(path, deps = {}) {
+ const pick = deps.showDirectoryPicker ?? ((o) => window.showDirectoryPicker(o))
+ const dir = await pick({ mode: 'readwrite', id: PICKER_ID, startIn: await startInFor(path, deps) })
+ if (await dir.requestPermission({ mode: 'readwrite' }) !== 'granted') return { ok: false, reason: 'denied' }
+ const prefix = await (deps.prefixFor ?? prefixFor)(dir, path)
+ if (!prefix) return { ok: false, reason: 'not-containing', name: dir.name }
+ const dirs = await (deps.getGrants ?? getGrants)()
+ let already = false
+ for (const d of dirs) { try { if (await d.isSameEntry(dir)) already = true } catch { /* stale */ } }
+ if (!already) await (deps.putGrants ?? putGrants)([...dirs, dir])
+ await (deps.learnPrefix ?? learnPrefix)(dir.name, prefix)
+ return { ok: true, name: dir.name }
+}
+
+/** Grant just this file — for a document directly in a folder Chrome refuses. The picker opens near it. */
+export async function grantFileFor(path, deps = {}) {
+ const pick = deps.showOpenFilePicker ?? ((o) => window.showOpenFilePicker(o))
+ const [handle] = await pick({ id: PICKER_ID, startIn: await startInFor(path, deps), multiple: false, types: [{ description: 'Bento', accept: { 'text/html': ['.html'] } }] })
+ if (!handle) return { ok: false, reason: 'cancelled' }
+ return (deps.grantPickedFile ?? grantPickedFile)(handle, path)
+}
diff --git a/home/webext/src/home.html b/home/webext/src/home.html
index ffd5e251..b0ada20e 100644
--- a/home/webext/src/home.html
+++ b/home/webext/src/home.html
@@ -48,8 +48,13 @@
/* segmented icons/list control */
.seg { display: flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
flex: none }
+ /* Two drawn icons of one geometry, not two text glyphs: ▦ and ☰ are
+ * different characters whose ink sits at different heights in every font,
+ * so no box could line them up. */
.seg button { border: 0; background: var(--panel); color: var(--dim); font: inherit;
- font-size: 13px; line-height: 1; padding: 6px 9px; cursor: pointer }
+ font-size: 14px; line-height: 1; width: 34px; height: 30px; padding: 0; cursor: pointer;
+ display: inline-flex; align-items: center; justify-content: center }
+ .seg svg { display: block }
.seg button + button { border-inline-start: 1px solid var(--line) }
.seg button:hover { background: var(--hover); color: var(--ink) }
.seg button[aria-pressed="true"] { background: var(--hover); color: var(--ink) }
@@ -140,12 +145,24 @@
var(--hover) 7px, var(--hover) 14px) }
.card.unplaced .cardbody b { opacity: .75 }
- .shot { aspect-ratio: 16/9; background: var(--hover); position: relative; overflow: hidden;
+ .shot { aspect-ratio: 16/9; background: var(--hover); position: relative; overflow: hidden; container-type: inline-size;
border-bottom: 1px solid var(--line) }
.shot iframe { width: 1280px; height: 720px; border: 0; transform-origin: 0 0;
position: absolute; inset-inline-start: 0; top: 0; pointer-events: none }
.shot .glyph { position: absolute; inset: 0; display: grid; place-items: center;
color: var(--dim); font-size: 26px }
+ /* The drawn card: first-slide colours, a few of its words. Scales with the card. */
+ .shot .tcard { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center;
+ gap: .35em; padding: 8% 9%; box-sizing: border-box; text-align: start; font-size: clamp(9px, 5cqw, 14px);
+ overflow: hidden }
+ .shot .tcard { background: var(--panel); color: var(--ink) }
+ .shot .tcard i { display: block; width: 14%; height: 3px; border-radius: 2px; margin-bottom: .3em;
+ background: var(--accent) }
+ .shot .tcard b { font-size: 1.5em; line-height: 1.15; display: -webkit-box; -webkit-line-clamp: 3;
+ -webkit-box-orient: vertical; overflow: hidden }
+ .shot .tcard span { opacity: .75; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
+ overflow: hidden }
+ .card.unplaced .tcard { filter: saturate(.4); opacity: .8 }
.shot .label { position: absolute; inset: 0; display: grid; place-items: center;
color: var(--dim); font-size: 12px }
@@ -181,6 +198,14 @@
document keeps its picture, which is the point of icons-vs-list rather
than pictures-vs-none. */
.grid.as-list { grid-template-columns: 1fr; gap: 5px }
+ /* The recently-edited strip: a heading, a row of cards, then the full grid under its own heading. */
+ /* A folder found on disk but not added: hollow dot. */
+ .scroll.dropping { outline: 2px dashed var(--accent); outline-offset: -8px }
+ .navitem.found .dot { background: none; border: 1.5px solid var(--dim); box-sizing: border-box }
+ .recent { margin-bottom: 22px }
+ .recent h2, .recent-all { font-size: 13px; font-weight: 600; color: var(--dim); letter-spacing: .02em;
+ text-transform: uppercase; margin: 0 0 10px }
+ .recent-all { margin-top: 4px }
.as-list .card { flex-direction: row; align-items: center; gap: 12px;
padding: 6px 10px; border-radius: 9px }
.as-list .card:hover { transform: none; box-shadow: var(--lift) }
@@ -224,6 +249,7 @@
.step small b { color: var(--ink) }
.step.done .num { background: var(--good); color: var(--on-good) }
.step .btn { margin-top: 9px }
+ .step .btns { display: flex; gap: 8px; flex-wrap: wrap }
/* ---------------------------------------------------------------- settings */
.panel { max-width: 44rem }
@@ -293,8 +319,8 @@
with text: at 30 locales a two-word label is two more strings to get
right in each, and the glyphs are the convention people already read. -->
<div class="seg" id="layout" role="group" data-i18n-title="viewLayout">
- <button data-layout="icons" data-i18n-title="viewIcons" aria-pressed="true">▦</button>
- <button data-layout="list" data-i18n-title="viewList" aria-pressed="false">☰</button>
+ <button data-layout="icons" data-i18n-title="viewIcons" aria-pressed="true"><svg width="14" height="14" viewBox="0 0 14 14" aria-hidden="true"><rect x="1" y="1" width="5" height="5" rx="1" fill="currentColor"/><rect x="8" y="1" width="5" height="5" rx="1" fill="currentColor"/><rect x="1" y="8" width="5" height="5" rx="1" fill="currentColor"/><rect x="8" y="8" width="5" height="5" rx="1" fill="currentColor"/></svg></button>
+ <button data-layout="list" data-i18n-title="viewList" aria-pressed="false"><svg width="14" height="14" viewBox="0 0 14 14" aria-hidden="true"><rect x="1" y="2" width="12" height="2" rx="1" fill="currentColor"/><rect x="1" y="6" width="12" height="2" rx="1" fill="currentColor"/><rect x="1" y="10" width="12" height="2" rx="1" fill="currentColor"/></svg></button>
</div>
<span class="grow"></span>
<button class="btn primary" id="new" data-i18n="newDocument"></button>
diff --git a/home/webext/src/home.js b/home/webext/src/home.js
index 6146ed5a..19649b44 100644
--- a/home/webext/src/home.js
+++ b/home/webext/src/home.js
@@ -15,7 +15,10 @@
import { getGrants, putGrants, status } from './status.js'
import { listDocuments, describe, newDocument, duplicate, rename, APPS } from './library.js'
import { prefixFor } from './route.js'
-import { learnPrefix, GRANT, get, put } from './db.js'
+import { learnPrefix, prefixes, recentOpened, GRANT, get, put } from './db.js'
+import { placeFolder, scanDisk, fileUrl, blockedFolders } from './place.js'
+import { listFileGrants, addFileGrant, dropFileGrant, handleIsPath, downloadsUnusable, setDownloadsUnusable } from './filegrant.js'
+import { startInFor } from './grantflow.js'
import { checkForUpdate, pendingUpdate, isSelfManaged, autoCheckEnabled, setAutoCheck } from './update.js'
import { t, localize, LOCALES, localeLabel, localeOverride, setLocale, initI18n }
from './i18n.js'
@@ -46,9 +49,56 @@ import { t, localize, LOCALES, localeLabel, localeOverride, setLocale, initI18n
* `dir.resolve()` agree with the path's own tail. A path that cannot be proven
* to be inside a granted folder teaches nothing.
*/
+/**
+ * Place every unplaced grant by PROBING THE DISK (place.js): the folder's
+ * name under each likely parent, the bytes of one of its documents compared
+ * at that path, the grant asked to confirm. No permission prompt, no
+ * history, nothing from the person — which is why it runs on its own when
+ * the library loads, and first when they press "Find my folders". A folder
+ * it cannot place is simply left for the history survey and the Finder
+ * route; a folder it can is openable before they have wondered why not.
+ *
+ * Once per folder per page load: the fetches are cheap but not free, and a
+ * folder that is not where the guesses look will not be there a second later.
+ */
+const placed = new Set()
+/** The last attempt per folder, for the banner: { probes, found, first } */
+const placement = new Map()
+async function placeFolders({ force = false } = {}) {
+ if (state.fileAccess === false) { console.info('[bento/home] placing: file-URL access is off, nothing to probe with'); return 0 }
+ let learned = 0
+ const known = await prefixes()
+ const grants = await getGrants()
+ for (const dir of grants) {
+ if (known[dir.name] || (!force && placed.has(dir.name))) continue
+ placed.add(dir.name)
+ if (await dir.queryPermission({ mode: 'readwrite' }) !== 'granted') continue
+ // the shallowest document in the grant is the cheapest fingerprint; an
+ // empty grant gets a temporary marker instead (place.js)
+ const probe = state.docs.filter((d) => d.folder === dir.name && !d.scanned).sort((a, b) => a.rel.length - b.rel.length)[0] ?? null
+ try {
+ // Said in the page's console: placement is silent by design, and the
+ // one question when it does nothing is whether the disk answered at all.
+ const tried = []
+ const deps = { fetch: async (u) => { const r = await fetch(u); tried.push(`${r.ok ? 'ok ' : 'no '}${u}`); return r }, prefixFor }
+ const prefix = await placeFolder(dir, probe, known, deps).catch((e) => { tried.push(`threw ${e?.message || e}`); return null })
+ console.info(`[bento/home] placing "${dir.name}":`, prefix ?? 'not found', `(${tried.length} probes)`, tried.slice(0, 12))
+ placement.set(dir.name, { probes: tried.length, found: !!prefix, first: tried[0] ?? '' })
+ if (prefix) { await learnPrefix(dir.name, prefix); known[dir.name] = prefix; learned++ }
+ } catch { /* a guess that cannot be made is not an error */ }
+ }
+ return learned
+}
+
async function locateFolders() {
+ // The disk first: it needs nothing from the person. History only for what
+ // is still unplaced after that.
+ scanned = null
+ const fromDisk = await placeFolders({ force: true })
+ await load()
+ if (!state.docs.some((d) => !d.path)) return { learned: fromDisk, declined: false }
const granted = await chrome.permissions.request({ permissions: ['history'] })
- if (!granted) return { learned: 0, declined: true }
+ if (!granted) return { learned: fromDisk, declined: fromDisk === 0 }
let learned = 0
try {
@@ -77,7 +127,7 @@ async function locateFolders() {
// answered would be taking more than was asked for.
await chrome.permissions.remove({ permissions: ['history'] }).catch(() => {})
}
- return { learned, declined: false }
+ return { learned: learned + fromDisk, declined: false }
}
/**
@@ -197,6 +247,9 @@ const ago = (ms) => {
// documents are drawn within it. Two different words on purpose — they were
// briefly the same one, and "view" then meant two things one line apart.
const state = { docs: [], folder: null, q: '', sort: 'recent', view: 'docs', layout: 'icons' }
+// Readable from the page's console (`__bentoHome.folder`), for a question
+// like "why is the grid drawn this way" without a reload-and-watch.
+globalThis.__bentoHome = state
/**
* Settings is a VIEW here, not a separate page.
@@ -252,21 +305,131 @@ function toast(text) {
}
// ------------------------------------------------------------------ loading
+/**
+ * Documents found on disk WITHOUT a grant (place.js scanDisk): Chrome will
+ * not grant Documents, Desktop or Downloads as a whole, but it will let the
+ * extension read them, so the library lists what is there and opens it by
+ * URL. A grant is what makes a document save in place; until its folder has
+ * one, the card says so and offers it. Scanned once per page load; "Find my
+ * folders" scans again.
+ */
+let scanned = null
+async function scannedDocs({ fresh = false } = {}) {
+ if (state.fileAccess === false) return []
+ if (scanned && !fresh) return scanned
+ let found = []
+ try { found = await scanDisk({ fetch: (u) => fetch(u) }) } catch (e) { console.info('[bento/home] scan failed:', e?.message || e); found = [] }
+ console.info(`[bento/home] scan: ${found.length} documents under the usual places`)
+ // the folders the OS keeps from the browser, for the notice
+ try { state.blocked = await blockedFolders({ fetch: (u) => fetch(u) }) } catch { state.blocked = [] }
+ if (state.blocked.length) console.info('[bento/home] the OS refuses the browser these folders:', state.blocked)
+ // the worker reads this to tell two same-named files apart when a file grant is used
+ chrome.storage.local.set({ lastScan: found.map((f) => f.path).slice(0, 2000) }).catch(() => {})
+ scanned = found.map((f) => ({
+ name: f.name, named: true, base: f.name.replace(/\.bento\.html$/i, ''),
+ folder: f.dir.split('/').filter(Boolean).pop() ?? f.dir, rel: [f.name], path: f.path,
+ handle: diskHandle(f.path, f.name), parent: null, scanned: true, dir: f.dir,
+ }))
+ return scanned
+}
+
+/** A handle-shaped reader over file:// for a document the extension has no grant for. */
+function diskHandle(path, name) {
+ return {
+ name,
+ kind: 'file',
+ async getFile() {
+ const r = await fetch(fileUrl(path))
+ if (!r.ok) throw new Error(`cannot read ${name}`)
+ const blob = await r.blob()
+ const lm = Date.parse(r.headers.get('last-modified') ?? '') || 0
+ return new File([blob], name, { lastModified: lm, type: 'text/html' })
+ },
+ }
+}
+
+/** The mtime of a document on disk from one byte of it: file:// answers a Range with Last-Modified. */
+async function diskModified(path) {
+ try {
+ const r = await fetch(fileUrl(path), { headers: { range: 'bytes=0-0' } })
+ return Date.parse(r.headers.get('last-modified') ?? '') || 0
+ } catch { return 0 }
+}
+
async function load() {
const s = await status()
state.grants = s.folders.length
state.fileAccess = s.files
state.selfManaged = await isSelfManaged()
- const docs = await listDocuments()
+ let docs = await listDocuments()
+ const onDisk = await scannedDocs()
+ // A scan can PLACE a granted folder outright: a found path that ends in
+ // `<folder>/<route>` of an unplaced document, proven by the grant, is its
+ // prefix — no guessing needed. Then the list is taken again, placed.
+ if (onDisk.length && docs.some((d) => !d.path)) {
+ const grants = await getGrants()
+ let learned = false
+ for (const d of docs.filter((x) => !x.path)) {
+ const suffix = `/${d.folder}/${d.rel.join('/')}`
+ const hit = onDisk.find((f) => f.path.endsWith(suffix))
+ const dir = hit && grants.find((g) => g.name === d.folder)
+ if (!dir) continue
+ const prefix = await prefixFor(dir, hit.path).catch(() => null)
+ if (prefix) { await learnPrefix(d.folder, prefix); learned = true }
+ }
+ if (learned) docs = await listDocuments()
+ }
+ // Granted documents first; a found one that is the same file (by path) is
+ // the granted one and is not listed twice. Then the documents OPENED in
+ // this browser that neither covers — dragged in from anywhere.
+ const have = new Set(docs.map((d) => d.path).filter(Boolean))
+ const extra = onDisk.filter((f) => !have.has(f.path))
+ for (const f of extra) have.add(f.path)
+ const opened = await recentOpened().catch(() => ({}))
+ for (const [path, at] of Object.entries(opened)) {
+ if (have.has(path) || !/\.bento\.html$/i.test(path)) continue
+ const name = path.split('/').pop()
+ const dir = path.slice(0, path.lastIndexOf('/'))
+ extra.push({ name, named: true, base: name.replace(/\.bento\.html$/i, ''), folder: dir.split('/').filter(Boolean).pop() ?? dir, rel: [name], path, handle: diskHandle(path, name), parent: null, scanned: true, dir, openedAt: at })
+ }
+ // A found document with a FILE grant of its own is added, not "not added":
+ // the badge and the menu follow the grant, whichever way it was made. And
+ // a file grant the scan never saw (a folder it cannot read — macOS asks
+ // the browser for Documents access separately — or deeper than it walks)
+ // is listed FROM the grant: the handle reads its title and card, the path
+ // opens it.
+ const grants = await listFileGrants().catch(() => [])
+ const fileGranted = new Set(grants.map((g) => g.path).filter(Boolean))
+ for (const d of extra) if (fileGranted.has(d.path)) d.granted = true
+ for (const g of grants) {
+ if (g.path && have.has(g.path)) continue
+ const dir = g.path ? g.path.slice(0, g.path.lastIndexOf('/')) : ''
+ extra.push({
+ name: g.name, named: /\.bento\.html$/i.test(g.name), base: g.name.replace(/\.bento\.html$/i, '').replace(/\.html?$/i, ''),
+ folder: dir ? (dir.split('/').filter(Boolean).pop() ?? dir) : t('setFilesTitle'), rel: [g.name], path: g.path ?? null,
+ handle: g.handle, parent: null, scanned: true, granted: true, dir,
+ })
+ if (g.path) have.add(g.path)
+ }
// Read mtimes once, here, rather than per render: sorting needs them and the
// grid is re-rendered on every keystroke of the search box.
- state.docs = await Promise.all(docs.map(async (d) => {
- let modified = 0
- try { modified = (await d.handle.getFile()).lastModified } catch { /* vanished mid-list */ }
- return { ...d, modified }
- }))
+ state.docs = await Promise.all([
+ ...docs.map(async (d) => {
+ let modified = 0
+ try { modified = (await d.handle.getFile()).lastModified } catch { /* vanished mid-list */ }
+ return { ...d, modified, openedAt: d.path ? opened[d.path] ?? 0 : 0 }
+ }),
+ ...extra.map(async (d) => ({ ...d, modified: d.path ? await diskModified(d.path) : 0, openedAt: d.openedAt ?? (d.path ? opened[d.path] ?? 0 : 0) })),
+ ])
renderSidebar()
renderGrid()
+ // A folder nobody has opened a document from yet: try to place it now,
+ // quietly, and redraw when that works — the cards go from "cannot open"
+ // to open, with nothing asked.
+ if (state.docs.some((d) => !d.path) && await placeFolders()) {
+ await load()
+ await renderNotice()
+ }
}
// ------------------------------------------------------------------ sidebar
@@ -279,9 +442,12 @@ function renderSidebar() {
const host = $('folders')
host.innerHTML = ''
+ const grantedFolders = new Set(state.docs.filter((d) => !d.scanned || d.granted).map((d) => d.folder))
for (const [folder, n] of byFolder) {
const b = document.createElement('button')
b.className = 'navitem'
+ // Found on disk but not added: a hollow dot, and the reason on hover.
+ if (!grantedFolders.has(folder)) { b.classList.add('found'); b.title = t('folderFoundTip') }
b.setAttribute('aria-current', String(state.folder === folder))
b.innerHTML = `<span class="dot"></span> ${esc(folder)} <span class="n">${n}</span>`
b.addEventListener('click', () => { state.folder = folder; show('docs') })
@@ -377,7 +543,7 @@ function surveyPanel(onDone) {
// choice, in a real dialog, and an extension cannot pre-select a path
// — `startIn` takes a well-known name or an existing handle, never an
// arbitrary one. So the proposal is a signpost, not a shortcut.
- const dir = await window.showDirectoryPicker({ mode: 'readwrite', startIn: 'documents' })
+ const dir = await window.showDirectoryPicker({ mode: 'readwrite', id: 'bento-grant', startIn: 'documents' })
await dir.requestPermission({ mode: 'readwrite' })
const dirs = await getGrants()
for (const existing of dirs) if (await existing.isSameEntry(dir)) { add.disabled = false; return }
@@ -428,10 +594,17 @@ function firstRun() {
steps.appendChild(s)
}
- const pick = document.createElement('button')
- pick.className = 'btn primary'
- pick.textContent = t('chooseFolder')
- pick.onclick = () => $('addFolder').click()
+ const pick = document.createElement('span')
+ pick.className = 'btns'
+ const make = document.createElement('button')
+ make.className = 'btn primary'
+ make.textContent = t('bentoFolderBtn')
+ make.onclick = () => createBentoFolder()
+ const choose = document.createElement('button')
+ choose.className = 'btn'
+ choose.textContent = t('chooseFolder')
+ choose.onclick = () => $('addFolder').click()
+ pick.append(make, choose)
step(1, !!state.grants, t('setupStep1'), t('setupStep1Note'), pick)
// The survey belongs HERE most of all. On a fresh install the answer to "which
// folder?" is knowable — the browser has the paths — and asking somebody to
@@ -503,7 +676,12 @@ function renderGrid() {
return
}
- for (const d of docs) {
+ for (const d of docs) grid.appendChild(makeCard(d))
+}
+
+/** One document card; every grid builds its cards here. */
+function makeCard(d) {
+ {
const card = document.createElement('button')
card.className = 'card'
// TWO different absences looked identical, and one of them is not a
@@ -512,8 +690,10 @@ function renderGrid() {
// while a document with no path cannot be opened at all. Both used to be a
// pale card with a grey glyph, so five perfectly good documents read as
// broken. The states now say which they are, in words.
+ // Not DISABLED: a dead card explains nothing. A click on one says why it
+ // cannot open, tries to place the folder there and then, and points at
+ // the two routes that always work.
if (!d.path) {
- card.disabled = true
card.classList.add('unplaced')
card.title = t('cardUnplacedTip', d.folder)
}
@@ -534,13 +714,85 @@ function renderGrid() {
`<span>${esc(d.folder)} · ${esc(ago(d.modified))}</span>` +
`</span><span class="more" title="More">⋯</span></span>`
if (!d.named) badge(card, '.html', t('badgeRenamed'))
+ if (d.scanned && !d.granted) badge(card, t('badgeNotAdded'), t('badgeNotAddedTip'))
card.addEventListener('click', (ev) => {
if (ev.target.closest('.more')) { ev.stopPropagation(); openMenu(d, ev); return }
+ if (!d.path) { void explainUnplaced(d); return }
openDoc(d)
})
- grid.appendChild(card)
void decorate(card, d)
+ return card
+ }
+}
+
+/**
+ * Grant the folder a found document sits in, so it saves in place. The
+ * picker has to be worked by the person (Chrome insists), but it opens in
+ * Documents and the toast names the folder to pick; the grant is then
+ * checked against THIS document's path and placed at once — no probing.
+ */
+async function addFolderFor(d) {
+ toast(t('pickThisFolder', d.folder))
+ let dir
+ try {
+ dir = await window.showDirectoryPicker({ mode: 'readwrite', id: 'bento-grant', startIn: await startInFor(d.path) })
+ } catch (e) { if (e?.name !== 'AbortError') toast(e.message); return }
+ const prefix = await prefixFor(dir, d.path).catch(() => null)
+ if (!prefix) { toast(t('pickedWrongFolder', dir.name, d.folder)); return }
+ const dirs = await getGrants()
+ for (const existing of dirs) if (await existing.isSameEntry(dir)) { toast(t('folderAlreadyAdded', dir.name)); return }
+ await putGrants([...dirs, dir])
+ await learnPrefix(dir.name, prefix)
+ scanned = null
+ await load()
+ await renderNotice()
+ toast(t('surveyAdded', dir.name))
+}
+
+/** A still card from a document's first slide (library.js cardFrom): no scripts, no markup from the file. */
+function titleCard(card) {
+ const el = document.createElement('span')
+ el.className = 'tcard'
+ if (card.bg) el.style.background = card.bg
+ if (card.ink) el.style.color = card.ink
+ const bar = document.createElement('i')
+ if (card.accent) bar.style.background = card.accent
+ el.appendChild(bar)
+ const lines = [...card.lines].sort((a, b) => (b.size || 0) - (a.size || 0))
+ const head = card.lines.find((l) => l.role === 'title') ?? lines[0]
+ if (head) {
+ const h = document.createElement('b')
+ h.textContent = head.text
+ el.appendChild(h)
+ }
+ for (const l of card.lines.filter((x) => x !== head).slice(0, 2)) {
+ const p = document.createElement('span')
+ p.textContent = l.text
+ el.appendChild(p)
+ }
+ return el
+}
+
+/**
+ * A click on a document whose folder has no known place: try the disk once
+ * more, right now, and open it if that works; otherwise say what would.
+ */
+let explaining = false
+async function explainUnplaced(d) {
+ if (explaining) return
+ explaining = true
+ toast(t('placingFolder', d.folder))
+ try {
+ if (await placeFolders({ force: true })) {
+ await load()
+ await renderNotice()
+ const fresh = state.docs.find((x) => x.folder === d.folder && x.rel.join('/') === d.rel.join('/'))
+ if (fresh?.path) { openDoc(fresh); return }
+ }
+ toast(t('cardUnplacedTip', d.folder))
+ } finally {
+ explaining = false
}
}
@@ -573,10 +825,11 @@ async function decorate(card, d) {
return
}
if (!meta.preview) {
- // Not a failure, and it should not look like one. A shell has its
- // page-one render written in on the FIRST SAVE, so a document that has
- // never been saved — including every one `+ New document` creates — has
- // nothing to show yet, and says so instead of sitting there blank.
+ // No page-one render (that is written in on the FIRST SAVE) — so a
+ // card is drawn from the document's own first slide: its background,
+ // its words, its theme. Only a document we cannot read at all is left
+ // to say so in words.
+ if (meta.card) { shot.replaceChildren(titleCard(meta.card)); return }
if (d.path) shot.innerHTML = `<span class="label">${t('notSavedYet')}</span>`
return
}
@@ -626,12 +879,13 @@ function openMenu(d, ev) {
}
if (d.path) item(t('menuOpen'), () => openDoc(d))
- item(t('menuDuplicate'), async () => {
+ if (d.scanned && !d.granted) item(t('menuAddFolder'), () => addFolderFor(d))
+ if (!d.scanned) item(t('menuDuplicate'), async () => {
const made = await duplicate(d)
toast(t('duplicatedAs', made.base))
await load()
})
- item(t('menuRename'), async () => {
+ if (!d.scanned) item(t('menuRename'), async () => {
const next = prompt(t('renamePrompt'), d.title ?? d.base)
if (next == null) return
const made = await rename(d, next)
@@ -703,6 +957,12 @@ async function renderNotice() {
if (lapsed.length) {
say('bad', t('noticeLapsed', lapsed.length))
}
+ // macOS keeps Documents/Desktop/Downloads from the browser until the person
+ // allows it in System Settings; the browser cannot ask again itself.
+ if (state.blocked?.length) {
+ const names = state.blocked.map((p) => p.split('/').pop()).join(', ')
+ say('meh', `${t('noticeOsBlocked', esc(names))}<br><code>${t('noticeOsBlockedPath')}</code>`)
+ }
// The one that unlocks opening. Said here in full, because the page has room
// for the reason and the popup does not.
const unplaced = [...new Set(state.docs.filter((d) => !d.path).map((d) => d.folder))]
@@ -710,6 +970,19 @@ async function renderNotice() {
const el = document.createElement('div')
el.className = 'notice'
el.innerHTML = t('noticeUnplaced', esc(unplaced.join(', ')))
+ // What the disk probe did, in words, so "nothing happens" has a reason:
+ // how many places were tried, or that the disk refused to answer at all.
+ for (const name of unplaced) {
+ const p = placement.get(name)
+ if (!p) continue
+ const line = document.createElement('p')
+ line.className = 'sub'
+ line.style.margin = '6px 0 0'
+ line.textContent = p.probes === 0 || /^no file:\/\/\/(Users|home|C:)/.test(p.first) && p.probes <= 4
+ ? t('placeNoDisk', name)
+ : t('placeTried', name, p.probes)
+ el.appendChild(line)
+ }
const go = document.createElement('button')
go.className = 'btn primary'
go.style.marginTop = '9px'
@@ -895,20 +1168,132 @@ addEventListener('keydown', (e) => {
}
})
+/**
+ * Keep a grant the person just made: stored, placed straight away (an empty
+ * folder is placed through a marker file — place.js), and — when asked —
+ * made the folder new documents go to.
+ */
+async function adoptGrant(dir, { asDefault = false } = {}) {
+ await dir.requestPermission({ mode: 'readwrite' })
+ const dirs = await getGrants()
+ let already = false
+ for (const existing of dirs) if (await existing.isSameEntry(dir)) already = true
+ if (!already) await putGrants([...dirs, dir])
+ if (asDefault) await put(GRANT, 'defaultFolder', dir.name)
+ scanned = null
+ await load()
+ await placeFolders({ force: true })
+ await load()
+ await renderNotice()
+}
+
$('addFolder').addEventListener('click', async () => {
try {
- const dir = await window.showDirectoryPicker({ mode: 'readwrite' })
- await dir.requestPermission({ mode: 'readwrite' })
- const dirs = await getGrants()
- for (const existing of dirs) if (await existing.isSameEntry(dir)) return
- await putGrants([...dirs, dir])
- await load()
- await renderNotice()
+ // Chrome refuses the home folder itself, Desktop, Documents and Downloads
+ // as wholes with its own "contains system files" dialog, and there is no
+ // way around it from here — so the picker opens in Documents, where the
+ // folder it WILL accept is one level down, and the set-up note says so.
+ const dir = await window.showDirectoryPicker({ mode: 'readwrite', id: 'bento-grant' })
+ await adoptGrant(dir)
} catch (e) {
if (e?.name !== 'AbortError') toast(e.message)
}
})
+/**
+ * THE BENTO FOLDER. Most people save into Documents or Downloads and never
+ * make a folder — and those are the two Chrome will not grant. So the
+ * extension offers to make one: the picker opens in Documents with the
+ * instruction to create "Bento" and choose it (the dialog's own New Folder
+ * button; the extension cannot write into Documents itself), the grant is
+ * kept as the DEFAULT for new documents, and it is placed at once. A
+ * document made from bento/home then lives somewhere that never prompts.
+ */
+async function createBentoFolder() {
+ toast(t('bentoFolderHow'))
+ let dir
+ try {
+ dir = await window.showDirectoryPicker({ mode: 'readwrite', id: 'bento-grant', startIn: 'documents' })
+ } catch (e) { if (e?.name !== 'AbortError') toast(e.message); return null }
+ await adoptGrant(dir, { asDefault: true })
+ toast(t('bentoFolderMade', dir.name))
+ return dir
+}
+
+/**
+ * DROP TO GRANT. A file or folder dragged from the Finder onto the library
+ * yields a real handle with no dialog at all (`getAsFileSystemHandle`) —
+ * the cheapest grant there is. A folder becomes a folder grant; a document
+ * becomes a FILE grant, kept in the extension's own storage, and matched to
+ * its path when the scan knows a same-named file with the same bytes. Chrome's
+ * blocklist still applies to what is dropped: Documents itself cannot be
+ * dropped, a folder inside it can.
+ */
+async function dropToGrant(ev) {
+ const items = [...(ev.dataTransfer?.items ?? [])].filter((i) => i.kind === 'file')
+ if (!items.length) return
+ ev.preventDefault()
+ let folders = 0
+ let files = 0
+ // Every way a drop can come to nothing is said, in the console and the
+ // toast — "nothing happened" is the one outcome that must not be silent.
+ const say = (why) => { console.info('[bento/home] drop:', why); toast(why) }
+ // handles must be taken from the items SYNCHRONOUSLY in the drop event —
+ // after an await the DataTransfer is empty (measured in Chrome)
+ const pending = items.map((item) => ({ name: item.getAsFile?.()?.name ?? '', handle: item.getAsFileSystemHandle?.() ?? null }))
+ for (const { name, handle: p } of pending) {
+ let handle = null
+ try { handle = await p } catch (e) { say(`${name}: ${e?.message || e}`); continue }
+ if (!handle) { say(t('dropNoHandle', name)); continue }
+ try {
+ if (handle.kind === 'directory') {
+ await adoptGrant(handle)
+ folders++
+ } else if (/\.bento\.html$/i.test(handle.name)) {
+ if (await handle.requestPermission({ mode: 'readwrite' }) !== 'granted') { say(t('fgDenied')); continue }
+ // its path, when a scanned file of that name is the same bytes
+ // bound to a path only when exactly ONE same-named file on disk has
+ // these bytes; a twin leaves it unbound (and unusable until the
+ // twins differ), never guessed
+ const matches = []
+ for (const d of await scannedDocs()) {
+ if (d.name === handle.name && await handleIsPath(handle, d.path)) matches.push(d.path)
+ }
+ const path = matches.length === 1 ? matches[0] : null
+ if (matches.length > 1) say(t('dropTwins', handle.name, matches.length))
+ await addFileGrant(handle, path)
+ console.info('[bento/home] drop: file grant', handle.name, path ?? '(path unknown)')
+ files++
+ } else {
+ say(t('dropNotBento', handle.name))
+ }
+ } catch (e) { say(`${handle.name}: ${e?.message || e}`) }
+ }
+ if (folders || files) {
+ toast(t('droppedGranted', folders, files))
+ await load()
+ await renderNotice()
+ }
+}
+{
+ // The WHOLE page, not just the grid: a drop that misses the grid would
+ // otherwise be the browser's default — navigating this tab to the file —
+ // which looks like the grant was taken when nothing happened.
+ const scroll = document.querySelector('.scroll')
+ const hasFiles = (ev) => [...(ev.dataTransfer?.items ?? [])].some((i) => i.kind === 'file')
+ document.addEventListener('dragover', (ev) => {
+ if (hasFiles(ev)) { ev.preventDefault(); ev.dataTransfer.dropEffect = 'link'; scroll.classList.add('dropping') }
+ })
+ document.addEventListener('dragleave', (ev) => { if (!ev.relatedTarget) scroll.classList.remove('dropping') })
+ document.addEventListener('drop', (ev) => { scroll.classList.remove('dropping'); if (hasFiles(ev)) { ev.preventDefault(); void dropToGrant(ev) } })
+}
+
+/** The grant new documents go to: the one chosen as default, else the first. */
+async function defaultGrant(grants) {
+ const name = await get(GRANT, 'defaultFolder')
+ return grants.find((g) => g.name === name) ?? grants[0]
+}
+
/**
* Which Bento to make.
*
@@ -924,8 +1309,8 @@ $('new').addEventListener('click', async (ev) => {
// A new document appearing in a folder you are not looking at is a small
// mystery, and mysteries are what a file manager exists to prevent.
const target = state.folder
- ? grants.find((g) => g.name === state.folder) ?? grants[0]
- : grants[0]
+ ? grants.find((g) => g.name === state.folder) ?? await defaultGrant(grants)
+ : await defaultGrant(grants)
closeMenu()
const m = document.createElement('div')
@@ -1081,6 +1466,7 @@ async function renderSettings() {
// --- folders
const folders = section(t('navFolders'), t('setFoldersSub'))
+ const defaultName = await get(GRANT, 'defaultFolder')
if (!dirs.length) {
const p = document.createElement('p')
p.className = 'dim'
@@ -1092,7 +1478,7 @@ async function renderSettings() {
const row = document.createElement('div')
row.className = 'row'
row.innerHTML = `<span class="dot ${granted ? 'ok' : 'bad'}"></span><b>${esc(dir.name)}</b>`
- + `<span class="note">${granted ? t('savesInPlace') : t('needsReconnecting')}</span>`
+ + `<span class="note">${granted ? t('savesInPlace') : t('needsReconnecting')}${dir.name === defaultName ? ` · ${t('defaultFolder')}` : ''}</span>`
if (!granted) {
const renew = document.createElement('button')
renew.className = 'btn'
@@ -1121,6 +1507,86 @@ async function renderSettings() {
add.textContent = t('addFolder')
add.onclick = () => $('addFolder').click()
folders.appendChild(add)
+ const make = document.createElement('button')
+ make.className = 'btn'
+ make.style.marginInlineStart = '8px'
+ make.textContent = t('bentoFolderBtn')
+ make.title = t('bentoFolderTip')
+ make.onclick = () => createBentoFolder()
+ folders.appendChild(make)
+
+ // --- the Downloads door, when this Chrome shut it by prompting
+ if (await downloadsUnusable().catch(() => false)) {
+ const dl = section(t('setDownloadsTitle'), t('setDownloadsSub'))
+ const row = document.createElement('div')
+ row.className = 'row'
+ row.innerHTML = `<span class="dot bad"></span><b>${esc(t('setDownloadsOff'))}</b>`
+ + `<span class="note"><a href="#" id="dlSettings">chrome://settings/downloads</a></span>`
+ row.querySelector('#dlSettings').onclick = (ev) => { ev.preventDefault(); chrome.tabs.create({ url: 'chrome://settings/downloads' }) }
+ const again = document.createElement('button')
+ again.className = 'btn'
+ again.textContent = t('setDownloadsRetry')
+ again.onclick = () => act(async () => { await setDownloadsUnusable(false) })
+ row.appendChild(again)
+ dl.appendChild(row)
+ }
+
+ // --- files saving in place on their own (filegrant.js)
+ const fileGrants = await listFileGrants().catch(() => [])
+ {
+ const filesSec = section(t('setFilesTitle'), t('setFilesSub'))
+ // Many at once: one OS dialog, every deck in Documents selected, done —
+ // the cheapest form of "once per file" Chrome allows.
+ const addFiles = document.createElement('button')
+ addFiles.className = 'btn'
+ addFiles.textContent = t('addFiles')
+ addFiles.onclick = async () => {
+ let handles = []
+ try {
+ handles = await window.showOpenFilePicker({ multiple: true, id: 'bento-grant', types: [{ description: 'Bento', accept: { 'text/html': ['.html'] } }] })
+ } catch (e) { if (e?.name !== 'AbortError') toast(e.message); return }
+ let n = 0
+ for (const h of handles) {
+ if (!/\.bento\.html$/i.test(h.name)) { toast(t('dropNotBento', h.name)); continue }
+ if (await h.requestPermission({ mode: 'readwrite' }) !== 'granted') continue
+ const matches = []
+ for (const d of await scannedDocs()) if (d.name === h.name && await handleIsPath(h, d.path)) matches.push(d.path)
+ if (matches.length > 1) toast(t('dropTwins', h.name, matches.length))
+ await addFileGrant(h, matches.length === 1 ? matches[0] : null)
+ n++
+ }
+ if (n) { toast(t('droppedGranted', 0, n)); await load(); await renderSettings() }
+ }
+ filesSec.appendChild(addFiles)
+ if (!fileGrants.length) {
+ const p = document.createElement('p')
+ p.className = 'dim'
+ p.textContent = t('noneYet')
+ filesSec.appendChild(p)
+ }
+ for (const g of fileGrants) {
+ let perm = 'denied'
+ try { perm = await g.handle.queryPermission({ mode: 'readwrite' }) } catch { /* gone */ }
+ const granted = perm === 'granted'
+ const row = document.createElement('div')
+ row.className = 'row'
+ row.innerHTML = `<span class="dot ${granted ? 'ok' : 'bad'}"></span><b>${esc(g.name)}</b>`
+ + `<span class="note path">${esc(g.path ?? '')}${g.path ? ' · ' : ''}${granted ? t('savesInPlace') : t('needsReconnecting')}</span>`
+ if (!granted) {
+ const renew = document.createElement('button')
+ renew.className = 'btn'
+ renew.textContent = t('reconnect')
+ renew.onclick = () => act(async () => { await g.handle.requestPermission({ mode: 'readwrite' }) })
+ row.appendChild(renew)
+ }
+ const drop = document.createElement('button')
+ drop.className = 'btn'
+ drop.textContent = t('remove')
+ drop.onclick = () => act(async () => { await dropFileGrant(g.key) })
+ row.appendChild(drop)
+ filesSec.appendChild(row)
+ }
+ }
// --- the language, which Chrome will not let you change on macOS
//
diff --git a/home/webext/src/library.js b/home/webext/src/library.js
index ff012bdb..c08cfa89 100644
--- a/home/webext/src/library.js
+++ b/home/webext/src/library.js
@@ -150,7 +150,9 @@ export async function listDocuments(deps = {}) {
/** Cache key. Includes size and mtime so an edited document re-reads itself,
* and nothing has to be invalidated by hand. */
-const keyFor = (doc, file) => `${doc.folder}/${doc.rel.join('/')}:${file.size}:${file.lastModified}`
+// `v2`: the meta gained `card` (the drawn title card); an entry cached before
+// that would be served without one forever, since the file has not changed.
+const keyFor = (doc, file) => `v2:${doc.folder}/${doc.rel.join('/')}:${file.size}:${file.lastModified}`
/**
* What a document is called, and what its first page looks like.
@@ -204,8 +206,15 @@ export async function describe(doc, deps = {}) {
text = extractText(whole)
}
+ // A shell that has never been saved has no preview render, and so did
+ // every fixture on the maintainer's screen: 28 identical grey cards. The
+ // document itself is right there, though — so a still card is drawn from
+ // its first slide: background, a few lines of its words, the theme's ink.
+ const card = !encrypted && !preview ? cardFrom(await file.text()) : null
+
const meta = {
title: title ? title.replace(/\\(.)/g, '$1') : doc.base,
+ card,
app,
// What the document SAYS, so search can find a deck by a phrase on a slide
// rather than only by what somebody happened to call the file. Free in I/O:
@@ -221,6 +230,49 @@ export async function describe(doc, deps = {}) {
return meta
}
+/**
+ * A title card out of the document block, for a card with no preview: the
+ * first (non-state) slide's background, the theme's text colour and accent,
+ * and the first few pieces of text on that slide, tags stripped. Null when
+ * the block is not a deck we can read — a card without a picture is still a
+ * card. Read from the JSON, not from any markup the file carries.
+ */
+export function cardFrom(whole) {
+ try {
+ const i = whole.indexOf(MARKER)
+ if (i === -1) return null
+ const open = whole.indexOf('>', i)
+ const close = whole.indexOf('</script', open)
+ if (open === -1 || close === -1) return null
+ const doc = JSON.parse(whole.slice(open + 1, close))
+ const slides = Array.isArray(doc?.slides) ? doc.slides : []
+ const first = slides.find((sl) => sl && typeof sl === 'object' && !sl.stateOf) ?? slides[0]
+ if (!first) return null
+ const colour = (v, fallback) => (typeof v === 'string' && /^(#[0-9a-f]{3,8}|rgba?\(|hsla?\(|[a-z]{3,20}$)/i.test(v.trim()) ? v.trim() : fallback)
+ const theme = doc.theme && typeof doc.theme === 'object' ? doc.theme : {}
+ const lines = []
+ const strip = (h) => String(h).replace(/<[^>]*>/g, ' ').replace(/&nbsp;/g, ' ').replace(/&amp;/g, '&').replace(/&lt;/g, '<').replace(/&gt;/g, '>').replace(/\s+/g, ' ').trim()
+ const visit = (v) => {
+ if (lines.length >= 4) return
+ if (Array.isArray(v)) { for (const x of v) visit(x); return }
+ if (!v || typeof v !== 'object') return
+ if (v.type === 'text' && !v.placeholder) {
+ const w = strip(v.md ?? v.html ?? '')
+ if (w) lines.push({ text: w.slice(0, 120), role: typeof v.role === 'string' ? v.role : '', size: typeof v.fontSize === 'number' ? v.fontSize : 0 })
+ }
+ }
+ visit(first.elements)
+ // Absent colours are left null: the card falls back to the UI palette
+ // (ui.css), never to a literal of its own.
+ return {
+ bg: colour(first.background, colour(theme.background, null)),
+ ink: colour(theme.color, null),
+ accent: colour(theme.accent, null),
+ lines,
+ }
+ } catch { return null }
+}
+
/** How much extracted prose to keep per document. Enough for any phrase
* somebody would search for; far short of storing the document twice. */
const TEXT_BUDGET = 40 * 1024
diff --git a/home/webext/src/page-bridge.js b/home/webext/src/page-bridge.js
index ab0853f5..6e32b83b 100644
--- a/home/webext/src/page-bridge.js
+++ b/home/webext/src/page-bridge.js
@@ -29,16 +29,17 @@
const pending = new Map()
/** One round trip to the isolated world, which relays to the extension. */
- const ask = (op, payload) =>
+ const ask = (op, payload, timeoutMs = 5000) =>
new Promise((resolve) => {
const id = `${Date.now()}-${seq++}`
pending.set(id, resolve)
window.postMessage({ [CH]: true, dir: 'req', id, op, payload }, '*')
// A host that never answers must not hang a save forever — the caller
- // falls back to the native picker instead.
+ // falls back to the native picker instead. (A claim that is waiting on
+ // the extension's own window gets as long as a dialog takes.)
setTimeout(() => {
if (pending.delete(id)) resolve({ ok: false, reason: 'timeout' })
- }, 5000)
+ }, timeoutMs)
})
window.addEventListener('message', (ev) => {
@@ -183,8 +184,19 @@
const blob = chunks.length === 1 && chunks[0] instanceof Blob ? chunks[0] : new Blob(chunks)
const text = await blob.text()
const res = await ask(op, { text, ...extra })
+ if (!res?.ok && res?.retry === 'native' && native) {
+ // The extension's door shut mid-save (Chrome prompted for a
+ // download). Finish THIS save the way the browser would with no
+ // extension — its own picker — rather than lose the bytes.
+ console.info('[bento/home]', op, 'fell back to the browser picker:', res.reason)
+ const h = await native(forNative({ suggestedName: name }))
+ const w = await h.createWritable()
+ await w.write(blob)
+ await w.close()
+ return
+ }
if (!res?.ok) throw new DOMException(res?.reason || 'write failed', 'NotAllowedError')
- console.info('[bento/home]', op, res.name ?? name, `(${res.bytes} bytes)`)
+ console.info('[bento/home]', op, res.name ?? name, `(${res.bytes} bytes${res.via ? `, via ${res.via}` : ''})`)
},
}
},
@@ -214,7 +226,11 @@
// browser stamps and this page cannot forge. A local HTML file is untrusted
// content, and one that could name its own target could name someone else's
// deck in the granted folder.
- const claim = await ask('claim')
+ let claim = await ask('claim')
+ // Nothing covers this file yet and the extension is asking the person,
+ // in its own window, whether it may from now on. Wait for that answer
+ // the way a native picker is waited for; a decline lands in the picker.
+ if (claim?.reason === 'setup' && claim.token) claim = await ask('claim', { token: claim.token }, 120000)
if (!claim?.ok) {
// Say WHY. Falling through to the native picker is the safe outcome, but
// an unexplained dialog is indistinguishable from the extension not being
diff --git a/home/webext/src/panel.html b/home/webext/src/panel.html
index 01dfed58..2f498fe6 100644
--- a/home/webext/src/panel.html
+++ b/home/webext/src/panel.html
@@ -57,6 +57,12 @@
/* --- everything below is plumbing, and looks like it --- */
footer { border-top: 1px solid var(--line); padding: 9px 14px 12px; margin-top: 6px;
flex: none }
+ .thisdoc { border-top: 1px solid var(--line); padding: 9px 14px; flex: none }
+ .thisdoc .row { display: flex; align-items: center; gap: 8px }
+ .thisdoc .grow { flex: 1; min-width: 0; display: flex; flex-direction: column }
+ .thisdoc b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
+ .thisdoc span span { color: var(--dim); font-size: 12px }
+ /* dot colours come from ui.css (.dot.ok / .dot.bad) */
.status { display: flex; gap: 8px; align-items: center; color: var(--dim); font-size: 12px }
.status .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis;
white-space: nowrap }
@@ -79,6 +85,16 @@
<div class="docs" id="docs"></div>
<div class="empty" id="empty" hidden></div>
+<!-- THE DOCUMENT IN THE ACTIVE TAB: how it saves, and the one button that
+ makes it save in place when nothing covers it yet. The picker runs here,
+ in the extension's own context, which is the only place it may. -->
+<section class="thisdoc" id="thisdoc" hidden>
+ <div class="row">
+ <span class="dot" id="tdDot"></span>
+ <span class="grow"><b id="tdName"></b><span id="tdState"></span></span>
+ <button class="btn" id="tdGrant" hidden data-i18n="tdGrant"></button>
+ </div>
+</section>
<footer>
<div class="status">
<span class="dot" id="dot"></span>
diff --git a/home/webext/src/panel.js b/home/webext/src/panel.js
index c5e7be7d..8521af04 100644
--- a/home/webext/src/panel.js
+++ b/home/webext/src/panel.js
@@ -12,6 +12,7 @@
import { getGrants, putGrants, status, setLapsedBadge } from './status.js'
import { t, localize, initI18n } from './i18n.js'
import { listDocuments, describe, newDocument } from './library.js'
+import { inBlockedFolder, folderOf, grantFolderFor, grantFileFor } from './grantflow.js'
const $ = (id) => document.getElementById(id)
const esc = (s) => String(s).replace(/[&<>"]/g, (c) => (
@@ -267,3 +268,67 @@ await initI18n()
localize()
await renderStatus()
await renderDocs()
+
+
+// ---------------------------------------------------------------- this document
+//
+// The document in the ACTIVE tab: how it saves, in words — and, when nothing
+// covers it, the button that fixes that. The button runs the OS file picker
+// here, in the extension's own context and gesture, which is the only place
+// a handle may be taken and kept; the worker proves the picked file is the
+// one in the tab (bytes and mtime) before it is stored. This is the "why is
+// there no button for a double-clicked file" answer: there is, and it sits
+// beside the document.
+let tdPath = null
+async function renderThisDoc() {
+ const box = $('thisdoc')
+ let tab = null
+ try { [tab] = await chrome.tabs.query({ active: true, lastFocusedWindow: true }) } catch { tab = null }
+ const url = tab?.url ?? ''
+ if (!/^file:.*\.bento\.html$/i.test(url)) { box.hidden = true; tdPath = null; return }
+ let r = null
+ try { r = await chrome.runtime.sendMessage({ op: 'save.status', url }) } catch { r = null }
+ box.hidden = false
+ const name = decodeURIComponent(url.split('/').pop())
+ $('tdName').textContent = name
+ tdPath = r?.path ?? decodeURIComponent(new URL(url).pathname)
+ const dot = $('tdDot')
+ const btn = $('tdGrant')
+ if (r?.ok) {
+ dot.className = 'dot ok'
+ $('tdState').textContent = r.via === 'folder' ? t('tdViaFolder') : r.via === 'file' ? t('tdViaFile') : t('tdViaDownloads')
+ btn.hidden = true
+ } else {
+ dot.className = 'dot bad'
+ $('tdState').textContent = r?.reason === 'file grant needs renewing' ? t('needsReconnecting') : t('tdNotYet')
+ btn.hidden = false
+ // the folder when Chrome allows it — every sibling then saves too
+ const folder = folderOf(tdPath).split('/').filter(Boolean).pop() ?? ''
+ btn.textContent = inBlockedFolder(tdPath) ? t('tdGrant') : t('tdGrantFolder', folder)
+ }
+}
+$('tdGrant').addEventListener('click', async () => {
+ if (!tdPath) return
+ const btn = $('tdGrant')
+ btn.disabled = true
+ try {
+ $('tdState').textContent = '…'
+ const r = inBlockedFolder(tdPath) ? await grantFileFor(tdPath) : await grantFolderFor(tdPath)
+ if (!r.ok) {
+ $('tdState').textContent = r.reason === 'denied' ? t('fgDenied')
+ : r.reason === 'not-containing' ? t('fgNotContaining', r.name ?? '', folderOf(tdPath).split('/').pop())
+ : r.reason === 'cancelled' ? t('tdNotYet') : t('fgNotSame', tdPath.split('/').pop())
+ return
+ }
+ try { await chrome.runtime.sendMessage({ op: 'save.rebadge' }) } catch { /* fine */ }
+ await renderThisDoc()
+ } catch (e) {
+ console.info('[bento/home] grant failed:', e)
+ if (e?.name !== 'AbortError') $('tdState').textContent = `${e?.name ?? 'Error'}: ${e?.message || String(e)}`
+ } finally {
+ btn.disabled = false
+ }
+})
+void renderThisDoc()
+chrome.tabs.onActivated?.addListener(() => void renderThisDoc())
+chrome.tabs.onUpdated?.addListener((_id, info) => { if (info.url || info.status === 'complete') void renderThisDoc() })
diff --git a/home/webext/src/place.js b/home/webext/src/place.js
new file mode 100644
index 00000000..9885a806
--- /dev/null
+++ b/home/webext/src/place.js
@@ -0,0 +1,249 @@
+// SPDX-License-Identifier: MIT
+// Copyright (c) 2026 The Bento authors
+//
+// Where a granted folder lives on disk, found WITHOUT the person's help.
+//
+// THE GAP. A `FileSystemDirectoryHandle` has no path, and a card can only
+// open a document by its `file://` URL. So a folder was openable only after
+// something had taught its absolute prefix — a document opened once from
+// the Finder (the bridge's `hello`), or the history survey. A folder granted
+// on a fresh profile listed 29 documents and opened none of them, and the
+// banner said "Chrome never tells an extension where a folder is on disk"
+// as if that settled it.
+//
+// THE OTHER DOOR. It does not tell us — but an extension with file-URL
+// access can READ `file://` URLs, so it can ASK: "is /Users/you/Desktop/
+// teams-test/S1.bento.html the same bytes as the S1.bento.html in this
+// grant?" A guess that is wrong 404s; a guess that is right is then proven
+// the way every path is proven here (`prefixFor`: the route resolves inside
+// the grant and `dir.resolve()` agrees). Nothing is trusted from the guess
+// itself, and no path is ever recorded that the grant did not confirm.
+//
+// WHERE TO GUESS. Home directories (Chrome's listing of /Users, /home,
+// C:/Users, when it will give one), the usual places inside a home
+// (Desktop, Documents, Downloads, iCloud Drive, cloud-storage mounts), any
+// prefix already learned for another folder and its neighbours — and the
+// folder's own name under each, one level of nesting allowed. A few dozen
+// fetches at most, once, and the result is remembered like every prefix.
+//
+// Pure: fetch, the grant and the two route helpers come in as `deps`, so the
+// rig runs it in node against a fake disk.
+
+const HOME_ROOTS = ['/Users', '/home', '/C:/Users', '/root']
+const HOME_SUBDIRS = ['', 'Desktop', 'Documents', 'Downloads', 'Library/Mobile Documents/com~apple~CloudDocs', 'Library/CloudStorage', 'OneDrive', 'Dropbox', 'Google Drive', 'iCloud Drive', 'Projects', 'Work', 'devel', 'dev', 'src', 'code']
+const SKIP_USERS = new Set(['Shared', 'Guest', 'Public', 'Default', 'Default User', 'All Users', '.localized'])
+/** How many candidate directories one placement may try. */
+export const MAX_CANDIDATES = 240
+
+// A drive letter's colon must stay a colon: `file:///C%3A/` is not a drive.
+const enc = (p) => p.split('/').map((seg) => encodeURIComponent(seg).replace(/^([A-Za-z])%3A$/, '$1:')).join('/')
+export const fileUrl = (path) => `file://${enc(path)}`
+
+/**
+ * The entries of a directory, from Chrome's own `file://` listing: it is
+ * HTML with one `addRow("name", "url", isDir, …)` per entry. Empty when the
+ * fetch is refused or the page is not a listing — both mean "no idea", never
+ * an error.
+ */
+export async function listDir(path, deps) {
+ let html
+ try {
+ const r = await deps.fetch(fileUrl(path.endsWith('/') ? path : `${path}/`))
+ if (!r.ok) return []
+ html = await r.text()
+ } catch { return [] }
+ const out = []
+ for (const m of html.matchAll(/addRow\("((?:[^"\\]|\\.)*)"\s*,\s*"(?:[^"\\]|\\.)*"\s*,\s*(\d)/g)) {
+ const name = m[1].replace(/\\(.)/g, '$1')
+ if (name && name !== '.' && name !== '..') out.push({ name, dir: m[2] === '1' })
+ }
+ return out
+}
+
+/** Is the file at this path byte-for-byte the granted file? Size first, then the bytes. */
+export async function sameFile(path, file, deps) {
+ let r
+ try { r = await deps.fetch(fileUrl(path)) } catch { return false }
+ if (!r.ok) return false
+ const bytes = new Uint8Array(await r.arrayBuffer())
+ if (bytes.length !== file.size) return false
+ const mine = new Uint8Array(await file.arrayBuffer())
+ for (let i = 0; i < bytes.length; i++) if (bytes[i] !== mine[i]) return false
+ return true
+}
+
+/** The directories to try, in order: near what is already known, then the usual places. */
+export async function candidateDirs(folderName, knownPrefixes, deps) {
+ const dirs = []
+ const seen = new Set()
+ const add = (d) => { const p = d.replace(/\/+$/, ''); if (p && !seen.has(p)) { seen.add(p); dirs.push(p) } }
+ // 1. beside and under folders already placed: the same parent, or one level in
+ const homes = new Set()
+ for (const prefix of Object.values(knownPrefixes || {})) {
+ if (typeof prefix !== 'string') continue
+ const parts = prefix.split('/').filter(Boolean)
+ for (let i = parts.length - 1; i >= 1; i--) add(`/${parts.slice(0, i).join('/')}/${folderName}`)
+ const home = /^\/(Users|home)\/[^/]+/.exec(prefix)?.[0] ?? /^\/C:\/Users\/[^/]+/.exec(prefix)?.[0]
+ if (home) homes.add(home)
+ }
+ // 2. every home directory the listing will name
+ for (const root of HOME_ROOTS) {
+ for (const e of await listDir(root, deps)) if (e.dir && !SKIP_USERS.has(e.name) && !e.name.startsWith('.')) homes.add(`${root}/${e.name}`)
+ }
+ for (const home of homes) {
+ for (const sub of HOME_SUBDIRS) add(`${home}${sub ? `/${sub}` : ''}/${folderName}`)
+ // one level deeper under the usual places, from their listings
+ for (const sub of ['Desktop', 'Documents', 'Downloads', 'Library/CloudStorage', 'Library/Mobile Documents/com~apple~CloudDocs']) {
+ for (const e of await listDir(`${home}/${sub}`, deps)) if (e.dir && !e.name.startsWith('.')) add(`${home}/${sub}/${e.name}/${folderName}`)
+ if (dirs.length > MAX_CANDIDATES) break
+ }
+ }
+ return dirs.slice(0, MAX_CANDIDATES)
+}
+
+/**
+ * Place one grant: the absolute prefix its documents live under, or null.
+ * `probe` is one document inside the grant — `{ rel: [...segments], handle }`
+ * as listDocuments describes it — used as the fingerprint.
+ */
+export async function placeFolder(dir, probe, knownPrefixes, deps) {
+ // An EMPTY grant — the Bento folder a person just made — has nothing to
+ // fingerprint. So it gets one: a marker file of random bytes written into
+ // the grant, looked for, and removed again whatever happened.
+ let marker = null
+ if (!probe?.handle) {
+ if (typeof dir.getFileHandle !== 'function') return null
+ marker = `.bento-place-${Math.random().toString(36).slice(2)}`
+ try {
+ const h = await dir.getFileHandle(marker, { create: true })
+ const w = await h.createWritable()
+ await w.write(crypto.getRandomValues(new Uint8Array(64)))
+ await w.close()
+ probe = { rel: [marker], handle: h }
+ } catch { return null }
+ }
+ try {
+ if (!probe?.handle || !Array.isArray(probe.rel) || !probe.rel.length) return null
+ const file = await probe.handle.getFile()
+ if (!file.size) return null
+ const tail = probe.rel.join('/')
+ for (const cand of await candidateDirs(dir.name, knownPrefixes, deps)) {
+ const path = `${cand}/${tail}`
+ if (!(await sameFile(path, file, deps))) continue
+ // the same bytes at that path — now the grant itself has to agree
+ const prefix = await deps.prefixFor(dir, path)
+ if (prefix) return prefix
+ }
+ return null
+ } finally {
+ if (marker) { try { await dir.removeEntry(marker) } catch { /* best effort */ } }
+ }
+}
+
+// ---------------------------------------------------------------- the scan
+//
+// WHY A GRANT IS NOT THE ONLY WAY IN. Chrome will not hand a web page or an
+// extension the home folder, Desktop, Documents or Downloads as a whole —
+// only folders inside them. That makes "add a folder" a poor first door: the
+// three places documents actually live are the three it refuses. But the
+// extension can READ file:// (once file-URL access is on), so it can find
+// every .bento.html under those places by itself and open each by URL. A
+// grant then means one more thing, not the first thing: that documents in
+// that folder save back in place without a prompt.
+
+/**
+ * Where documents live, under a home. The same three folders on every
+ * platform (Chrome blocks the same three as wholes everywhere), plus the
+ * places a platform moves them to: iCloud Drive and cloud mounts on macOS,
+ * OneDrive's "known folder move" on Windows — where Documents and Desktop
+ * live under OneDrive — and on Linux whatever `~/.config/user-dirs.dirs`
+ * calls them, since a German desktop has "Dokumente", not "Documents".
+ */
+export const SCAN_ROOTS = ['Documents', 'Desktop', 'Downloads', 'Library/Mobile Documents/com~apple~CloudDocs', 'Library/CloudStorage', 'OneDrive', 'OneDrive/Documents', 'OneDrive/Desktop']
+
+/** The XDG user directories a Linux home declares, as paths under it. */
+export function xdgDirs(text, home) {
+ const out = []
+ for (const m of String(text || '').matchAll(/^\s*XDG_(DOCUMENTS|DESKTOP|DOWNLOAD)_DIR\s*=\s*"([^"]*)"/gm)) {
+ let v = m[2].replace(/^\$HOME\/?/, '').replace(/\/+$/, '')
+ if (v.startsWith('/')) out.push(v) // an absolute path elsewhere
+ else if (v) out.push(`${home}/${v}`)
+ }
+ return out
+}
+
+/** The roots to scan under one home: the usual names, plus what the platform says. */
+export async function scanRootsFor(home, deps) {
+ const roots = SCAN_ROOTS.map((r) => `${home}/${r}`)
+ try {
+ const r = await deps.fetch(fileUrl(`${home}/.config/user-dirs.dirs`))
+ if (r.ok) for (const d of xdgDirs(await r.text(), home)) if (!roots.includes(d)) roots.push(d)
+ } catch { /* not a Linux home, or no such file */ }
+ return roots
+}
+export const SCAN_DEPTH = 4
+export const SCAN_MAX = 2000
+const SKIP_DIRS = /^(node_modules|\.git|\.svn|\.hg|Library|Applications|\.Trash|\.cache|dist|build|target|__pycache__|venv|\.venv)$/i
+
+/** The home directories Chrome's listings will name. */
+export async function homeDirs(deps) {
+ const homes = []
+ for (const root of HOME_ROOTS) {
+ for (const e of await listDir(root, deps)) if (e.dir && !SKIP_USERS.has(e.name) && !e.name.startsWith('.')) homes.push(`${root}/${e.name}`)
+ }
+ return homes
+}
+
+/**
+ * Every Bento document under the usual places, as `{ path, name, dir }`.
+ * Listing only — nothing is read — so a large Documents costs a few hundred
+ * directory fetches at most and no bytes.
+ */
+export async function scanDisk(deps, roots = null) {
+ const out = []
+ const seen = new Set()
+ const walk = async (dir, depth) => {
+ if (out.length >= SCAN_MAX || depth > SCAN_DEPTH || seen.has(dir)) return
+ seen.add(dir)
+ const entries = await listDir(dir, deps)
+ for (const e of entries) {
+ if (out.length >= SCAN_MAX) return
+ if (e.dir) { if (!e.name.startsWith('.') && !SKIP_DIRS.test(e.name)) await walk(`${dir}/${e.name}`, depth + 1) }
+ else if (/\.bento\.html$/i.test(e.name)) out.push({ path: `${dir}/${e.name}`, name: e.name, dir })
+ }
+ }
+ let bases = roots
+ if (!bases) {
+ bases = []
+ for (const h of await homeDirs(deps)) bases.push(...await scanRootsFor(h, deps))
+ }
+ for (const b of bases) await walk(b, 0)
+ return out
+}
+
+/**
+ * The usual folders macOS keeps from the browser. Chrome reads a folder in
+ * its own process, and macOS gates Documents, Desktop and Downloads behind
+ * "Google Chrome would like to access files in your Documents folder" — a
+ * prompt macOS shows once, at first access; refused once, it never asks
+ * again and the listing simply comes back empty. Detected here: a folder
+ * the home's listing NAMES but that cannot itself be listed. Nothing can
+ * make the OS ask again from inside the browser; the answer is the switch
+ * in System Settings, and the library says exactly where it is.
+ */
+export async function blockedFolders(deps) {
+ const out = []
+ for (const home of await homeDirs(deps)) {
+ const names = new Set((await listDir(home, deps)).filter((e) => e.dir).map((e) => e.name))
+ for (const sub of ['Documents', 'Desktop', 'Downloads']) {
+ if (!names.has(sub)) continue
+ const entries = await listDir(`${home}/${sub}`, deps)
+ // an empty folder lists as an empty page, not as a refusal — the fetch
+ // itself says which: refused is `ok:false`
+ let refused = false
+ try { const r = await deps.fetch(fileUrl(`${home}/${sub}/`)); refused = !r.ok } catch { refused = true }
+ if (refused && entries.length === 0) out.push(`${home}/${sub}`)
+ }
+ }
+ return out
+}
diff --git a/home/webext/src/status.js b/home/webext/src/status.js
index 1c5a054c..20bf2e7b 100644
--- a/home/webext/src/status.js
+++ b/home/webext/src/status.js
@@ -93,6 +93,24 @@ export async function setLapsedBadge() {
}
}
+/**
+ * The badge FOR ONE TAB: its document cannot save in place yet. Per tab —
+ * Chrome shows a tab's own badge over the global one while that tab is
+ * active — so it says nothing about other documents, and clears itself
+ * when the document is covered. Same colour family as the lapsed badge,
+ * one shade lighter: attention, not alarm.
+ */
+export async function setTabBadge(tabId, uncovered) {
+ try {
+ if (typeof chrome === 'undefined' || !chrome.action?.setBadgeText || tabId == null) return
+ await chrome.action.setBadgeText({ tabId, text: uncovered ? '!' : '' })
+ if (uncovered) {
+ await chrome.action.setBadgeBackgroundColor?.({ tabId, color: '#F28C5A' })
+ await chrome.action.setTitle?.({ tabId, title: t('badgeNotSavingTip') })
+ }
+ } catch { /* the tab went away */ }
+}
+
const NOTIFIED = 'lapsed-notified'
/**
diff --git a/scripts/pack-webext.mjs b/scripts/pack-webext.mjs
index 63e64db8..9dcad0f2 100644
--- a/scripts/pack-webext.mjs
+++ b/scripts/pack-webext.mjs
@@ -258,8 +258,11 @@ if (manifest) {
// the listing cannot answer.
const srcText = payload.filter((p) => p.endsWith('.js'))
.map((p) => readFileSync(join(SRC, p), 'utf8')).join('\n')
+ // A dotted permission names a capability inside an API, not a namespace:
+ // `downloads.ui` is used as `chrome.downloads.setUiOptions`.
+ const usedAs = { 'downloads.ui': 'chrome\\.downloads\\.setUiOptions' }
for (const perm of manifest.permissions ?? []) {
- if (!new RegExp(`chrome\\.${perm}\\b`).test(srcText) && perm !== 'storage') {
+ if (!new RegExp(usedAs[perm] ?? `chrome\\.${perm}\\b`).test(srcText) && perm !== 'storage') {
fail(`permission "${perm}" is declared but never used in the shipped code`)
}
}
diff --git a/scripts/test-webext-background.ts b/scripts/test-webext-background.ts
index d0c8e46a..ab61f162 100644
--- a/scripts/test-webext-background.ts
+++ b/scripts/test-webext-background.ts
@@ -445,8 +445,8 @@ const multiDeps = (...grants: Array<{ tree: Record<string, any>; perm?: string;
ok(st.includes("'dirs'") && st.includes("'dir'"),
"status.js owns the grant keys, including the legacy 'dir' still migrated")
ok(db.includes("'prefixes'"), "db.js owns the learned path prefixes")
- ok(/VERSION = 2/.test(db) && /objectStoreNames\.contains/.test(db),
- 'the version bump for the cache store is guarded, so a v1 install upgrades rather than throwing')
+ ok(/VERSION = 3/.test(db) && /objectStoreNames\.contains/.test(db),
+ 'the version bumps (cache store, file-grant store) are guarded, so an older install upgrades rather than throwing')
}
// ---- 10. the lapsed-grant badge stays wired --------------------------------
diff --git a/scripts/test-webext-filegrant.ts b/scripts/test-webext-filegrant.ts
new file mode 100644
index 00000000..fdab840c
--- /dev/null
+++ b/scripts/test-webext-filegrant.ts
@@ -0,0 +1,262 @@
+#!/usr/bin/env node
+// SPDX-License-Identifier: MIT
+// Copyright (c) 2026 The Bento authors
+// home/webext file-grant rig.
+//
+// node scripts/test-webext-filegrant.ts
+//
+// WHAT THIS PROVES. Saving in place for a document that no granted folder
+// covers goes through three more doors — a per-file grant the extension
+// holds, the downloads API for the Downloads folder, and the one-time offer —
+// and every one of them must (1) write only the sender's own file, (2) use a
+// handle only when it is PROVEN to be that file (name and bytes), (3) fail to
+// the browser's own picker, never to nothing. A file:// page never holds a
+// grant: every local document shares that origin's storage.
+
+import { readFileSync } from 'node:fs'
+import { join, dirname } from 'node:path'
+import { fileURLToPath } from 'node:url'
+import { createContext, runInContext } from 'node:vm'
+
+const root = join(dirname(fileURLToPath(import.meta.url)), '..')
+const SRC = join(root, 'home/webext')
+const read = (p: string) => readFileSync(join(SRC, p), 'utf8')
+const fg = await import('../home/webext/src/filegrant.js')
+const bg = await import('../home/webext/src/background.js')
+
+let failures = 0
+let checks = 0
+function ok(cond: boolean, msg: string) {
+ checks++
+ if (!cond) { failures++; console.log(` FAIL ${msg}`) }
+ else console.log(` ok ${msg}`)
+}
+
+/** An in-memory store + disk + downloads API, the shape filegrant.js takes as deps. */
+function world(disk: Record<string, string>) {
+ const store = new Map<string, any>()
+ const downloaded: any[] = []
+ let nextId = 1
+ const items = new Map<number, any>()
+ const listeners: any[] = []
+ const kv: Record<string, unknown> = {}
+ const deps: any = {
+ all: async () => [...store.entries()],
+ get: async (k: string) => store.get(k) ?? null,
+ put: async (k: string, v: any) => { store.set(k, v) },
+ del: async (k: string) => { store.delete(k) },
+ fetch: async (url: string) => {
+ const path = decodeURIComponent(url.replace(/^file:\/\//, ''))
+ const body = disk[path]
+ if (body === undefined) return { ok: false }
+ const bytes = new TextEncoder().encode(body)
+ return { ok: true, arrayBuffer: async () => bytes.buffer, text: async () => body }
+ },
+ storage: { get: async (k: string) => ({ [k]: kv[k] }), set: async (o: any) => { Object.assign(kv, o) } },
+ downloads: {
+ search: async (q: any) => (q.id != null ? [items.get(q.id)].filter(Boolean) : [...items.values()].slice(-1)),
+ download: async (o: any) => { const id = nextId++; downloaded.push(o); items.set(id, { id, filename: `/Users/you/Downloads/${o.filename}`, state: 'complete' }); return id },
+ erase: async () => {}, removeFile: async () => {},
+ onChanged: { addListener: (f: any) => listeners.push(f), removeListener: () => {} },
+ },
+ setUiOptions: async () => {},
+ }
+ return { deps, store, downloaded, kv }
+}
+/** A handle over given bytes. */
+const handleOf = (name: string, body: string, perm = 'granted') => ({
+ name, kind: 'file', perm,
+ queryPermission: async () => perm,
+ requestPermission: async () => perm,
+ getFile: async () => { const b = new TextEncoder().encode(body); return { size: b.length, arrayBuffer: async () => b.buffer } },
+ createWritable: async () => ({ write: async () => {}, close: async () => {} }),
+})
+
+console.log('\n— the file grant: proven, never assumed')
+{
+ const w = world({ '/Users/you/Downloads/Q3.bento.html': 'DECK-Q3', '/Users/you/Desktop/Q3.bento.html': 'OTHER' })
+ const h = handleOf('Q3.bento.html', 'DECK-Q3')
+ await fg.addFileGrant(h, null, w.deps)
+ const r = await fg.resolveFileGrant('/Users/you/Downloads/Q3.bento.html', w.deps)
+ ok(r.ok && r.handle === h, 'a name-keyed grant serves the path whose bytes it holds')
+ ok([...w.store.values()].some((v) => v.path === '/Users/you/Downloads/Q3.bento.html'), 'and the path is learned onto the record')
+ const other = await fg.resolveFileGrant('/Users/you/Desktop/Q3.bento.html', w.deps)
+ ok(!other.ok && other.reason === 'none', 'the same name with other bytes is NOT served — a grant is for one file')
+ ok(!(await fg.resolveFileGrant('/Users/you/Downloads/Nope.bento.html', w.deps)).ok, 'no grant of that name → none')
+ // TWINS: a byte-identical copy elsewhere must never be served by the other's grant
+ const tw = world({ '/Users/you/Downloads/T.bento.html': 'SAME', '/Users/you/Documents/T.bento.html': 'SAME' })
+ await fg.addFileGrant(handleOf('T.bento.html', 'SAME'), '/Users/you/Downloads/T.bento.html', tw.deps)
+ ok((await fg.resolveFileGrant('/Users/you/Downloads/T.bento.html', tw.deps)).ok, 'a grant bound to a path serves that path')
+ ok(!(await fg.resolveFileGrant('/Users/you/Documents/T.bento.html', tw.deps)).ok, 'and NOT a byte-identical twin at another path')
+ const un = world({ '/Users/you/Downloads/U.bento.html': 'SAME', '/Users/you/Documents/U.bento.html': 'SAME' })
+ un.deps.otherCopies = async (p: string) => ['/Users/you/Downloads/U.bento.html', '/Users/you/Documents/U.bento.html'].filter((x) => x !== p)
+ await fg.addFileGrant(handleOf('U.bento.html', 'SAME'), null, un.deps)
+ ok(!(await fg.resolveFileGrant('/Users/you/Downloads/U.bento.html', un.deps)).ok, 'an unbound grant is refused while a same-bytes twin exists (never guessed)')
+ un.deps.otherCopies = async () => []
+ ok((await fg.resolveFileGrant('/Users/you/Downloads/U.bento.html', un.deps)).ok && [...un.store.values()].some((v) => v.path === '/Users/you/Downloads/U.bento.html'), 'with no twin it serves the path and is bound to it from then on')
+ const lapsed = world({ '/Users/you/Downloads/L.bento.html': 'L' })
+ await fg.addFileGrant(handleOf('L.bento.html', 'L', 'prompt'), '/Users/you/Downloads/L.bento.html', lapsed.deps)
+ const lr = await fg.resolveFileGrant('/Users/you/Downloads/L.bento.html', lapsed.deps)
+ ok(!lr.ok && lr.reason === 'lapsed', 'a grant without permission is lapsed, and never prompted for from the worker')
+ ok(!(await fg.declined('/x', w.deps)), 'not declined by default')
+ await fg.decline('/x', w.deps)
+ ok(await fg.declined('/x', w.deps), 'a decline is remembered')
+ w.store.set(fg.declineKey('/x'), { at: Date.now() - fg.DECLINE_MS - 1 })
+ ok(!(await fg.declined('/x', w.deps)), 'and expires after DECLINE_MS')
+}
+
+console.log('\n— downloads: the folder Chrome lets an extension write')
+{
+ const w = world({})
+ const dir = await fg.downloadsDir(w.deps)
+ ok(dir === '/Users/you/Downloads', `downloadsDir: learned from the API (${dir}) and`)
+ ok(w.kv.downloadsDir === dir, 'remembered in extension storage')
+ ok(fg.downloadsRelative('/Users/you/Downloads/Q3.bento.html', dir) === 'Q3.bento.html', 'downloadsRelative: a file in Downloads → its relative name')
+ ok(fg.downloadsRelative('/Users/you/Downloads/decks/Q3.bento.html', dir) === 'decks/Q3.bento.html', 'downloadsRelative: nested is fine')
+ ok(fg.downloadsRelative('/Users/you/Documents/Q3.bento.html', dir) === null && fg.downloadsRelative('/Users/you/Downloads/../x.html', dir) === null, 'downloadsRelative: outside, or climbing out → null')
+ const n = await fg.writeViaDownloads('Q3.bento.html', '<html>hi</html>', w.deps)
+ ok(n === 15 && w.downloaded.at(-1).conflictAction === 'overwrite' && w.downloaded.at(-1).saveAs === false && w.downloaded.at(-1).url.startsWith('data:text/html;base64,'), 'writeViaDownloads: overwrite in place, no dialog, the bytes as a data URL')
+ const win = world({}); win.deps.downloads.search = async () => [{ filename: 'C:\\Users\\you\\Downloads\\x.txt' }]
+ ok(await fg.downloadsDir(win.deps) === '/C:/Users/you/Downloads', 'downloadsDir: a Windows path becomes the file:// shape')
+}
+
+console.log('\n— the worker: folder, then file, then Downloads; own file only')
+const FILE = (p: string) => ({ url: `file://${p}`, frameId: 0 })
+{
+ const w = world({ '/Users/you/Downloads/Q3.bento.html': 'DECK-Q3' })
+ const h = handleOf('Q3.bento.html', 'DECK-Q3')
+ await fg.addFileGrant(h, '/Users/you/Downloads/Q3.bento.html', w.deps)
+ const deps = { readGrants: async () => [], filegrant: w.deps }
+ const c = await bg.claim(FILE('/Users/you/Downloads/Q3.bento.html'), deps)
+ ok(c.ok && c.via === 'file' && c.name === 'Q3.bento.html', 'claim: no folder grant → the file grant serves it (via file)')
+ const wr = await bg.write(FILE('/Users/you/Downloads/Q3.bento.html'), 'NEW', deps)
+ const decks = () => w.downloaded.filter((d) => d.filename.endsWith('.bento.html')).length
+ ok(wr.ok && wr.via === 'file' && decks() === 0, 'write: through the file handle, not the downloads API')
+ const dl = await bg.claim(FILE('/Users/you/Downloads/Other.bento.html'), deps)
+ ok(dl.ok && dl.via === 'downloads', 'claim: a Downloads file with no grant → the downloads API (via downloads)')
+ const dw = await bg.write(FILE('/Users/you/Downloads/Other.bento.html'), 'BYTES', deps)
+ ok(dw.ok && dw.via === 'downloads' && w.downloaded.at(-1).filename === 'Other.bento.html', 'write: Downloads → downloads.download overwrite of that relative name')
+ const doc = await bg.claim(FILE('/Users/you/Documents/Q3.bento.html'), deps)
+ ok(!doc.ok, 'claim: a Documents file with no grant → not ok (the page falls to its picker, or the offer)')
+ // the page names nothing: a payload path is never read
+ const spoof = await bg.write({ url: 'file:///Users/you/Documents/x.bento.html', frameId: 0 } as any, 'X', { ...deps })
+ ok(!spoof.ok && decks() === 1, 'write: only the sender\'s own url is ever resolved')
+ const https = await bg.claim({ url: 'https://bento.page/slides/', frameId: 0 } as any, deps)
+ ok(!https.ok, 'claim: not a local file → nothing')
+ // a folder grant wins over a file grant for the same document
+ const folderDeps = { ...deps, readGrants: async () => [{ name: 'Downloads-decks', queryPermission: async () => 'granted', resolve: async () => ['Q3.bento.html'] }], locateIn: async () => [{ file: { name: 'Q3.bento.html', createWritable: h.createWritable, isSameEntry: async () => true }, rel: ['Q3.bento.html'] }], findByName: async () => [] }
+ const fc = await bg.claim(FILE('/Users/you/Downloads/Q3.bento.html'), folderDeps)
+ ok(fc.ok && fc.via === 'folder', 'a folder grant that covers the file takes precedence')
+ // a file grant whose file is gone is forgotten on use
+ const gone = world({ '/Users/you/Downloads/G.bento.html': 'G' })
+ const gh: any = handleOf('G.bento.html', 'G')
+ gh.createWritable = async () => { const e: any = new Error('gone'); e.name = 'NotFoundError'; throw e }
+ await fg.addFileGrant(gh, '/Users/you/Downloads/G.bento.html', gone.deps)
+ const gw = await bg.write(FILE('/Users/you/Downloads/G.bento.html'), 'X', { readGrants: async () => [], filegrant: gone.deps, downloadsDir: async () => null })
+ ok(!gw.ok && [...gone.store.values()].every((v) => !v.handle), 'write: NotFoundError on a file grant drops it')
+}
+
+console.log('\n— the page side: waiting on the offer')
+{
+ const SRC_BRIDGE = read('src/page-bridge.js')
+ const posted: any[] = []
+ const answers: Record<string, any> = {}
+ const win: any = {
+ location: { pathname: '/Users/you/Downloads/Q3.bento.html' },
+ addEventListener() {},
+ postMessage(msg: any) {
+ posted.push(msg)
+ // answer as the relay would, from a script of replies by op+payload
+ const key = msg.payload?.token ? 'claim:token' : msg.op
+ const res = answers[key]
+ if (res) setTimeout(() => win._deliver({ __bento_tray__: true, dir: 'res', id: msg.id, result: res }), 0)
+ },
+ showSaveFilePicker: async () => ({ __native: true }),
+ bento: { updates: { version: '1.2.1' } },
+ }
+ const listeners: any[] = []
+ win.addEventListener = (_: string, f: any) => listeners.push(f)
+ win._deliver = (data: any) => listeners.forEach((f) => f({ data, source: win }))
+ const ctx: any = createContext({ window: win, setTimeout, clearTimeout, Date, Math, JSON, Promise, Blob, console, DOMException: class extends Error { constructor(m: string, n: string) { super(m); this.name = n } }, FileSystemHandle: class {}, crypto: { randomUUID: () => 'x' } })
+ ctx.globalThis = ctx
+ runInContext(SRC_BRIDGE, ctx)
+ answers.claim = { ok: false, reason: 'setup', token: 'tok-1' }
+ answers['claim:token'] = { ok: true, name: 'Q3.bento.html', via: 'file' }
+ const h = await win.showSaveFilePicker({ id: 'bento-doc', suggestedName: 'Q3.bento.html' })
+ ok(posted.filter((m) => m.op === 'claim').length === 2 && posted[1].payload?.token === 'tok-1', 'setup → the bridge asks again with the token and waits')
+ ok(h.name === 'Q3.bento.html' && !h.__native, 'and the save goes through the extension once the window answered')
+ answers['claim:token'] = { ok: false, reason: 'declined' }
+ const h2 = await win.showSaveFilePicker({ id: 'bento-doc', suggestedName: 'Q3.bento.html' })
+ ok(h2.__native === true, 'declined → the browser\'s own picker, as without the extension')
+ ok(/120000/.test(SRC_BRIDGE), 'the second claim waits as long as a dialog takes')
+}
+{
+ const manifest = JSON.parse(read('manifest.json'))
+ ok(manifest.permissions.includes('downloads') && manifest.permissions.includes('downloads.ui'), 'manifest: downloads (the write) and downloads.ui (the bubble, quiet for the write)')
+ const bgSrc = read('src/background.js')
+ ok(/claimOrOffer/.test(bgSrc) && /filegrant\.html/.test(bgSrc) && /isFileAccessOn/.test(bgSrc), 'the worker offers the window only with file-URL access on')
+ ok(/declined\(path\)/.test(bgSrc), 'a declined file is not asked again')
+ const winSrc = read('src/filegrant-window.js')
+ const flowSrc = read('src/grantflow.js')
+ ok(/grantFileFor\(path\)/.test(winSrc) && /showOpenFilePicker/.test(flowSrc) && /grantPickedFile\)\(handle, path\)/.test(flowSrc), 'the window picks in the extension\'s context and a file grant is stored only through the proof (grantPickedFile: bytes and mtime)')
+ const fgSrc = read('src/filegrant.js')
+ ok(/export async function grantPickedFile/.test(fgSrc) && /handleIsPath\(handle, path, deps\)/.test(fgSrc) && /sameMtime\(handle, path, deps\)/.test(fgSrc), 'grantPickedFile proves bytes AND mtime before storing')
+ const panel = read('src/panel.js')
+ ok(/save\.status/.test(panel) && /grantFileFor\(tdPath\)/.test(panel) && /grantFolderFor\(tdPath\)/.test(panel), 'the side panel shows the active document\'s state and grants it through the same flow')
+ const home = read('src/home.js')
+ ok(/getAsFileSystemHandle/.test(home) && /addFileGrant\(handle, path\)/.test(home), 'the library takes drops as grants — a folder or a file — with no dialog')
+ ok(/listFileGrants\(\)/.test(home) && /dropFileGrant\(g\.key\)/.test(home), 'Settings lists file grants with Remove')
+}
+
+console.log('\n— a Chrome that asks where to save every download')
+{
+ // the downloads API "completes" with USER_CANCELED when Chrome prompted and the person cancelled
+ const w = world({ '/Users/you/Downloads/P.bento.html': 'P' })
+ w.deps.downloads.download = async (o: any) => { const id = 99; w.downloaded.push(o); return id }
+ w.deps.downloads.search = async (q: any) => (q.id === 99 ? [{ id: 99, state: 'interrupted', error: 'USER_CANCELED', filename: '/Users/you/Downloads/P.bento.html' }] : [{ filename: '/Users/you/Downloads/x.txt' }])
+ const deps = { readGrants: async () => [], filegrant: w.deps }
+ const first = await bg.write(FILE('/Users/you/Downloads/P.bento.html'), 'X', deps)
+ ok(!first.ok && first.retry === 'native' && /asks where to save/.test(first.reason), 'a prompted download: the page is told to finish this save with the browser\'s own picker')
+ ok(w.kv.downloadsUnusable === true, 'and the Downloads door is switched off for this Chrome')
+ const next = await bg.claim(FILE('/Users/you/Downloads/P.bento.html'), deps)
+ ok(!next.ok && next.via !== 'downloads', 'the next claim no longer takes the Downloads door (the offer follows in the worker)')
+ await fg.setDownloadsUnusable(false, w.deps)
+ ok((await bg.claim(FILE('/Users/you/Downloads/P.bento.html'), deps)).via === 'downloads', 'Settings "Try again" reopens it')
+ ok(/retry === 'native'/.test(read('src/page-bridge.js')) && /native\(forNative\(\{ suggestedName: name \}\)\)/.test(read('src/page-bridge.js')), 'page-bridge finishes such a save through the native picker instead of throwing the bytes away')
+}
+
+console.log('\n— the grant flow: the folder when Chrome allows it, the picker near the document')
+{
+ const gf = await import('../home/webext/src/grantflow.js')
+ ok(gf.inBlockedFolder('/Users/you/Documents/Q3.bento.html') && gf.inBlockedFolder('/Users/you/Downloads/Q3.bento.html') && gf.inBlockedFolder('/Users/you/Desktop/Q3.bento.html') && gf.inBlockedFolder('/Users/you/Q3.bento.html') && gf.inBlockedFolder('/C:/Users/you/OneDrive/Documents/Q3.bento.html') && gf.inBlockedFolder('/home/you/Q3.bento.html'),
+ 'inBlockedFolder: directly in home / Documents / Desktop / Downloads (and OneDrive) → a file grant')
+ ok(!gf.inBlockedFolder('/Users/you/Documents/Decks/Q3.bento.html') && !gf.inBlockedFolder('/Users/you/Desktop/teams-test/B1.bento.html') && !gf.inBlockedFolder('/Volumes/Work/Q3.bento.html'),
+ 'inBlockedFolder: any subfolder → the FOLDER is offered, so its siblings save too')
+ // nearest start: the held handle sharing the longest path
+ const decks = { name: 'Decks', tag: 'decks' }, other = { name: 'Other', tag: 'other' }
+ const fileH = { name: 'x.bento.html', tag: 'file' }
+ const deps: any = {
+ prefixes: async () => ({ Decks: '/Users/you/Documents/Decks', Other: '/Users/you/Pictures/Other' }),
+ getGrants: async () => [decks, other],
+ listFileGrants: async () => [{ handle: fileH, path: '/Users/you/Desktop/teams-test/x.bento.html' }],
+ }
+ ok((await gf.startInFor('/Users/you/Documents/Decks/2026/Q3.bento.html', deps)) === decks, 'startInFor: a folder grant above the document')
+ ok((await gf.startInFor('/Users/you/Desktop/teams-test/B2.bento.html', deps)) === fileH, 'startInFor: a file grant beside it (its picker opens in that folder)')
+ ok((await gf.startInFor('/Users/you/Downloads/new.bento.html', { prefixes: async () => ({}), getGrants: async () => [], listFileGrants: async () => [] })) === 'downloads', 'startInFor: nothing near → the well-known folder the path is under')
+ ok((await gf.startInFor('/Users/you/Music/x.bento.html', deps)) === 'documents', 'startInFor: sharing only the home is not "near"')
+ // folder grant: accepted only if it contains the document
+ let stored: any[] = []
+ const learned: any[] = []
+ const base = { ...deps, getGrants: async () => stored, putGrants: async (l: any[]) => { stored = l }, learnPrefix: async (n: string, p: string) => { learned.push([n, p]) } }
+ const teams = { name: 'teams-test', requestPermission: async () => 'granted', isSameEntry: async () => false }
+ const okR = await gf.grantFolderFor('/Users/you/Desktop/teams-test/B2.bento.html', { ...base, showDirectoryPicker: async (o: any) => { base.seen = o; return teams }, prefixFor: async () => '/Users/you/Desktop/teams-test' })
+ ok(okR.ok && stored.includes(teams) && learned[0][1] === '/Users/you/Desktop/teams-test' && base.seen.id === gf.PICKER_ID && base.seen.mode === 'readwrite', 'grantFolderFor: the folder is stored, placed, and the picker remembers its folder (id)')
+ const wrong = await gf.grantFolderFor('/Users/you/Desktop/teams-test/B2.bento.html', { ...base, showDirectoryPicker: async () => ({ name: 'Elsewhere', requestPermission: async () => 'granted' }), prefixFor: async () => null })
+ ok(!wrong.ok && wrong.reason === 'not-containing' && wrong.name === 'Elsewhere', 'grantFolderFor: a folder that does not contain the document is refused, by name')
+ const home = read('src/filegrant-window.js'), panel = read('src/panel.js')
+ ok(/inBlockedFolder\(path\)/.test(home) && /grantFolderFor\(path\)/.test(home) && /grantFileFor\(path\)/.test(home), 'the offer window offers the folder first, "Only this file" as the alternative')
+ ok(/grantFolderFor\(tdPath\)/.test(panel) && /inBlockedFolder\(tdPath\)/.test(panel), 'the side panel does the same')
+}
+
+console.log(`\n${checks - failures}/${checks} checks passed`)
+process.exit(failures ? 1 : 0)
diff --git a/scripts/test-webext-place.ts b/scripts/test-webext-place.ts
new file mode 100644
index 00000000..7b5ff7dd
--- /dev/null
+++ b/scripts/test-webext-place.ts
@@ -0,0 +1,258 @@
+#!/usr/bin/env node
+// SPDX-License-Identifier: MIT
+// Copyright (c) 2026 The Bento authors
+// home/webext placement rig.
+//
+// node scripts/test-webext-place.ts
+//
+// WHAT THIS PROVES. A granted folder is placed on disk by GUESSING paths and
+// PROVING one: the folder's name under each likely parent, one document's
+// bytes compared at that path, the grant asked to confirm. Two things must
+// hold: a wrong guess (same name, different bytes; same bytes, a copy outside
+// the grant) is never recorded, and a right one is found among the usual
+// places without the person doing anything. Also here: the title card drawn
+// from a document that carries no preview render.
+
+import { readFileSync } from 'node:fs'
+import { join, dirname } from 'node:path'
+import { fileURLToPath } from 'node:url'
+
+const root = join(dirname(fileURLToPath(import.meta.url)), '..')
+const SRC = join(root, 'home/webext')
+const place = await import('../home/webext/src/place.js')
+const { cardFrom } = await import('../home/webext/src/library.js')
+
+let failures = 0
+let checks = 0
+function ok(cond: boolean, msg: string) {
+ checks++
+ if (!cond) { failures++; console.log(` FAIL ${msg}`) }
+ else console.log(` ok ${msg}`)
+}
+
+/** A fake disk: paths → bytes; directories → Chrome-style listings. */
+function disk(files: Record<string, string>) {
+ const fetched: string[] = []
+ const listing = (dir: string) => {
+ const names = new Map<string, boolean>()
+ for (const p of Object.keys(files)) {
+ if (!p.startsWith(dir + '/')) continue
+ const rest = p.slice(dir.length + 1)
+ const head = rest.split('/')[0]
+ names.set(head, rest.includes('/'))
+ }
+ if (!names.size) return null
+ return [...names].map(([n, isDir]) => `<script>addRow("${n}","${n}",${isDir ? 1 : 0},0,"0",0,"");</script>`).join('\n')
+ }
+ const fetch = async (url: string) => {
+ const path = decodeURIComponent(url.replace(/^file:\/\//, ''))
+ fetched.push(path)
+ if (path.endsWith('/')) {
+ const html = listing(path.slice(0, -1))
+ return html ? { ok: true, text: async () => html } : { ok: false }
+ }
+ const body = files[path]
+ if (body === undefined) return { ok: false }
+ const bytes = new TextEncoder().encode(body)
+ return { ok: true, arrayBuffer: async () => bytes.buffer, text: async () => body }
+ }
+ return { fetch, fetched }
+}
+
+/** A grant: its name, the documents in it (rel → bytes). `prefixFor` proves a path by looking the tail up in it. */
+function grant(name: string, docs: Record<string, string>) {
+ const dir = { name }
+ const handleOf = (rel: string) => ({ getFile: async () => { const b = new TextEncoder().encode(docs[rel]); return { size: b.length, arrayBuffer: async () => b.buffer } } })
+ const prefixFor = async (d: any, path: string) => {
+ for (const rel of Object.keys(docs)) {
+ const suffix = `/${name}/${rel}`
+ if (path.endsWith(suffix)) return path.slice(0, -suffix.length) + `/${name}`
+ }
+ return null
+ }
+ const probe = (rel: string) => ({ rel: rel.split('/'), handle: handleOf(rel) })
+ return { dir, prefixFor, probe }
+}
+
+console.log('\n— listing and fingerprints')
+{
+ const d = disk({ '/Users/you/Desktop/x.txt': 'x', '/Users/you/Decks/a.bento.html': 'A' })
+ const users = await place.listDir('/Users', { fetch: d.fetch })
+ ok(users.length === 1 && users[0].name === 'you' && users[0].dir, 'listDir: Chrome\'s addRow() listing → names and kinds')
+ ok((await place.listDir('/nowhere', { fetch: d.fetch })).length === 0, 'listDir: a refused fetch is an empty listing, not an error')
+ const file = { size: 1, arrayBuffer: async () => new TextEncoder().encode('A').buffer }
+ ok(await place.sameFile('/Users/you/Decks/a.bento.html', file, { fetch: d.fetch }), 'sameFile: the same bytes at the path')
+ ok(!(await place.sameFile('/Users/you/Desktop/x.txt', file, { fetch: d.fetch })), 'sameFile: same size, different bytes → no')
+ ok(!(await place.sameFile('/Users/you/Decks/missing.bento.html', file, { fetch: d.fetch })), 'sameFile: nothing there → no')
+ ok(place.fileUrl('/Users/you/My Decks/Q3 #1.bento.html') === 'file:///Users/you/My%20Decks/Q3%20%231.bento.html', 'fileUrl: segments encoded')
+}
+
+console.log('\n— placing a grant')
+{
+ const g = grant('teams-test', { 'S1.bento.html': 'DECK-S1', 'sub/B9.bento.html': 'DECK-B9' })
+ // the real folder on the Desktop; a same-named folder with other bytes in Documents; a copy of S1 elsewhere
+ const d = disk({
+ '/Users/you/Desktop/teams-test/S1.bento.html': 'OTHER',
+ '/Users/you/Documents/teams-test/S1.bento.html': 'DECK-S1',
+ '/Users/you/Documents/teams-test/sub/B9.bento.html': 'DECK-B9',
+ '/Users/you/Downloads/copies/S1.bento.html': 'DECK-S1',
+ '/Users/shared-user/Desktop/x': 'x',
+ })
+ const prefix = await place.placeFolder(g.dir, g.probe('S1.bento.html'), {}, { fetch: d.fetch, prefixFor: g.prefixFor })
+ ok(prefix === '/Users/you/Documents/teams-test', `placeFolder: found in Documents from nothing but the /Users listing (${prefix})`)
+ ok(d.fetched.some((p) => p === '/Users/you/Desktop/teams-test/S1.bento.html'), 'the same-named folder with other bytes (Desktop, tried first) was rejected')
+ ok(!d.fetched.some((p) => p.includes('/copies/')), 'a copy elsewhere is never a candidate: only the folder\'s own name is looked for')
+ ok(d.fetched.length < place.MAX_CANDIDATES, `bounded: ${d.fetched.length} fetches`)
+ // a probe deeper in the tree proves the same prefix
+ const viaSub = await place.placeFolder(g.dir, g.probe('sub/B9.bento.html'), {}, { fetch: d.fetch, prefixFor: g.prefixFor })
+ ok(viaSub === '/Users/you/Documents/teams-test', 'placeFolder: a nested document as the fingerprint lands on the same prefix')
+}
+{
+ // the grant must agree: same bytes at the path, but prefixFor says no → not recorded
+ const g = grant('Decks', { 'a.bento.html': 'A' })
+ const d = disk({ '/Users/you/Decks/a.bento.html': 'A' })
+ const prefix = await place.placeFolder(g.dir, g.probe('a.bento.html'), {}, { fetch: d.fetch, prefixFor: async () => null })
+ ok(prefix === null, 'placeFolder: matching bytes are not enough — the grant has to resolve the path')
+}
+{
+ // near what is already known: a sibling of a placed folder is found without any listing
+ const g = grant('Decks', { 'a.bento.html': 'A' })
+ const d = disk({ '/Volumes/Work/projects/Decks/a.bento.html': 'A' })
+ const prefix = await place.placeFolder(g.dir, g.probe('a.bento.html'), { Notes: '/Volumes/Work/projects/Notes' }, { fetch: d.fetch, prefixFor: g.prefixFor })
+ ok(prefix === '/Volumes/Work/projects/Decks', 'placeFolder: a sibling of an already-placed folder, on a volume no listing names')
+ const empty = await place.placeFolder(g.dir, g.probe('a.bento.html'), {}, { fetch: async () => ({ ok: false }), prefixFor: g.prefixFor })
+ ok(empty === null, 'placeFolder: a disk that answers nothing → null, quietly')
+ ok((await place.placeFolder(g.dir, { rel: [], handle: null }, {}, { fetch: d.fetch, prefixFor: g.prefixFor })) === null, 'placeFolder: no probe document → null')
+}
+{
+ const dirs = await place.candidateDirs('X', { A: '/Users/you/Documents/A' }, { fetch: async () => ({ ok: false }) })
+ ok(dirs[0] === '/Users/you/Documents/X' && dirs.includes('/Users/you/Desktop/X') && dirs.includes('/Users/you/X'), 'candidateDirs: beside the known folder first, then the usual places in that home')
+ ok(new Set(dirs).size === dirs.length && dirs.length <= place.MAX_CANDIDATES, 'candidateDirs: unique and bounded')
+}
+
+console.log('\n— the title card from a document with no preview')
+{
+ const doc = { format: 'bento/slides', title: 'Q3', theme: { background: '#FFFFFF', color: '#1E2A3A', accent: '#F28C5A' }, slides: [
+ { id: 's0', stateOf: 'x', background: '#000000', elements: [{ type: 'text', html: 'hidden state' }] },
+ { id: 's1', background: '#123456', elements: [{ type: 'text', role: 'kicker', html: '<b>Kicker</b>', fontSize: 20 }, { type: 'text', role: 'title', html: 'The <i>file</i> is the&nbsp;software.', fontSize: 64 }, { type: 'text', html: 'sub', placeholder: 'x' }, { type: 'shape', html: 'no' }, { type: 'text', md: 'body words', fontSize: 24 }] },
+ ] }
+ const shell = `<html><script id="bento-doc" type="application/json">${JSON.stringify(doc).replace(/</g, '\\u003c')}</script><body></body></html>`
+ const card = cardFrom(shell)!
+ ok(!!card && card.bg === '#123456' && card.ink === '#1E2A3A' && card.accent === '#F28C5A', 'cardFrom: the first NON-state slide\'s background, the theme\'s ink and accent')
+ ok(card.lines.map((l) => l.text).join('|') === 'Kicker|The file is the software.|body words', 'cardFrom: the slide\'s texts, tags stripped, placeholders and shapes skipped')
+ ok(card.lines[1].role === 'title' && card.lines[1].size === 64, 'cardFrom: role and size ride along so the card can lead with the title')
+ ok(cardFrom('<html>no doc</html>') === null && cardFrom('<script id="bento-doc">{bad</script>') === null, 'cardFrom: not a deck → null')
+ const bare = cardFrom(`<script id="bento-doc">${JSON.stringify({ slides: [{ id: 'a', elements: [] }] })}</script>`)!
+ ok(bare && bare.bg === null && bare.lines.length === 0, 'cardFrom: missing colours stay null (the UI palette fills in), no literal of its own')
+ ok(cardFrom(`<script id="bento-doc">${JSON.stringify({ slides: [{ id: 'a', background: 'url(javascript:x)', elements: [] }] })}</script>`)!.bg === null, 'cardFrom: a background that is not a colour is dropped')
+}
+{
+ const manifest = JSON.parse(readFileSync(join(SRC, 'manifest.json'), 'utf8'))
+ ok(Array.isArray(manifest.host_permissions) && manifest.host_permissions.includes('file:///*') && manifest.host_permissions.length === 1, 'manifest: file:///* is the only declared host — what reading a local path needs, and nothing on the web')
+ const home = readFileSync(join(SRC, 'src/home.js'), 'utf8')
+ ok(/placeFolders\(\)/.test(home) && /placeFolders\(\{ force: true \}\)/.test(home), 'home.js places on load and again on Find my folders / a click')
+ ok(!/card\.disabled = true/.test(home), 'an unplaced card is no longer disabled — it explains and retries')
+}
+
+console.log('\n— the scan: documents found without a grant')
+{
+ const d = disk({
+ '/Users/you/Documents/Decks/Q3.bento.html': 'A',
+ '/Users/you/Documents/Decks/old/Q2.bento.html': 'B',
+ '/Users/you/Documents/notes.txt': 'n',
+ '/Users/you/Documents/node_modules/x/y.bento.html': 'skip',
+ '/Users/you/Desktop/teams-test/S1.bento.html': 'C',
+ '/Users/you/Downloads/Untitled.bento.html': 'D',
+ '/Users/you/Library/Mobile Documents/com~apple~CloudDocs/Work/W.bento.html': 'E',
+ '/Users/you/Movies/x.bento.html': 'not scanned',
+ '/Users/Shared/y.bento.html': 'not a home',
+ })
+ const found = await place.scanDisk({ fetch: d.fetch })
+ const paths = found.map((f) => f.path).sort()
+ ok(paths.join('|') === [
+ '/Users/you/Desktop/teams-test/S1.bento.html',
+ '/Users/you/Documents/Decks/Q3.bento.html',
+ '/Users/you/Documents/Decks/old/Q2.bento.html',
+ '/Users/you/Downloads/Untitled.bento.html',
+ '/Users/you/Library/Mobile Documents/com~apple~CloudDocs/Work/W.bento.html',
+ ].join('|'), `scanDisk: every .bento.html under Documents/Desktop/Downloads/iCloud, nested, nothing else (${found.length})`)
+ ok(!paths.some((p) => p.includes('node_modules') || p.includes('/Movies/') || p.startsWith('/Users/Shared')), 'scanDisk: noisy trees, other folders and non-home users are skipped')
+ ok(found[0].name.endsWith('.bento.html') && found.every((f) => f.dir && !f.dir.endsWith('/')), 'scanDisk: name and directory for each')
+ ok(!d.fetched.some((p) => p.endsWith('.bento.html')), 'scanDisk: listings only — no document bytes are read')
+ const none = await place.scanDisk({ fetch: async () => ({ ok: false }) })
+ ok(none.length === 0, 'scanDisk: a disk that answers nothing → nothing, no throw')
+ const deep = disk(Object.fromEntries(Array.from({ length: 3 }, (_, i) => [`/Users/u/Documents/${'d/'.repeat(place.SCAN_DEPTH + 2)}f${i}.bento.html`, 'x'])))
+ ok((await place.scanDisk({ fetch: deep.fetch })).length === 0, 'scanDisk: depth-limited')
+ const home = readFileSync(join(SRC, 'src/home.js'), 'utf8')
+ ok(/scannedDocs\(/.test(home) && /scanned: true/.test(home) && /addFolderFor/.test(home), 'home.js lists found documents beside granted ones and offers the grant per folder')
+ ok(/prefixFor\(dir, d\.path\)/.test(home), 'a grant made for a found document is checked against that document\'s path before it is kept')
+}
+
+console.log('\n— Windows and Linux homes')
+{
+ // Windows: a drive-letter home, Documents moved into OneDrive, listings under C:/Users
+ const d = disk({
+ '/C:/Users/you/OneDrive/Documents/Decks/Q3.bento.html': 'A',
+ '/C:/Users/you/Desktop/D.bento.html': 'B',
+ '/C:/Users/Public/x.bento.html': 'no',
+ '/C:/Windows/System32/y.bento.html': 'no',
+ })
+ const found = (await place.scanDisk({ fetch: d.fetch })).map((f) => f.path).sort()
+ ok(found.join('|') === '/C:/Users/you/Desktop/D.bento.html|/C:/Users/you/OneDrive/Documents/Decks/Q3.bento.html', 'Windows: C:/Users/<name> homes, OneDrive known-folder move, Public and Windows skipped')
+ ok(place.fileUrl('/C:/Users/you/Desktop/D.bento.html') === 'file:///C:/Users/you/Desktop/D.bento.html', 'Windows: the drive letter survives in the file URL')
+ // Linux: localized XDG names from user-dirs.dirs, a /home listing
+ const l = disk({
+ '/home/you/.config/user-dirs.dirs': 'XDG_DESKTOP_DIR="$HOME/Schreibtisch"\nXDG_DOWNLOAD_DIR="$HOME/Downloads"\nXDG_DOCUMENTS_DIR="$HOME/Dokumente"\nXDG_MUSIC_DIR="$HOME/Musik"\n',
+ '/home/you/Dokumente/Vortrag.bento.html': 'A',
+ '/home/you/Schreibtisch/S.bento.html': 'B',
+ '/home/you/Musik/m.bento.html': 'no',
+ })
+ const lf = (await place.scanDisk({ fetch: l.fetch })).map((f) => f.path).sort()
+ ok(lf.join('|') === '/home/you/Dokumente/Vortrag.bento.html|/home/you/Schreibtisch/S.bento.html', 'Linux: the XDG names the home declares (Dokumente, Schreibtisch), music not scanned')
+ ok(place.xdgDirs('XDG_DOCUMENTS_DIR="/mnt/data/docs"\nXDG_DESKTOP_DIR="$HOME/Desktop/"', '/home/u').join('|') === '/mnt/data/docs|/home/u/Desktop', 'xdgDirs: absolute paths kept, $HOME expanded, trailing slash dropped')
+}
+
+console.log('\n— an empty grant (the Bento folder) is placed through a marker')
+{
+ const files: Record<string, string> = {}
+ const d = disk(files)
+ let removed: string | null = null
+ const dir: any = {
+ name: 'Bento',
+ // writing the marker into the grant makes it appear on the fake disk at the real path
+ getFileHandle: async (name: string) => ({
+ createWritable: async () => ({ write: async (b: Uint8Array) => { files[`/Users/you/Documents/Bento/${name}`] = String.fromCharCode(...b) }, close: async () => {} }),
+ getFile: async () => { const body = files[`/Users/you/Documents/Bento/${name}`]; const b = new TextEncoder().encode(body); return { size: b.length, arrayBuffer: async () => b.buffer } },
+ }),
+ removeEntry: async (name: string) => { removed = name; delete files[`/Users/you/Documents/Bento/${name}`] },
+ }
+ ;(globalThis as any).crypto ??= { getRandomValues: (a: Uint8Array) => { for (let i = 0; i < a.length; i++) a[i] = (i * 37) % 251; return a } }
+ const prefixFor = async (_d: any, path: string) => (path.startsWith('/Users/you/Documents/Bento/') ? '/Users/you/Documents/Bento' : null)
+ const prefix = await place.placeFolder(dir, null, {}, { fetch: d.fetch, prefixFor })
+ ok(prefix === '/Users/you/Documents/Bento', 'placeFolder: no document to fingerprint → a marker file is written, found, and the folder placed')
+ ok(removed !== null && String(removed).startsWith('.bento-place-') && Object.keys(files).length === 0, 'the marker is removed afterwards, whatever happened')
+ const home = readFileSync(join(SRC, 'src/home.js'), 'utf8')
+ ok(/createBentoFolder/.test(home) && /defaultFolder/.test(home) && /startIn: 'documents'/.test(home), 'home.js offers the Bento folder, remembers it as the default for new documents, and opens the picker in Documents')
+}
+
+console.log('\n— folders the OS keeps from the browser')
+{
+ // Documents named by the home listing but refused when listed itself; Desktop readable; Downloads empty but readable
+ const files = { '/Users/you/Desktop/x.bento.html': 'x', '/Users/you/Documents/hidden.bento.html': 'h' }
+ const d = disk(files)
+ const inner = d.fetch
+ const fetch = async (url: string) => {
+ if (/\/Users\/you\/Documents\//.test(url)) return { ok: false }
+ if (url === 'file:///Users/you/Downloads/') return { ok: true, text: async () => '' }
+ if (url === 'file:///Users/you/') return { ok: true, text: async () => ['Desktop', 'Documents', 'Downloads'].map((n) => `<script>addRow("${n}","${n}",1,0,"0",0,"");</script>`).join('') }
+ return inner(url)
+ }
+ const blocked = await place.blockedFolders({ fetch })
+ ok(blocked.join() === '/Users/you/Documents', `blockedFolders: a folder the home names but refuses to list, and only that (${blocked.join()})`)
+ ok(!blocked.includes('/Users/you/Downloads'), 'an EMPTY folder that lists fine is not "blocked"')
+ const home = readFileSync(join(SRC, 'src/home.js'), 'utf8')
+ ok(/noticeOsBlocked/.test(home) && /openedAt/.test(home), 'the library says which folders the OS refuses, and lists opened documents')
+}
+
+console.log(`\n${checks - failures}/${checks} checks passed`)
+process.exit(failures ? 1 : 0)