Skip to content

Commit e6c1b9c

Browse files
mbeczynskiclaude
andcommitted
l10n: vm-encrypt in all 22 languages
The 58 vm-encrypt strings in the 20 languages added by #42, one table per language (L10nTranslations+Encryption-<code>.swift) merged into the main one, with each language's existing terms (Keychain, Full Disk Access, the machine, the buffer guard). L10nTests pass. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AU1Mhxpy65J75YYTkmt7NF
1 parent 5dc5adf commit e6c1b9c

21 files changed

Lines changed: 2448 additions & 20 deletions

‎mac-app/Sources/CloudMachineCore/L10n.swift‎

Lines changed: 28 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -75,28 +75,36 @@ public enum L10n {
7575
/// Every language except English (the keys themselves).
7676
static let translations: [Language: [String: String]] = [
7777
.pl: polish,
78-
.ar: L10nTranslations.ar,
79-
.da: L10nTranslations.da,
80-
.de: L10nTranslations.de,
81-
.es: L10nTranslations.es,
82-
.fi: L10nTranslations.fi,
83-
.fr: L10nTranslations.fr,
84-
.he: L10nTranslations.he,
85-
.it: L10nTranslations.it,
86-
.ja: L10nTranslations.ja,
87-
.ko: L10nTranslations.ko,
88-
.ms: L10nTranslations.ms,
89-
.nb: L10nTranslations.nb,
90-
.nl: L10nTranslations.nl,
91-
.ptBR: L10nTranslations.ptBR,
92-
.ru: L10nTranslations.ru,
93-
.sv: L10nTranslations.sv,
94-
.th: L10nTranslations.th,
95-
.tr: L10nTranslations.tr,
96-
.zhHans: L10nTranslations.zhHans,
97-
.zhHant: L10nTranslations.zhHant,
78+
.ar: merged(L10nTranslations.ar, L10nTranslations.arEncryption),
79+
.da: merged(L10nTranslations.da, L10nTranslations.daEncryption),
80+
.de: merged(L10nTranslations.de, L10nTranslations.deEncryption),
81+
.es: merged(L10nTranslations.es, L10nTranslations.esEncryption),
82+
.fi: merged(L10nTranslations.fi, L10nTranslations.fiEncryption),
83+
.fr: merged(L10nTranslations.fr, L10nTranslations.frEncryption),
84+
.he: merged(L10nTranslations.he, L10nTranslations.heEncryption),
85+
.it: merged(L10nTranslations.it, L10nTranslations.itEncryption),
86+
.ja: merged(L10nTranslations.ja, L10nTranslations.jaEncryption),
87+
.ko: merged(L10nTranslations.ko, L10nTranslations.koEncryption),
88+
.ms: merged(L10nTranslations.ms, L10nTranslations.msEncryption),
89+
.nb: merged(L10nTranslations.nb, L10nTranslations.nbEncryption),
90+
.nl: merged(L10nTranslations.nl, L10nTranslations.nlEncryption),
91+
.ptBR: merged(L10nTranslations.ptBR, L10nTranslations.ptBREncryption),
92+
.ru: merged(L10nTranslations.ru, L10nTranslations.ruEncryption),
93+
.sv: merged(L10nTranslations.sv, L10nTranslations.svEncryption),
94+
.th: merged(L10nTranslations.th, L10nTranslations.thEncryption),
95+
.tr: merged(L10nTranslations.tr, L10nTranslations.trEncryption),
96+
.zhHans: merged(L10nTranslations.zhHans, L10nTranslations.zhHansEncryption),
97+
.zhHant: merged(L10nTranslations.zhHant, L10nTranslations.zhHantEncryption),
9898
]
9999

100+
/// A language's main table and its vm-encrypt table
101+
/// (`L10nTranslations+Encryption-<code>.swift`). The tables share no key.
102+
private static func merged(_ main: [String: String], _ part: [String: String])
103+
-> [String: String]
104+
{
105+
main.merging(part) { first, _ in first }
106+
}
107+
100108
/// All Polish tables merged. Split into files so that parts of the code can
101109
/// be translated in parallel without editing one shared dictionary.
102110
static let polish: [String: String] = {
Lines changed: 121 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,121 @@
1+
// Arabic translations of vm-encrypt (DriveEncryption), keyed by the English text.
2+
extension L10nTranslations {
3+
static let arEncryption: [String: String] = [
4+
"%@ and its metadata are in Google Drive's bin (kept 30 days, still counted in the quota).":
5+
"%@ وبياناته الوصفية في سلة مهملات Google Drive (تُحفظ 30 يومًا وتظل محسوبة ضمن الحصة).",
6+
"'%@' is already in %@ - not replacing its password.":
7+
"'%@' موجود بالفعل في %@ - لن تُستبدل كلمة مروره.",
8+
"'%@' is already in the machine's rclone.conf - not replacing its password.":
9+
"'%@' موجود بالفعل في rclone.conf الخاص بالجهاز الافتراضي - لن تُستبدل كلمة مروره.",
10+
"%@ holds folders this key cannot read: another password or salt in the machine, or leftovers of an earlier try. Compare the machine's rclone.conf with the Mac's; leftovers have to be removed from %@ by hand.":
11+
"يحتوي %@ على مجلدات لا يستطيع هذا المفتاح قراءتها: كلمة مرور أو ملح مختلف في الجهاز الافتراضي، أو بقايا محاولة سابقة. قارن rclone.conf الخاص بالجهاز الافتراضي بالموجود على Mac؛ يجب حذف البقايا من %@ يدويًا.",
12+
"'%@' is incomplete or missing in the Mac's rclone.conf - run: cloudmachine-agent vm-encrypt setup":
13+
"'%@' غير مكتمل أو غير موجود في rclone.conf على Mac - شغّل: cloudmachine-agent vm-encrypt setup",
14+
"CLOUDMACHINE_VM_INSTANCE=%@ needs its own rclone.conf - set RCLONE_CONFIG to a copy, not %@. Its Keychain entry is service %@.":
15+
"يحتاج CLOUDMACHINE_VM_INSTANCE=%@ إلى ملف rclone.conf خاص به - اضبط RCLONE_CONFIG على نسخة، وليس على %@. مدخله في سلسلة المفاتيح هو الخدمة %@.",
16+
"Could not read the '%@' section on the Mac or in the machine.":
17+
"تعذرت قراءة القسم '%@' على Mac أو في الجهاز الافتراضي.",
18+
"The machine's '%@' (password, salt or folder) differs from the Mac's - the copy would be readable only with the machine's key. Not moving anything.":
19+
"'%@' في الجهاز الافتراضي (كلمة المرور أو الملح أو المجلد) يختلف عن الموجود على Mac - لن تُقرأ النسخة إلا بمفتاح الجهاز الافتراضي. لن يُنقل أي شيء.",
20+
"A file was restored from the encrypted backup.":
21+
"تمت استعادة ملف من النسخة الاحتياطية المشفرة.",
22+
"Added '%@' (%@) on the Mac and in the machine; password and salt are in the Keychain (service %@).\nSALT: %@\nKeep the password AND this salt outside this Mac now - without both the encrypted backup cannot be read. Next: cloudmachine-agent vm-encrypt copy":
23+
"تمت إضافة '%@' (%@) على Mac وفي الجهاز الافتراضي؛ كلمة المرور والملح في سلسلة المفاتيح (الخدمة %@).\nالملح: %@\nاحفظ الآن كلمة المرور وهذا الملح خارج هذا Mac - فبدونهما لا يمكن قراءة النسخة الاحتياطية المشفرة. التالي: cloudmachine-agent vm-encrypt copy",
24+
"Adds the encrypted remote on the Mac and in the machine (asks for the password). Moves no data.":
25+
"يضيف الوجهة البعيدة المشفرة على Mac وفي الجهاز الافتراضي (يطلب كلمة المرور). لا ينقل أي بيانات.",
26+
"Again: ":
27+
"مرة أخرى: ",
28+
"Copies the plain backup into the encrypted folder, in the background; backups go on.":
29+
"ينسخ النسخة الاحتياطية غير المشفرة إلى المجلد المشفر في الخلفية؛ وتستمر النسخ الاحتياطية.",
30+
"Copy: %@":
31+
"النسخ: %@",
32+
"CLOUDMACHINE_VM_INSTANCE=%@ without CLOUDMACHINE_VM_REMOTE would use the live backup's folder - set both.":
33+
"سيستخدم CLOUDMACHINE_VM_INSTANCE=%@ بدون CLOUDMACHINE_VM_REMOTE مجلد النسخة الاحتياطية العاملة - اضبط الاثنين.",
34+
"Could not add the remote to %@: %@":
35+
"تعذرت إضافة الوجهة البعيدة إلى %@: %@",
36+
"Could not add the remote to the machine's rclone.conf.":
37+
"تعذرت إضافة الوجهة البعيدة إلى rclone.conf الخاص بالجهاز الافتراضي.",
38+
"Could not read %@.":
39+
"تعذرت قراءة %@.",
40+
"Could not read when Time Machine last finished a backup (Full Disk Access?) - not deleting.":
41+
"تعذر معرفة متى أنهى Time Machine آخر نسخة احتياطية (الوصول الكامل إلى القرص؟) - لن يُحذف شيء.",
42+
"Could not start the copy: %@":
43+
"تعذر بدء النسخ: %@",
44+
"Could not write %@.":
45+
"تعذرت كتابة %@.",
46+
"Deleting the plain folder failed: %@":
47+
"فشل حذف المجلد غير المشفر: %@",
48+
"Encrypted folder: %@":
49+
"المجلد المشفر: %@",
50+
"Encryption password: ":
51+
"كلمة مرور التشفير: ",
52+
"Machine uses: %@":
53+
"الجهاز يستخدم: %@",
54+
"Moves the backup on Google Drive under rclone encryption: setup, copy, switch, then delete-plain.":
55+
"ينقل النسخة الاحتياطية على Google Drive إلى تشفير rclone: setup ثم copy ثم switch ثم delete-plain.",
56+
"Moves the plain folder to Google Drive's bin - only after a backup has finished into the encrypted one.":
57+
"ينقل المجلد غير المشفر إلى سلة مهملات Google Drive - فقط بعد اكتمال نسخة احتياطية في المجلد المشفر.",
58+
"Moving the machine failed; it went back to %@: %@":
59+
"فشل تحويل الجهاز الافتراضي؛ وعاد إلى %@: %@",
60+
"No answer from rclone in the machine - the upload queue is unknown.":
61+
"لا رد من rclone في الجهاز الافتراضي - قائمة انتظار الرفع غير معروفة.",
62+
"No backup has finished into the encrypted folder yet (last one %@, switched %@) - not deleting.":
63+
"لم تكتمل أي نسخة احتياطية في المجلد المشفر بعد (الأخيرة %@، التحويل %@) - لن يُحذف شيء.",
64+
"Not everything is on Google Drive yet (%@ MB unsent, %@ uploading, %@ failed). Wait until the upload is done: cloudmachine-agent vm-status":
65+
"ليس كل شيء على Google Drive بعد (%@ ميغابايت لم تُرسل، %@ قيد الرفع، %@ فشلت). انتظر حتى ينتهي الرفع: cloudmachine-agent vm-status",
66+
"Restore a file from the encrypted backup first (Time Machine, Browse), then confirm with --restore-checked.":
67+
"استعد أولًا ملفًا من النسخة الاحتياطية المشفرة (Time Machine، تصفح)، ثم أكّد باستخدام --restore-checked.",
68+
"Shows which folder the machine uses and the copy.":
69+
"يعرض المجلد الذي يستخدمه الجهاز الافتراضي وحالة النسخ.",
70+
"Switched: %@":
71+
"التحويل: %@",
72+
"The copy is already running - see: cloudmachine-agent vm-encrypt status":
73+
"النسخ قيد التشغيل بالفعل - راجع: cloudmachine-agent vm-encrypt status",
74+
"The copy runs in the machine (%@, log %@). Backups go on meanwhile. Check: cloudmachine-agent vm-encrypt status":
75+
"يعمل النسخ في الجهاز الافتراضي (%@، السجل %@). تستمر النسخ الاحتياطية في أثناء ذلك. للتحقق: cloudmachine-agent vm-encrypt status",
76+
"The copy to the encrypted folder has not finished well (%@) - run: cloudmachine-agent vm-encrypt copy, and wait for it.":
77+
"لم ينته النسخ إلى المجلد المشفر بنجاح (%@) - شغّل: cloudmachine-agent vm-encrypt copy وانتظره.",
78+
"The encryption password and salt are kept outside this Mac.":
79+
"كلمة مرور التشفير والملح محفوظان خارج هذا Mac.",
80+
"The guard holds Time Machine paused and would resume it during the switch. Wait until it resumes and the upload is done.":
81+
"يُبقي حارس المخزن المؤقت Time Machine متوقفًا مؤقتًا وسيستأنفه أثناء التحويل. انتظر حتى يُستأنف وينتهي الرفع.",
82+
"The image metadata has not been copied to the encrypted folder since the last backup - not deleting.":
83+
"لم تُنسخ البيانات الوصفية للصورة إلى المجلد المشفر منذ آخر نسخة احتياطية - لن يُحذف شيء.",
84+
"The last sync or cryptcheck failed - the machine was NOT moved: %@":
85+
"فشلت المزامنة الأخيرة أو cryptcheck - لم يُحوَّل الجهاز الافتراضي: %@",
86+
"The machine already uses the encrypted folder - nothing to switch.":
87+
"يستخدم الجهاز الافتراضي المجلد المشفر بالفعل - لا شيء للتحويل.",
88+
"The machine already uses the encrypted folder.":
89+
"يستخدم الجهاز الافتراضي المجلد المشفر بالفعل.",
90+
"The machine does not use the encrypted folder - nothing to roll back.":
91+
"لا يستخدم الجهاز الافتراضي المجلد المشفر - لا شيء للتراجع عنه.",
92+
"The machine does not use the encrypted folder - the plain folder is the backup. Not deleting it.":
93+
"لا يستخدم الجهاز الافتراضي المجلد المشفر - المجلد غير المشفر هو النسخة الاحتياطية. لن يُحذف.",
94+
"The machine has no '%@' remote in its rclone.conf - run: cloudmachine-agent vm-encrypt setup":
95+
"لا توجد وجهة بعيدة '%@' في rclone.conf الخاص بالجهاز الافتراضي - شغّل: cloudmachine-agent vm-encrypt setup",
96+
"The machine is not on this app's template or does not use %@ (cloudmachine-agent vm-update first): %@":
97+
"الجهاز الافتراضي ليس على قالب هذا التطبيق أو لا يستخدم %@ (أولًا cloudmachine-agent vm-update): %@",
98+
"The machine now uses %@, but %@ could not be updated (%@) - fix it before anything else runs vm-setup.":
99+
"يستخدم الجهاز الافتراضي الآن %@، لكن تعذر تحديث %@ (%@) - أصلحه قبل أن يشغّل أي شيء آخر vm-setup.",
100+
"The machine now uses %@. %@ is kept. Turn automatic backups back on: sudo tmutil enable":
101+
"يستخدم الجهاز الافتراضي الآن %@. يُحتفظ بـ %@. أعد تشغيل النسخ الاحتياطية التلقائية: sudo tmutil enable",
102+
"The password must have at least 12 characters.":
103+
"يجب أن تتكون كلمة المرور من 12 حرفًا على الأقل.",
104+
"The passwords differ - nothing was changed.":
105+
"كلمتا المرور مختلفتان - لم يتغير شيء.",
106+
"The switch the other way: decrypts what changed back into the plain folder and uses it again.":
107+
"التحويل في الاتجاه المعاكس: يفك تشفير ما تغيّر إلى المجلد غير المشفر ويستخدمه مجددًا.",
108+
"The upload to the encrypted folder is not finished (or rclone did not answer) - not deleting.":
109+
"لم ينته الرفع إلى المجلد المشفر (أو لم يرد rclone) - لن يُحذف شيء.",
110+
"Time Machine is backing up. Turn automatic backups off (sudo tmutil disable), stop it (tmutil stopbackup), then run this again.":
111+
"يُجري Time Machine نسخًا احتياطيًا. أوقف النسخ الاحتياطية التلقائية (sudo tmutil disable)، وأوقفه (tmutil stopbackup)، ثم شغّل هذا مجددًا.",
112+
"With Time Machine stopped: last sync, cryptcheck, then the machine uses the encrypted folder. The plain one stays.":
113+
"مع إيقاف Time Machine: مزامنة أخيرة ثم cryptcheck ثم يستخدم الجهاز الافتراضي المجلد المشفر. يبقى المجلد غير المشفر.",
114+
"Without the encryption password and salt the encrypted backup cannot be read. Keep both outside this Mac (a password manager, paper), then confirm with --secrets-saved-elsewhere.":
115+
"بدون كلمة مرور التشفير والملح لا يمكن قراءة النسخة الاحتياطية المشفرة. احفظ الاثنين خارج هذا Mac (مدير كلمات مرور، ورق)، ثم أكّد باستخدام --secrets-saved-elsewhere.",
116+
"rclone obscure failed.":
117+
"فشل rclone obscure.",
118+
"tmutil did not answer - not switching while Time Machine's state is unknown.":
119+
"لم يرد tmutil - لن يتم التحويل ما دامت حالة Time Machine غير معروفة.",
120+
]
121+
}

0 commit comments

Comments
 (0)