Compare commits

...
97 Commits
Author SHA1 Message Date
Linus Rath ab8a911863 chore: update version number to 0.1.68 2026-09-27 12:47:00 +02:00
Linus Rath dca9417aee feat: restyle calendar events and toasts to the app design 2026-09-27 12:34:58 +02:00
Linus Rath 8f604bf02e feat: merge contacts and calendar sync with the phone on Android #34
Brings feat/device-sync into main: on Android, each account's address
books and calendars can sync both ways with the phone's Contacts and
Calendar apps (Settings -> Contacts / Calendar -> Sync to this
device), through a "Bulwark" Android account with a contacts and a
calendar sync adapter.

- native side: the account, both sync adapters, provider access scoped
  to the account, push routing to the syncs, sync problem notices
- the sync engine in `src/device-sync`, run as a headless task
- the settings sections, sign-out and removal handling, translations
- design, limitations and verification in `docs/device-sync.md`
2026-09-27 12:14:37 +02:00
Linus Rath cf93f68fd3 docs: add the device checks of the review fixes to device sync's verification #34
The fixes since the first device runs were checked on the emulators
too: moves that stay the same event, statuses, server deletions, items
moved away before a deletion, quiet runs, the permission flow,
uninstalling and reinstalling, and the settings' collection count. The
list of what only tests cover shrinks accordingly.

The device runs also showed that Stalwart stores a calendar's default
alerts on the series, so removing every reminder of an occurrence is
put back and reported for such a series as well, and that Google
Calendar's first edit of an occurrence brings its reminders back
without a report.
2026-09-27 11:59:20 +02:00
Linus Rath 2ee056749c test: give the big meeting tests time on a busy machine #34
The planner tests that build meetings of 25 attendees on 52 overrides
take 0.3-1.8 s alone, but one of them passed the default 5 s limit in
a full run next to a release build. The two slowest tests of the file
already had 60 s; the other heavy ones get the same.
2026-09-27 11:57:56 +02:00
Linus Rath 10edc331a5 fix: keep device sync's notes out of the warning toast of debug builds #34 2026-09-27 11:23:44 +02:00
Linus Rath 157ea398b8 fix: update the sync settings' collection count after the chooser listed new ones #34
The account row in the sync settings counts the synced address books
or calendars from its own copy of the list, loaded when the row
appears. The chooser loads a fresh list when it opens, so a calendar
created meanwhile showed there but not in the count ("4 of 5 sync"
stayed after a sixth appeared, and turning it on or off changed
nothing) until the settings page was opened again.

Every fresh list now reaches every view of that account's collections,
so the count follows the chooser.
2026-09-27 11:23:44 +02:00
Linus Rath e09640cfc2 docs: describe device sync after the last round of fixes #34
Brings the doc up to the code after the second round of fixes and the
code review: moves of meetings, deletions of items another client
moved away, big meetings written in several transactions, occurrence
colours and reminders, the stored status of runs that did nothing,
push types by server capability, reminders while the phone's calendar
can't sync, and sign-out waiting for a turn-on in progress.

The known limitations gain what the fixers and the device runs found
but left alone: pairs whose patch fails, a field the server changes
during a pending move, Google Calendar's copy-and-delete moves and its
copied reminders, group cards deleted after they moved away, and a
status line that shows item errors but not conflicts.
2026-09-27 10:32:25 +02:00
Linus Rath ae679a7d3d docs: list contacts and calendar sync with the phone as done on Android #34 2026-09-27 10:24:06 +02:00
Linus Rath 156e79b348 fix: keep a card or event another app moved away when it is deleted on the phone #34
A contact or event deleted on the phone that another client meanwhile
filed in an address book or calendar the phone doesn't sync was
destroyed on the server by the phone's next sync, and the other
client's move with it. 0faee56 made the sync decide such a deletion on
the server's version, but the planners still destroyed it: the
contacts planner saw the card in no synced book and destroyed it, and
the calendar planner could not take the new version at all (it placed
the event before looking at the deletion), so the old one decided.

The deletion is now moot when the server's version holds none of the
collections the rows were written for and none the phone syncs: only
the rows go, nothing is uploaded, and the object stays where the other
client put it. A deletion still goes up when the book or calendar was
deselected on the phone before the upload, and when the object was
moved into another collection the phone syncs, since the phone would
otherwise miss an object it should show. The calendar planner now lets
a deleted row's shadow follow the server before it places the event.
2026-09-27 10:20:56 +02:00
Linus Rath df3175ff72 refactor: decide in one place whether a card is in read-only books only #34 2026-09-27 10:20:55 +02:00
Linus Rath 800c4e1442 fix: stop waiting for React Native once a sync gave up on it #34
A sync that had to start React Native left a listener on the React
host until a context came up. When the start failed (a debug build
without Metro) or never finished, every retried sync added another
one, each holding its run, account and extras, for the life of the
process, and they all fired at once when a context finally came up.

The wait now ends once, and removes its listener, for whatever
reason: a ready context, a start task that faulted, or 10 minutes
(no sync or push job waits longer; JobScheduler stops them). A
context that comes up later runs nothing of it. The adapter's own
check of its run in the callback still covers a run it gave up
sooner.
2026-09-27 10:20:55 +02:00
Linus Rath 5e62cf71f4 fix: add no extra account named after its id when Android refuses one #34
Turning device sync on retried with the app account's registry id as
the Android account name whenever adding the account failed. That
fallback is for one case only: the login name turned out to belong to
another app account's Android account, which the native module
reports with the `conflict` code. A passing AccountManager failure or
a permission error instead created a second account named after the
opaque id, which then showed in the Contacts and Calendar apps.

Only a `conflict` rejection takes the fallback now; any other failure
fails the turn-on as before.
2026-09-27 10:20:55 +02:00
Linus Rath ef96acd05f fix: finish turning sync on or off before signing an account out #34
Turning device sync on or off runs one step after the other per
account, but signing out did not wait its turn. A sign-out that
started while a turn-on was still setting up (or queued behind a slow
turn-off) found no Android account yet and went ahead; the turn-on
then created the Android account, stored it and requested a sync for
the signed-out account, and the next check posted "Sign in to keep
syncing". A turn-off still tearing down could likewise store its
preferences after the sign-out had forgotten the account.

The release before a sign-out is now a step in the queue of every
account it releases, taken in a fixed order: it waits for the steps
under way and releases what they set up. A turn-on or turn-off asked
for while the sign-out runs comes after it, and does nothing once the
account was released; if the user stays signed in it goes ahead.
2026-09-27 10:20:55 +02:00
Linus Rath 0664a31f8b fix: keep reminding of synced events while the phone's calendar can't sync #34
With calendar sync on and the calendar app reminding, Bulwark skipped
its own reminders for the synced calendars whenever sync was on in the
app, even when the phone's calendar received nothing: its calendar sync
paused in Android's account settings, Android's auto-sync off, or the
calendar permission revoked. Events created on the server meanwhile
never reached the phone, and nobody reminded of them.

The reminder filter now keeps what Android last said about each
account (the permission, `getMasterSyncAutomatically` and the
calendar's `getSyncAutomatically`) and stays quiet only while the
phone's calendar receives events. Auto-sync off counts as not
receiving: Android then runs manual syncs only, and the periodic,
pushed and app-triggered syncs are not manual. Android's side is read
when the scheduler subscribes and again whenever the filter is asked
for; a changed answer makes the scheduler reschedule. Until it was
read, Bulwark reminds: a double reminder is better than a missed one.
2026-09-27 10:20:55 +02:00
Linus Rath 217bb59d57 fix: forget a contact created and deleted on the phone between two syncs #34
ContactsProvider soft-deletes every raw contact and group of a sync
account, also one that never reached the server (DELETED=1, SOURCE_ID
NULL). When a contact or group was created and deleted on the phone
before a run claimed it, no upload phase took the row: without an
identity or a pending create it belongs to no JMAP account, and the
claim step skipped deleted rows. The row stayed for good, and the
upload-only check and the teardown counted it as a waiting change:
every upload sync the providers schedule became a full run, and
turning sync off or signing out always asked about a change that would
be lost.

The claim step now hands such a row to the planner, whose plan for it
is a purge, and `hasLocalWork` and `countPending` leave out deleted
rows that have neither an identity nor a pending create. Nothing is
uploaded for them. Calendar has no such gap: CalendarProvider
hard-deletes an app-deleted event without `_SYNC_ID`, and a claimed
event carries `~pending/<uid>`, so it is soft-deleted with its pending
create and destroyed by uid as before.
2026-09-27 10:20:55 +02:00
Linus Rath eebb00238c fix: look for new mail when a push names changes it can't read #34
The native push router and the push task decided separately whether a
push may carry mail, and disagreed. For an account entry that is not
an object, or a map that names no type, the router started the mail
task as possible mail, but the task's guard read the same payload as
"no mail" and returned, so new mail it announced was never looked for.
A push without a kind was judged by its map in the router but taken
for mail by the task.

Both now apply the same rules: anything but a StateChange, a map that
is missing, unreadable or names no type, an unreadable account entry,
or a mail type means the mail task runs. Only a readable StateChange
naming contact, calendar or other non-mail types skips it.

Checked with one table of payloads run against the router's decision
and the task's guard alike.
2026-09-27 10:20:55 +02:00
Linus Rath 41e2bdf922 fix: notify new mail again when a push names Email but not EmailDelivery #34
On main every push ran the mail task, whose legacy path notifies the
newest unread inbox mail. Device sync narrowed that to pushes naming
EmailDelivery, so contact and calendar changes never notify. But a
subscription made by an older build listens to Email and Mailbox until
the app is opened again, and a server without EmailDelivery reports
new mail only as those changes. Their new mail no longer showed a
notification while the app was closed.

Email and Mailbox now count as possible mail again, in the native push
router and in the push task alike. A push that names only contact or
calendar types still never takes the mail path.

Checked with the push router and push task tests: an Email or Mailbox
change starts the task and the legacy path notifies the message,
next to the syncs a mixed map asks for.
2026-09-27 10:20:55 +02:00
Linus Rath 11b897177d fix: keep mail push on servers without contacts or calendars #34
The push subscription got the contact and calendar types whenever the
account had device sync on, without asking whether its server has
contacts or calendars. Sync can be on for such an account: the settings
list every signed-in account, and a server can drop a capability later.
A server that refuses unknown types then refused the update and the
replacement, and push setup failed: a new account got no mail push, an
existing one lost it when its subscription expired.

The types are now added only for a capability the account's session
advertises, and a write the server refuses while it carries device
sync's types is retried with EmailDelivery alone, so mail push never
depends on device sync.

Checked with the push setup tests against a fake server that refuses
unknown types: a new subscription is created mail-only, an existing
one is kept and refreshed, and another account's subscription is left
alone when its server lacks the capability.
2026-09-27 10:20:54 +02:00
Linus Rath 029eba4562 fix: keep the last sync's result when a sync after it finds nothing to do #34
The settings show the stored status of the last sync. A sync that
finds nothing to do still replaced it, so a change the server refused
and the phone put back, or a conflict, was shown for a second or two
and then gone. The previous fix covered only the upload sync Android
starts right after a manual one. When changes arrive during a sync,
the adapter runs a full sync right after it, which finds nothing new
on the server and replaced the status 1-2 s after the real one; a
manual sync right after another does the same.

Now what counts is what a run did, not how it started. A run that
wrote nothing either way and reported no conflict, item error, note or
failure keeps the details of the run before it and moves only the time
on. After a failed run it shows the sync as working again, without the
failure's message. Any other run replaces the status, so a problem
stays only until the next run that does something.
2026-09-27 10:20:54 +02:00
Linus Rath 66789251e3 fix: keep a meeting moved in Etar the same event instead of cancelling and re-inviting #34
Etar moves an event by inserting a copy from its editor and deleting
the old row. Its editor keeps the user's own attendee row out of the
attendee list, so the copy of a meeting that lists the user has no row
for the user, and the copy of one that does not gets the user as its
organizer. The pairing compared the attendee addresses of both rows
exactly, so a moved meeting never paired: it was deleted on the server
and created again under a new uid, the other attendees' answers were
lost, and everyone got a cancellation and a new invitation.

The pairing now leaves the user's own addresses out of that
comparison. Anyone else still has to be on both rows, so a copy that
lost or gained another attendee is not taken for the same event.

Checked with planner tests for both kinds of meeting and a run through
the engine with a fake Etar move.
2026-09-27 10:20:54 +02:00
Linus Rath 117823f746 test: make the device sync fakes as strict as Android and Stalwart #34
The fake providers and the fake server were more lenient than the
real ones, so three bugs showed only on a device: an event inserted
without a status, small contact photos, and meetings too big for one
provider transaction.

The fake CalendarProvider leaves STATUS NULL when an app writes none.
The fake ContactsProvider keeps a photo within the 96 px thumbnail as
the thumbnail alone, without a PHOTO_FILE_ID, and serves it to
readPhoto from there. A batch fails with tooLarge when it weighs more
than one Binder transaction, a photo counted by its bytes. The fake
server drops empty maps inside recurrence overrides, as Stalwart does.
Tests now read photos the way the engine does, and the helpers that
made up for the old fakes are gone.
2026-09-27 10:20:54 +02:00
Linus Rath 3ab131dbe8 fix: keep the last sync's result when an upload sync finds nothing to do #34
Android starts an upload-only sync right after a manual sync, and 30 s
after any app write. When nothing waited on the device it ended at
once, but it still stored its status, so the settings showed a plain
"synced" and lost the conflicts and item errors of the run just
before it.

Such a run did nothing and now leaves the stored status alone.
2026-09-27 10:20:54 +02:00
Linus Rath 9439a4ffc0 fix: keep an occurrence's colour cleared, and report reminders that can't go #34
Clearing the colour of one occurrence of a coloured series removed the
occurrence's own colour, so it showed the series' colour again after
the sync. The occurrence now gets an empty colour, which Stalwart keeps
and which shows as the calendar's colour, as on the phone.

Removing every reminder of one occurrence sent an empty set of alerts,
which Stalwart does not store: the occurrence then showed the series'
reminders again, without a word. When the series uses the calendar's
default reminders, the occurrence leaves the defaults and has none, as
before. When the series has reminders of its own, the occurrence would
show them whatever is sent, so the change is put back and the report
says why (`remindersNotRepresentable`).

Checked against calcard 0.3.14, with planner tests and runs through
the engine and the fake server.
2026-09-27 10:20:54 +02:00
Linus Rath 4bcca70548 fix: write big meetings in several provider transactions #34
A recurring meeting with many attendees on many occurrences (25 on 52,
100 on 12) is about 2 MB of provider operations, and one Android
provider transaction carries 1 MB. Every event was written as one
group that the engine never splits, so such a meeting was refused every
run and never reached a phone that synced it for the first time.

An item too big for one group now comes as a chain of groups that the
engine applies one by one, each in a transaction of its own. A new
event is written master first, with its identity, then its occurrences
in groups that fit, then its shadow; a write into an existing event
writes the occurrences first and the series with its new shadow last.
When a run stops between two groups, the next one finds the event by
its identity and writes only what is missing, planned from the old
shadow, so no row is written twice and no server change is lost.

Checked with planner tests for both meeting sizes and every cut point,
and runs through the engine with a provider that refuses transactions
over 1 MB, a crash after every batch included.
2026-09-27 10:20:54 +02:00
Linus Rath 0110eebb78 fix: upload an edited event another client moved out of synced calendars #34
When another client moved an event into a calendar this device does
not sync while the device had an unsent edit of it, the calendar
planner refused to merge the server's version, since the event is in
no synced calendar any more. The edit then waited on every run as a
planner error, and the event never left the device.

The server's version now merges into the rows where they are, so the
edit uploads against it without undoing the other client's changes,
and the rows go once the server has taken the edit.

Checked with a planner test and a run through the engine and the fake
server: the series rescheduled on the device keeps the occurrence the
other client added, and no rows are left.
2026-09-27 10:20:54 +02:00
Linus Rath 724c3b80ee chore: update version number to 0.1.67 2026-09-27 10:15:08 +02:00
Linus Rath f24d919fdb docs: describe device sync after the review fixes and how it was verified #34
The device sync doc still described the feature as first built. The
review fixes since then changed pairs, merges of items outside the
synced collections, the order of uploads, group handling, photos, the
provider-op scope checks, the settings actions and what the report
says about changes put back on the phone.

Each fix's doc notes are applied against the code as it is now, the
known limitations gain what the device runs found (an identity as
organizer, Stalwart refusing answers in read-only calendars, Fossify
Calendar around DST changes, AOSP's one-line address edits), and a new
Verification section lists what was checked on emulators and the scale
run's numbers.
2026-09-27 09:15:53 +02:00
Linus Rath 13d5d1733b fix: say "1 of 3 syncs" when one collection of several syncs #34 2026-09-27 08:50:59 +02:00
Linus Rath 84f6b5777e feat: translate device sync into all 26 languages #34
The strings of device sync were English only: the "Sync to this
device" sections in the Contacts and Calendar settings with their
dialogs, and the notifications about signing in again and about sync
problems. Each language keeps the form of address its file already
uses, the app's own terms, and Android's names for its settings,
auto-sync and the Contacts and Calendar apps.

Checked: every message parses as ICU with the same arguments as the
English one and the plural categories of its language,
`node scripts/rn-missing-translations.mjs <lang>` lists no device sync
key for any language, `npm run i18n:check` and the i18n tests pass.
2026-09-27 08:50:15 +02:00
Linus Rath 7453513e08 fix: stop waiting for group memberships in read-only address books #34
A contact added on the phone to a group in a read-only address book
(one shared with the user) could never reach the server, yet it stayed
waiting on every run: the planner puts such a membership back, but the
engine never told it which groups are read-only, so only groups of
another account were recognised. Turning sync off or signing out then
always asked about a change that could never go up.

The engine now tells the planner which synced groups are in read-only
books only, from the group cards it holds and the books' rights. The
membership is put back and reported, and nothing is left waiting.
2026-09-27 08:44:58 +02:00
Linus Rath d1ae713b1f fix: report changes the phone puts back because the server can't take them #34
A change the server cannot take was put back on the phone without a
word: an edit in a read-only calendar or address book, an answer
where answers are not allowed, an event moved to another account's
calendar, an occurrence the server keeps without its series, a
contact added to a group this device can't change. The change just
vanished.

The planners now say why they put a change back, and the sync report
lists the item with that reason (`readOnly`, `rsvpRefused`,
`instanceOnly`, `crossAccountMove`, `groupNotWritable`). A contact
whose only change still uploads through a group card is not listed.

A refused edit was also reported as "invitations not sent", as if it
had been stored without them; the note now appears only when the
change was stored without its scheduling messages.
2026-09-27 08:44:58 +02:00
Linus Rath 1c75da8733 fix: remove an event created in a read-only calendar and say so #34
An event created on the phone in a calendar the user may only read was
meant to be removed, since the server takes no changes there, but the
claim step ignored that answer: the event stayed on the phone, was
never sent or reported, and turning sync off always warned that a
change had not reached the server.

The claim step now applies it: the row goes, the report lists it as
read-only, and nothing is left waiting.
2026-09-27 08:44:58 +02:00
Linus Rath 1a348792c0 fix: let the server's deletion win over an event moved on the phone #34
Etar moves an event by deleting the row and inserting a copy. When the
event was deleted on the server meanwhile, the sync removed the deleted
row but kept the copy, which then uploaded as a new event: the event
the server had deleted came back in the target calendar, for everyone.
That happened whether the download found the event gone first, which
is the usual case, or the patch of the move did.

A move is an edit, and the server's deletion wins over an edit: the
copy that pairs with the deleted row now goes with it, and the report
counts the conflict. A copy edited beyond the move stays a new event.

Checked through the engine with the event destroyed before the run,
while the move was sent, and with the patch answered notFound.
2026-09-27 08:44:58 +02:00
Linus Rath f24ff7da9e fix: keep the other edits of an event moved to another calendar #34
Etar moves an event, or turns a series into a single event, by deleting
the row and inserting a copy. The pair uploaded the move as a patch of
the event, but then took the copy as it stood for the new baseline and
wrote the server's version over it, so everything else saved with the
move was dropped: a changed reminder came back, and an edit made before
the move never reached the server. The synced occurrences, which Etar
does not copy, were deleted with the old row, losing an occurrence edit
that was still waiting.

The copy now starts from the old row's baseline with only what the move
changed, so any other difference stays dirty and uploads right after
the move as an ordinary update. The old row's occurrences move to the
new row with what they wait to upload. Attendee rows of the copy are
the app's re-insert (Etar writes everyone as required, without a
status) and are not read as edits.

Checked with planner tests and runs through the engine and the fake
server: a reminder saved with the move and a pending occurrence edit
both reach the server, the event keeps its uid, and the echo writes
nothing.
2026-09-27 08:44:58 +02:00
Linus Rath 0faee568cc fix: let a contact deleted on the phone and moved away meanwhile survive #34
When another client moved a card out of every address book the device
syncs while the device deleted the contact, the engine noted the card
for dropping but never showed its new version to the planner, so the
deletion was decided on the old copy and destroyed the card. A deleted
item is now merged like any changed one first; the contacts planner
then leaves a card that is in no synced book. When the planner cannot
place the object, the deletion stays as it was.
2026-09-27 07:53:37 +02:00
Linus Rath 654675d90b fix: keep unsynced changes waiting when sync is turned off before the first sync ended #34
Turning sync off uploads what the device changed without downloading
first; every upload carries the state the device last synced, so the
server refuses it when something changed meanwhile and the engine
downloads first. Before the first sync of an account had ended there
was no such state, and edits and deletions went up unguarded, able to
overwrite what another client had changed. They now wait, and the app
asks before they are dropped; new items still go up.
2026-09-27 07:53:37 +02:00
Linus Rath 153e85cb80 fix: finish turning sync off when the app goes to the background #34
Turning sync off first uploads what the device changed, then removes
the synced rows. Started from the settings screen, that work yielded
the JS thread with timers between its steps, and React Native pauses
timers while the app is in the background and no headless task runs:
leaving the app stopped it halfway, holding the account's sync lock,
until the app came back. The teardown now waits without timers.
2026-09-27 07:53:37 +02:00
Linus Rath b86e0a118e fix: size provider batches by what the Binder transaction carries #34
The batch budget counted JSON characters, but a Parcel carries strings
as UTF-16 plus a few hundred bytes per operation, so a full batch was
about 700 KB of a 1 MB Binder buffer the whole process shares. Batches
are now weighed at two bytes per character plus 300 bytes per op and
kept under 500 KB of that. The state op no longer joins a batch whose
last item already fills a provider yield window of 499 operations,
which ContactsProvider refused.
2026-09-27 07:53:37 +02:00
Linus Rath 1ee6bc459d fix: move group members on the phone after an interrupted sync #34
When a group's members change on the server, the download fetches the
contacts whose membership flipped in a chunk after the group's. The
group's chunk already stored its new version, so when the sync stopped
before the members' chunk, the next sync found no flip any more and
the phone kept the old members. Those contacts are now listed with the
group's rows, as objects to fetch first, until their own chunk ran.
2026-09-27 07:53:36 +02:00
Linus Rath fe0aaa1247 fix: load a book selected while the first sync was cut short #34
A full reconcile that ran out of time resumes after the last object it
processed, in the sorted order of every listed id. It listed the
collections selected at the time it resumed and marked them all loaded
at its end, so a book turned on in between lost the objects that sorted
before that point, and was never loaded again. The reconcile now keeps
the collections it started with; one selected since is loaded after it
like any newly selected collection.
2026-09-27 07:53:36 +02:00
Linus Rath 78700401a2 test: keep a contact's groups when an upload runs without a download #34
A sync with nothing to download, and the upload before sync is turned
off, used to plan uploads with an empty group index, so the write after
the upload deleted the uploaded contact's membership rows on the phone.
The previous commit's refresh of the index before planning uploads
fixes both; these tests cover the two paths so it stays fixed.

Checked: both tests fail without that refresh.
2026-09-27 07:53:36 +02:00
Linus Rath 2e1cb58548 fix: finish loading or removing a book after an interrupted sync #34
The SyncState's `selected` said which collections were on the device,
and changed only when a load or a removal had finished. A book turned
off and on again while the device was still removing it looked loaded,
so the contacts removed so far never came back; a calendar came back
empty. A book turned on and off again while it was still loading never
looked loaded, so the contacts loaded so far were never removed.

`selected` now names only collections whose rows are all on the device:
a collection leaves it before its first row is removed, and the
contacts SyncState lists collections that are loaded or removed only in
part, so the next run loads them again when they are selected, or
removes the rest when they are not. A book that still holds a change
waiting for its upload stays in that list instead of `selected`.
2026-09-27 07:53:36 +02:00
Linus Rath ecbd218c34 fix: sync only the primary account's collections by default #34
The settings chooser and the reminder filter treat only the capability's
primary account as the user's own, while the engine also counted any
account the server marks as personal. On a server that lists a second
such account, its address books and calendars synced although the
chooser showed them off. The engine now uses the same rule as the app.
2026-09-27 07:53:36 +02:00
Linus Rath 474eae9992 fix: never duplicate an event's reminders after a busy calendar database #34
A provider that is busy may commit a batch up to a yield point and then
fail it. The engine retried every group of such a batch and relied on
the groups' asserts to refuse one that was already committed, but a
download into an unchanged event asserts only the event's own columns:
when it had only added a reminder or an attendee, the retry added it a
second time.

A download is now planned again from a new read after a failed batch
instead of being sent again, which turns a committed group into an echo.
The fake provider can commit a batch up to a yield point to test it.
2026-09-27 07:53:36 +02:00
Linus Rath 7701a67dff fix: keep favourites and joins when the server refuses an edit #34
When the server refused an edit made on the device (a book or calendar
that turned read-only, an event in a calendar where only one's own
events may be changed), the engine put the item back by deleting its
rows and inserting a fresh copy. A contact lost its star, ringtone and
the link to the contacts it was joined with; an event got a new row id.

The rows are now rewritten in place from the server's version, as after
an accepted upload. A refused deletion still brings the item back as a
new copy.
2026-09-27 07:53:36 +02:00
Linus Rath 2e9e5bb785 fix: remove items the server deleted right after this device created them #34
After an upload the stored state stays where the download left it, and
the engine relied on /changes to report its own creates back. /changes
leaves out an object that was created and destroyed after the state it
is asked from (Stalwart does, RFC 8620 allows it), so an event or
contact created on the device and deleted on the server before the next
download stayed on the device for good.

The SyncState now lists the objects our uploads created, written with
their identity, and the next run fetches them first: one that is gone
loses its rows, an unchanged one writes nothing. An upload-only sync
runs in full while the list is not empty.
2026-09-27 07:53:36 +02:00
Linus Rath fad7b30dbf fix: upload new contacts whose address book was deleted meanwhile #34
A new contact is claimed for an address book before its create is
sent, so a retry after a lost response finds it again. When that book
was deleted on the server before the create went up, every attempt
failed and was retried after up to a day, forever. A book that is gone
can hold nothing of an earlier attempt, so the contact is now claimed
again for the book the settings choose.

An event cannot move on its own to another calendar: a create into a
calendar that is gone is no longer sent, and the report says why, until
the user moves the event in the calendar app.
2026-09-27 07:53:36 +02:00
Linus Rath 34236f677b fix: never resend a group's members from an outdated copy #34
A group whose latest server version the device could not store waits
on the stale list, and nothing uploads for it until it has been fetched
again. Membership edits bypassed that check: adding a contact to such a
group sent the whole member list as the device last knew it, which
removed members another client had added meanwhile. Membership edits
for a stale group now wait for that fetch, and the report lists them.
2026-09-27 07:53:36 +02:00
Linus Rath 09c2ff1f67 fix: upload a contact's removal from a group made on the phone #34
Whether a membership edit still has to go up is decided against the
group cards on the server, which the engine indexes from their shadows.
The index was only read before planning a download that held contacts,
so in a run that downloaded no contact, such as the upload sync after
an edit, it was empty: removing a contact from a group looked already
done on the server, the contact was marked clean and the removal was
never sent. The engine now reads the index before planning uploads too.
2026-09-27 07:53:35 +02:00
Linus Rath d088dd14e9 fix: stop asking about waiting changes after a group edit reached the server #34
A contact stays marked as changed until the group cards on the server
show its membership edits. The engine uploaded those edits as patches
of the group cards after the contacts, but never looked at the contact
again in that run, so it stayed marked until the next sync. Turning
contacts sync off or signing out right after adding a contact to a
group therefore asked whether to drop one waiting change, although
nothing was waiting.

Once the membership patches are accepted, the contacts that have
nothing else to upload are now cleared in the same run, behind the
same version check as any other clean write.
2026-09-27 07:53:35 +02:00
Linus Rath 58b74527b2 fix: keep group cards on the server when a sync stops while dropping them #34
The contacts SyncState lists the group rows on the device, so a group
an app hard-deleted (Fossify does) is found by its absence and deleted
on the server. The list changed only with a later state op, not with
the batch that inserted or deleted the rows. When a run stopped in
between (cancelled, out of time, a crash, or turning sync off while a
deselected book was being dropped), a group the engine had removed was
still listed, taken for a hard delete by the next run or by the
teardown's upload, and its card destroyed on the server; a group it had
inserted was never listed, so a later hard delete never went up.

A batch that inserts or deletes a group row now ends with a state op
holding that change, retries included, so the list and the rows never
disagree. A group a download finds unchanged is listed too, for rows
whose batch lost its state op at a provider yield point. And an absent
group whose card is no longer a group or is in no synced book is only
forgotten, never destroyed.

Checked with a crash at every checkpoint of a deselection, a teardown
and a deadline stop during one, a server-side move in a page of several
chunks, and a group written before an interruption and then deleted in
Fossify.
2026-09-27 07:53:35 +02:00
Linus Rath 7187cab904 fix: never undo server changes to a card moved out of synced books #34
When another client moved a contact or an event out of every address
book or calendar the device syncs while the device had an unsent edit
of it, the download only noted it for dropping after the upload. Its
shadow stayed at the old version while the stored state moved past the
change, so the upload passed `ifInState` and resent whole maps built
from the old shadow: a number or an occurrence added on the server
meanwhile was lost. A full reconcile that found such an object did the
same.

The download now merges the new version into the dirty rows like any
other change, so the upload builds on it, and the rows still go once
it is accepted. A contact's collections are read from its shadow:
SYNC1 lists only the selected books and is empty for a card that left
them all, so such a contact was never dropped after its upload. The
calendar planner cannot merge an event that is in no synced calendar
yet; until it can, such an event waits on the device and is reported
instead of overwriting the server.

Checked with the real planners through `/changes` and through a full
reconcile.
2026-09-27 07:53:35 +02:00
Linus Rath 7dbbd1ce25 fix: move events between calendars without recreating them on the server #34
Etar moves an event to another calendar, and turns a series into a
single event, by deleting the row and inserting a copy. The engine was
meant to pair the two rows and upload a patch of the existing event,
but it claimed every new row (a uid and a pending create) before it
asked the planner for pairs, and the planner pairs only unclaimed rows.
No pair ever formed: the event was destroyed and created again under a
new uid, which lost what the device cannot show (keywords, virtual
locations, links, the other attendees' answers, alerts relative to the
end) and sent every attendee a cancellation and a new invitation.

Pairs now upload before new rows are claimed, and a paired deletion no
longer counts toward the deletion threshold, since it is a move. When
an app changes the rows while the patch is on its way, they are read
and paired again; rows that no longer pair are left without the
identity instead of having the server's version written into the new
row, which overwrote the edit and left two rows with one identity.

Checked with the real planners: a move and a series turned single keep
their uid, keywords and attendee answers and send nothing; an edit made
during the upload is kept; an unchanged rewrite still pairs.
2026-09-27 07:53:35 +02:00
Linus Rath 78684e2492 fix: keep the last sync time current while the sync settings stay open #34 2026-09-27 07:52:12 +02:00
Linus Rath c635ccd586 fix: open the account's sync page from the sync settings #34
"Android account settings" opened Android's page for the Bulwark
account through `ACCOUNT_SYNC_SETTINGS` with the account as the
`account` extra. The Settings app of Android 12L and later passes only
`:settings:show_fragment_args` on to that page, which then found no
account and closed at once ("Account provided does not exist: null").
Since starting it succeeded, the fallback to the list of synced
accounts never ran, and the button seemed to do nothing.

The account now also goes in the fragment arguments, where those
Settings apps read it; older ones still read the plain extra.

Checked on the API 32 and API 34 emulators: the button opens the
account's "Account sync" page with its Contacts and Calendar switches.
2026-09-27 07:49:53 +02:00
Linus Rath 534cb8239e fix: keep the groups of a contact created on the device #34
A contact created on the device and put into a group before its first
sync lost that group: the write after its create took the rows' own
memberships as what the server already had, found them missing there
and deleted the rows, so the group card was never patched.

The create's write now starts from no memberships, as its fallback
already did: the device's memberships count as additions, stay on the
device, keep the contact dirty until the group cards show them, and
upload as patches of the group cards.

Checked with a planner test and end to end through the engine.
2026-09-27 07:19:27 +02:00
Linus Rath 6f574de0b9 fix: keep small contact photos on the device and on the server #34
ContactsProvider keeps a photo within its 96 px thumbnail as the
thumbnail alone, without a PHOTO_FILE_ID, and the thumbnail does not
read back. Such a Photo row looked empty to the planner. Every
download of the card inserted the photo again (two, then three
rows), and any edit of the contact on the device deleted the photo on
the server.

A Photo row now always counts as the contact's photo. Photo rows that
earlier downloads added again are deleted by the contact's next clean
write, one row is kept, and nothing reaches the server for them. A
photo set on the device is still uploaded.

Checked with planner tests and end to end through the engine, with a
provider that stores small photos as thumbnails as the device does.
2026-09-27 07:19:27 +02:00
Linus Rath d34641d1f9 fix: sync contacts whose photo is too large for the device #34
A contact's rows are written in one provider batch, and one batch is
one Binder transaction of at most 1 MB. A contact with a larger photo
failed with `tooLarge` on every run, stayed on `stale`, never showed
on the device, and its device edits never uploaded.

Photos above about 512 KiB are now kept on the server only: the
contact is written without the photo. The shadow records that the
device holds no row for the card's photo, so the missing row is not
read as a deletion. The same applies to a photo whose bytes could not
be fetched, which an unrelated edit of the contact used to delete from
the server. A photo set on the device still replaces the server's, and
one deleted there is still deleted on the server.

Checked with planner tests for the insert, the size limit, a photo
that could not be fetched and a merge, and end to end through the
engine with the probe's 900 KB photo.
2026-09-27 07:19:27 +02:00
Linus Rath 00f1a66095 fix: keep phone, email and website types as picked on the device #34
Types Android has but RFC 9553 lacks uploaded as a label naming them,
yet every label read back as a custom type, and MMS and company main
read back as Other and Main. A number typed Car showed up as
"Custom: car" right after the sync, an MMS number as Other, a mobile
email as "Custom: mobile" and a blog link as "Custom: blog".

Such a label now names its type again, for phones only next to the
feature the type uploads with, so a custom label stays custom. MMS
uploads its `mms` label next to `text`, which keeps a text-capable
number from reading as MMS, and `main-number` with `work` reads as
company main.

Checked with a round trip of every phone, email and website type,
both for a contact created on the device and for a type changed on
a synced entry.
2026-09-27 07:19:27 +02:00
Linus Rath 05e3605ec7 fix: keep a group rename when a membership change of the group uploads first #34
Accepting a membership patch of a group card wrote the server's title
over the device's and cleared DIRTY. A rename that had not reached the
server in the same run, because the server refused it or the user made
it after the group's own upload was planned, was silently undone.

The accepted write now keeps a pending rename that the accepted card
does not show: it stores the new shadow but leaves the title and
DIRTY, so the rename uploads against it. A card that shows the
device's title, or a different one from a concurrent server rename,
is taken as before.

Checked with a planner test and end to end through the engine with a
refused rename and a membership change in the same run.
2026-09-27 07:19:27 +02:00
Linus Rath 20effab062 fix: keep an address's parts in step with a one-line edit on the device #34
AOSP Contacts edits a postal address as one formatted line; the
provider then copies it into the street and empties the other parts.
The upload sent only the new `full`, so the components on the server
kept the old values: CardDAV clients and the app's editor, which show
the parts, still showed the old city.

A changed line now uploads with the parts it implies. They are read
back along the old line: each of its segments must be some of the old
parts, and a segment whose change is confined to one part rewrites
that part like an in-place edit of its field. When the layout changed
or a change spans two parts, the address keeps the whole line as its
street, which is what the device holds, rather than an address
without parts that the app's editor would show empty and drop on its
next save. An unchanged line still uploads nothing, and editors that
write the parts themselves are handled as before.

Checked with planner tests for the edit from the device test, a
street-only edit, the fallback, a re-inserted line and an editor
that keeps the parts, and with unit tests of the read-back.
2026-09-27 07:19:27 +02:00
Linus Rath c30b4a23d2 fix: stop contacts waiting forever on group memberships the server can't take #34
A contact added to or removed from a group this device can't change
stayed dirty on every run: the membership upload skips such groups,
while the contact's clean write kept the change pending until the
server showed it. Turning sync off and signing out then always warned
about changes waiting for the server.

The clean write now puts such a membership back to what the server
has, as it does for any edit of a read-only contact, and clears DIRTY;
when that was the contact's only change the upload counts it as
skipped. Memberships of writable groups in the contact's own account
still wait until the group card shows them.

This covers groups of another JMAP account. For groups in read-only
address books the planner is ready, but the engine does not tell it a
group's rights yet; that follows separately.

Checked with planner tests for additions, removals, both kinds of
group and a change next to an edit that uploads, and end to end
through the engine for a group of a shared account, where turning
sync off afterwards finds nothing waiting.
2026-09-27 07:19:26 +02:00
Linus Rath 13264d6479 fix: keep contacts the server also filed in unsynced books when deleted on the device #34
A contact or group deleted on the device was uploaded against the
shadow of its last sync: a download into a deleted item wrote nothing.
When the server had meanwhile also filed the card in an address book
this device does not sync, the deletion still saw only the synced book
and destroyed the card, its copy in the other book included.

A download into a deleted contact or group now writes the new server
card into its shadow, and takes over an identity that was never
written, so deleting our own lost create goes by id rather than by a
uid lookup. The rows and the group title stay as they are: the device
delete still wins. The upload then removes only the synced memberships
of a card that is also in other books, as the calendar planner already
does for events.

Checked with planner tests for contacts and groups and end to end
through the engine with the real planner: the card stays in the
unsynced book, the device rows are purged, and an echo writes nothing.
2026-09-27 07:19:26 +02:00
Linus Rath 7a53cd5d84 fix: let the user delete or restore held-back deletions from the sync settings #34
When a sync held back many deletions made on the device (Android's
2026-09-27 07:19:26 +02:00
Linus Rath 2b9d19521f fix: keep sync on when it is turned back on during a turn-off #34
Turning device sync off uploads what the device changed and then deletes
2026-09-27 07:19:26 +02:00
Linus Rath c777dc4089 fix: keep syncing a big meeting after it was edited on the phone #34
After an edit on the phone, every write into a recurring event asserted
each attendee and reminder row of every occurrence. For a meeting with
25 attendees and 52 occurrences with details of their own that alone
made the write 1.6 MB, over Android's 1 MB transaction limit: the event
could no longer be written, went stale in every run and kept its edit.

Only rows that are dirty themselves now assert their attendees and
reminders. A clean row's DIRTY flag already catches an app edit of
them, since CalendarProvider sets it on every app write to an event,
its attendees or reminders, so such a write still fails and is planned
again. The same meeting's writes now take about 0.65 MB.

Checked with the meeting above through the planner, and with an app
edit of a clean occurrence's attendees between planning and writing.
2026-09-27 07:10:47 +02:00
Linus Rath 6785276377 fix: put back an event moved in place to another account's calendar #34
An app that moves an event by changing its calendar in place can move
it into a calendar of another account on the device. A patch cannot
move an event between accounts, so the move was dropped; with nothing
else changed, the row was then marked clean where it stood. The phone
showed the event in the other account's calendar while the server kept
it in the old one, until the next server change moved it back.

The row now goes back to its calendar at once, rewritten from the last
server version. Changes made together with the move still upload, and
their accepted write puts the row back as before.

Checked with a run through the engine and the fake server with a shared
account: the event is back in its calendar and clean, and the server
and the other account are untouched.
2026-09-27 07:10:47 +02:00
Linus Rath d3262ff387 fix: send an answer to one occurrence in an RSVP-only calendar #34
In a calendar the user may only answer (mayRSVP without write rights),
an answer to the whole series was uploaded, but an answer to a single
occurrence goes into the occurrence's override and counted as an edit:
it was undone on the next sync without a word.

A change that holds nothing but the user's own answer, to the series
or to occurrences, now counts as an RSVP and is uploaded. Stalwart
0.16.23 refuses every update in a shared calendar without write rights,
answers included; the engine then puts the rows back from the server
and reports the refusal, as it already did for an answer to the series,
so the answer is no longer lost silently.

Checked with a planner test (a new and an existing override, and an
extra edit that is still reverted) and a run through the engine and
the fake server.
2026-09-27 07:10:47 +02:00
Linus Rath 7736b3b551 fix: keep a reminder changed on one occurrence of a series #34
In a series that uses the calendar's default reminders, a reminder set
on one occurrence went into the occurrence's override, but the
occurrence still used the defaults it inherits from the series, which
ignore an event's own alerts. The phone showed the default reminder
again after the sync while the server held the new one.

The override now also leaves the defaults (`useDefaultAlerts: false`),
so only that occurrence uses its own alerts and the series keeps the
calendar's defaults. Stalwart stores the flag of an override with the
override (as a JSPROP) and serves it back.

Checked with a planner test (an existing override and a new "this
event" edit) and a run through the engine and the fake server.
2026-09-27 07:10:47 +02:00
Linus Rath 2870a59971 fix: stop events from Google Calendar arriving as tentative #34
Google Calendar leaves STATUS empty on the events and exceptions it
creates, and CalendarProvider has no default for it. Device sync read
the empty value as 0, STATUS_TENTATIVE, so every event and every "this
event" edit made there uploaded as "tentative" and came back to the
phone that way; a copy made with "Copy to" also never paired with the
deleted original.

An empty STATUS now sets no status: a create leaves `status` out, so
the server keeps its default of confirmed, an override gets none of its
own, an edited event never uploads one, a merge takes the server's
without counting a conflict, and a pair ignores it. After the upload
the rows hold the server's status.

A new series from Etar's "this and following" also no longer uploads
the old series' exclusions from before its start, which Etar copies
into the new row's EXDATE.

Checked with planner tests for each path and a run through the engine
and the fake server.
2026-09-27 07:10:47 +02:00
Linus Rath 232e892328 fix: keep an occurrence's description or location empty once cleared #34
Clearing the description or location of one occurrence of a series in a
calendar app removed the value from the occurrence's override. An
override without a value of its own shows the series' one, so the write
after the upload put "Daily agenda" or "Room 1" back into the occurrence
and made it clean: the user's edit was gone without a trace.

An existing override now gets an explicit empty value while the series
has one to fall back to: the empty text for the description, and a
location without a name, the only empty forms Stalwart keeps (calcard
writes no LOCATION line for an empty map, which then reads back as the
series' locations). Without a series value the override's own is removed
as before. New exception rows keep treating an empty value as "inherit".

Checked with a planner test and a run through the engine and the fake
server: the row stays cleared and clean, and the echo writes nothing.
2026-09-27 07:10:47 +02:00
Linus Rath 49c5d05c30 fix: keep every provider write of device sync inside its own account #34
The native side ANDs the account's scope onto each selection the engine
sends, as `(where) AND (scope)`. A selection such as `1) OR (1` closed
the scope's parenthesis itself: on the calendar tables, where
CalendarProvider adds no account filter of its own, an update or delete
built that way would have reached the events, attendees and calendars
of other accounts, e.g. the user's Google calendar. The engine only
sends constant selections, so this guards against bugs rather than
anything an outside app could send, which is what the scope is for.

- Selections and sort orders must balance their parentheses outside
  quoted literals, and may not end the statement, carry comments or
  query other tables (`SELECT`, `UNION`, `ATTACH`, `PRAGMA`).
- An update of a data row by id that writes `data1` without restating
  the mimetype has the row's mimetype looked up: on a membership row
  `data1` names a group, which must be the account's, as on insert.
  Such writes by selection are refused.
- `data14`, a photo row's file id, is never written: another account's
  file id would have let `readPhoto` read that account's photo.

Checked: 58 JVM tests (`gradlew :app:testDebugUnitTest`, three new), the
debug build, and every selection the engine and planners send against
the new rules.
2026-09-27 06:12:08 +02:00
Linus Rath d135bb2449 docs: describe device sync as it was built #34
The design in f666699 was written before the code, and building it
changed a number of details, several of them after runs against the
real providers on the emulators. The doc now says what the code does:

- a sync run's steps in the order they run, the stale list, the
  reconcile cursor, the owner check, the time margins, and accounts that
  are left out when they refuse to list their collections;
- uploads in phases across accounts, the `ifInState` catch-up, account
  refusals, series splits and copied events, creates adopting only in
  their target collection, and poison markers;
- the contacts and calendar mappings as built (membership rows, text
  limits, postal and relation rules, read-only rows and calendars,
  exceptions, reminders under the old owner), and the columns the
  providers refuse to return;
- the native module's scoping, the app's store, lifecycle and triggers,
  and the failure matrix;
- decisions and limitations, with the questions still open.

Checked: every statement against the code of this branch.
2026-09-27 05:41:26 +02:00
Linus Rath 417ed5a326 fix: log why a device sync run failed #34
The sync adapter logged only the SyncResult counters of a run, so a
failed sync showed up in logcat as `ioErrors=1` and nothing else. The
reason was in the run's report, and JS warnings from a headless run
don't reach logcat; finding out that a run failed on "Invalid column
raw_contact_is_read_only" took reading the app's storage. The log line
now carries the report's outcome, its message (up to 300 characters)
and the number of failed items.

Checked: 55 JVM tests (`gradlew :app:testDebugUnitTest`, one new) and
the debug build.
2026-09-27 05:27:13 +02:00
Linus Rath 77fd494633 feat: turn on contacts and calendar sync to this device in settings #34
On Android, Settings > Contacts and Settings > Calendar get a "Sync to
this device" section with a row per signed-in account. This makes device
sync reachable:

- The switch asks for the contacts or calendar permission after a short
  explanation (denied: sync stays off and says why, with a link to the
  app's system settings once Android stops asking), creates the
  account's Bulwark account in Android and syncs right away. Turning it
  off uploads what the device changed first and asks before anything
  that could not go up is lost. The switch shows Android's own state, so
  sync turned off in Android Settings shows as paused.
- Which address books or calendars sync: the personal account's are on
  by default, shared ones and the Trusted Senders book off; read-only
  ones are marked, and a note says when another signed-in account
  already syncs the same shared one.
- The address book new contacts from other apps go to, who reminds of
  synced events (the calendar app or Bulwark, asked when calendar sync
  is turned on while Bulwark's reminders are on), and how often Android
  syncs on its own (every 15 minutes to every 6 hours, or not at all).
- "Sync now", the last sync with its result, or the error with what to
  do about it ("Sign in again", "Grant access", "Review deletions"), and
  a link to the account in Android Settings.
- Accounts the app signed out while they synced are listed with "Sign
  in again" and "Remove from this device".

The settings search finds both sections. iOS, and Android builds without
the native module, show nothing new.

Checked: the collection listing and status tests, the settings search
and i18n tests, `npm run typecheck`, `npm test` and `npm run i18n:check`
on this commit, and on the API 32 emulator with usera on the local
server: the section, turning contacts sync on (Android account created,
152 contacts on the device, one per card) and the status after a run.
2026-09-27 05:15:32 +02:00
Linus Rath 9d83b2fb62 fix: stop warning about shared accounts that share only mail #34
434c554 left an account that refuses to list its address books or
calendars out of the run, but reported it as an item error. The sync
settings then said "1 item could not be synced" after every run for an
account that merely shares a mailbox: nothing the user can fix, and no
item behind it. Such an account is now only logged.

Checked: the engine tests, `npm run typecheck` and `npm test` on this
commit, and the sync settings of usera on the API 32 emulator after a
new run.
2026-09-27 05:14:04 +02:00
Linus Rath a27d014c59 fix: ask before a sign-in link from another app signs in
Any web page (one tap) or installed app (no tap) could fire a
`bulwarkmail://pair` link at the app, which then silently added the
sender's mailbox and switched to it, so the user might send or save mail
into an attacker's account. A `connect` link likewise opened any
server's sign-in page.

- Links that arrive from outside the app now ask first, naming the
  webmail's host and whether the link adds an account. Cancel discards
  the link for good; a link delivered again while the question is open
  is dropped. Codes scanned or pasted inside the app still go straight
  through.
- With the account registry full, a link shows the limit instead of
  opening "Add account".
- A pairing link for a plain-http webmail says the connection would be
  unencrypted instead of "That code isn't a Bulwark sign-in code", or
  nothing at all for a tapped link.
2026-09-27 05:11:07 +02:00
Linus Rath 26bb947940 fix: keep the account limit from leaving the app signed in as the wrong account
Signing in connects the shared client to the new account and stores its
credentials before the account registry takes it. With ten accounts the
registry refused, but nothing undid the connect: every request then went
out as the new account while the app still showed the old one. A
sign-in link made this easy to reach, since it opened "Add account"
without the limit check the menus have.

- A failed registration now restores the previous connection and drops
  credentials the registry never took.
- Adding an account to a full registry is refused before a sign-in code
  is spent or a browser sign-in starts, with "Remove an account in
  Settings to add another one."
2026-09-27 05:10:50 +02:00
Linus Rath ad0f83c72f fix: stop reading the read-only flag the contacts provider never returns #34
The contacts planner read RAW_CONTACT_IS_READ_ONLY with every raw
contact, but ContactsProvider takes that column only on writes: every
projection and selection that names it fails with "Invalid column", on
API 32 and API 35 alike. Every contacts sync on a device therefore
failed before it wrote a row. The fake provider accepted the column, so
no test noticed.

The flag is now only written, along with any raw contact write that
happens anyway, so echoes stay write-free. Whether a contact's device
edits are put back is decided from the server's current rights on the
card, which is also right when only the rights changed. The fake now
refuses the column in queries and selections like the real providers,
and every other column the planners query was checked against the real
providers on both emulators.

Checked: the contacts, engine and fake provider tests, `npm run
typecheck` and `npm test` on this commit, and a contacts sync of usera
on the API 32 emulator, which now completes.
2026-09-27 05:07:58 +02:00
Linus Rath 434c554038 fix: keep syncing when a shared account refuses access to its address books or calendars #34
Stalwart lists an account shared with the user for mail only with every
capability, and answers `forbidden` when the user asks for its address
books or calendars. The engine treated that like any failed request, so
on the local test server every sync of usera ended with an I/O error and
never reached the device, only because userb shares a mailbox.

An account that refuses to list its collections (`forbidden`,
`accountNotFound`, `accountNotSupportedByMethod`) is now left out of the
run and reported as an item error; the other accounts sync as before.
The rows written for such an account stay on the device: a refusal can
pass, and dropping the account's contacts and events for one refused
request would throw away device edits that are still waiting.

Checked: three new engine tests (a shared account that never listed,
one that stops listing its address books, one that stops listing its
calendars), which fail without the fix, `npm run typecheck` and
`npm test` on this commit, and a contacts sync of usera on the API 32
emulator, which now ends `ok` with one item error.
2026-09-27 05:06:36 +02:00
Linus Rath 1c574a5a93 feat: leave reminders of synced events to the device's calendar app when asked #34
When an account's calendars sync to the device and the user chose the
device's calendar app to remind them, that app gets the events'
reminders. Bulwark's own reminder scheduler now skips the events of
those calendars, which would otherwise remind the user twice. Tasks
never sync and keep Bulwark's reminders, and a change of who reminds, or
of which calendars sync, reschedules right away.

Checked: the reminder filter and scheduler tests, `npm run typecheck`
and `npm test` on this commit.
2026-09-27 04:39:53 +02:00
Linus Rath eb8b33160c feat: remove synced contacts and calendars from the device on sign-out #34
Signing out of an account (or of all of them, or removing one) now first
uploads what the device changed in its synced contacts and calendars,
then deletes them and removes its Android account, while the credentials
still work. When changes could not be uploaded (offline, server errors)
the app asks before signing out and losing them; staying signed in
keeps the account syncing. Several accounts are released in parallel,
and an internal error never keeps anyone from signing out: the next
check against Android's accounts stops what was left from syncing.

A successful sign-in clears the account's "Sign in again" notification
and resumes an account that stopped syncing when it was signed out.

Checked: `npm run typecheck` and `npm test` on this commit (the release
and resume paths are covered by the lifecycle tests of e67e240).
2026-09-27 04:38:34 +02:00
Linus Rath e67e240840 feat: ask android to sync when contacts or calendars change #34
With device sync on, Android should hear about a change as soon as the
app does, not only at the next periodic sync. This adds what tells it:

- The app's own contact and calendar edits, StateChanges on the live
  stream for `AddressBook`/`ContactCard` and `Calendar`/`CalendarEvent`,
  and the app coming back to the foreground request a sync of that
  account and authority. Requests within 5 s fold into one, and a
  StateChange the engine caused itself (its own upload echoing back) is
  skipped.
- While the app is closed, the account's push subscription carries
  those types too. The FCM and UnifiedPush services hand every push to
  the native router from f743ab0, which requests the syncs, and start
  the mail push task only when a push has `EmailDelivery`; the task also
  returns early for such pushes, so a contact change can never show the
  "newest unread mail" notification.
- At launch, on foreground and when Android's accounts change, the app
  checks Android's accounts against its own: an account removed in
  Android Settings shows sync off and is not recreated, and one whose app
  account is gone stops syncing and posts "Sign in again", keeping its
  data.

The functions that turn sync on and off (`src/device-sync/app/lifecycle.ts`)
come with this; the settings that call them land in a later commit, so
nothing here runs before an account has device sync on.

Checked: the new store, lifecycle, trigger and push tests, `npm run
typecheck`, `npm test` and `npm run i18n:check` on this commit, and the
debug build.
2026-09-27 04:36:51 +02:00
Linus Rath a948738506 feat: map contacts and groups to android's contacts provider #34
This is the planner for contacts (`src/device-sync/contacts`), the last
piece the sync task was waiting for: it turns JSContact cards into raw
contacts and data rows, and device edits back into JMAP writes.

- Names, nicknames, organizations and titles, emails, phones, postal
  addresses, websites, birthdays and anniversaries (also without a
  year), relations, notes and photos map both ways, with their types and
  custom labels. Group cards become groups, and their members become
  group memberships.
- Device edits upload as patches of the fields whose rows changed; a
  whole map goes up only where Stalwart needs one. Whatever a card holds
  that Android can't show (pronouns, online services, keywords, a second
  note, an address's coordinates) is never touched, so an edit on the
  phone leaves it intact on the server.
- Rows are matched to their card's entries by the keys they carry and,
  where an editor re-inserted them without (Fossify saves that way), by
  their values. An entry the editor didn't show is never read as
  deleted, and the keys Stalwart assigns by position to cards from other
  clients are followed when they shift.
- Contacts in read-only address books are put back when the device
  changes them. Text beyond what the provider stores is cut on the device
  and never uploaded.

Checked: 151 contacts tests (mappings both ways, one test per edited
field, Fossify and AOSP editing, re-keyed cards, merges, groups,
read-only books, a full lifecycle), the engine's tests with both real
planners, and `npm run typecheck`, `npm test` and `npm run i18n:check`
on this commit.
2026-09-27 04:23:22 +02:00
Linus Rath 1131073323 feat: open sign-in links from the camera app and paste them into the app
The webmail's QR encodes a `bulwarkmail://pair?...` link, but nothing
registered that scheme: scanning it with the system camera or Google
Lens did nothing, and without a camera there was no way in at all.

- `bulwarkmail` is registered in `app.config.js` (iOS) and the committed
  AndroidManifest. Links are parked in a small store and picked up by
  the sign-in screen, or by "Add account" when already signed in, once
  per launch.
- "Paste sign-in link" on the sign-in screen (and next to the server
  step's scan hint) takes a link copied from the webmail.
- While pairing, the waiting screen names the webmail being paired with.
2026-09-27 04:23:01 +02:00
Linus Rath 59cfe50793 fix: say why a sign-in code failed and accept password pairing from the webmail
Every failed redeem read "That code has expired": a code already used,
a webmail without pairing (404), a rate limit, a server error and a
network failure all looked the same, and a non-JSON answer surfaced as a
raw parse error. The app now reads the webmail's `invalid_code`,
`expired_code` and `used_code` answers (webmail 1.11's catch-all 400
reads as "expired or already used"), gives up after 15 s, and names the
host involved; a failure after the code was redeemed says the phone was
signed in but could not reach the mail server.

- `loginViaPairing` accepts `flow: 'password'` bundles (an app password,
  or the account password from servers without OAuth) in normal and
  add-account mode, and never redeems the same code twice.
- A `pair` link must point at an https webmail (loopback http for
  development); `pair/?` is accepted too.
- A token refresh that answers 200 with a non-JSON body keeps the
  account instead of signing it out.
2026-09-27 04:22:33 +02:00
Linus Rath 3ed5fa53af feat: map calendars and events to android's calendar provider #34
The engine hands every event it syncs to a planner that turns it into
CalendarContract rows, and device edits back into JMAP writes. This is
that planner for calendars (`src/device-sync/calendar`), now used by the
sync task:

- Calendars become calendar rows with what the apps need (SYNC_EVENTS=1,
  an owner, colours, the reminders allowed); calendars of shared accounts
  carry the account's name.
- Events keep their time zone, floating and all-day times, recurrence
  rules, excluded and changed instances, reminders, attendees and the
  user's own reply. A rule Android can't hold (RSCALE, SKIP, leap months)
  stays on the server untouched, and local times Stalwart can't resolve
  (a start in a repeated hour, an UNTIL in a skipped one) are written in
  a form it keeps.
- Device edits upload as patches of what differs from the last synced
  state, never a whole event, and only what the device can show is ever
  sent. A single-instance edit or deletion becomes an override of its
  series; "this and following" caps the series and creates a new one.
  How Etar and Fossify save (a cancelled instance instead of an
  exclusion, attendee rows deleted and re-inserted) is read as the edit
  it stands for, not as a deletion. Invitations go out on the changes a
  calendar app would notify about.
- Events in read-only calendars and subscribed feeds are put back when
  the device changes them; only the user's own reply goes up, where the
  server allows it. Tasks, task-only calendars and the birthday calendar
  never reach the device.
- Reminders are written as Reminders rows when the calendar app is to
  remind the user, and left out when Bulwark does.

Checked: 179 calendar tests (download, upload, exceptions, the edits
Etar, Fossify and CONTENT_EXCEPTION_URI make, echoes that write nothing,
time zone and DST edges), and `npm run typecheck`, `npm test` and `npm
run i18n:check` on this commit.
2026-09-27 04:21:30 +02:00
Linus Rath 96a6b38321 feat: sync the device's contacts and calendars with the server in the background #34
The sync adapters from ed2525e start a headless task for every sync, but
the task only reported "disabled". This adds the engine it runs
(`src/device-sync/engine`, `src/device-sync/jmap`): for one Android
account and authority it downloads the server's changes, uploads what
the device changed, and hands a report back to SyncManager.

- Downloads follow `/changes` from the state kept in the provider's
  SyncState. Rows and the state they reach are written in one batch, so
  a killed run resumes where it stopped. Without a state, after
  `cannotCalculateChanges` or after the user discarded deletions, a full
  reconcile compares ids instead.
- Uploads go in three phases across accounts (creates, updates,
  deletions), so moving an item to another account never destroys it
  before the copy exists. A create carries a uid written to the device
  first, and the server is asked for that uid before creating, so a lost
  response or a killed run never makes a duplicate. Updates are patches
  guarded by `ifInState`; nothing is replaced whole.
- More than 50 deletions that are also more than a fifth of the synced
  items hold every deletion back and report `tooManyDeletions`, so
  Android asks the user; "undo" restores the items from the server.
- An item the server refuses is marked and not sent again until it
  changes or its back-off (1 hour, doubling to a day) ends. Such
  refusals and planner errors stay with their item; the rest of the run
  goes on.
- Runs of one account and authority take a lock, stop at checkpoints
  when cancelled or close to the deadline, and never throw: every
  failure becomes an outcome, and a rejected sign-in posts one "Sign in
  again" notification.
- The JMAP side uses a client of its own per app account, never the
  UI's, since a run can share the JS runtime with the app.

Turning sync off or signing out runs the same upload first
(`teardownAuthority`) and deletes the rows only once nothing is waiting,
or when the user agreed to lose it.

The planners that map items to rows land in the next commits; until
then a run fails before it touches a row.

Checked: 94 engine tests against the fake provider and JMAP server
(sync flows, failures, crashes and retries, teardown), and `npm run
typecheck`, `npm test` and `npm run i18n:check` on this commit.
2026-09-27 04:19:21 +02:00
Linus Rath f743ab0f7d feat: give device sync scoped access to the contacts and calendar providers #34
The engine plans its provider reads and writes in JS, but only native
code can reach ContactsProvider and CalendarProvider. This adds that
bridge to the BulwarkDeviceSync module, with the rest of what the engine
and the app need from it:

- `query`, `applyBatch`, `readSyncState` and `readPhoto` take the
  `ProviderQuery`/`ProviderOp[]` JSON of `src/device-sync/types.ts`,
  check it (`sync/ProviderOps.kt`) and run it for one Android account of
  our type (`sync/ProviderScope.kt`, `sync/ProviderIo.kt`). Every
  selection gets the account ANDed in, every row an op names by id or
  points to as a parent must be the account's, and every URI carries
  `caller_is_syncadapter`, so nothing the sync writes marks rows dirty or
  schedules an upload. The calls run one at a time on the module's own
  thread through an unstable provider client, so a long batch never
  stalls other module calls and a provider that dies fails the call
  instead of the app.
- `showSyncProblem` and `clearSyncProblem` post and clear the one
  notification per account that needs the user, e.g. "Sign in again".
- `setPushRoutes` stores which Android accounts each JMAP account feeds,
  for the push router in `sync/PushRouting.kt`; the push services start
  using it in a later commit.
- A run now ends exactly once and refuses a report that comes after
  that. A sync requested while a run is open makes the run ask for
  another sync when it ends, because SyncManager drops such requests as
  duplicates. `onPerformSync` lets nothing escape any more: an exception
  there killed the whole process, UI included.
- `ensureAccount` no longer hands an existing Android account to another
  app account (`conflict`): its rows and SyncState belong to the first.

Payloads cross as JSON strings, which the bridge moves much faster than
nested maps. `src/device-sync/native.ts` is the typed JS side. The fake
provider follows the rules the emulator runs turned up: contacts
`data1`..`data14` read back as text, events and calendars the sync
adapter inserts have DIRTY NULL, attendee rows are addressed by id, an
op by id expects one row, and a vanished parent fails with `assert`
while another account's fails with `scope`.

Checked: 54 JVM tests (`gradlew :app:testDebugUnitTest`), debug and
release (R8) builds, `npm run typecheck` and `npm test` on this commit,
and on the API 32 emulator through the debug receiver: inserts with
back-references and group memberships, SyncState, photo writes and
scaled reads, asserts and expected counts, both scope refusals, the
499-op yield boundary, `tooLarge` for a 1.3 MB batch, and the
notification.
2026-09-27 04:04:00 +02:00
Linus Rath 95c8324f12 fix: let contacts apps edit contacts of the bulwark account #34
AOSP Contacts, and the apps built on its account-type parser, check the
EditSchema in `xml/contacts.xml` and drop the whole account type when it
breaks one of their rules: every data kind with a type column needs
`<Type>` children, the other kinds must have none, and name, photo,
nickname, organization, note and group membership need maxOccurs="1".
The schema from ed2525e listed phone, email, postal, event and
relationship without types, so the editors would not have offered the
Bulwark account at all.

The kinds now list the types device sync maps to JSContact, and the
rules are written down in the file so the next edit keeps them.

Checked on the API 32 emulator (AOSP Contacts): with a Bulwark account
present, "Create new contact" offers it and opens the editor saving to
it.
2026-09-27 04:03:16 +02:00
Linus Rath 59fcf386b9 test: add a fake device provider and jmap server for the sync tests #34
The device sync engine reaches Android's providers through a native
bridge and the server through a detached JMAP client, and neither runs
in vitest. This adds the stand-ins the engine and the mappers are tested
against, and the contracts they implement:
- `src/device-sync/types.ts`, `planner.ts`, `wire.ts`,
  `android-columns.ts`: the bridge, the provider op model, the JMAP
  port, and the interface between the engine and the contacts and
  calendar planners
- a fake ContactsProvider and CalendarProvider with the behaviour the
  design relies on: the DIRTY and VERSION rules, soft and hard deletes,
  exception linking, normalisation, asserts, the yield-point limit, and
  a "user" face that edits the way AOSP Contacts, Fossify and Etar do
- a fake Stalwart with `/changes` paging and compaction,
  `cannotCalculateChanges`, `ifInState`, uid checks behind a lagging
  search index, positional re-keying and fault injection (lost
  responses, 429, auth, SetErrors)
- shared pure helpers (canonical JSON, PatchObjects with Stalwart's
  missing-parent rule, key and uid minting) and a test that walks the
  import graph, so no mapper or engine module pulls in React Native
- `src/stores/device-sync-store.ts`: the per-account preferences and
  last run status the engine and the settings will share

Checked: `npx vitest run src/device-sync` (91 tests), the full suite
(2209 tests) and `npm run typecheck`.
2026-09-27 02:53:22 +02:00
Linus Rath f66669964a docs: describe how contacts and calendars will sync with the device #34
Issue #34 asks for contacts and calendars that show up in Android's own
apps and whose edits there reach the server. docs/device-sync.md is the
design the implementation follows: Android's sync framework drives the
runs, a thin Kotlin shell starts a headless JS task, and the engine is
TypeScript on a detached JMAP client, so token refresh, mTLS and session
discovery keep a single owner. A pure-Kotlin engine was rejected: it
would have had to redeem rotating refresh tokens outside that owner and
re-implement the client.

It pins down what every provider column holds, the JSContact and
JSCalendar mapping tables, how device edits are told apart from provider
normalisation (a baseline per row), how rows are matched when an editor
re-inserts them, the merge and conflict rules, uploads as patches with
`ifInState`, the native API, the failure matrix and the limitations.

The platform and server facts it relies on come from AOSP's providers
and calendar/contacts apps, Fossify, Etar and Stalwart v0.16.23's
source. These were checked on the local test server:
- map keys written through JMAP survive patches; `uid` duplicates are
  refused; unknown and plural recurrence properties are rejected
- a start or `until` in a DST gap or overlap is silently dropped (a
  daily rule came back unbounded); `Etc/GMT-2` keeps both
- `ifInState` yields `stateMismatch`; `relatedTo/<key>: null` does not
  delete; result references to `/set` are refused

An adversarial review of the first draft found 20 paths that could lose
data, duplicate items or loop (own creates duplicated after a lost
response, unsynced edits dropped on deselection or eviction, Fossify
rewrites uploaded as edits, Etar moves turned into destroy + create,
and more); the design was changed for each before any engine code.
2026-09-27 02:49:46 +02:00
Linus Rath ed2525e5cb feat: register a bulwark account with android's contacts and calendar sync #34
Android syncs the contacts and calendars of other services through
accounts and sync adapters. This adds the Android side of device sync:
a "Bulwark" account type (`${applicationId}.account`, set in
build.gradle), an authenticator that sends Settings → Add account to
the app instead of asking for credentials, and one sync adapter each
for the contacts and the calendar provider.

An adapter does no syncing itself. It starts the BulwarkDeviceSync
headless JS task from the main thread, through the helper the push job
uses, waits for the task's report and hands it to SyncManager as the
SyncResult. The engine that will write the report runs in JS, so the
existing client stays the only owner of token refresh, mTLS and
session discovery; for now the task only reports that device sync is
off. Nothing in the app creates an account yet, so the feature stays
unreachable until its settings land. Debug builds get an adb hook for
the device tests (DeviceSyncDebugReceiver, shell only).

Hard errors are reported without progress: SyncManager retries a
failed sync at once when it made progress, which would loop an auth
failure.

Checked on the API 34 and API 32 emulators with the debug build, from
logcat and `dumpsys content`:
- app in the foreground: report after 319-334 ms
- app in the background: 320-327 ms
- process killed: SyncManager starts it for the sync service, React
  Native starts headless, and the report arrives after 16.2 s (API 34)
  and 8.5 s (API 32), most of it the debug bundle download from Metro
- an io report is retried with back-off and an auth report is not
  retried; too many deletions shows the system's "Attempted to delete
  too many Contacts." notification
- with Metro unreachable the adapter gives up after 2 s instead of
  waiting for its deadline
- `gradlew :app:testDebugUnitTest`: 10 JVM tests for the report mapping
2026-09-27 01:53:40 +02:00
Linus Rath 1f7acaf08a refactor: start headless tasks for push and device sync the same way
The code that starts React Native for a headless JS task, when the
process was woken without any UI, lived inside BulwarkPushJobService.
The device sync adapters need the same start, so it moves to a shared
HeadlessJs object, with a small startTask helper next to it.

Push behaviour does not change:
- onStartJob still calls the start code on the main thread, and the
  listener-then-ready-check order is the same code, moved verbatim
- the task still starts from `UiThreadUtil.runOnUiThread`, its id is
  still recorded in that same UI-thread turn, and a refusal because the
  app came to the foreground still logs and finishes the job
- the start code now returns React Native's start task, so a caller can
  notice a start that fails (a debug build with no Metro); the push job
  ignores it

The helper documents that it must run on the main thread: the ReactHost
is created on first use without a lock, so a background caller racing
MainActivity could create a second one.

Checked with `gradlew assembleDebug -PreactNativeArchitectures=x86_64`.
2026-09-27 01:19:17 +02:00
Linus Rath db07acc37c chore: update version number to 0.1.66 2026-09-27 00:34:53 +02:00
Linus Rath 39628d84dc fix: keep widget corners and border even when the launcher crops the widget 2026-09-27 00:34:29 +02:00
267 changed files with 52185 additions and 682 deletions
+64 -1
View File
@@ -18,6 +18,7 @@ import {
startCalendarReminderTapHandling,
} from './src/lib/calendar-notifications';
import { startLivenessMonitor } from './src/lib/connection-liveness';
import { startDeviceSyncTriggers } from './src/device-sync/app/triggers';
import {
setPendingCalendarOpen,
type CalendarReminderTarget,
@@ -73,7 +74,16 @@ import { AppIconBadge } from './src/components/AppIconBadge';
import { getEmails } from './src/api/email';
import { signOutWidgets, startWidgetSync } from './src/widgets/sync';
import { draftContextFromEmail } from './src/lib/draft-context';
import { handleDeepLink, parseDeepLink, shareToDeepLink, type DeepLink } from './src/navigation/linking';
import {
acceptSignInLink,
handleDeepLink,
parseDeepLink,
routeParkedSignInLink,
shareToDeepLink,
type DeepLink,
} from './src/navigation/linking';
import { usePendingSignInLinkStore } from './src/navigation/pending-sign-in-link';
import { MAX_ACCOUNTS } from './src/lib/account-utils';
import { addShareListener, getInitialShare, shareAttachments } from './src/lib/share-intent';
import { OfflineCacheBanner } from './src/components/OfflineCacheBanner';
import { useOfflineCacheStore } from './src/stores/offline-cache-store';
@@ -86,6 +96,10 @@ const Stack = createNativeStackNavigator<RootStackParamList>();
const Tab = createBottomTabNavigator<MainTabsParamList>();
const navigationRef = createNavigationContainerRef<RootStackParamList>();
// The launch URL is read once per process: Android hands the same intent back
// on every getInitialURL(), and a sign-in link must not run twice.
let initialSignInLinkRead = false;
async function navigateToNotificationTap(payload: NotificationTapPayload): Promise<void> {
if (!navigationRef.isReady()) return;
@@ -399,6 +413,9 @@ export default function App() {
// Calendar reminders are kept scheduled from launch, not only once the
// Calendar tab has been opened.
startCalendarNotificationSync();
// Device sync (Android, #34): live changes, the app's own edits and the
// foreground ask Android to sync; accounts are checked against Android's.
startDeviceSyncTriggers();
return useNetworkStore.getState().init();
}, []);
@@ -566,6 +583,52 @@ export default function App() {
};
}, [isAuthenticated]);
// Sign-in links (`bulwarkmail://pair?…` from the webmail's Link Mobile App,
// `bulwarkmail://connect?…`) work signed out too, so unlike the links above
// they are listened for from launch. They are parked for the login screen
// (the signed-out one takes them as it mounts), marked as coming from
// outside the app: any page or app can fire one, so the login screen asks
// before it redeems or opens anything.
React.useEffect(() => {
if (!initialSignInLinkRead) {
initialSignInLinkRead = true;
void Linking.getInitialURL().then((url) => { acceptSignInLink(url); }).catch(() => undefined);
}
const subscription = Linking.addEventListener('url', ({ url }) => { acceptSignInLink(url); });
return () => subscription.remove();
}, []);
// Signed in, a sign-in link adds an account: open Add account, whose login
// screen takes the parked link (or says why a refused one won't be used).
// On a cold start the navigator mounts right after the auth gate flips, so
// wait for it like a reminder tap does.
const signInLinkPending = usePendingSignInLinkStore((s) => s.pending !== null || s.refusal !== null);
const addAccountForLink = isAuthenticated && signInLinkPending;
React.useEffect(() => {
if (!addAccountForLink) return;
let cancelled = false;
void (async () => {
for (let attempt = 0; attempt < 50 && !navigationRef.isReady(); attempt++) {
await new Promise((resolve) => setTimeout(resolve, 100));
if (cancelled) return;
}
if (cancelled || !navigationRef.isReady()) return;
const route = routeParkedSignInLink(useAccountStore.getState().accounts.length);
if (route === 'account-limit') {
// Said like the Add account buttons say it, instead of opening a
// screen whose sign-in can only fail.
const t = useLocaleStore.getState().t;
toast.error(
t('settings.account.accounts.limit', 'Maximum of {count} accounts reached.', { count: MAX_ACCOUNTS }),
t('login.mobile.err_account_limit_detail', 'Remove an account in Settings to add another one.'),
);
return;
}
if (route === 'add-account') navigationRef.navigate('AddAccount');
})();
return () => { cancelled = true; };
}, [addAccountForLink]);
// Re-register the device with the configured relay once authenticated,
// and whenever the FCM token rotates. Honours the user's notification
// preference - flipping it off tears down THIS account's subscription so
+1 -1
View File
@@ -153,7 +153,7 @@ Open split them by tick; the P columns count the priority tags on those items
| #47 Account security not accessible | [01](docs/parity/01-auth-accounts.md) capability map bug (P1) |
| #46 email preview shows css | [03](docs/parity/03-email-viewer.md) HTML-only body detection (P1) |
| #45 error when re-registering to relay | [08](docs/parity/08-settings-push-i18n-ui.md) push section |
| #34 Native contacts/calendar sync adapters | feature request, out of parity scope; noted in [06](docs/parity/06-contacts.md) |
| #34 Native contacts/calendar sync adapters | done on Android: Settings → Contacts / Calendar → "Sync to this device" syncs both ways with the device's Contacts and Calendar apps ([design](docs/device-sync.md)); iOS has no API for it |
| #5 Sort ascending/descending | in progress in the working tree; ordering presets in [02](docs/parity/02-mail-list-folders.md) |
| #3 TLS client auth | Android-only today; gaps in [01](docs/parity/01-auth-accounts.md) and [09](docs/parity/09-jmap-core-sync-security.md) |
| #1 Shared settings between webmail and native | [08](docs/parity/08-settings-push-i18n-ui.md) — webmail sync is server-side/cookie-bound; a JMAP-blob design is sketched there |
+2 -1
View File
@@ -22,11 +22,12 @@ React Native (Expo SDK 54) client for [Bulwark Webmail](https://github.com/bulwa
- Calendar (basic)
- Contacts (basic)
- Push notifications via the Bulwark relay - FCM by default, or [UnifiedPush](https://unifiedpush.org) (e.g. ntfy) for devices without Google Play services
- Android: contacts and calendars sync both ways with the phone's Contacts and Calendar apps (Settings → Contacts / Calendar → Sync to this device)
- In-app sideload updates from GitHub Releases
## What's missing or rough
- iOS builds, but push notifications and client certificates are Android-only so far
- iOS builds, but push notifications, client certificates and syncing with the phone's contacts and calendars are Android-only so far
- S/MIME, plugins, themes - UI stubs only (filters & rules, the vacation responder and file storage are real implementations)
- Calendar editing is partial; contacts editing is basic
- No Play Store distribution yet (sideload APK from Releases); iOS ships via TestFlight
+1 -1
View File
@@ -1 +1 @@
0.1.65
0.1.68
+10
View File
@@ -154,6 +154,11 @@ android {
versionCode appVersionCode.toInteger()
versionName appVersionName
// Android account type of device sync (#34), derived from the package
// name so a later rename needs no other change. The XML in res/xml and
// the Kotlin in sync/ read it as @string/device_sync_account_type.
resValue "string", "device_sync_account_type", "${applicationId}.account"
buildConfigField "String", "REACT_NATIVE_RELEASE_LEVEL", "\"${findProperty('reactNativeReleaseLevel') ?: 'stable'}\""
}
signingConfigs {
@@ -280,6 +285,11 @@ dependencies {
// Kotlin 2.1 toolchain; 3.3.5 went back to 2.2 which it can read.
implementation("org.unifiedpush.android:connector:3.3.5")
// JVM unit tests for the logic in the Kotlin shell of device sync (src/test).
// android.jar only stubs org.json, so the tests use the real one.
testImplementation("junit:junit:4.13.2")
testImplementation("org.json:json:20240303")
def isGifEnabled = (findProperty('expo.gif.enabled') ?: "") == "true";
def isWebpEnabled = (findProperty('expo.webp.enabled') ?: "") == "true";
def isWebpAnimatedEnabled = (findProperty('expo.webp.animated') ?: "") == "true";
+4 -1
View File
@@ -3,5 +3,8 @@
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>
<application android:usesCleartextTraffic="true" tools:targetApi="28" tools:ignore="GoogleAppIndexingWarning" tools:replace="android:usesCleartextTraffic" />
<application android:usesCleartextTraffic="true" tools:targetApi="28" tools:ignore="GoogleAppIndexingWarning" tools:replace="android:usesCleartextTraffic">
<!-- adb hooks for the device sync tests (#34). DUMP: only the shell may send them. -->
<receiver android:name=".sync.DeviceSyncDebugReceiver" android:exported="true" android:permission="android.permission.DUMP" />
</application>
</manifest>
@@ -0,0 +1,108 @@
package com.anonymous.bulwarkmobile.sync
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import android.util.Base64
import android.util.Log
import java.io.File
import kotlin.concurrent.thread
/**
* Debug builds only: lets adb set up device sync accounts and drive the
* provider bridge without the settings UI or JS, for the device tests in
* docs/device-sync.md ("Testing"). Protected by android.permission.DUMP,
* which only the shell and the system hold. Syncs themselves are triggered
* with `adb shell requestsync`.
*
* adb shell am broadcast -n com.anonymous.bulwarkmobile/.sync.DeviceSyncDebugReceiver \
* --es cmd ensure --es name usera@example.org --es registry usera@example.org@10.0.2.2 \
* --es enable contacts,calendar
*
* Commands: `ensure` (name, registry, optional enable), `enable` (name,
* authority, optional --ez on false), `remove` (name), `list`, and the
* provider calls `query` and `batch` (name, authority, and the
* `ProviderQuery`/`ProviderOp[]` JSON base64-encoded in `b64`, which spares
* the shell's quoting, or pushed to the app's external files directory and
* named by `file` when it is too long for a command line), `syncstate`
* (name, authority) and `photo` (name, `--el id`, optional `--ei max`); and
* the sync-problem notification, `problem` (name, title, text, uri, optional
* channel) and `clearproblem` (name). Results go to logcat (tag
* BulwarkDeviceSync) and the broadcast's result data.
*/
class DeviceSyncDebugReceiver : BroadcastReceiver() {
override fun onReceive(context: Context, intent: Intent) {
val pending = goAsync()
// Provider calls block; keep them off the main thread.
thread(name = "DeviceSyncDebugReceiver") {
val result = try {
run(context, intent)
} catch (e: Exception) {
"error: ${e.javaClass.simpleName}: ${e.message}"
}
Log.i(TAG, "debug command: $result")
pending.resultData = result
pending.finish()
}
}
private fun run(context: Context, intent: Intent): String {
val name = intent.getStringExtra("name")
return when (intent.getStringExtra("cmd")) {
"ensure" -> {
val created = DeviceSyncAccounts.ensure(context, name!!, intent.getStringExtra("registry")!!)
for (which in intent.getStringExtra("enable").orEmpty().split(',').filter { it.isNotBlank() }) {
DeviceSyncAccounts.setSyncEnabled(context, name, authority(which), true)
}
"created=$created"
}
"enable" -> {
val on = intent.getBooleanExtra("on", true)
DeviceSyncAccounts.setSyncEnabled(context, name!!, authority(intent.getStringExtra("authority")!!), on)
"enabled=$on"
}
"remove" -> "removed=${DeviceSyncAccounts.remove(context, name!!)}"
"list" -> DeviceSyncAccounts.list(context).joinToString(";") { (account, registryId) -> "${account.name}=$registryId" }
"query" -> io(context, intent) { it.query(json(context, intent)) }
"batch" -> io(context, intent) { it.applyBatch(json(context, intent)) }
"syncstate" -> io(context, intent) { it.readSyncState().toString() }
"photo" -> ProviderIo(context, name!!, DeviceSyncAccounts.CONTACTS_AUTHORITY).use {
it.readPhoto(intent.getLongExtra("id", -1), intent.getIntExtra("max", 512)).toString()
}
"problem" -> {
SyncProblemNotifier.show(
context,
name!!,
intent.getStringExtra("title").orEmpty(),
intent.getStringExtra("text").orEmpty(),
intent.getStringExtra("uri").orEmpty(),
intent.getStringExtra("channel"),
)
"shown"
}
"clearproblem" -> {
SyncProblemNotifier.clear(context, name!!)
"cleared"
}
else -> "unknown cmd"
}
}
private fun io(context: Context, intent: Intent, call: (ProviderIo) -> String): String =
ProviderIo(context, intent.getStringExtra("name")!!, authority(intent.getStringExtra("authority")!!)).use(call)
private fun json(context: Context, intent: Intent): String {
intent.getStringExtra("file")?.let { return File(context.getExternalFilesDir(null), it).readText() }
return String(Base64.decode(intent.getStringExtra("b64")!!, Base64.DEFAULT), Charsets.UTF_8)
}
private fun authority(which: String) = when (which) {
"contacts" -> DeviceSyncAccounts.CONTACTS_AUTHORITY
"calendar" -> DeviceSyncAccounts.CALENDAR_AUTHORITY
else -> which
}
companion object {
private const val TAG = "BulwarkDeviceSync"
}
}
+37
View File
@@ -6,6 +6,14 @@
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" android:maxSdkVersion="32"/>
<uses-permission android:name="android.permission.READ_MEDIA_IMAGES"/>
<uses-permission android:name="android.permission.VIBRATE"/>
<!-- Device sync (#34): contacts and calendars in Android's providers, driven by the sync framework. -->
<uses-permission android:name="android.permission.READ_CONTACTS"/>
<uses-permission android:name="android.permission.WRITE_CONTACTS"/>
<uses-permission android:name="android.permission.READ_CALENDAR"/>
<uses-permission android:name="android.permission.WRITE_CALENDAR"/>
<uses-permission android:name="android.permission.READ_SYNC_SETTINGS"/>
<uses-permission android:name="android.permission.WRITE_SYNC_SETTINGS"/>
<uses-permission android:name="android.permission.READ_SYNC_STATS"/>
<queries>
<intent>
<action android:name="android.intent.action.VIEW"/>
@@ -28,6 +36,13 @@
<category android:name="android.intent.category.BROWSABLE"/>
<data android:scheme="bulwarkmobile"/>
</intent-filter>
<!-- Sign-in links from the webmail (bulwarkmail://pair?..., bulwarkmail://connect?...). -->
<intent-filter>
<action android:name="android.intent.action.VIEW"/>
<category android:name="android.intent.category.DEFAULT"/>
<category android:name="android.intent.category.BROWSABLE"/>
<data android:scheme="bulwarkmail"/>
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW"/>
<action android:name="android.intent.action.SENDTO"/>
@@ -66,6 +81,28 @@
</intent-filter>
</service>
<meta-data android:name="com.google.firebase.messaging.default_notification_channel_id" android:value="bulwark_mail"/>
<!-- Device sync (#34), see docs/device-sync.md. The system binds these, so they are exported.
They run in the app's main process on purpose: the adapters start the sync engine as a
headless JS task in the same React Native runtime as the UI. -->
<service android:name=".sync.BulwarkAuthenticatorService" android:exported="true">
<intent-filter>
<action android:name="android.accounts.AccountAuthenticator"/>
</intent-filter>
<meta-data android:name="android.accounts.AccountAuthenticator" android:resource="@xml/authenticator"/>
</service>
<service android:name=".sync.ContactsSyncService" android:exported="true">
<intent-filter>
<action android:name="android.content.SyncAdapter"/>
</intent-filter>
<meta-data android:name="android.content.SyncAdapter" android:resource="@xml/sync_contacts"/>
<meta-data android:name="android.provider.CONTACTS_STRUCTURE" android:resource="@xml/contacts"/>
</service>
<service android:name=".sync.CalendarSyncService" android:exported="true">
<intent-filter>
<action android:name="android.content.SyncAdapter"/>
</intent-filter>
<meta-data android:name="android.content.SyncAdapter" android:resource="@xml/sync_calendar"/>
</service>
<!-- BEGIN WIDGETS: generated by scripts/sync-android-widgets.mjs, do not edit by hand -->
<service android:name="com.reactnativeandroidwidget.RNWidgetCollectionService" android:permission="android.permission.BIND_REMOTEVIEWS"/>
<receiver android:name=".widget.InboxWidget" android:exported="false" android:label="@string/widgetprovider_inboxwidget_label">
@@ -1,5 +1,6 @@
package com.anonymous.bulwarkmobile
import com.anonymous.bulwarkmobile.sync.BulwarkDeviceSyncModule
import com.facebook.react.ReactPackage
import com.facebook.react.bridge.NativeModule
import com.facebook.react.bridge.ReactApplicationContext
@@ -12,6 +13,7 @@ class BulwarkFcmPackage : ReactPackage {
add(BulwarkFcmModule(reactContext))
add(BulwarkUnifiedPushModule(reactContext))
add(BulwarkClientCertModule(reactContext))
add(BulwarkDeviceSyncModule(reactContext))
// The bridge registers React Native's own module under this name.
if (ReactNativeNewArchitectureFeatureFlags.enableBridgelessArchitecture()) {
add(BulwarkHeadlessJsTaskSupportModule(reactContext))
@@ -11,6 +11,7 @@ import android.os.Bundle
import android.os.PowerManager
import android.util.Log
import androidx.core.app.NotificationCompat
import com.anonymous.bulwarkmobile.sync.DeviceSyncPushRouter
import com.facebook.react.bridge.Arguments
import com.google.firebase.messaging.FirebaseMessagingService
import com.google.firebase.messaging.RemoteMessage
@@ -26,12 +27,16 @@ class BulwarkMessagingService : FirebaseMessagingService() {
val data = message.data
// Contact and calendar changes become syncs of the Android accounts
// they feed (device sync, #34); only mail needs the push task.
val mail = DeviceSyncPushRouter.route(applicationContext, data)
// Hand off to JS via a headless task only when the app isn't already
// running in the foreground - HeadlessJsTaskContext throws if started
// while foreground. When the app is open, the main JS instance already
// receives JMAP push directly, so the fcm:message event below is
// sufficient for it to refresh state.
if (!isAppInForeground()) {
if (mail && !isAppInForeground()) {
startHeadlessTask(applicationContext, data)
}
@@ -11,16 +11,11 @@ import android.os.Bundle
import android.os.PersistableBundle
import android.os.SystemClock
import android.util.Log
import com.facebook.react.ReactApplication
import com.facebook.react.ReactInstanceEventListener
import com.facebook.react.bridge.ReactContext
import com.facebook.react.bridge.UiThreadUtil
import com.facebook.react.internal.featureflags.ReactNativeNewArchitectureFeatureFlags
import com.facebook.react.jstasks.HeadlessJsTaskConfig
import com.facebook.react.jstasks.HeadlessJsTaskContext
import com.facebook.react.jstasks.HeadlessJsTaskEventListener
import java.util.concurrent.ConcurrentHashMap
import java.util.concurrent.atomic.AtomicBoolean
/**
* Runs the BulwarkPushTask headless JS task from a JobScheduler job.
@@ -44,7 +39,8 @@ class BulwarkPushJobService : JobService(), HeadlessJsTaskEventListener {
override fun onStartJob(params: JobParameters): Boolean {
val config = BulwarkPushTaskService.taskConfig(Bundle(params.extras))
withReadyReactContext { startTask(it, config, params) }
// JobService callbacks run on the main thread, where HeadlessJs wants to be called.
HeadlessJs.withReadyReactContext(application) { startTask(it, config, params) }
return true
}
@@ -76,68 +72,17 @@ class BulwarkPushJobService : JobService(), HeadlessJsTaskEventListener {
tasks.addTaskEventListener(this)
taskContext = tasks
}
UiThreadUtil.runOnUiThread {
try {
val taskId = tasks.startTask(config)
running[taskId] = RunningTask(params, SystemClock.elapsedRealtime())
} catch (e: IllegalStateException) {
HeadlessJs.startTask(
tasks,
config,
onStarted = { taskId -> running[taskId] = RunningTask(params, SystemClock.elapsedRealtime()) },
onRefused = { e ->
// The app came to the foreground since the push arrived and
// syncs on its own there.
Log.i(TAG, "Push job ${params.jobId} skipped: ${e.message}")
jobFinished(params, false)
}
}
}
/**
* Calls [onReady] once with a React context whose JS instance is up,
* starting React Native if the process was woken for this job.
*
* A context exists before its instance is ready, and a task started on
* it then never reaches JS (HeadlessJsTaskContext only logs "CatalystInstance
* not available" and waits for the timeout), which happened when several
* pushes arrived while the app was starting. So the listener goes in
* first and the ready check after it; whichever sees the ready instance
* first runs the task.
*/
private fun withReadyReactContext(onReady: (ReactContext) -> Unit) {
val done = AtomicBoolean(false)
val runOnce = { context: ReactContext -> if (done.compareAndSet(false, true)) onReady(context) }
val app = application as ReactApplication
if (ReactNativeNewArchitectureFeatureFlags.enableBridgelessArchitecture()) {
val host = checkNotNull(app.reactHost) { "ReactHost is not initialized in New Architecture" }
val listener = object : ReactInstanceEventListener {
override fun onReactContextInitialized(context: ReactContext) {
host.removeReactInstanceEventListener(this)
runOnce(context)
}
}
host.addReactInstanceEventListener(listener)
val current = host.currentReactContext
if (current != null && current.hasActiveReactInstance()) {
host.removeReactInstanceEventListener(listener)
runOnce(current)
} else {
host.start()
}
} else {
@Suppress("DEPRECATION")
val manager = app.reactNativeHost.reactInstanceManager
val listener = object : ReactInstanceEventListener {
override fun onReactContextInitialized(context: ReactContext) {
manager.removeReactInstanceEventListener(this)
runOnce(context)
}
}
manager.addReactInstanceEventListener(listener)
val current = manager.currentReactContext
if (current != null && current.hasActiveReactInstance()) {
manager.removeReactInstanceEventListener(listener)
runOnce(current)
} else if (!manager.hasStartedCreatingInitialContext()) {
manager.createReactContextInBackground()
}
}
},
)
}
companion object {
@@ -1,6 +1,7 @@
package com.anonymous.bulwarkmobile
import android.content.Context
import com.anonymous.bulwarkmobile.sync.DeviceSyncPushRouter
import com.facebook.react.bridge.Arguments
import org.json.JSONArray
import org.json.JSONObject
@@ -31,7 +32,10 @@ class BulwarkUnifiedPushService : PushService() {
BulwarkMessagingService.ensureChannel(this)
val data = parsePayload(message.content) ?: return
if (!BulwarkMessagingService.isAppInForeground()) {
// Same routing as FCM: contact and calendar changes request device
// syncs, and only mail starts the push task.
val mail = DeviceSyncPushRouter.route(applicationContext, data)
if (mail && !BulwarkMessagingService.isAppInForeground()) {
BulwarkMessagingService.startHeadlessTask(applicationContext, data)
}
@@ -0,0 +1,146 @@
package com.anonymous.bulwarkmobile
import android.app.Application
import android.os.Handler
import android.os.Looper
import android.os.SystemClock
import android.util.Log
import androidx.annotation.MainThread
import com.facebook.react.ReactApplication
import com.facebook.react.ReactInstanceEventListener
import com.facebook.react.bridge.ReactContext
import com.facebook.react.bridge.UiThreadUtil
import com.facebook.react.interfaces.TaskInterface
import com.facebook.react.internal.featureflags.ReactNativeNewArchitectureFeatureFlags
import com.facebook.react.jstasks.HeadlessJsTaskConfig
import com.facebook.react.jstasks.HeadlessJsTaskContext
import java.util.concurrent.atomic.AtomicBoolean
/**
* Running a headless JS task without HeadlessJsTaskService: starting React
* Native when the process was woken without any UI, and starting the task on
* its context. Shared by the push job (BulwarkPushJobService) and the device
* sync adapters.
*/
object HeadlessJs {
private const val TAG = "HeadlessJs"
/** No caller waits longer for React Native: JobScheduler stops sync and push jobs after 10 minutes. */
private const val MAX_WAIT_MS = 600_000L
private const val WATCH_MS = 1_000L
/**
* Calls [onReady] once with a React context whose JS instance is up,
* starting React Native if the process was woken for this work.
*
* A context exists before its instance is ready, and a task started on
* it then never reaches JS (HeadlessJsTaskContext only logs "CatalystInstance
* not available" and waits for the timeout), which happened when several
* pushes arrived while the app was starting. So the listener goes in
* first and the ready check after it; whichever sees the ready instance
* first runs the task.
*
* The wait ends once, and its listener goes with it: with a ready context,
* or without one when React fails to start (the start task faults) or
* after [MAX_WAIT_MS], when no caller can still be waiting. A context that
* comes up later runs nothing of it, so waits given up on don't pile up on
* the host with everything their [onReady] holds. (A caller that gives up
* sooner, like the sync adapter at its deadline, checks that in [onReady].)
*
* Call it on the main thread; [onReady] runs there too. MainApplication
* creates the ReactHost on first use without a lock (ExpoReactHostFactory),
* so a background caller racing MainActivity could create a second one,
* with a second JS runtime.
*
* Returns React Native's start task when it had to be started, so a caller
* can notice a start that fails (a debug build with no Metro to load the
* bundle from), or null when the context was already up.
*/
@MainThread
fun withReadyReactContext(app: Application, onReady: (ReactContext) -> Unit): TaskInterface<Void>? {
val reactApp = app as ReactApplication
if (ReactNativeNewArchitectureFeatureFlags.enableBridgelessArchitecture()) {
val host = checkNotNull(reactApp.reactHost) { "ReactHost is not initialized in New Architecture" }
val wait = ContextWait(onReady) { host.removeReactInstanceEventListener(it) }
host.addReactInstanceEventListener(wait)
val current = host.currentReactContext
if (current != null && current.hasActiveReactInstance()) {
wait.onReactContextInitialized(current)
return null
}
return host.start().also { wait.watch(it) }
}
@Suppress("DEPRECATION")
val manager = reactApp.reactNativeHost.reactInstanceManager
val wait = ContextWait(onReady) { manager.removeReactInstanceEventListener(it) }
manager.addReactInstanceEventListener(wait)
val current = manager.currentReactContext
if (current != null && current.hasActiveReactInstance()) {
wait.onReactContextInitialized(current)
return null
}
if (!manager.hasStartedCreatingInitialContext()) manager.createReactContextInBackground()
wait.watch(null)
return null
}
/** One caller's wait for a ready context: a listener on the host that ends once and then removes itself. */
private class ContextWait(
private val onReady: (ReactContext) -> Unit,
private val removeListener: (ReactInstanceEventListener) -> Unit,
) : ReactInstanceEventListener {
private val ended = AtomicBoolean(false)
override fun onReactContextInitialized(context: ReactContext) {
if (end()) onReady(context)
}
/** Ends the wait without a context once [boot] faulted or [MAX_WAIT_MS] passed; checked on the main thread. */
fun watch(boot: TaskInterface<Void>?) {
val main = Handler(Looper.getMainLooper())
val giveUpAt = SystemClock.elapsedRealtime() + MAX_WAIT_MS
main.postDelayed(object : Runnable {
override fun run() {
if (ended.get()) return
val faulted = boot?.isFaulted() == true
if (!faulted && SystemClock.elapsedRealtime() < giveUpAt) {
main.postDelayed(this, WATCH_MS)
} else if (end()) {
val why = if (faulted) "React Native did not start" else "no React context after $MAX_WAIT_MS ms"
Log.w(TAG, "$why; no longer waiting")
}
}
}, WATCH_MS)
}
private fun end(): Boolean {
if (!ended.compareAndSet(false, true)) return false
removeListener(this)
return true
}
}
/**
* Starts [config] on the UI thread, where HeadlessJsTaskContext wants it.
* [onStarted] gets the task id in that same UI-thread turn, so before any
* finish callback (HeadlessJsTaskContext posts those to the UI thread).
* [onRefused] gets the refusal when the context is resumed and [config]
* isn't allowed in the foreground.
*/
fun startTask(
tasks: HeadlessJsTaskContext,
config: HeadlessJsTaskConfig,
onStarted: (taskId: Int) -> Unit,
onRefused: (IllegalStateException) -> Unit,
) {
UiThreadUtil.runOnUiThread {
val taskId = try {
tasks.startTask(config)
} catch (e: IllegalStateException) {
onRefused(e)
return@runOnUiThread
}
onStarted(taskId)
}
}
}
@@ -0,0 +1,79 @@
package com.anonymous.bulwarkmobile.sync
import android.accounts.AbstractAccountAuthenticator
import android.accounts.Account
import android.accounts.AccountAuthenticatorResponse
import android.accounts.AccountManager
import android.app.Service
import android.content.Context
import android.content.Intent
import android.net.Uri
import android.os.Bundle
import android.os.IBinder
import com.anonymous.bulwarkmobile.MainActivity
/**
* The authenticator of the "Bulwark" account type. The app holds the
* credentials, not the account: accounts are only ever created by the app,
* from Settings → Contacts or Calendar, for an account that is signed in.
*/
class BulwarkAuthenticator(private val context: Context) : AbstractAccountAuthenticator(context) {
/** Settings → Accounts → Add account opens the app's device sync settings instead. */
override fun addAccount(
response: AccountAuthenticatorResponse?,
accountType: String?,
authTokenType: String?,
requiredFeatures: Array<out String>?,
options: Bundle?,
): Bundle {
val intent = Intent(context, MainActivity::class.java)
.setAction(Intent.ACTION_VIEW)
.setData(Uri.parse(SETTINGS_URI))
return Bundle().apply { putParcelable(AccountManager.KEY_INTENT, intent) }
}
/** Removal from Android Settings is allowed; the app notices and turns device sync off. */
override fun getAccountRemovalAllowed(response: AccountAuthenticatorResponse?, account: Account?): Bundle =
Bundle().apply { putBoolean(AccountManager.KEY_BOOLEAN_RESULT, true) }
override fun getAuthToken(
response: AccountAuthenticatorResponse?,
account: Account?,
authTokenType: String?,
options: Bundle?,
): Bundle = unsupported()
override fun confirmCredentials(response: AccountAuthenticatorResponse?, account: Account?, options: Bundle?): Bundle =
unsupported()
override fun updateCredentials(
response: AccountAuthenticatorResponse?,
account: Account?,
authTokenType: String?,
options: Bundle?,
): Bundle = unsupported()
override fun editProperties(response: AccountAuthenticatorResponse?, accountType: String?): Bundle = unsupported()
override fun getAuthTokenLabel(authTokenType: String?): String? = null
override fun hasFeatures(response: AccountAuthenticatorResponse?, account: Account?, features: Array<out String>?): Bundle =
Bundle().apply { putBoolean(AccountManager.KEY_BOOLEAN_RESULT, false) }
private fun unsupported() = Bundle().apply {
putInt(AccountManager.KEY_ERROR_CODE, AccountManager.ERROR_CODE_UNSUPPORTED_OPERATION)
putString(AccountManager.KEY_ERROR_MESSAGE, "Bulwark signs in from the app")
}
companion object {
/** Handled by the app's deep links: Settings → Contacts, with its "Sync to this device" section. */
const val SETTINGS_URI = "bulwarkmobile://settings/contacts"
}
}
class BulwarkAuthenticatorService : Service() {
private val authenticator by lazy { BulwarkAuthenticator(this) }
override fun onBind(intent: Intent): IBinder? = authenticator.iBinder
}
@@ -0,0 +1,331 @@
package com.anonymous.bulwarkmobile.sync
import android.accounts.Account
import android.accounts.AccountManager
import android.accounts.OnAccountsUpdateListener
import android.content.ActivityNotFoundException
import android.content.ContentResolver
import android.content.Intent
import android.os.Build
import android.os.Bundle
import android.os.Handler
import android.os.Looper
import android.provider.Settings
import android.util.Log
import com.facebook.react.bridge.Arguments
import com.facebook.react.bridge.Promise
import com.facebook.react.bridge.ReactApplicationContext
import com.facebook.react.bridge.ReactContextBaseJavaModule
import com.facebook.react.bridge.ReactMethod
import com.facebook.react.bridge.WritableMap
import com.facebook.react.modules.core.DeviceEventManagerModule.RCTDeviceEventEmitter
import org.json.JSONObject
import java.util.concurrent.ExecutorService
import java.util.concurrent.Executors
import java.util.concurrent.RejectedExecutionException
/**
* `NativeModules.BulwarkDeviceSync`: Android accounts, sync settings, the run
* handshake, provider I/O, push routes and the sync-problem notification of
* device sync (#34). The contract is `DeviceSyncNativeModule` in
* src/device-sync/types.ts; docs/device-sync.md explains it.
*/
class BulwarkDeviceSyncModule(reactContext: ReactApplicationContext) :
ReactContextBaseJavaModule(reactContext) {
private val accountsListener = OnAccountsUpdateListener {
emit(ACCOUNTS_CHANGED_EVENT, null)
}
/**
* Provider I/O runs here, one call at a time: a batch can hold the
* provider for seconds (it sleeps at a contended yield point), which would
* stall every other native module call on React's native-modules thread.
*/
private val io: ExecutorService = Executors.newSingleThreadExecutor { task ->
Thread(task, "BulwarkDeviceSync-io").apply { isDaemon = true }
}
init {
synchronized(BulwarkDeviceSyncModule::class.java) { currentInstance = this }
}
override fun getName(): String = NAME
override fun initialize() {
super.initialize()
val manager = AccountManager.get(reactApplicationContext)
val handler = Handler(Looper.getMainLooper())
try {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
manager.addOnAccountsUpdatedListener(accountsListener, handler, false, arrayOf(accountType()))
} else {
manager.addOnAccountsUpdatedListener(accountsListener, handler, false)
}
} catch (e: RuntimeException) {
Log.w(TAG, "Account change listener not registered", e)
}
}
override fun invalidate() {
try {
AccountManager.get(reactApplicationContext).removeOnAccountsUpdatedListener(accountsListener)
} catch (e: RuntimeException) {
// Not registered.
}
io.shutdown()
super.invalidate()
}
private fun accountType() = DeviceSyncAccounts.accountType(reactApplicationContext)
// ── accounts ────────────────────────────────────────────────
@ReactMethod
fun getInfo(promise: Promise) {
promise.resolve(Arguments.createMap().apply {
putString("accountType", accountType())
putInt("sdkInt", Build.VERSION.SDK_INT)
})
}
@ReactMethod
fun listAccounts(promise: Promise) = settle(promise) {
Arguments.createArray().apply {
for ((account, registryId) in DeviceSyncAccounts.list(reactApplicationContext)) {
pushMap(Arguments.createMap().apply {
putString("name", account.name)
putString("registryId", registryId)
})
}
}
}
@ReactMethod
fun ensureAccount(name: String, registryId: String, promise: Promise) = settle(promise) {
DeviceSyncAccounts.ensure(reactApplicationContext, name, registryId)
}
@ReactMethod
fun removeAccount(name: String, promise: Promise) = settle(promise) {
DeviceSyncAccounts.remove(reactApplicationContext, name)
}
// ── sync settings ───────────────────────────────────────────
@ReactMethod
fun getSyncSettings(name: String, promise: Promise) = settle(promise) {
val account = DeviceSyncAccounts.account(reactApplicationContext, name)
Arguments.createMap().apply {
putBoolean("masterAutomatic", ContentResolver.getMasterSyncAutomatically())
putMap("authorities", Arguments.createMap().apply {
for (authority in DeviceSyncAccounts.AUTHORITIES) putMap(authority, authoritySettings(account, authority))
})
}
}
private fun authoritySettings(account: Account, authority: String): WritableMap = Arguments.createMap().apply {
putInt("syncable", ContentResolver.getIsSyncable(account, authority))
putBoolean("automatic", ContentResolver.getSyncAutomatically(account, authority))
val periodic = ContentResolver.getPeriodicSyncs(account, authority).minOfOrNull { it.period } ?: 0L
putDouble("periodicSeconds", periodic.toDouble())
putBoolean("active", ContentResolver.isSyncActive(account, authority))
putBoolean("pending", ContentResolver.isSyncPending(account, authority))
}
@ReactMethod
fun setSyncEnabled(name: String, authority: String, enabled: Boolean, promise: Promise) = settle(promise) {
DeviceSyncAccounts.setSyncEnabled(reactApplicationContext, name, authority, enabled)
null
}
@ReactMethod
fun setPeriodicSync(name: String, authority: String, seconds: Double, promise: Promise) = settle(promise) {
DeviceSyncAccounts.setPeriodicSync(reactApplicationContext, name, authority, seconds.toLong())
null
}
@ReactMethod
fun requestSync(name: String, authority: String, optionsJson: String, promise: Promise) = settle(promise) {
val options = JSONObject(optionsJson)
val flags = SyncRequestFlags(
manual = options.optBoolean("manual"),
expedited = options.optBoolean("expedited"),
upload = options.optBoolean("upload"),
overrideTooManyDeletions = options.optBoolean("overrideTooManyDeletions"),
discardLocalDeletions = options.optBoolean("discardLocalDeletions"),
)
DeviceSyncAccounts.requestSync(reactApplicationContext, name, authority, flags)
null
}
/** The account's own sync screen where the platform has one, else the list of synced accounts. */
@ReactMethod
fun openAccountSettings(name: String, promise: Promise) = settle(promise) {
val account = DeviceSyncAccounts.account(reactApplicationContext, name)
val perAccount = Intent(ACTION_ACCOUNT_SYNC_SETTINGS)
.putExtra(EXTRA_ACCOUNT, account)
// Newer Settings apps pass only these arguments on to the account's
// screen; without them it closes at once ("Account provided does
// not exist: null", Android 12L), and no exception tells us so.
.putExtra(EXTRA_SHOW_FRAGMENT_ARGUMENTS, Bundle().apply { putParcelable(EXTRA_ACCOUNT, account) })
val overview = Intent(Settings.ACTION_SYNC_SETTINGS)
.putExtra(Settings.EXTRA_ACCOUNT_TYPES, arrayOf(account.type))
val activity = reactApplicationContext.currentActivity
for (intent in listOf(perAccount, overview)) {
try {
if (activity != null) {
activity.startActivity(intent)
} else {
reactApplicationContext.startActivity(intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK))
}
return@settle null
} catch (e: ActivityNotFoundException) {
// Try the next one.
}
}
throw IllegalStateException("No settings screen for sync accounts")
}
// ── run handshake ───────────────────────────────────────────
@ReactMethod
fun finishRun(runId: String, reportJson: String, promise: Promise) {
val accepted = DeviceSyncRuns.finish(runId, reportJson)
if (!accepted) Log.i(TAG, "Report for run $runId ignored: nothing waits for it")
promise.resolve(accepted)
}
@ReactMethod
fun isRunCancelled(runId: String, promise: Promise) {
promise.resolve(DeviceSyncRuns.isCancelled(runId))
}
// ── provider I/O ────────────────────────────────────────────
/** `ProviderQuery` JSON in, `ProviderRows` JSON out; rejects with `scope`, `permission` or `provider`. */
@ReactMethod
fun query(name: String, authority: String, queryJson: String, promise: Promise) = onIo(promise) {
ProviderIo(reactApplicationContext, name, authority).use { it.query(queryJson) }
}
/** `ProviderOp[]` JSON in, `BatchResult` JSON out. Never rejects: a failed batch is a result. */
@ReactMethod
fun applyBatch(name: String, authority: String, opsJson: String, promise: Promise) {
val failed = { e: Throwable -> ProviderResults.failed(ProviderIo.failureOf(e), e.message ?: e.javaClass.simpleName) }
try {
io.execute {
val result = try {
ProviderIo(reactApplicationContext, name, authority).use { it.applyBatch(opsJson) }
} catch (e: Throwable) {
failed(e)
}
promise.resolve(result)
}
} catch (e: RejectedExecutionException) {
promise.resolve(failed(e))
}
}
@ReactMethod
fun readSyncState(name: String, authority: String, promise: Promise) = onIo(promise) {
ProviderIo(reactApplicationContext, name, authority).use { it.readSyncState() }
}
/** `PhotoData` JSON, or null when the raw contact has no photo; rejects with `scope` for another account's. */
@ReactMethod
fun readPhoto(name: String, rawContactId: Double, maxPx: Double, promise: Promise) = onIo(promise) {
ProviderIo(reactApplicationContext, name, DeviceSyncAccounts.CONTACTS_AUTHORITY)
.use { it.readPhoto(rawContactId.toLong(), maxPx.toInt()) }
}
/** Settles [promise] with [block]'s result on the I/O thread; rejects with a `BatchFailure` code. */
private fun onIo(promise: Promise, block: () -> Any?) {
try {
io.execute {
try {
promise.resolve(block())
} catch (e: Throwable) {
promise.reject(ProviderIo.failureOf(e).wire, e.message ?: e.javaClass.simpleName, e)
}
}
} catch (e: RejectedExecutionException) {
promise.reject("provider", "Device sync is shutting down", e)
}
}
// ── push routes and notifications ───────────────────────────
/** `{ jmapAccountId: [{ accountName, authorities }] }` for the push router (DeviceSyncPushRouter). */
@ReactMethod
fun setPushRoutes(routesJson: String, promise: Promise) = settle(promise) {
DeviceSyncPushRouter.saveRoutes(reactApplicationContext, routesJson)
null
}
/**
* Posts (or replaces) the account's sync-problem notification. [channelName]
* names the notification channel in the app's language; null keeps English.
*/
@ReactMethod
fun showSyncProblem(
accountName: String,
title: String,
text: String,
uri: String,
channelName: String?,
promise: Promise,
) = settle(promise) {
SyncProblemNotifier.show(reactApplicationContext, accountName, title, text, uri, channelName)
null
}
@ReactMethod
fun clearSyncProblem(accountName: String, promise: Promise) = settle(promise) {
SyncProblemNotifier.clear(reactApplicationContext, accountName)
null
}
// NativeEventEmitter bookkeeping.
@ReactMethod
fun addListener(eventName: String) {}
@ReactMethod
fun removeListeners(count: Int) {}
private inline fun settle(promise: Promise, block: () -> Any?) {
try {
promise.resolve(block())
} catch (e: AccountConflictException) {
promise.reject("conflict", e.message, e)
} catch (e: SecurityException) {
promise.reject("permission", e.message, e)
} catch (e: IllegalArgumentException) {
promise.reject("bad_args", e.message, e)
} catch (e: Exception) {
promise.reject("failed", e.message, e)
}
}
companion object {
const val NAME = "BulwarkDeviceSync"
private const val TAG = "BulwarkDeviceSync"
const val ACCOUNTS_CHANGED_EVENT = "BulwarkDeviceSync:accountsChanged"
/** Settings' per-account sync screen; public on AOSP-based settings apps, but not in the SDK. */
private const val ACTION_ACCOUNT_SYNC_SETTINGS = "android.settings.ACCOUNT_SYNC_SETTINGS"
private const val EXTRA_ACCOUNT = "account"
/** SettingsActivity.EXTRA_SHOW_FRAGMENT_ARGUMENTS: the arguments of the screen it shows. */
private const val EXTRA_SHOW_FRAGMENT_ARGUMENTS = ":settings:show_fragment_args"
@Volatile private var currentInstance: BulwarkDeviceSyncModule? = null
/** Dropped when no React instance or no JS listener is there, like BulwarkFcmModule.emit. */
fun emit(eventName: String, params: WritableMap?) {
val module = currentInstance ?: return
val ctx = module.reactApplicationContext
if (!ctx.hasActiveReactInstance()) return
ctx.getJSModule(RCTDeviceEventEmitter::class.java).emit(eventName, params)
}
}
}
@@ -0,0 +1,144 @@
package com.anonymous.bulwarkmobile.sync
import android.accounts.Account
import android.accounts.AccountManager
import android.content.ContentResolver
import android.content.Context
import android.os.Bundle
import android.provider.CalendarContract
import android.provider.ContactsContract
import com.anonymous.bulwarkmobile.R
/**
* The Android accounts of device sync (#34) and their sync settings. One
* account per app account that has device sync on; see docs/device-sync.md.
*
* Android's own sync settings are the source of truth for on/off: the
* Contacts and Calendar toggles in Settings → Accounts are
* `getSyncAutomatically`, and the app reads them back instead of keeping a
* copy.
*/
object DeviceSyncAccounts {
const val CONTACTS_AUTHORITY: String = ContactsContract.AUTHORITY
const val CALENDAR_AUTHORITY: String = CalendarContract.AUTHORITY
val AUTHORITIES = listOf(CONTACTS_AUTHORITY, CALENDAR_AUTHORITY)
/** userData key holding the app account (`AccountEntry.id`) an Android account belongs to. */
const val USER_DATA_REGISTRY_ID = "registryId"
/** `<applicationId>.account`, set in build.gradle so the package name is never hard-coded. */
fun accountType(context: Context): String = context.getString(R.string.device_sync_account_type)
fun account(context: Context, name: String) = Account(name, accountType(context))
fun list(context: Context): List<Pair<Account, String?>> {
val manager = AccountManager.get(context)
return manager.getAccountsByType(accountType(context)).map { it to manager.getUserData(it, USER_DATA_REGISTRY_ID) }
}
fun exists(context: Context, name: String): Boolean =
AccountManager.get(context).getAccountsByType(accountType(context)).any { it.name == name }
/**
* Adds the account when it is missing. Both authorities start syncable
* with automatic sync off; the app turns on the ones the user picked.
* Returns true when the account was created, false when it exists for
* [registryId] already. An account that belongs to another registry id
* keeps it ([AccountConflictException]): its rows and SyncState were
* written for that app account.
*/
fun ensure(context: Context, name: String, registryId: String): Boolean {
val manager = AccountManager.get(context)
val account = account(context, name)
val exists = manager.getAccountsByType(account.type).any { it.name == name }
val current = if (exists) manager.getUserData(account, USER_DATA_REGISTRY_ID) else null
when (ensureAction(exists, current, registryId)) {
EnsureAction.KEEP -> return false
EnsureAction.ADOPT -> {
manager.setUserData(account, USER_DATA_REGISTRY_ID, registryId)
return false
}
EnsureAction.CONFLICT -> throw AccountConflictException(
"The Android account $name belongs to another app account ($current)",
)
EnsureAction.CREATE -> Unit
}
val userData = Bundle().apply { putString(USER_DATA_REGISTRY_ID, registryId) }
check(manager.addAccountExplicitly(account, null, userData)) { "Android refused to add the account" }
for (authority in AUTHORITIES) {
ContentResolver.setIsSyncable(account, authority, 1)
ContentResolver.setSyncAutomatically(account, authority, false)
}
return true
}
enum class EnsureAction { CREATE, KEEP, ADOPT, CONFLICT }
/** An existing account without a registry id (never completed) is adopted; one with another id is not touched. */
fun ensureAction(exists: Boolean, currentRegistryId: String?, registryId: String): EnsureAction = when {
!exists -> EnsureAction.CREATE
currentRegistryId == registryId -> EnsureAction.KEEP
currentRegistryId.isNullOrEmpty() -> EnsureAction.ADOPT
else -> EnsureAction.CONFLICT
}
/** Removes the account; the Contacts and Calendar providers drop all of its rows. */
fun remove(context: Context, name: String): Boolean {
val manager = AccountManager.get(context)
val account = account(context, name)
if (manager.getAccountsByType(account.type).none { it.name == name }) return false
return manager.removeAccountExplicitly(account)
}
fun setSyncEnabled(context: Context, name: String, authority: String, enabled: Boolean) {
requireAuthority(authority)
val account = account(context, name)
ContentResolver.setIsSyncable(account, authority, 1)
ContentResolver.setSyncAutomatically(account, authority, enabled)
}
/** Replaces our periodic sync for the authority; 0 removes it. */
fun setPeriodicSync(context: Context, name: String, authority: String, seconds: Long) {
requireAuthority(authority)
val account = account(context, name)
for (periodic in ContentResolver.getPeriodicSyncs(account, authority)) {
ContentResolver.removePeriodicSync(account, authority, periodic.extras)
}
if (seconds > 0) ContentResolver.addPeriodicSync(account, authority, Bundle.EMPTY, seconds)
}
/**
* Requests a sync. SyncManager drops a request that matches a sync it is
* running, so a run of that account and authority is also flagged to
* ask for another sync when it ends (see [DeviceSyncRuns.flagSyncAgain]).
*/
fun requestSync(context: Context, name: String, authority: String, flags: SyncRequestFlags) {
requireAuthority(authority)
DeviceSyncRuns.flagSyncAgain(name, authority)
ContentResolver.requestSync(account(context, name), authority, flags.toExtras())
}
fun requireAuthority(authority: String) {
require(authority in AUTHORITIES) { "Unknown authority $authority" }
}
}
/** [DeviceSyncAccounts.ensure] refused to hand an account of one app account to another. */
class AccountConflictException(message: String) : Exception(message)
/** The SYNC_EXTRAS_* flags a request carries. Constant extras let repeated requests coalesce. */
data class SyncRequestFlags(
val manual: Boolean = false,
val expedited: Boolean = false,
val upload: Boolean = false,
val overrideTooManyDeletions: Boolean = false,
val discardLocalDeletions: Boolean = false,
) {
fun toExtras(): Bundle = Bundle().apply {
if (manual) putBoolean(ContentResolver.SYNC_EXTRAS_MANUAL, true)
if (expedited) putBoolean(ContentResolver.SYNC_EXTRAS_EXPEDITED, true)
if (upload) putBoolean(ContentResolver.SYNC_EXTRAS_UPLOAD, true)
if (overrideTooManyDeletions) putBoolean(ContentResolver.SYNC_EXTRAS_OVERRIDE_TOO_MANY_DELETIONS, true)
if (discardLocalDeletions) putBoolean(ContentResolver.SYNC_EXTRAS_DISCARD_LOCAL_DELETIONS, true)
}
}
@@ -0,0 +1,213 @@
package com.anonymous.bulwarkmobile.sync
import android.accounts.Account
import android.accounts.AccountManager
import android.app.Application
import android.app.Service
import android.content.AbstractThreadedSyncAdapter
import android.content.ContentProviderClient
import android.content.ContentResolver
import android.content.Context
import android.content.Intent
import android.content.SyncResult
import android.os.Bundle
import android.os.Handler
import android.os.IBinder
import android.os.Looper
import android.os.SystemClock
import android.util.Log
import androidx.annotation.MainThread
import com.anonymous.bulwarkmobile.HeadlessJs
import com.facebook.react.bridge.Arguments
import com.facebook.react.bridge.WritableMap
import com.facebook.react.jstasks.HeadlessJsTaskConfig
import com.facebook.react.jstasks.HeadlessJsTaskContext
import com.facebook.react.jstasks.HeadlessJsTaskEventListener
import java.util.concurrent.TimeUnit
/**
* The sync adapter behind both authorities (#34). It does no syncing itself:
* it starts the BulwarkDeviceSync headless JS task, where the engine lives
* (src/device-sync), waits for its report and hands that to SyncManager. See
* docs/device-sync.md.
*
* onPerformSync runs on its own SyncAdapterThread and may block; React Native
* is started from the main thread (see HeadlessJs), which stays free.
* SyncManager holds a wake lock for as long as onPerformSync runs.
*/
class DeviceSyncAdapter(context: Context) :
AbstractThreadedSyncAdapter(context, /* autoInitialize = */ true, /* allowParallelSyncs = */ false) {
private val main = Handler(Looper.getMainLooper())
/**
* Anything thrown out of here is rethrown on the sync thread
* (AbstractThreadedSyncAdapter's SyncThread) and kills the process, the UI
* included. So every failure becomes a result: a soft error SyncManager
* retries with back-off, or a database error for a missing permission,
* as the framework would report it.
*/
override fun onPerformSync(
account: Account,
extras: Bundle,
authority: String,
provider: ContentProviderClient,
syncResult: SyncResult,
) {
try {
performSync(account, extras, authority, syncResult)
} catch (e: SecurityException) {
Log.w(TAG, "Sync of $authority refused by a permission check", e)
syncResult.databaseError = true
} catch (t: Throwable) {
Log.e(TAG, "Sync of $authority failed", t)
syncResult.stats.numIoExceptions++
}
}
private fun performSync(account: Account, extras: Bundle, authority: String, syncResult: SyncResult) {
val registryId = AccountManager.get(context).getUserData(account, DeviceSyncAccounts.USER_DATA_REGISTRY_ID)
if (registryId.isNullOrEmpty()) {
Log.w(TAG, "Sync of $authority skipped: the account has no app account")
syncResult.databaseError = true
return
}
val startedAt = SystemClock.elapsedRealtime()
// A sync scheduled as an expedited job (Android 12+) gets 3 minutes
// from JobScheduler instead of 10; stay inside either.
val expedited = extras.getBoolean(SYNC_EXTRAS_SCHEDULE_AS_EXPEDITED_JOB, false)
val deadline = startedAt + if (expedited) EXPEDITED_BUDGET_MS else BUDGET_MS
val run = DeviceSyncRuns.open(account.name, authority)
main.post { startRun(run, account, registryId, authority, extras, deadline) }
try {
while (!run.done.await(POLL_MS, TimeUnit.MILLISECONDS)) {
val boot = run.boot
if (boot != null && boot.isFaulted()) {
run.end("React Native did not start: ${boot.getError()?.message}")
} else if (SystemClock.elapsedRealtime() >= deadline) {
run.end("no report before the deadline")
}
}
val outcome = SyncReports.outcome(run.report, run.endReason)
SyncReports.apply(outcome, syncResult)
Log.i(TAG, "Sync ${run.runId} of $authority ended (${run.endReason}) after " +
"${SystemClock.elapsedRealtime() - startedAt} ms: ${SyncReports.summary(run.report)}; $outcome")
} catch (e: InterruptedException) {
// onSyncCanceled interrupts this thread. JS sees the run as
// cancelled at its next checkpoint (isRunCancelled).
run.end("cancelled")
Log.i(TAG, "Sync ${run.runId} of $authority cancelled")
Thread.currentThread().interrupt()
} finally {
DeviceSyncRuns.close(run)
// After startRun, which was posted first, so a listener it added is removed.
main.post { run.detach() }
}
// A change pushed while the run was open: SyncManager dropped its
// request as a duplicate of this sync, so ask for the next one here.
if (run.syncAgainRequested) {
Log.i(TAG, "Sync ${run.runId} of $authority: changes arrived meanwhile, syncing again")
syncResult.fullSyncRequested = true
}
}
@MainThread
private fun startRun(
run: DeviceSyncRuns.Run,
account: Account,
registryId: String,
authority: String,
extras: Bundle,
deadline: Long,
) {
if (run.cancelled) return
try {
run.boot = HeadlessJs.withReadyReactContext(context.applicationContext as Application) { reactContext ->
if (run.cancelled) return@withReadyReactContext
if (!reactContext.hasActiveReactInstance()) {
run.end("the React Native instance is gone")
return@withReadyReactContext
}
val tasks = HeadlessJsTaskContext.getInstance(reactContext)
run.attach(tasks, object : HeadlessJsTaskEventListener {
override fun onHeadlessJsTaskStart(taskId: Int) = Unit
// JS settled without a report, timed out, or the context was reloaded.
override fun onHeadlessJsTaskFinish(taskId: Int) {
if (taskId == run.taskId) run.end("task finished")
}
})
val taskTimeout = (deadline - SystemClock.elapsedRealtime() - LATCH_SLACK_MS).coerceAtLeast(MIN_TASK_MS)
val data = Arguments.createMap().apply {
putString("runId", run.runId)
putString("accountName", account.name)
putString("registryId", registryId)
putString("authority", authority)
putMap("extras", runExtras(extras))
putDouble("deadline", (System.currentTimeMillis() + taskTimeout - JS_SLACK_MS).toDouble())
}
HeadlessJs.startTask(
tasks,
HeadlessJsTaskConfig(TASK_KEY, data, taskTimeout, /* isAllowedInForeground = */ true),
onStarted = { run.taskId = it },
onRefused = { run.end("refused: ${it.message}") },
)
}
} catch (e: RuntimeException) {
run.end("could not start: ${e.message}")
}
}
private fun runExtras(extras: Bundle): WritableMap = Arguments.createMap().apply {
fun flag(key: String, name: String) {
if (extras.getBoolean(key, false)) putBoolean(name, true)
}
flag(ContentResolver.SYNC_EXTRAS_MANUAL, "manual")
flag(ContentResolver.SYNC_EXTRAS_UPLOAD, "upload")
flag(ContentResolver.SYNC_EXTRAS_EXPEDITED, "expedited")
flag(ContentResolver.SYNC_EXTRAS_IGNORE_BACKOFF, "ignoreBackoff")
flag(ContentResolver.SYNC_EXTRAS_OVERRIDE_TOO_MANY_DELETIONS, "overrideTooManyDeletions")
flag(ContentResolver.SYNC_EXTRAS_DISCARD_LOCAL_DELETIONS, "discardLocalDeletions")
}
companion object {
private const val TAG = "BulwarkDeviceSync"
const val TASK_KEY = "BulwarkDeviceSync"
/** ContentResolver.SYNC_EXTRAS_SCHEDULE_AS_EXPEDITED_JOB (API 31). */
private const val SYNC_EXTRAS_SCHEDULE_AS_EXPEDITED_JOB = "schedule_as_expedited_job"
private const val BUDGET_MS = 570_000L // 9.5 min of JobScheduler's 10
private const val EXPEDITED_BUDGET_MS = 150_000L // 2.5 min of 3
private const val LATCH_SLACK_MS = 20_000L // the task times out this long before our deadline
private const val JS_SLACK_MS = 30_000L // JS aims to be done this long before the task timeout
private const val MIN_TASK_MS = 30_000L
private const val POLL_MS = 500L
}
}
/** Binds the contacts authority's adapter (xml/sync_contacts.xml). */
class ContactsSyncService : Service() {
override fun onBind(intent: Intent): IBinder = adapter(this).syncAdapterBinder
companion object {
@Volatile private var adapter: DeviceSyncAdapter? = null
private fun adapter(context: Context): DeviceSyncAdapter = adapter ?: synchronized(this) {
adapter ?: DeviceSyncAdapter(context.applicationContext).also { adapter = it }
}
}
}
/** Binds the calendar authority's adapter (xml/sync_calendar.xml). */
class CalendarSyncService : Service() {
override fun onBind(intent: Intent): IBinder = adapter(this).syncAdapterBinder
companion object {
@Volatile private var adapter: DeviceSyncAdapter? = null
private fun adapter(context: Context): DeviceSyncAdapter = adapter ?: synchronized(this) {
adapter ?: DeviceSyncAdapter(context.applicationContext).also { adapter = it }
}
}
}
@@ -0,0 +1,125 @@
package com.anonymous.bulwarkmobile.sync
import com.facebook.react.interfaces.TaskInterface
import com.facebook.react.jstasks.HeadlessJsTaskContext
import com.facebook.react.jstasks.HeadlessJsTaskEventListener
import java.util.UUID
import java.util.concurrent.ConcurrentHashMap
import java.util.concurrent.CountDownLatch
import java.util.concurrent.atomic.AtomicBoolean
import java.util.concurrent.atomic.AtomicReference
/**
* The device sync runs an adapter is waiting for, keyed by a random run id.
*
* A run ends exactly once, on the first of: JS calling finishRun, the
* headless task ending (JS settled, timed out or was reloaded away), React
* refusing or failing to start, the adapter's deadline, or a cancel. A report
* that arrives after that is refused whole rather than half-applied. Headless
* task ids restart at 1 with every React context, so they never identify a
* run; the run id does.
*/
object DeviceSyncRuns {
const val NO_TASK = -1
enum class State { WAITING, ENDED }
class Run(val runId: String, val accountName: String, val authority: String) {
private val state = AtomicReference(State.WAITING)
private val syncAgain = AtomicBoolean(false)
val done = CountDownLatch(1)
/** Written before [done] opens, read after it: the latch orders them. */
@Volatile var report: String? = null
private set
@Volatile var endReason: String? = null
private set
@Volatile var cancelled = false
@Volatile var boot: TaskInterface<Void>? = null
/** Written and compared on the UI thread only. */
@Volatile var taskId = NO_TASK
@Volatile private var tasks: HeadlessJsTaskContext? = null
@Volatile private var listener: HeadlessJsTaskEventListener? = null
val isWaiting: Boolean get() = state.get() == State.WAITING
/** True once a sync was requested for this account and authority while the run was open. */
val syncAgainRequested: Boolean get() = syncAgain.get()
/** Releases the waiting adapter. Only the first end counts; returns whether this was it. */
fun end(reason: String): Boolean = end(reason, null)
internal fun end(reason: String, reportJson: String?): Boolean {
if (!state.compareAndSet(State.WAITING, State.ENDED)) return false
report = reportJson
endReason = reason
done.countDown()
return true
}
internal fun requestSyncAgain() {
syncAgain.set(true)
}
fun attach(tasks: HeadlessJsTaskContext, listener: HeadlessJsTaskEventListener) {
this.tasks = tasks
this.listener = listener
tasks.addTaskEventListener(listener)
}
fun detach() {
val tasks = tasks ?: return
listener?.let { tasks.removeTaskEventListener(it) }
this.tasks = null
this.listener = null
}
}
private val runs = ConcurrentHashMap<String, Run>()
fun open(accountName: String, authority: String): Run =
Run(UUID.randomUUID().toString(), accountName, authority).also { runs[it.runId] = it }
/**
* Forgets the run: a late finishRun is then refused and isCancelled
* answers true. Read [Run.syncAgainRequested] after this, so a request
* can no longer slip in between reading the flag and closing.
*/
fun close(run: Run) {
run.end("closed")
run.cancelled = true
runs.remove(run.runId)
}
/** From JS. Accepted only while the adapter still waits for this run: false when it ended, timed out or is unknown. */
fun finish(runId: String, reportJson: String): Boolean =
runs[runId]?.end("reported", reportJson) ?: false
/** Runs nobody waits for, or that already ended, count as cancelled: JS should stop. */
fun isCancelled(runId: String): Boolean {
val run = runs[runId] ?: return true
return run.cancelled || !run.isWaiting
}
fun cancel(runId: String) {
runs[runId]?.cancelled = true
}
/**
* Flags the open runs of [accountName] and [authority] to request another
* sync when they end (`SyncResult.fullSyncRequested`): SyncManager drops a
* `requestSync` that matches a sync it is running, so a change pushed
* mid-run would otherwise wait for the next trigger. Returns whether a
* run was flagged.
*/
fun flagSyncAgain(accountName: String, authority: String): Boolean {
var flagged = false
for (run in runs.values) {
if (run.accountName == accountName && run.authority == authority) {
run.requestSyncAgain()
flagged = true
}
}
return flagged
}
}
@@ -0,0 +1,376 @@
package com.anonymous.bulwarkmobile.sync
import android.accounts.Account
import android.content.ContentProviderClient
import android.content.ContentProviderOperation
import android.content.ContentUris
import android.content.ContentValues
import android.content.Context
import android.content.OperationApplicationException
import android.database.Cursor
import android.graphics.Bitmap
import android.graphics.BitmapFactory
import android.net.Uri
import android.os.TransactionTooLargeException
import android.provider.CalendarContract
import android.provider.ContactsContract
import android.provider.SyncStateContract
import android.util.Base64
import org.json.JSONObject
import java.io.ByteArrayOutputStream
import java.io.FileNotFoundException
/**
* Runs device sync's provider calls for one Android account of our type and
* one authority: `query`, `applyBatch`, `readSyncState` and `readPhoto` of
* `NativeModules.BulwarkDeviceSync`. [ScopePlanner] decides what may run; this
* class only builds the calls and reads the answers.
*
* Every URI carries `caller_is_syncadapter=true` and the account
* (CalendarProvider accepts no other query parameter), so writes neither set
* DIRTY nor schedule upload syncs, and ContactsProvider filters data rows by
* the account. The scope lookups are the exception: they read ids and owners
* of rows of any account.
*
* The client is unstable: a provider process that dies fails the call instead
* of taking this process (and the UI) with it. Call from a background thread;
* close when done.
*/
class ProviderIo(context: Context, accountName: String, private val authority: String) : ScopeLookup, AutoCloseable {
private val appContext: Context = context.applicationContext
private val account: AccountRef
private val client: ContentProviderClient
init {
if (authority !in DeviceSyncAccounts.AUTHORITIES) {
throw ProviderRefusal(BatchFailure.SCOPE, "$authority is not a device sync authority")
}
account = AccountRef(accountName, DeviceSyncAccounts.accountType(appContext))
client = appContext.contentResolver.acquireUnstableContentProviderClient(authority)
?: throw IllegalStateException("No content provider for $authority")
}
override fun close() {
client.close()
}
// ── the bridge calls ────────────────────────────────────────
/** `ProviderQuery` JSON in, `ProviderRows` JSON out. Throws [ProviderRefusal] or what the provider threw. */
fun query(queryJson: String): String {
val plan = ScopePlanner(account, this).planQuery(ProviderOpParser.parseQuery(authority, queryJson))
val writer = ProviderRowsWriter(plan.columns)
val projection = plan.columns.toTypedArray()
for (selection in plan.selections) {
query(uri(plan.table), projection, selection, plan.orderBy).use { cursor ->
while (cursor.moveToNext()) {
writer.beginRow()
for (i in projection.indices) {
when (cursor.getType(i)) {
Cursor.FIELD_TYPE_INTEGER -> writer.longCell(cursor.getLong(i))
Cursor.FIELD_TYPE_FLOAT -> writer.doubleCell(cursor.getDouble(i))
Cursor.FIELD_TYPE_STRING -> writer.textCell(cursor.getString(i))
// Blobs (photo thumbnails) never cross the bridge; readPhoto reads them.
else -> writer.nullCell()
}
}
writer.endRow()
}
}
}
return writer.finish()
}
/** `ProviderOp[]` JSON in, `BatchResult` JSON out. Never throws: failures are results. */
fun applyBatch(opsJson: String): String = try {
val ops = ProviderOpParser.parseBatch(authority, opsJson)
// Rows written for an account that is gone would outlive it: the
// providers purge an account's rows only when accounts change.
if (!DeviceSyncAccounts.exists(appContext, account.name)) {
throw ProviderRefusal(BatchFailure.SCOPE, "The account ${account.name} no longer exists")
}
if (ops.isEmpty()) {
ProviderResults.ok(emptyList())
} else {
val planned = ScopePlanner(account, this).planBatch(ops)
val results = client.applyBatch(ArrayList(planned.map(::build)))
ProviderResults.ok(planned.zip(results) { op, result -> outcome(op, result.uri, result.count) })
}
} catch (e: Throwable) {
ProviderResults.failed(failureOf(e), e.message ?: e.javaClass.simpleName)
}
/** The account's SyncState blob as text, or null when there is none. */
fun readSyncState(): String? =
SyncStateContract.Helpers.get(client, syncStateUri(), Account(account.name, account.type))
?.toString(Charsets.UTF_8)
/**
* The raw contact's display photo, or its thumbnail when it has none,
* scaled so the longer side is at most [maxPx], as `PhotoData` JSON; null
* when the raw contact has no photo.
*/
fun readPhoto(rawContactId: Long, maxPx: Int): String? {
require(authority == DeviceSyncAccounts.CONTACTS_AUTHORITY) { "Photos are contacts data" }
require(maxPx > 0) { "maxPx must be positive" }
if (rootAccounts(ProviderTable.RAW_CONTACTS, setOf(rawContactId))[rawContactId] != account) {
throw ProviderRefusal(BatchFailure.SCOPE, "Raw contact $rawContactId is not part of the account")
}
var fileId: Long? = null
var thumbnail: ByteArray? = null
val photoRow = Selection(
"raw_contact_id = ? AND mimetype = ?",
listOf(rawContactId.toString(), ContactsContract.CommonDataKinds.Photo.CONTENT_ITEM_TYPE),
)
query(
uri(ProviderTable.DATA),
arrayOf(ContactsContract.CommonDataKinds.Photo.PHOTO_FILE_ID, ContactsContract.CommonDataKinds.Photo.PHOTO),
photoRow,
"${ContactsContract.Data.IS_PRIMARY} DESC",
).use { cursor ->
if (cursor.moveToFirst()) {
if (!cursor.isNull(0)) fileId = cursor.getLong(0)
if (cursor.getType(1) == Cursor.FIELD_TYPE_BLOB) thumbnail = cursor.getBlob(1)
}
}
val bytes = readDisplayPhoto(rawContactId) ?: thumbnail ?: return null
val jpeg = scaledJpeg(bytes, maxPx) ?: return null
return JSONObject()
.put("jpegBase64", Base64.encodeToString(jpeg, Base64.NO_WRAP))
.put("fileId", fileId ?: JSONObject.NULL)
.toString()
}
private fun readDisplayPhoto(rawContactId: Long): ByteArray? {
val uri = ContentUris.withAppendedId(ContactsContract.RawContacts.CONTENT_URI, rawContactId).buildUpon()
.appendPath(ContactsContract.RawContacts.DisplayPhoto.CONTENT_DIRECTORY)
.scoped()
.build()
return try {
client.openAssetFile(uri, "r")?.use { fd -> fd.createInputStream().use { it.readBytes() } }
} catch (e: FileNotFoundException) {
// No display photo stored (small photos only have the thumbnail).
null
}
}
private fun scaledJpeg(bytes: ByteArray, maxPx: Int): ByteArray? {
val bounds = BitmapFactory.Options().apply { inJustDecodeBounds = true }
BitmapFactory.decodeByteArray(bytes, 0, bytes.size, bounds)
if (bounds.outWidth <= 0 || bounds.outHeight <= 0) return null
val options = BitmapFactory.Options().apply {
inSampleSize = PhotoScaling.sampleSize(bounds.outWidth, bounds.outHeight, maxPx)
}
val decoded = BitmapFactory.decodeByteArray(bytes, 0, bytes.size, options) ?: return null
val (width, height) = PhotoScaling.targetSize(decoded.width, decoded.height, maxPx)
val scaled = if (width == decoded.width && height == decoded.height) {
decoded
} else {
Bitmap.createScaledBitmap(decoded, width, height, true)
}
return ByteArrayOutputStream().use { out ->
scaled.compress(Bitmap.CompressFormat.JPEG, JPEG_QUALITY, out)
out.toByteArray()
}
}
// ── ScopeLookup ─────────────────────────────────────────────
override fun ownCalendarIds(): Set<Long> {
val ids = HashSet<Long>()
val selection = Selection(
"${ScopePlanner.ACCOUNT_NAME} = ? AND ${ScopePlanner.ACCOUNT_TYPE} = ?",
listOf(account.name, account.type),
)
query(uri(ProviderTable.CALENDARS), arrayOf(ID), selection, null).use { c ->
while (c.moveToNext()) ids += c.getLong(0)
}
return ids
}
override fun rootAccounts(table: ProviderTable, ids: Set<Long>): Map<Long, AccountRef> {
val owners = HashMap<Long, AccountRef>()
forEachRow(table, arrayOf(ID, ScopePlanner.ACCOUNT_NAME, ScopePlanner.ACCOUNT_TYPE), ID, ids) { c ->
owners[c.getLong(0)] = AccountRef(c.getString(1).orEmpty(), c.getString(2).orEmpty())
}
return owners
}
override fun dataRawContacts(ids: Set<Long>): Map<Long, Long> =
idPairs(ProviderTable.DATA, "raw_contact_id", ids)
override fun dataMimetypes(ids: Set<Long>): Map<Long, String> {
val mimetypes = HashMap<Long, String>()
forEachRow(ProviderTable.DATA, arrayOf(ID, "mimetype"), ID, ids) { c ->
if (!c.isNull(1)) mimetypes[c.getLong(0)] = c.getString(1)
}
return mimetypes
}
override fun eventCalendars(ids: Set<Long>): Map<Long, Long> =
idPairs(ProviderTable.EVENTS, "calendar_id", ids)
override fun childEvents(table: ProviderTable, ids: Set<Long>): Map<Long, Long> =
idPairs(table, "event_id", ids)
override fun childEventIdsMatching(table: ProviderTable, where: String?, args: List<String>): Set<Long> {
val events = HashSet<Long>()
query(uri(table, scoped = false), arrayOf("event_id"), Selection(where, args), null).use { c ->
while (c.moveToNext()) if (!c.isNull(0)) events += c.getLong(0)
}
return events
}
/** Row id → [column] for the rows of [ids] that exist, in any account. */
private fun idPairs(table: ProviderTable, column: String, ids: Set<Long>): Map<Long, Long> {
val pairs = HashMap<Long, Long>()
forEachRow(table, arrayOf(ID, column), table.idColumn!!, ids) { c ->
if (!c.isNull(1)) pairs[c.getLong(0)] = c.getLong(1)
}
return pairs
}
private fun forEachRow(
table: ProviderTable,
projection: Array<String>,
idColumn: String,
ids: Set<Long>,
read: (Cursor) -> Unit,
) {
for (chunk in ids.chunked(ScopePlanner.ID_LIST_CHUNK)) {
val selection = Selection(ScopePlanner.idList(idColumn, chunk), emptyList())
query(uri(table, scoped = false), projection, selection, null).use { c ->
while (c.moveToNext()) read(c)
}
}
}
private fun query(uri: Uri, projection: Array<String>, selection: Selection, orderBy: String?): Cursor =
client.query(uri, projection, selection.sql, selection.args.toTypedArray(), orderBy)
?: throw IllegalStateException("$authority returned no cursor for $uri")
// ── operations ──────────────────────────────────────────────
private fun build(op: PlannedOp): ContentProviderOperation = when (op) {
is PlannedOp.Insert -> ContentProviderOperation.newInsert(uri(op.table))
.withValues(contentValues(op.values))
.apply { for ((column, index) in op.backReferences) withValueBackReference(column, index) }
.withYieldAllowed(op.yieldAllowed)
.build()
is PlannedOp.Update -> ContentProviderOperation
.newUpdate(op.itemId?.let { uri(op.table, itemId = it) } ?: uri(op.table))
.withValues(contentValues(op.values))
.selectRows(op.selection)
.expectRows(op.expectedCount)
.withYieldAllowed(op.yieldAllowed)
.build()
is PlannedOp.Delete -> ContentProviderOperation.newDelete(uri(op.table))
.selectRows(op.selection)
.expectRows(op.expectedCount)
.withYieldAllowed(op.yieldAllowed)
.build()
is PlannedOp.Assert -> ContentProviderOperation.newAssertQuery(uri(op.table))
.selectRows(op.selection)
.apply {
op.values?.let { values ->
withValues(ContentValues().apply { for ((column, text) in values) put(column, text) })
}
}
.expectRows(op.expectedCount)
.withYieldAllowed(op.yieldAllowed)
.build()
// An insert that replaces the account's row; never a yield point.
is PlannedOp.SetSyncState -> SyncStateContract.Helpers.newSetOperation(
syncStateUri(),
Account(account.name, account.type),
op.value.toByteArray(Charsets.UTF_8),
)
}
private fun ContentProviderOperation.Builder.selectRows(selection: Selection) = apply {
// An item URI takes no selection at all (CalendarProvider refuses one).
if (selection.sql != null) withSelection(selection.sql, selection.args.toTypedArray())
}
private fun ContentProviderOperation.Builder.expectRows(count: Int?) = apply {
if (count != null) withExpectedCount(count)
}
private fun outcome(op: PlannedOp, uri: Uri?, count: Int?): OpOutcome = when (op) {
// Settings inserts answer with the account's URI, which has no id.
is PlannedOp.Insert -> OpOutcome(id = uri?.lastPathSegment?.toLongOrNull())
is PlannedOp.SetSyncState -> OpOutcome()
else -> OpOutcome(count = count)
}
private fun contentValues(values: Map<String, Cell>) = ContentValues(values.size).apply {
for ((column, cell) in values) {
when (cell) {
is Cell.Text -> put(column, cell.value)
is Cell.Integer -> put(column, cell.value)
is Cell.Real -> put(column, cell.value)
is Cell.Blob -> put(column, decodeBlob(column, cell.base64))
Cell.Null -> putNull(column)
}
}
}
private fun decodeBlob(column: String, base64: String): ByteArray = try {
Base64.decode(base64, Base64.DEFAULT)
} catch (e: IllegalArgumentException) {
throw ProviderRefusal(BatchFailure.PROVIDER, "$column is not base64")
}
// ── URIs ────────────────────────────────────────────────────
private fun uri(table: ProviderTable, itemId: Long? = null, scoped: Boolean = true): Uri {
val base = when (table) {
ProviderTable.RAW_CONTACTS -> ContactsContract.RawContacts.CONTENT_URI
ProviderTable.DATA -> ContactsContract.Data.CONTENT_URI
ProviderTable.GROUPS -> ContactsContract.Groups.CONTENT_URI
ProviderTable.SETTINGS -> ContactsContract.Settings.CONTENT_URI
ProviderTable.CALENDARS -> CalendarContract.Calendars.CONTENT_URI
ProviderTable.EVENTS -> CalendarContract.Events.CONTENT_URI
ProviderTable.ATTENDEES -> CalendarContract.Attendees.CONTENT_URI
ProviderTable.REMINDERS -> CalendarContract.Reminders.CONTENT_URI
ProviderTable.EXTENDED_PROPERTIES -> CalendarContract.ExtendedProperties.CONTENT_URI
ProviderTable.COLORS -> CalendarContract.Colors.CONTENT_URI
}
val builder = (itemId?.let { ContentUris.withAppendedId(base, it) } ?: base).buildUpon()
return if (scoped) builder.scoped().build() else builder.syncAdapter().build()
}
private fun syncStateUri(): Uri = when (authority) {
DeviceSyncAccounts.CONTACTS_AUTHORITY -> ContactsContract.SyncState.CONTENT_URI
else -> CalendarContract.SyncState.CONTENT_URI
}.buildUpon().scoped().build()
private fun Uri.Builder.syncAdapter() = appendQueryParameter(CALLER_IS_SYNCADAPTER, "true")
private fun Uri.Builder.scoped() = syncAdapter()
.appendQueryParameter(ScopePlanner.ACCOUNT_NAME, account.name)
.appendQueryParameter(ScopePlanner.ACCOUNT_TYPE, account.type)
companion object {
private const val ID = "_id"
private const val JPEG_QUALITY = 85
/** Same parameter name in ContactsContract and CalendarContract. */
private const val CALLER_IS_SYNCADAPTER = ContactsContract.CALLER_IS_SYNCADAPTER
/** The `BatchFailure` of an exception from planning or from the provider (possibly wrapped). */
fun failureOf(e: Throwable): BatchFailure {
var t: Throwable? = e
while (t != null) {
when (t) {
is ProviderRefusal -> return t.reason
is TransactionTooLargeException -> return BatchFailure.TOO_LARGE
is SecurityException -> return BatchFailure.PERMISSION
is OperationApplicationException -> return ProviderResults.failureOfOperationApplication(t.message)
}
t = t.cause?.takeIf { it !== t }
}
return BatchFailure.PROVIDER
}
}
}
@@ -0,0 +1,466 @@
package com.anonymous.bulwarkmobile.sync
import org.json.JSONArray
import org.json.JSONException
import org.json.JSONObject
import java.math.BigDecimal
import java.math.BigInteger
import kotlin.math.abs
/**
* The provider operations of device sync (#34) as the engine sends them: the
* `ProviderQuery` and `ProviderOp[]` JSON of src/device-sync/types.ts, parsed
* into a validated model. [ScopePlanner] turns the model into provider calls
* scoped to one account and [ProviderIo] runs them. Nothing here touches
* Android types, so JVM tests cover all of it.
*/
/** `BatchFailure` of types.ts: why a batch was refused or failed. */
enum class BatchFailure(val wire: String) {
ASSERT("assert"),
TOO_LARGE("tooLarge"),
SCOPE("scope"),
PERMISSION("permission"),
PROVIDER("provider"),
}
/** A query or batch refused before it reached the provider. */
class ProviderRefusal(val reason: BatchFailure, message: String) : Exception(message)
/** How the rows of a table are tied to an account; see [ScopePlanner]. */
enum class TableScope { ACCOUNT_COLUMNS, URI_PARAMETERS, CALENDAR_IDS, EVENT_IDS }
/** The tables the engine may touch, per authority. Any other table is refused. */
enum class ProviderTable(
val wire: String,
val authority: String,
val scope: TableScope,
/** The table whose row each row here belongs to, named by [parentColumn]. */
val parent: ProviderTable? = null,
val parentColumn: String? = null,
/**
* How a selection names the row id; null when rows have none (Settings
* rows are keyed by their account). CalendarProvider queries attendees
* joined with events and calendars, where a bare `_id` is ambiguous.
*/
val idColumn: String? = "_id",
) {
RAW_CONTACTS("raw_contacts", DeviceSyncAccounts.CONTACTS_AUTHORITY, TableScope.ACCOUNT_COLUMNS),
DATA("data", DeviceSyncAccounts.CONTACTS_AUTHORITY, TableScope.URI_PARAMETERS, RAW_CONTACTS, "raw_contact_id"),
GROUPS("groups", DeviceSyncAccounts.CONTACTS_AUTHORITY, TableScope.ACCOUNT_COLUMNS),
SETTINGS("settings", DeviceSyncAccounts.CONTACTS_AUTHORITY, TableScope.ACCOUNT_COLUMNS, idColumn = null),
CALENDARS("calendars", DeviceSyncAccounts.CALENDAR_AUTHORITY, TableScope.ACCOUNT_COLUMNS),
EVENTS("events", DeviceSyncAccounts.CALENDAR_AUTHORITY, TableScope.CALENDAR_IDS, CALENDARS, "calendar_id"),
ATTENDEES(
"attendees", DeviceSyncAccounts.CALENDAR_AUTHORITY, TableScope.EVENT_IDS, EVENTS, "event_id", "Attendees._id",
),
REMINDERS(
"reminders", DeviceSyncAccounts.CALENDAR_AUTHORITY, TableScope.EVENT_IDS, EVENTS, "event_id", "Reminders._id",
),
EXTENDED_PROPERTIES(
"extended_properties",
DeviceSyncAccounts.CALENDAR_AUTHORITY,
TableScope.EVENT_IDS,
EVENTS,
"event_id",
"ExtendedProperties._id",
),
COLORS("colors", DeviceSyncAccounts.CALENDAR_AUTHORITY, TableScope.ACCOUNT_COLUMNS),
;
/** An insert returns the new row id, which later ops can back-reference. */
val insertReturnsId: Boolean get() = idColumn != null
companion object {
fun of(authority: String, wire: String): ProviderTable =
entries.firstOrNull { it.wire == wire && it.authority == authority }
?: throw ProviderRefusal(BatchFailure.SCOPE, "Table $wire is not part of $authority")
}
}
/**
* A cell as it crosses the bridge: text, a number, null, or (written to
* `data.data15` only) photo bytes as base64. Numbers that are integers become
* [Integer], so an assert compares `5` with the provider's `5`, not `5.0`.
*/
sealed interface Cell {
data class Text(val value: String) : Cell
data class Integer(val value: Long) : Cell
data class Real(val value: Double) : Cell
data class Blob(val base64: String) : Cell
data object Null : Cell
/** The text ContentProviderOperation compares an assert with; blobs never reach an assert. */
fun text(): String? = when (this) {
is Text -> value
is Integer -> value.toString()
is Real -> value.toString()
is Blob -> throw IllegalStateException("Blobs have no text form")
Null -> null
}
/** The row id this cell names, if it names one (`12` or `"12"`). */
fun rowId(): Long? = when (this) {
is Integer -> value
is Text -> value.toLongOrNull()
else -> null
}
}
/** Which rows an update, delete or assert addresses: one row by id, a `where` set, or the id row if it matches. */
data class RowTarget(val id: Long?, val where: String?, val args: List<String>)
data class ProviderQuery(
val table: ProviderTable,
val columns: List<String>,
val where: String?,
val args: List<String>,
val orderBy: String?,
)
/** One `ProviderOp` of types.ts, validated. */
sealed interface ProviderOp {
val yieldAllowed: Boolean
data class Insert(
val table: ProviderTable,
val values: Map<String, Cell>,
/** Column → index of an earlier insert of the batch whose new row id fills it. */
val refs: Map<String, Int>,
override val yieldAllowed: Boolean,
) : ProviderOp
data class Update(
val table: ProviderTable,
val target: RowTarget,
val values: Map<String, Cell>,
val expectCount: Int?,
override val yieldAllowed: Boolean,
) : ProviderOp
data class Delete(
val table: ProviderTable,
val target: RowTarget,
val expectCount: Int?,
override val yieldAllowed: Boolean,
) : ProviderOp
data class Assert(
val table: ProviderTable,
val target: RowTarget,
val values: Map<String, Cell>?,
val expectCount: Int?,
override val yieldAllowed: Boolean,
) : ProviderOp
data class SetSyncState(val value: String, override val yieldAllowed: Boolean) : ProviderOp
}
const val GROUP_MEMBERSHIP_MIMETYPE = "vnd.android.cursor.item/group_membership"
/**
* Checks a selection or sort order before the account's scope is ANDed onto
* it as `(text) AND (scope)`: its parentheses must balance outside quoted
* literals, or `1) OR (1` would close the scope's own parenthesis. It may
* not end or comment out the statement, nor query other tables. The engine's
* selections are constants with `?` arguments; this guards against bugs.
*/
object SqlFragments {
private val FORBIDDEN_WORDS = Regex("\\b(SELECT|UNION|ATTACH|DETACH|PRAGMA)\\b", RegexOption.IGNORE_CASE)
fun check(text: String, what: String) {
var depth = 0
var quote: Char? = null
val outside = StringBuilder(text.length)
var i = 0
while (i < text.length) {
val c = text[i]
if (quote != null) {
if (c == quote) {
// A doubled quote is an escaped one inside the literal.
if (i + 1 < text.length && text[i + 1] == quote) i++ else quote = null
}
outside.append(' ')
} else {
when (c) {
'\'', '"' -> {
quote = c
outside.append(' ')
}
'(' -> {
depth++
outside.append(c)
}
')' -> {
if (--depth < 0) refuse(what, "closes a parenthesis it did not open")
outside.append(c)
}
';' -> refuse(what, "ends the statement")
'\u0000' -> refuse(what, "contains a NUL character")
else -> outside.append(c)
}
}
i++
}
if (quote != null) refuse(what, "leaves a quote open")
if (depth != 0) refuse(what, "leaves a parenthesis open")
val bare = outside.toString()
if ("--" in bare || "/*" in bare) refuse(what, "contains a comment")
FORBIDDEN_WORDS.find(bare)?.let { refuse(what, "uses ${it.value.uppercase()}") }
}
private fun refuse(what: String, why: String): Nothing =
throw ProviderRefusal(BatchFailure.SCOPE, "$what $why")
}
/**
* The table a written column points into when the row it names must belong to
* the account as well: the parent of a row, the master of an exception event,
* the group of a membership row.
*/
internal fun referencedTable(table: ProviderTable, column: String, values: Map<String, Cell>): ProviderTable? = when {
column == table.parentColumn -> table.parent
table == ProviderTable.EVENTS && column == "original_id" -> ProviderTable.EVENTS
table == ProviderTable.DATA && column == "data1" &&
values["mimetype"] == Cell.Text(GROUP_MEMBERSHIP_MIMETYPE) -> ProviderTable.GROUPS
else -> null
}
object ProviderOpParser {
/**
* ContactsProvider throws when its op counter reaches this. It counts an
* op before resetting at a yield point, so at most 499 ops may follow a
* yield point up to and including the next one.
*/
const val CONTACTS_OPS_PER_YIELD_POINT = 500
/** JS numbers beyond this are not exact integers any more. */
private const val MAX_SAFE_INTEGER = 9_007_199_254_740_991.0
fun parseQuery(authority: String, json: String): ProviderQuery {
val o = parseObject(json, "query")
val table = ProviderTable.of(authority, o.requireString("table"))
val rawColumns = o.opt("columns") as? JSONArray ?: throw invalid("query needs a columns array")
val columns = (0 until rawColumns.length()).map { i ->
rawColumns.opt(i) as? String ?: throw invalid("columns[$i] must be a string")
}
if (columns.isEmpty()) throw invalid("query needs at least one column")
val (where, args) = o.whereArgs("query")
val orderBy = o.optionalString("orderBy")?.also { SqlFragments.check(it, "query: orderBy") }
return ProviderQuery(table, columns, where, args, orderBy)
}
fun parseBatch(authority: String, json: String): List<ProviderOp> {
val array = try {
JSONArray(json)
} catch (e: JSONException) {
throw invalid("ops are not a JSON array: ${e.message}")
}
val ops = (0 until array.length()).map { i ->
val o = array.opt(i) as? JSONObject ?: throw invalid("op $i is not an object")
parseOp(authority, i, o)
}
checkSyncState(ops)
checkBackReferences(ops)
if (authority == DeviceSyncAccounts.CONTACTS_AUTHORITY) checkYieldPoints(ops)
return ops
}
private fun parseOp(authority: String, index: Int, o: JSONObject): ProviderOp {
val where = "op $index"
val kind = o.opt("op") as? String ?: throw invalid("$where has no op")
val yieldAllowed = o.optBoolean("yieldAllowed", false)
if (kind == "syncState") {
val value = o.opt("value") as? String ?: throw invalid("$where: syncState needs a string value")
return ProviderOp.SetSyncState(value, yieldAllowed)
}
val table = ProviderTable.of(authority, o.requireString("table"))
return when (kind) {
"insert" -> ProviderOp.Insert(table, o.writeValues(table, where), o.refs(where), yieldAllowed)
"update" -> {
val values = o.writeValues(table, where)
if (values.isEmpty()) throw invalid("$where: an update needs values")
ProviderOp.Update(table, o.target(table, where), values, o.expectCount(where), yieldAllowed)
}
"delete" -> ProviderOp.Delete(table, o.target(table, where), o.expectCount(where), yieldAllowed)
"assert" -> {
val target = o.target(table, where)
val values = o.assertValues(where)
val expectCount = o.expectCount(where)
if (values.isNullOrEmpty() && expectCount == null && target.id == null) {
throw invalid("$where: an assert needs values, an expected count or an id")
}
ProviderOp.Assert(table, target, values?.takeIf { it.isNotEmpty() }, expectCount, yieldAllowed)
}
else -> throw invalid("$where: unknown op $kind")
}
}
/**
* The state describes the rows of its batch, so it must commit with them:
* as the last op, and not at a yield point, where the provider may commit
* everything before it on its own.
*/
private fun checkSyncState(ops: List<ProviderOp>) {
ops.forEachIndexed { i, op ->
if (op !is ProviderOp.SetSyncState) return@forEachIndexed
if (i != ops.lastIndex) {
throw ProviderRefusal(BatchFailure.SCOPE, "op $i: syncState must be the last op of its batch")
}
if (op.yieldAllowed) throw ProviderRefusal(BatchFailure.SCOPE, "op $i: syncState must not be a yield point")
}
}
private fun checkBackReferences(ops: List<ProviderOp>) {
ops.forEachIndexed { i, op ->
if (op !is ProviderOp.Insert) return@forEachIndexed
for ((column, ref) in op.refs) {
val target = ops.getOrNull(ref)
if (ref >= i || target !is ProviderOp.Insert || !target.table.insertReturnsId) {
throw invalid("op $i: $column refers to op $ref, which is not an earlier insert with a row id")
}
val expected = referencedTable(op.table, column, op.values)
if (expected != null && target.table != expected) {
throw ProviderRefusal(
BatchFailure.SCOPE,
"op $i: $column must refer to a ${expected.wire} insert, not ${target.table.wire}",
)
}
}
val parentColumn = op.table.parentColumn ?: return@forEachIndexed
val named = parentColumn in op.refs || (op.values[parentColumn] ?: Cell.Null) != Cell.Null
if (!named) {
throw ProviderRefusal(BatchFailure.SCOPE, "op $i: a ${op.table.wire} insert must name its $parentColumn")
}
}
}
private fun checkYieldPoints(ops: List<ProviderOp>) {
var count = 0
ops.forEachIndexed { i, op ->
if (++count >= CONTACTS_OPS_PER_YIELD_POINT) {
throw invalid(
"op $i: more than ${CONTACTS_OPS_PER_YIELD_POINT - 1} ops without a yield point " +
"(ContactsProvider refuses the batch)",
)
}
if (i > 0 && op.yieldAllowed) count = 0
}
}
// ── JSON helpers ────────────────────────────────────────────
private fun invalid(message: String) = ProviderRefusal(BatchFailure.PROVIDER, message)
private fun parseObject(json: String, what: String): JSONObject = try {
JSONObject(json)
} catch (e: JSONException) {
throw invalid("$what is not a JSON object: ${e.message}")
}
private fun JSONObject.requireString(key: String): String =
opt(key) as? String ?: throw invalid("$key must be a string")
private fun JSONObject.optionalString(key: String): String? = when (val v = opt(key)) {
null, JSONObject.NULL -> null
is String -> v.takeIf { it.isNotBlank() }
else -> throw invalid("$key must be a string")
}
private fun JSONObject.target(table: ProviderTable, where: String): RowTarget {
val id = when (val raw = opt("id")) {
null, JSONObject.NULL -> null
else -> (scalar(raw, "$where: id") as? Cell.Integer)?.value?.takeIf { it >= 0 }
?: throw invalid("$where: id must be a row id")
}
if (id != null && table.idColumn == null) throw invalid("$where: ${table.wire} rows have no id")
val (sql, args) = whereArgs(where)
return RowTarget(id, sql, args)
}
private fun JSONObject.whereArgs(where: String): Pair<String?, List<String>> {
val sql = optionalString("where")?.also { SqlFragments.check(it, "$where: where") }
val args = when (val raw = opt("args")) {
null, JSONObject.NULL -> emptyList()
is JSONArray -> (0 until raw.length()).map { i ->
scalar(raw.opt(i), "$where: args[$i]").text()
?: throw invalid("$where: args[$i] must be a string or a number")
}
else -> throw invalid("$where: args must be an array")
}
if (sql == null && args.isNotEmpty()) throw invalid("$where: args without a where")
return sql to args
}
private fun JSONObject.expectCount(where: String): Int? = when (val raw = opt("expectCount")) {
null, JSONObject.NULL -> null
else -> (scalar(raw, "$where: expectCount") as? Cell.Integer)?.value
?.takeIf { it in 0..Int.MAX_VALUE }?.toInt()
?: throw invalid("$where: expectCount must be a count")
}
private fun JSONObject.refs(where: String): Map<String, Int> {
val raw = opt("refs") ?: return emptyMap()
if (raw == JSONObject.NULL) return emptyMap()
if (raw !is JSONObject) throw invalid("$where: refs must be an object")
val out = LinkedHashMap<String, Int>()
for (column in raw.keys()) {
val index = (scalar(raw.opt(column), "$where: refs.$column") as? Cell.Integer)?.value
?.takeIf { it in 0..Int.MAX_VALUE }
?: throw invalid("$where: refs.$column must be an op index")
out[column] = index.toInt()
}
return out
}
private fun JSONObject.writeValues(table: ProviderTable, where: String): Map<String, Cell> {
val raw = opt("values") as? JSONObject ?: throw invalid("$where: values must be an object")
val out = LinkedHashMap<String, Cell>()
for (column in raw.keys()) {
val v = raw.opt(column)
out[column] = if (v is JSONObject) blob(table, column, v, where) else scalar(v, "$where: $column")
}
return out
}
private fun JSONObject.assertValues(where: String): Map<String, Cell>? {
val raw = opt("values") ?: return null
if (raw == JSONObject.NULL) return null
if (raw !is JSONObject) throw invalid("$where: values must be an object")
val out = LinkedHashMap<String, Cell>()
for (column in raw.keys()) out[column] = scalar(raw.opt(column), "$where: $column")
return out
}
/** Only photo rows carry bytes (`data.data15`); the provider stores and scales them itself. */
private fun blob(table: ProviderTable, column: String, v: JSONObject, where: String): Cell.Blob {
if (table != ProviderTable.DATA || column != "data15") {
throw ProviderRefusal(BatchFailure.SCOPE, "$where: bytes are only accepted for data.data15, not ${table.wire}.$column")
}
val base64 = v.opt("b64") as? String ?: throw invalid("$where: $column needs { b64 }")
return Cell.Blob(base64)
}
private fun scalar(v: Any?, what: String): Cell = when (v) {
null, JSONObject.NULL -> Cell.Null
is String -> Cell.Text(v)
is Boolean -> Cell.Integer(if (v) 1 else 0)
is Number -> numberCell(v)
else -> throw invalid("$what must be text, a number or null")
}
/** org.json yields Integer, Long, Double, BigInteger or BigDecimal depending on the platform and the value. */
internal fun numberCell(n: Number): Cell = when (n) {
is Int, is Long, is Short, is Byte -> Cell.Integer(n.toLong())
is BigInteger -> if (n.bitLength() < 64) Cell.Integer(n.toLong()) else Cell.Real(n.toDouble())
is BigDecimal -> try {
Cell.Integer(n.longValueExact())
} catch (e: ArithmeticException) {
Cell.Real(n.toDouble())
}
else -> {
val d = n.toDouble()
if (d.isFinite() && d == Math.rint(d) && abs(d) <= MAX_SAFE_INTEGER) Cell.Integer(d.toLong()) else Cell.Real(d)
}
}
}
@@ -0,0 +1,549 @@
package com.anonymous.bulwarkmobile.sync
import org.json.JSONArray
import org.json.JSONObject
/**
* Plans provider calls for one account: every selection gets the account
* condition ANDed in, and every row an operation names by id, or points to
* from a written column, is checked to belong to the account first
* (docs/device-sync.md, "Native module API", Scoping).
*
* How a table is tied to the account ([TableScope]):
* - raw contacts, groups, settings, calendars and colors carry it in their
* `account_name`/`account_type` columns;
* - contacts data rows are filtered by ContactsProvider itself through the
* `account_name`/`account_type` URI parameters. Their account columns are
* never selected on: Android 17 drops them from the Data view for apps
* targeting more than API 36;
* - events get `calendar_id IN (…)` of the account's calendars, not the
* account columns: CalendarProvider updates events on the Events table,
* which has none;
* - attendees, reminders and extended properties get `event_id IN (…)` of the
* account's events among those the operation touches. CalendarProvider
* applies no account filter to them.
*
* Selections never use subqueries: the providers may compile them strictly.
*/
class ScopePlanner(private val account: AccountRef, private val lookup: ScopeLookup) {
private val calendarIds: Set<Long> by lazy { lookup.ownCalendarIds() }
fun planQuery(query: ProviderQuery): PlannedQuery {
val target = RowTarget(null, query.where, query.args)
val selections = if (query.table.scope == TableScope.EVENT_IDS) {
// Mostly a handful of events (the engine reads children per chunk
// of events); a query over all of them is split so no selection
// outgrows a Binder transaction. Rows are then ordered per chunk.
ownEventsMatching(query.table, target)
.sorted()
.chunked(ID_LIST_CHUNK)
.map { chunk -> selection(query.table, target, chunk) }
} else {
listOf(selection(query.table, target, null))
}
return PlannedQuery(query.table, query.columns, selections, query.orderBy)
}
fun planBatch(ops: List<ProviderOp>): List<PlannedOp> {
val memberships = membershipUpdates(ops)
val owners = Owners(ownershipRequests(ops, memberships))
return ops.mapIndexed { i, op -> plan(i, op, owners, memberships) }
}
/**
* Membership rows among the data rows that updates by id write `data1`
* of without restating the mimetype: their `data1` names a group, which
* must be the account's like on insert.
*/
private fun membershipUpdates(ops: List<ProviderOp>): Set<Long> {
val ids = ops.asSequence()
.filterIsInstance<ProviderOp.Update>()
.filter { it.table == ProviderTable.DATA && writesUntypedData1(it.values) }
.mapNotNull { it.target.id }
.toSet()
if (ids.isEmpty()) return emptySet()
return lookup.dataMimetypes(ids).filterValues { it == GROUP_MEMBERSHIP_MIMETYPE }.keys
}
private fun writesUntypedData1(values: Map<String, Cell>) =
MIMETYPE !in values && (values[DATA1] ?: Cell.Null) != Cell.Null
private fun plan(i: Int, op: ProviderOp, owners: Owners, memberships: Set<Long>): PlannedOp = when (op) {
is ProviderOp.SetSyncState -> PlannedOp.SetSyncState(op.value)
is ProviderOp.Insert -> {
checkAccountColumns(i, op.table, op.values)
checkPhotoFile(i, op.table, op.values)
checkReferences(i, op.table, op.values - op.refs.keys, owners)
val values = if (op.table.scope == TableScope.ACCOUNT_COLUMNS) op.values + accountCells() else op.values
PlannedOp.Insert(op.table, values, op.refs, op.yieldAllowed)
}
is ProviderOp.Update -> {
checkAccountColumns(i, op.table, op.values)
checkPhotoFile(i, op.table, op.values)
checkReferences(i, op.table, op.values, owners)
if (op.table == ProviderTable.DATA && writesUntypedData1(op.values)) {
checkMembershipUpdate(i, op, owners, memberships)
}
checkTarget(i, op.table, op.target, owners)
if (op.table == ProviderTable.EXTENDED_PROPERTIES) {
// CalendarProvider updates extended properties only through
// their item URI, which takes no selection: the id check above
// is the scope.
val id = op.target.id
if (id == null || op.target.where != null) {
throw ProviderRefusal(BatchFailure.PROVIDER, "op $i: extended properties can only be updated by id")
}
PlannedOp.Update(op.table, Selection.NONE, id, op.values, op.expectCount ?: 1, op.yieldAllowed)
} else {
val selection = selection(op.table, op.target, eventScope(op.table, op.target, owners))
PlannedOp.Update(op.table, selection, null, op.values, expectedCount(op.target, op.expectCount), op.yieldAllowed)
}
}
is ProviderOp.Delete -> {
checkTarget(i, op.table, op.target, owners)
val selection = selection(op.table, op.target, eventScope(op.table, op.target, owners))
PlannedOp.Delete(op.table, selection, expectedCount(op.target, op.expectCount), op.yieldAllowed)
}
is ProviderOp.Assert -> {
checkTarget(i, op.table, op.target, owners)
val selection = selection(op.table, op.target, eventScope(op.table, op.target, owners))
val values = op.values?.mapValues { (_, cell) -> cell.text() }
PlannedOp.Assert(op.table, selection, values, expectedCount(op.target, op.expectCount), op.yieldAllowed)
}
}
/** An op that names one row by id expects exactly that row: the engine relies on it to notice a vanished row. */
private fun expectedCount(target: RowTarget, expectCount: Int?): Int? =
expectCount ?: if (target.id != null) 1 else null
private fun accountCells() = mapOf(
ACCOUNT_NAME to Cell.Text(account.name),
ACCOUNT_TYPE to Cell.Text(account.type),
)
/**
* Account columns may only restate the account, on the tables that have
* them; a data row, event or attendee follows its parent's account.
*/
private fun checkAccountColumns(i: Int, table: ProviderTable, values: Map<String, Cell>) {
for (column in listOf(ACCOUNT_NAME, ACCOUNT_TYPE, DATA_SET)) {
val cell = values[column] ?: continue
val restatesAccount = table.scope == TableScope.ACCOUNT_COLUMNS && when (column) {
ACCOUNT_NAME -> cell == Cell.Text(account.name)
ACCOUNT_TYPE -> cell == Cell.Text(account.type)
else -> cell == Cell.Null
}
if (!restatesAccount) {
throw ProviderRefusal(BatchFailure.SCOPE, "op $i: ${table.wire}.$column would leave the account")
}
}
}
/**
* Parents, masters and groups a written column names must be rows of the
* account that still exist. (Back-references were checked by the parser:
* they name inserts of the same batch.)
*/
private fun checkReferences(i: Int, table: ProviderTable, values: Map<String, Cell>, owners: Owners) {
for ((column, cell) in values) {
val referenced = referencedTable(table, column, values) ?: continue
if (cell == Cell.Null) {
if (column == table.parentColumn) {
throw ProviderRefusal(BatchFailure.SCOPE, "op $i: ${table.wire}.$column must name a ${referenced.wire} row")
}
continue
}
val id = cell.rowId()
?: throw ProviderRefusal(BatchFailure.PROVIDER, "op $i: ${table.wire}.$column must be a row id")
when (owners.of(referenced, id)) {
Owner.OURS -> Unit
Owner.FOREIGN -> throw ProviderRefusal(
BatchFailure.SCOPE,
"op $i: ${table.wire}.$column names ${referenced.wire} $id of another account",
)
// Deleted meanwhile, as far as the engine can tell: re-read and re-plan.
Owner.MISSING -> throw ProviderRefusal(
BatchFailure.ASSERT,
"op $i: ${table.wire}.$column names ${referenced.wire} $id, which no longer exists",
)
}
}
}
/**
* `data1` written by an update that doesn't restate the mimetype: on a
* membership row it names a group. Rows chosen by a selection could be
* memberships the lookup didn't see, so only updates by id may do it.
*/
private fun checkMembershipUpdate(i: Int, op: ProviderOp.Update, owners: Owners, memberships: Set<Long>) {
val id = op.target.id
?: throw ProviderRefusal(BatchFailure.SCOPE, "op $i: data1 may only be written to a data row by id")
if (id !in memberships) return
val group = op.values[DATA1]?.rowId()
?: throw ProviderRefusal(BatchFailure.PROVIDER, "op $i: a membership's data1 must be a group id")
when (owners.of(ProviderTable.GROUPS, group)) {
Owner.OURS -> Unit
Owner.FOREIGN -> throw ProviderRefusal(BatchFailure.SCOPE, "op $i: data.data1 names group $group of another account")
Owner.MISSING -> throw ProviderRefusal(BatchFailure.ASSERT, "op $i: data.data1 names group $group, which no longer exists")
}
}
/**
* A photo row's file id (`data14`) is the provider's: it points into the
* photo store, where another account's file id would let `readPhoto`
* read that account's photo. Photos are written as bytes (`data15`).
*/
private fun checkPhotoFile(i: Int, table: ProviderTable, values: Map<String, Cell>) {
if (table == ProviderTable.DATA && (values[DATA14] ?: Cell.Null) != Cell.Null) {
throw ProviderRefusal(BatchFailure.SCOPE, "op $i: data.data14 (a photo file id) is written by the provider only")
}
}
/** A row named by id must not belong to another account; a missing one fails on the expected count instead. */
private fun checkTarget(i: Int, table: ProviderTable, target: RowTarget, owners: Owners) {
val id = target.id ?: return
if (owners.of(table, id) == Owner.FOREIGN) {
throw ProviderRefusal(BatchFailure.SCOPE, "op $i: ${table.wire} $id belongs to another account")
}
}
/** For attendees, reminders and extended properties: the account's events the op may touch. */
private fun eventScope(table: ProviderTable, target: RowTarget, owners: Owners): Collection<Long>? {
if (table.scope != TableScope.EVENT_IDS) return null
val id = target.id ?: return ownEventsMatching(table, target)
return listOfNotNull(owners.eventOf(table, id))
}
private fun ownEventsMatching(table: ProviderTable, target: RowTarget): Set<Long> {
val candidates = lookup.childEventIdsMatching(table, target.where, target.args)
if (candidates.isEmpty()) return emptySet()
return lookup.eventCalendars(candidates).filterValues { it in calendarIds }.keys
}
private fun selection(table: ProviderTable, target: RowTarget, eventIds: Collection<Long>?): Selection {
val parts = ArrayList<String>(3)
val args = ArrayList<String>()
target.id?.let {
parts += "${table.idColumn} = ?"
args += it.toString()
}
target.where?.let {
parts += it
args += target.args
}
when (table.scope) {
TableScope.ACCOUNT_COLUMNS -> {
parts += "$ACCOUNT_NAME = ? AND $ACCOUNT_TYPE = ?"
args += account.name
args += account.type
}
TableScope.URI_PARAMETERS -> Unit
TableScope.CALENDAR_IDS -> parts += idList("calendar_id", calendarIds)
TableScope.EVENT_IDS -> parts += idList("event_id", eventIds.orEmpty())
}
return Selection(parts.takeIf { it.isNotEmpty() }?.joinToString(" AND ") { "($it)" }, args)
}
/** Every row id the batch names, by table: op targets and referenced rows. */
private fun ownershipRequests(ops: List<ProviderOp>, memberships: Set<Long>): Map<ProviderTable, Set<Long>> {
val requests = HashMap<ProviderTable, MutableSet<Long>>()
fun request(table: ProviderTable, id: Long) {
requests.getOrPut(table) { HashSet() } += id
}
fun requestReferences(table: ProviderTable, values: Map<String, Cell>) {
for ((column, cell) in values) {
val referenced = referencedTable(table, column, values) ?: continue
cell.rowId()?.let { request(referenced, it) }
}
}
for (op in ops) {
when (op) {
is ProviderOp.Insert -> requestReferences(op.table, op.values)
is ProviderOp.Update -> {
requestReferences(op.table, op.values)
op.target.id?.let { request(op.table, it) }
if (op.target.id in memberships) op.values[DATA1]?.rowId()?.let { request(ProviderTable.GROUPS, it) }
}
is ProviderOp.Delete -> op.target.id?.let { request(op.table, it) }
is ProviderOp.Assert -> op.target.id?.let { request(op.table, it) }
is ProviderOp.SetSyncState -> Unit
}
}
return requests
}
private enum class Owner { OURS, FOREIGN, MISSING }
/** Who owns the rows a batch names, resolved up front with as few lookups as the tables allow. */
private inner class Owners(requests: Map<ProviderTable, Set<Long>>) {
private val owners = HashMap<ProviderTable, Map<Long, Owner>>()
private val childEvents = HashMap<ProviderTable, Map<Long, Long>>()
init {
// Children lead to events, data rows to raw contacts; both are
// added to their parent's lookup.
val eventIds = HashSet(requests[ProviderTable.EVENTS].orEmpty())
for (table in CHILD_TABLES) {
val ids = requests[table] ?: continue
val events = lookup.childEvents(table, ids)
childEvents[table] = events
eventIds += events.values
}
val rawContactIds = HashSet(requests[ProviderTable.RAW_CONTACTS].orEmpty())
val dataParents = requests[ProviderTable.DATA]?.let { lookup.dataRawContacts(it) }.orEmpty()
rawContactIds += dataParents.values
if (eventIds.isNotEmpty()) {
owners[ProviderTable.EVENTS] = lookup.eventCalendars(eventIds)
.mapValues { (_, calendarId) -> if (calendarId in calendarIds) Owner.OURS else Owner.FOREIGN }
}
for ((table, events) in childEvents) {
// A child whose event is gone is an orphan, not ours.
owners[table] = events.mapValues { (_, eventId) -> ownerOrForeign(ProviderTable.EVENTS, eventId) }
}
val roots = HashMap<ProviderTable, Set<Long>>()
for (table in ROOT_TABLES) requests[table]?.let { roots[table] = it }
if (rawContactIds.isNotEmpty()) roots[ProviderTable.RAW_CONTACTS] = rawContactIds
for ((table, ids) in roots) {
owners[table] = lookup.rootAccounts(table, ids)
.mapValues { (_, owner) -> if (owner == account) Owner.OURS else Owner.FOREIGN }
}
if (dataParents.isNotEmpty()) {
owners[ProviderTable.DATA] = dataParents.mapValues { (_, rawContactId) ->
ownerOrForeign(ProviderTable.RAW_CONTACTS, rawContactId)
}
}
}
private fun ownerOrForeign(table: ProviderTable, id: Long): Owner =
owners[table]?.get(id)?.takeIf { it != Owner.MISSING } ?: Owner.FOREIGN
fun of(table: ProviderTable, id: Long): Owner = owners[table]?.get(id) ?: Owner.MISSING
/** The event of a child row, when both exist and are the account's. */
fun eventOf(table: ProviderTable, id: Long): Long? =
childEvents[table]?.get(id)?.takeIf { of(table, id) == Owner.OURS }
}
companion object {
const val ACCOUNT_NAME = "account_name"
const val ACCOUNT_TYPE = "account_type"
const val DATA_SET = "data_set"
private const val MIMETYPE = "mimetype"
private const val DATA1 = "data1"
private const val DATA14 = "data14"
/** Ids per `IN (…)` list: a few KB of selection, far from SQLite's and Binder's limits. */
const val ID_LIST_CHUNK = 500
private val CHILD_TABLES = ProviderTable.entries.filter { it.scope == TableScope.EVENT_IDS }
private val ROOT_TABLES = ProviderTable.entries.filter { it.scope == TableScope.ACCOUNT_COLUMNS }
/** `column IN (1,2,3)`, or a condition no row meets. The ids are ours to inline: numbers we read. */
fun idList(column: String, ids: Collection<Long>): String =
if (ids.isEmpty()) "0" else ids.sorted().joinToString(",", "$column IN (", ")")
}
}
/** An Android account of our type: the scope of every provider call. */
data class AccountRef(val name: String, val type: String)
/**
* What [ScopePlanner] needs to know about rows beyond the operations
* themselves. [ProviderIo] answers with provider queries: except for
* [ownCalendarIds], these read rows of any account, but only their ids and
* owners, to tell rows of another account from rows that are gone.
*/
interface ScopeLookup {
/** `_id`s of the account's calendars. */
fun ownCalendarIds(): Set<Long>
/** The account of each row of a root table that exists. */
fun rootAccounts(table: ProviderTable, ids: Set<Long>): Map<Long, AccountRef>
/** The raw contact of each data row that exists. */
fun dataRawContacts(ids: Set<Long>): Map<Long, Long>
/** The mimetype of each data row that exists. */
fun dataMimetypes(ids: Set<Long>): Map<Long, String>
/** The calendar of each event that exists. */
fun eventCalendars(ids: Set<Long>): Map<Long, Long>
/** The event of each attendee, reminder or extended property that exists. */
fun childEvents(table: ProviderTable, ids: Set<Long>): Map<Long, Long>
/** The events of the rows of a child table that match [where]. */
fun childEventIdsMatching(table: ProviderTable, where: String?, args: List<String>): Set<Long>
}
/** A selection with its `?` arguments; a null [sql] selects every row the URI allows. */
data class Selection(val sql: String?, val args: List<String>) {
companion object {
val NONE = Selection(null, emptyList())
}
}
/** A provider query, split into [selections] when its scope list is long; no selection means no rows. */
data class PlannedQuery(
val table: ProviderTable,
val columns: List<String>,
val selections: List<Selection>,
val orderBy: String?,
)
/** One ContentProviderOperation, ready to build on the account's sync-adapter URI. */
sealed interface PlannedOp {
val yieldAllowed: Boolean
data class Insert(
val table: ProviderTable,
val values: Map<String, Cell>,
val backReferences: Map<String, Int>,
override val yieldAllowed: Boolean,
) : PlannedOp
/** [itemId] set: an update through the row's own URI, without a selection. */
data class Update(
val table: ProviderTable,
val selection: Selection,
val itemId: Long?,
val values: Map<String, Cell>,
val expectedCount: Int?,
override val yieldAllowed: Boolean,
) : PlannedOp
data class Delete(
val table: ProviderTable,
val selection: Selection,
val expectedCount: Int?,
override val yieldAllowed: Boolean,
) : PlannedOp
/** [values] compared as text, as ContentProviderOperation does. */
data class Assert(
val table: ProviderTable,
val selection: Selection,
val values: Map<String, String?>?,
val expectedCount: Int?,
override val yieldAllowed: Boolean,
) : PlannedOp
data class SetSyncState(val value: String) : PlannedOp {
override val yieldAllowed: Boolean get() = false
}
}
/** The result of one op, as `OpResult` of types.ts. */
data class OpOutcome(val id: Long? = null, val count: Int? = null)
object ProviderResults {
fun ok(results: List<OpOutcome>): String {
val array = JSONArray()
for (result in results) {
array.put(JSONObject().apply {
result.id?.let { put("id", it) }
result.count?.let { put("count", it) }
})
}
return JSONObject().put("ok", true).put("results", array).toString()
}
fun failed(reason: BatchFailure, message: String?): String = JSONObject()
.put("ok", false)
.put("reason", reason.wire)
.put("message", message ?: reason.wire)
.toString()
/**
* An OperationApplicationException is an assert that did not hold or an
* expected count that did not match (`assert`), except when an insert got
* no row back or ContactsProvider refused the batch's yield points.
*/
fun failureOfOperationApplication(message: String?): BatchFailure = when {
message == null -> BatchFailure.ASSERT
message.startsWith("Insert into ") -> BatchFailure.PROVIDER
message.startsWith("Too many content provider operations") -> BatchFailure.PROVIDER
else -> BatchFailure.ASSERT
}
}
/**
* Query results as `ProviderRows` JSON, built by hand: a chunk of contacts
* can carry megabytes of shadows, and this is the hot path of every run.
*/
class ProviderRowsWriter(columns: List<String>) {
private val out = StringBuilder(4096)
private var rows = 0
private var cells = 0
init {
out.append("{\"columns\":[")
columns.forEachIndexed { i, column ->
if (i > 0) out.append(',')
appendString(column)
}
out.append("],\"rows\":[")
}
fun beginRow() {
if (rows++ > 0) out.append(',')
out.append('[')
cells = 0
}
fun endRow() {
out.append(']')
}
fun nullCell() = cell { out.append("null") }
fun longCell(value: Long) = cell { out.append(value) }
fun doubleCell(value: Double) = cell { if (value.isFinite()) out.append(value) else out.append("null") }
fun textCell(value: String) = cell { appendString(value) }
fun finish(): String = out.append("]}").toString()
private inline fun cell(write: () -> Unit) {
if (cells++ > 0) out.append(',')
write()
}
private fun appendString(s: String) {
out.append('"')
for (c in s) {
when {
c == '"' -> out.append("\\\"")
c == '\\' -> out.append("\\\\")
c == '\n' -> out.append("\\n")
c == '\r' -> out.append("\\r")
c == '\t' -> out.append("\\t")
c < ' ' || c.code == 0x2028 || c.code == 0x2029 ->
out.append("\\u").append(Integer.toHexString(c.code).padStart(4, '0'))
else -> out.append(c)
}
}
out.append('"')
}
}
/** Sizes for [ProviderIo.readPhoto]: decode close to the target, then scale the longer side down to it. */
object PhotoScaling {
/** The largest power of two that keeps the decoded image at least [maxPx] on its longer side. */
fun sampleSize(width: Int, height: Int, maxPx: Int): Int {
require(maxPx > 0) { "maxPx must be positive" }
var sample = 1
val longer = maxOf(width, height)
while (longer / (sample * 2) >= maxPx) sample *= 2
return sample
}
fun targetSize(width: Int, height: Int, maxPx: Int): Pair<Int, Int> {
val longer = maxOf(width, height)
if (longer <= maxPx) return width to height
val scale = maxPx.toDouble() / longer
return maxOf(1, Math.round(width * scale).toInt()) to maxOf(1, Math.round(height * scale).toInt())
}
}
@@ -0,0 +1,173 @@
package com.anonymous.bulwarkmobile.sync
import android.content.Context
import android.util.Log
import org.json.JSONArray
import org.json.JSONException
import org.json.JSONObject
/**
* What a push asks for (#34): syncs of the Android accounts that contacts and
* calendar changes feed, and whether the mail push task should run at all.
*
* The relay forwards the JMAP StateChange's `changed` map verbatim (FCM data
* key `changed`: JMAP account id → type → state; only its first account is
* repeated as `accountId`), so every account key is looked at. The mail task
* runs only for mail: when some account's map has a mail type, for anything
* but a StateChange (an EmailPush), when `changed` is missing, unreadable or
* names no type (older relays), or when an account's entry is unreadable, so
* a contact change never ends in a mail notification. The push task's guard
* (`carriesNoMail` in src/lib/push-background-task.ts) applies the same rules.
*/
object PushRouting {
/** An Android account and the authorities it syncs, fed by one JMAP account. */
data class Route(val accountName: String, val authorities: Set<String>)
data class Decision(
/** (Android account name, authority) pairs to request a sync for. */
val syncs: Set<Pair<String, String>>,
val startMailTask: Boolean,
)
private const val STATE_CHANGE_KIND = "jmap-state-change"
/**
* Types that may mean new mail: `EmailDelivery`, and `Email`/`Mailbox`,
* which new mail changes too. A subscription made by an older build
* listens to them until the launch-time resync replaces its types, and a
* server without `EmailDelivery` has only them. Keep in sync with
* MAIL_TYPES in src/lib/push-background-task.ts.
*/
private val MAIL_TYPES = setOf("EmailDelivery", "Email", "Mailbox")
private val CONTACT_TYPES = setOf("ContactCard", "AddressBook")
private val CALENDAR_TYPES = setOf("CalendarEvent", "Calendar")
fun decide(data: Map<String, String>, routes: Map<String, List<Route>>): Decision {
val changed = data["changed"]?.let(::parseChanged)
// Only a StateChange can say it carries no mail.
var mail = data["kind"] != STATE_CHANGE_KIND || changed == null
val syncs = LinkedHashSet<Pair<String, String>>()
for ((jmapAccountId, types) in changed.orEmpty()) {
if (types == null) {
// One account's entry is unreadable: it may be mail.
mail = true
continue
}
if (types.any { it in MAIL_TYPES }) mail = true
val contacts = types.any { it in CONTACT_TYPES }
val calendar = types.any { it in CALENDAR_TYPES }
for (route in routes[jmapAccountId].orEmpty()) {
if (contacts && DeviceSyncAccounts.CONTACTS_AUTHORITY in route.authorities) {
syncs += route.accountName to DeviceSyncAccounts.CONTACTS_AUTHORITY
}
if (calendar && DeviceSyncAccounts.CALENDAR_AUTHORITY in route.authorities) {
syncs += route.accountName to DeviceSyncAccounts.CALENDAR_AUTHORITY
}
}
}
return Decision(syncs, mail)
}
/**
* JMAP account id → its changed types (null for an entry that is not an
* object). Null for a map that is unreadable or names no type at all,
* which the relay sends as `{}` when it had no map.
*/
private fun parseChanged(json: String): Map<String, Set<String>?>? {
val o = try {
JSONObject(json)
} catch (e: JSONException) {
return null
}
val out = LinkedHashMap<String, Set<String>?>()
for (jmapAccountId in o.keys()) {
val types = o.opt(jmapAccountId) as? JSONObject
out[jmapAccountId] = types?.keys()?.asSequence()?.toSet()
}
return out.takeIf { entries -> entries.values.any { it == null || it.isNotEmpty() } }
}
/**
* `{ jmapAccountId: [{ accountName, authorities }] }` as JS stores it.
* [strict] refuses anything malformed (IllegalArgumentException); otherwise
* malformed entries are skipped, so a bad route never stops mail.
*/
fun parseRoutes(json: String?, strict: Boolean = false): Map<String, List<Route>> {
if (json.isNullOrEmpty()) return emptyMap()
fun bad(message: String): Nothing = throw IllegalArgumentException("Push routes: $message")
val o = try {
JSONObject(json)
} catch (e: JSONException) {
if (strict) bad("not a JSON object") else return emptyMap()
}
val out = LinkedHashMap<String, List<Route>>()
for (jmapAccountId in o.keys()) {
val entries = o.opt(jmapAccountId) as? JSONArray
?: if (strict) bad("$jmapAccountId must map to an array") else continue
val routes = ArrayList<Route>()
for (i in 0 until entries.length()) {
val entry = entries.opt(i) as? JSONObject
val name = entry?.opt("accountName") as? String
val authorities = entry?.opt("authorities") as? JSONArray
if (name.isNullOrEmpty() || authorities == null) {
if (strict) bad("$jmapAccountId[$i] needs accountName and authorities") else continue
}
val known = (0 until authorities.length()).mapNotNull { j ->
val authority = authorities.opt(j) as? String
if (authority !in DeviceSyncAccounts.AUTHORITIES) {
if (strict) bad("$jmapAccountId[$i]: unknown authority $authority") else null
} else {
authority
}
}
routes += Route(name, known.toSet())
}
out[jmapAccountId] = routes
}
return out
}
}
/**
* Applies [PushRouting] to incoming pushes (BulwarkMessagingService,
* BulwarkUnifiedPushService) with the routes JS stored through
* `setPushRoutes`.
*/
object DeviceSyncPushRouter {
private const val TAG = "BulwarkDeviceSync"
private const val PREFS = "bulwark_device_sync"
private const val KEY_ROUTES = "pushRoutes"
/** Validates and stores the routes; they must survive the process, pushes arrive without JS. */
fun saveRoutes(context: Context, json: String) {
PushRouting.parseRoutes(json, strict = true)
val saved = context.getSharedPreferences(PREFS, Context.MODE_PRIVATE).edit()
.putString(KEY_ROUTES, json)
.commit()
check(saved) { "Push routes could not be saved" }
}
/**
* Requests the syncs the push asks for, with constant (empty) extras so
* repeated pushes coalesce into one pending sync. Returns whether the mail
* push task should run; any failure here says yes, so mail never depends
* on device sync.
*/
fun route(context: Context, data: Map<String, String>): Boolean = try {
val routes = PushRouting.parseRoutes(
context.getSharedPreferences(PREFS, Context.MODE_PRIVATE).getString(KEY_ROUTES, null),
)
val decision = PushRouting.decide(data, routes)
for ((accountName, authority) in decision.syncs) {
try {
DeviceSyncAccounts.requestSync(context, accountName, authority, SyncRequestFlags())
} catch (e: RuntimeException) {
Log.w(TAG, "Push: no sync requested for $authority", e)
}
}
decision.startMailTask
} catch (e: Exception) {
Log.w(TAG, "Push not routed", e)
true
}
}
@@ -0,0 +1,75 @@
package com.anonymous.bulwarkmobile.sync
import android.app.NotificationChannel
import android.app.NotificationManager
import android.app.PendingIntent
import android.content.Context
import android.content.Intent
import android.net.Uri
import android.os.Build
import androidx.core.app.NotificationCompat
import com.anonymous.bulwarkmobile.MainActivity
import com.anonymous.bulwarkmobile.R
/**
* The one notification per Android account that device sync needs the user
* for (#34), e.g. "Sign in again" after the server rejected the credentials.
* The engine posts it through `showSyncProblem`; the app clears it once the
* problem is solved. Tapping it opens a `bulwarkmobile://` deep link in the
* app.
*/
object SyncProblemNotifier {
const val CHANNEL_ID = "bulwark_sync"
private const val DEFAULT_CHANNEL_NAME = "Sync problems"
private const val TAG_PREFIX = "bulwark-sync:"
private const val NOTIFICATION_ID = 1
private const val DEEP_LINK_SCHEME = "bulwarkmobile"
/**
* Creates the channel, or renames it: JS passes the name in the app's
* language. Nothing urgent, so default importance and no vibration.
*/
fun ensureChannel(context: Context, name: String?) {
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.O) return
val manager = context.getSystemService(NotificationManager::class.java)
val channel = NotificationChannel(
CHANNEL_ID,
name?.takeIf { it.isNotBlank() } ?: DEFAULT_CHANNEL_NAME,
NotificationManager.IMPORTANCE_DEFAULT,
).apply { enableVibration(false) }
manager.createNotificationChannel(channel)
}
fun show(context: Context, accountName: String, title: String, text: String, uri: String, channelName: String?) {
val link = Uri.parse(uri)
require(link.scheme == DEEP_LINK_SCHEME) { "Only $DEEP_LINK_SCHEME:// links open from a sync notification" }
ensureChannel(context, channelName)
val tag = TAG_PREFIX + accountName
// Explicit, so no other app can answer the tap.
val intent = Intent(Intent.ACTION_VIEW, link, context, MainActivity::class.java)
.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK or Intent.FLAG_ACTIVITY_SINGLE_TOP or Intent.FLAG_ACTIVITY_CLEAR_TOP)
val pending = PendingIntent.getActivity(
context,
tag.hashCode(),
intent,
PendingIntent.FLAG_UPDATE_CURRENT or PendingIntent.FLAG_IMMUTABLE,
)
val notification = NotificationCompat.Builder(context, CHANNEL_ID)
.setSmallIcon(R.drawable.ic_notification)
.setContentTitle(title)
.setContentText(text)
.setStyle(NotificationCompat.BigTextStyle().bigText(text))
.setCategory(NotificationCompat.CATEGORY_ERROR)
.setPriority(NotificationCompat.PRIORITY_DEFAULT)
// Runs repeat the same problem until it is solved; say it once.
.setOnlyAlertOnce(true)
.setAutoCancel(true)
.setContentIntent(pending)
.build()
context.getSystemService(NotificationManager::class.java).notify(tag, NOTIFICATION_ID, notification)
}
fun clear(context: Context, accountName: String) {
context.getSystemService(NotificationManager::class.java).cancel(TAG_PREFIX + accountName, NOTIFICATION_ID)
}
}
@@ -0,0 +1,112 @@
package com.anonymous.bulwarkmobile.sync
import android.content.SyncResult
import org.json.JSONException
import org.json.JSONObject
/**
* What a run's report (src/device-sync/types.ts `RunReport`) asks of the
* framework's SyncResult. Kept free of Android classes so JVM tests cover it;
* [SyncReports.apply] copies it onto the real SyncResult.
*
* SyncManager treats io errors as soft (retry with back-off), auth errors,
* database errors and too many deletions as hard (no retry until something
* changes), and `fullSyncRequested` as "schedule another sync now".
*/
data class SyncOutcome(
val ioErrors: Long = 0,
val authErrors: Long = 0,
val databaseError: Boolean = false,
val tooManyDeletions: Boolean = false,
val inserts: Long = 0,
val updates: Long = 0,
val deletes: Long = 0,
val entries: Long = 0,
val skipped: Long = 0,
/** Epoch seconds; 0 when unset. */
val delayUntil: Long = 0,
val fullSyncRequested: Boolean = false,
)
object SyncReports {
/**
* Translates a report. [reportJson] is null when the run ended without
* one ([endReason] says why: JS never answered, React failed to start, …),
* which is a soft error so the framework retries.
*/
fun outcome(reportJson: String?, endReason: String?): SyncOutcome {
if (reportJson == null) return SyncOutcome(ioErrors = 1)
val report = try {
JSONObject(reportJson)
} catch (e: JSONException) {
return SyncOutcome(ioErrors = 1)
}
val stats = report.optJSONObject("stats")
val down = stats?.optJSONObject("downloaded")
val up = stats?.optJSONObject("uploaded")
fun count(side: JSONObject?, key: String) = side?.optLong(key, 0) ?: 0
val base = SyncOutcome(
inserts = count(down, "created") + count(up, "created"),
updates = count(down, "updated") + count(up, "updated"),
deletes = count(down, "deleted") + count(up, "deleted"),
entries = stats?.optLong("entries", 0) ?: 0,
skipped = stats?.optLong("skipped", 0) ?: 0,
delayUntil = report.optLong("delayUntil", 0),
fullSyncRequested = report.optBoolean("moreRecordsToGet", false),
)
// SyncManager retries a failed sync at once, without back-off, when it
// made progress (inserts, updates, or deletes without
// tooManyDeletions). A hard error must therefore report none, or an
// auth failure after some work would loop.
val hard = base.copy(inserts = 0, updates = 0, deletes = 0)
return when (report.optString("outcome")) {
"ok", "cancelled", "disabled" -> base
"auth" -> hard.copy(authErrors = 1)
"permission", "unsupported", "safetyAbort" -> hard.copy(databaseError = true)
"tooManyDeletions" -> hard.copy(
tooManyDeletions = true,
// Shown in the system's "too many deletions" notification.
deletes = report.optJSONObject("tooManyDeletions")?.optLong("count", 0) ?: 0,
)
// "io", "internal" and anything a newer JS might send: retry, at
// once if some work got done, else with back-off.
else -> base.copy(ioErrors = 1)
}
}
/**
* One line for logcat: the report's outcome, its message and how many
* items failed. The reason a run failed is otherwise only in the report,
* and JS warnings from a headless run don't reach logcat.
*/
fun summary(reportJson: String?): String {
if (reportJson == null) return "no report"
val report = try {
JSONObject(reportJson)
} catch (e: JSONException) {
return "unreadable report"
}
val parts = mutableListOf("outcome=" + report.optString("outcome", "?"))
val items = report.optJSONArray("itemErrors")?.length() ?: 0
if (items > 0) parts += "itemErrors=$items"
val message = report.optString("message", "")
if (message.isNotEmpty()) parts += "message=" + message.take(MAX_LOGGED_MESSAGE)
return parts.joinToString(" ")
}
private const val MAX_LOGGED_MESSAGE = 300
fun apply(outcome: SyncOutcome, result: SyncResult) {
result.stats.numIoExceptions += outcome.ioErrors
result.stats.numAuthExceptions += outcome.authErrors
result.stats.numInserts += outcome.inserts
result.stats.numUpdates += outcome.updates
result.stats.numDeletes += outcome.deletes
result.stats.numEntries += outcome.entries
result.stats.numSkippedEntries += outcome.skipped
if (outcome.databaseError) result.databaseError = true
if (outcome.tooManyDeletions) result.tooManyDeletions = true
if (outcome.delayUntil > 0) result.delayUntil = outcome.delayUntil
if (outcome.fullSyncRequested) result.fullSyncRequested = true
}
}
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Home-screen widget edge, drawn over the widget by layout/rn_widget.xml. -->
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<stroke
android:width="1dp"
android:color="@color/widget_frame" />
<corners android:radius="@dimen/widget_radius" />
</shape>
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Home-screen widget root (layout/rn_widget.xml): its rounded outline is what the widget clips to. -->
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<solid android:color="@color/widget_surface" />
<corners android:radius="@dimen/widget_radius" />
</shape>
@@ -0,0 +1,38 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Night twin of layout/rn_widget.xml, which explains the override. -->
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@android:id/background"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/widget_surface"
android:clipToOutline="true"
android:foreground="@drawable/widget_frame"
tools:targetApi="31">
<ImageView
android:id="@+id/rn_widget_image_light"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@android:color/transparent"
android:scaleType="matrix"
android:visibility="gone" />
<ImageView
android:id="@+id/rn_widget_image_dark"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@android:color/transparent"
android:scaleType="matrix"
android:visibility="visible" />
<FrameLayout
android:id="@+id/rn_widget_clickable_container"
android:layout_width="match_parent"
android:layout_height="match_parent" />
<FrameLayout
android:id="@+id/rn_widget_collection_container"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</FrameLayout>
@@ -0,0 +1,50 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Overrides react-native-android-widget's rn_widget.xml (same ids and children;
layout-night/rn_widget.xml is its night twin).
The library draws each widget into one bitmap sized from the size the
launcher reports, and pins it to the top left without scaling. When the real
frame is smaller (after a rotation, or on a launcher that over-reports), the
bitmap's bottom edge is cut off and takes the rounded corners and the border
with it, so the bottom corners fall back to whatever the launcher clips to.
This root always has the real size, so it owns the shape instead: it clips to
a rounded outline (Android 12+; the launcher then leaves the corners to us),
fills in where the bitmap falls short, and draws the frame on top.
-->
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@android:id/background"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/widget_surface"
android:clipToOutline="true"
android:foreground="@drawable/widget_frame"
tools:targetApi="31">
<ImageView
android:id="@+id/rn_widget_image_light"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@android:color/transparent"
android:scaleType="matrix"
android:visibility="visible" />
<ImageView
android:id="@+id/rn_widget_image_dark"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@android:color/transparent"
android:scaleType="matrix"
android:visibility="gone" />
<FrameLayout
android:id="@+id/rn_widget_clickable_container"
android:layout_width="match_parent"
android:layout_height="match_parent" />
<FrameLayout
android:id="@+id/rn_widget_collection_container"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</FrameLayout>
@@ -3,4 +3,6 @@
<color name="splashscreen_background">#09090b</color>
<!-- Matches the dark palette background (src/theme/tokens.ts). -->
<color name="window_background">#09090b</color>
<!-- DARK.bg in src/widgets/theme.ts. -->
<color name="widget_surface">#0a0a0a</color>
</resources>
@@ -6,4 +6,8 @@
<color name="colorPrimaryDark">#09090b</color>
<!-- Behind the React root until the first frame; matches the light palette background (src/theme/tokens.ts). -->
<color name="window_background">#ffffff</color>
<!-- Home-screen widget surface (LIGHT.bg in src/widgets/theme.ts); it only shows where the drawn widget falls short of the launcher's frame. -->
<color name="widget_surface">#ffffff</color>
<!-- Home-screen widget edge, one colour for both schemes: the app can force a theme the launcher's night mode doesn't know about. -->
<color name="widget_frame">#4d808080</color>
</resources>
@@ -0,0 +1,4 @@
<resources>
<!-- Home-screen widget corners; WIDGET_RADIUS in src/widgets/primitives.tsx. -->
<dimen name="widget_radius">22dp</dimen>
</resources>
@@ -2,4 +2,6 @@
<string name="app_name">Bulwark Mobile</string>
<string name="expo_splash_screen_resize_mode" translatable="false">contain</string>
<string name="expo_splash_screen_status_bar_translucent" translatable="false">false</string>
<!-- Account type label of device sync (#34), shown in Settings → Accounts. -->
<string name="device_sync_account_label" translatable="false">Bulwark</string>
</resources>
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- The "Bulwark" account type of device sync (#34); see docs/device-sync.md. -->
<account-authenticator xmlns:android="http://schemas.android.com/apk/res/android"
android:accountType="@string/device_sync_account_type"
android:icon="@mipmap/ic_launcher"
android:smallIcon="@mipmap/ic_launcher"
android:label="@string/device_sync_account_label" />
+83
View File
@@ -0,0 +1,83 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
How Contacts apps show and edit contacts of the Bulwark account (#34). The
EditSchema lists exactly the data kinds device sync maps to JSContact
(docs/device-sync.md, "Contacts mapping"); apps offer nothing else.
AOSP Contacts drops the whole account type when this schema breaks its rules
(BaseAccountType): every kind with a type column needs <Type> children and
the others must have none, name needs maxOccurs="1" and every supports*
attribute true (supportsDisplayName for older releases), and photo,
nickname, organization, note and group_membership need maxOccurs="1".
A Type's maxOccurs limits that type only; birthday gets none unless given.
-->
<ContactsAccountType xmlns:android="http://schemas.android.com/apk/res/android">
<EditSchema>
<DataKind kind="name" maxOccurs="1"
supportsDisplayName="true"
supportsPrefix="true"
supportsMiddleName="true"
supportsSuffix="true"
supportsPhoneticFamilyName="true"
supportsPhoneticMiddleName="true"
supportsPhoneticGivenName="true" />
<DataKind kind="photo" maxOccurs="1" />
<DataKind kind="phone">
<Type type="mobile" />
<Type type="home" />
<Type type="work" />
<Type type="main" />
<Type type="fax_work" />
<Type type="fax_home" />
<Type type="other_fax" />
<Type type="pager" />
<Type type="work_mobile" />
<Type type="work_pager" />
<Type type="tty_tdd" />
<Type type="other" />
<Type type="custom" />
</DataKind>
<DataKind kind="email">
<Type type="home" />
<Type type="work" />
<Type type="other" />
<Type type="mobile" />
<Type type="custom" />
</DataKind>
<DataKind kind="nickname" maxOccurs="1" />
<DataKind kind="postal" needsStructured="true">
<Type type="home" />
<Type type="work" />
<Type type="other" />
<Type type="custom" />
</DataKind>
<DataKind kind="organization" maxOccurs="1" />
<!-- No <Type> allowed: websites are always OTHER in the editor. -->
<DataKind kind="website" />
<DataKind kind="event" dateWithTime="false">
<Type type="birthday" maxOccurs="1" yearOptional="true" />
<Type type="anniversary" yearOptional="true" />
<Type type="other" yearOptional="true" />
<Type type="custom" yearOptional="true" />
</DataKind>
<DataKind kind="relationship">
<Type type="assistant" />
<Type type="brother" />
<Type type="child" />
<Type type="domestic_partner" />
<Type type="father" />
<Type type="friend" />
<Type type="manager" />
<Type type="mother" />
<Type type="parent" />
<Type type="partner" />
<Type type="referred_by" />
<Type type="relative" />
<Type type="sister" />
<Type type="spouse" />
<Type type="custom" />
</DataKind>
<DataKind kind="note" maxOccurs="1" />
<DataKind kind="group_membership" maxOccurs="1" />
</EditSchema>
</ContactsAccountType>
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Calendar sync adapter of device sync (#34); see docs/device-sync.md. -->
<sync-adapter xmlns:android="http://schemas.android.com/apk/res/android"
android:accountType="@string/device_sync_account_type"
android:contentAuthority="com.android.calendar"
android:supportsUploading="true"
android:userVisible="true"
android:allowParallelSyncs="false"
android:isAlwaysSyncable="false" />
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Contacts sync adapter of device sync (#34); see docs/device-sync.md. -->
<sync-adapter xmlns:android="http://schemas.android.com/apk/res/android"
android:accountType="@string/device_sync_account_type"
android:contentAuthority="com.android.contacts"
android:supportsUploading="true"
android:userVisible="true"
android:allowParallelSyncs="false"
android:isAlwaysSyncable="false" />
@@ -0,0 +1,18 @@
package com.anonymous.bulwarkmobile.sync
import com.anonymous.bulwarkmobile.sync.DeviceSyncAccounts.EnsureAction
import org.junit.Assert.assertEquals
import org.junit.Test
class DeviceSyncAccountsTest {
@Test
fun `ensureAccount creates, keeps, adopts or refuses`() {
assertEquals(EnsureAction.CREATE, DeviceSyncAccounts.ensureAction(false, null, "alice@example.org@mail"))
assertEquals(EnsureAction.KEEP, DeviceSyncAccounts.ensureAction(true, "alice@example.org@mail", "alice@example.org@mail"))
// An account whose setup never wrote a registry id.
assertEquals(EnsureAction.ADOPT, DeviceSyncAccounts.ensureAction(true, null, "alice@example.org@mail"))
assertEquals(EnsureAction.ADOPT, DeviceSyncAccounts.ensureAction(true, "", "alice@example.org@mail"))
// Its rows and SyncState belong to another app account: never rewritten.
assertEquals(EnsureAction.CONFLICT, DeviceSyncAccounts.ensureAction(true, "alice@example.org@old", "alice@example.org@mail"))
}
}
@@ -0,0 +1,62 @@
package com.anonymous.bulwarkmobile.sync
import org.junit.Assert.assertEquals
import org.junit.Assert.assertFalse
import org.junit.Assert.assertNull
import org.junit.Assert.assertTrue
import org.junit.Test
class DeviceSyncRunsTest {
private val contacts = "com.android.contacts"
private val calendar = "com.android.calendar"
@Test
fun `a report is accepted once, while the adapter waits`() {
val run = DeviceSyncRuns.open("alice", contacts)
assertTrue(DeviceSyncRuns.finish(run.runId, "{\"outcome\":\"ok\"}"))
assertFalse(DeviceSyncRuns.finish(run.runId, "{\"outcome\":\"io\"}"))
assertFalse(run.end("no report before the deadline"))
assertEquals(0L, run.done.count)
assertEquals("{\"outcome\":\"ok\"}", run.report)
assertEquals("reported", run.endReason)
DeviceSyncRuns.close(run)
}
@Test
fun `a report after the run ended is refused whole`() {
val run = DeviceSyncRuns.open("alice", contacts)
assertTrue(run.end("no report before the deadline"))
assertFalse(DeviceSyncRuns.finish(run.runId, "{\"outcome\":\"ok\"}"))
assertNull(run.report)
assertEquals("no report before the deadline", run.endReason)
DeviceSyncRuns.close(run)
assertFalse(DeviceSyncRuns.finish(run.runId, "{\"outcome\":\"ok\"}"))
}
@Test
fun `runs nobody waits for, or that ended, count as cancelled`() {
assertTrue(DeviceSyncRuns.isCancelled("unknown"))
val run = DeviceSyncRuns.open("alice", calendar)
assertFalse(DeviceSyncRuns.isCancelled(run.runId))
run.end("task finished")
assertTrue(DeviceSyncRuns.isCancelled(run.runId))
DeviceSyncRuns.close(run)
assertTrue(DeviceSyncRuns.isCancelled(run.runId))
}
@Test
fun `a sync requested during a run flags that run only, and the flag outlives the close`() {
val mine = DeviceSyncRuns.open("alice", contacts)
val otherAuthority = DeviceSyncRuns.open("alice", calendar)
val otherAccount = DeviceSyncRuns.open("bob", contacts)
assertTrue(DeviceSyncRuns.flagSyncAgain("alice", contacts))
DeviceSyncRuns.close(mine)
assertTrue(mine.syncAgainRequested)
assertFalse(otherAuthority.syncAgainRequested)
assertFalse(otherAccount.syncAgainRequested)
// Closed runs are not flagged any more.
assertFalse(DeviceSyncRuns.flagSyncAgain("alice", contacts))
DeviceSyncRuns.close(otherAuthority)
DeviceSyncRuns.close(otherAccount)
}
}
@@ -0,0 +1,562 @@
package com.anonymous.bulwarkmobile.sync
import org.json.JSONArray
import org.json.JSONObject
import org.junit.Assert.assertEquals
import org.junit.Assert.assertNull
import org.junit.Assert.assertTrue
import org.junit.Assert.fail
import org.junit.Test
import java.math.BigDecimal
import java.math.BigInteger
private const val CONTACTS = "com.android.contacts"
private const val CALENDAR = "com.android.calendar"
private val ME = AccountRef("alice@example.org", "com.anonymous.bulwarkmobile.account")
private val OTHER = AccountRef("bob@gmail.com", "com.google")
/** The provider as far as the planner asks: who owns which row; [me] is the account the lookup is bound to. */
private class FakeLookup(private val me: AccountRef = ME) : ScopeLookup {
val rawContacts = HashMap<Long, AccountRef>()
val groups = HashMap<Long, AccountRef>()
val calendars = HashMap<Long, AccountRef>()
val colors = HashMap<Long, AccountRef>()
/** data id → raw contact */
val data = HashMap<Long, Long>()
/** data id → mimetype */
val mimetypes = HashMap<Long, String>()
/** event id → calendar */
val events = HashMap<Long, Long>()
/** child table → child id → event */
val children = HashMap<ProviderTable, HashMap<Long, Long>>()
/** (child table, where) → events of the matching rows; a null where matches every row. */
val matching = HashMap<Pair<ProviderTable, String?>, Set<Long>>()
override fun ownCalendarIds() = calendars.filterValues { it == me }.keys
override fun rootAccounts(table: ProviderTable, ids: Set<Long>): Map<Long, AccountRef> = when (table) {
ProviderTable.RAW_CONTACTS -> rawContacts
ProviderTable.GROUPS -> groups
ProviderTable.CALENDARS -> calendars
ProviderTable.COLORS -> colors
else -> throw AssertionError("no root lookup for $table")
}.filterKeys { it in ids }
override fun dataRawContacts(ids: Set<Long>) = data.filterKeys { it in ids }
override fun dataMimetypes(ids: Set<Long>) = mimetypes.filterKeys { it in ids }
override fun eventCalendars(ids: Set<Long>) = events.filterKeys { it in ids }
override fun childEvents(table: ProviderTable, ids: Set<Long>): Map<Long, Long> =
children[table].orEmpty().filterKeys { it in ids }
override fun childEventIdsMatching(table: ProviderTable, where: String?, args: List<String>): Set<Long> =
matching[table to where] ?: if (where == null) children[table].orEmpty().values.toSet() else emptySet()
fun child(table: ProviderTable, id: Long, event: Long) {
children.getOrPut(table) { HashMap() }[id] = event
}
}
class ProviderOpsTest {
private val lookup = FakeLookup().apply {
rawContacts[1] = ME
rawContacts[2] = OTHER
groups[10] = ME
groups[11] = OTHER
data[100] = 1
data[101] = 2
calendars[20] = ME
calendars[21] = ME
calendars[22] = OTHER
colors[40] = ME
events[30] = 20
events[31] = 21
events[32] = 22
child(ProviderTable.ATTENDEES, 50, 30)
child(ProviderTable.ATTENDEES, 51, 32)
child(ProviderTable.REMINDERS, 60, 31)
child(ProviderTable.EXTENDED_PROPERTIES, 70, 30)
child(ProviderTable.EXTENDED_PROPERTIES, 71, 32)
}
private val planner = ScopePlanner(ME, lookup)
private fun ops(vararg op: String) = "[${op.joinToString(",")}]"
private fun plan(authority: String, vararg op: String) =
planner.planBatch(ProviderOpParser.parseBatch(authority, ops(*op)))
private fun refused(reason: BatchFailure, block: () -> Unit): String {
try {
block()
} catch (e: ProviderRefusal) {
assertEquals(e.message, reason, e.reason)
return e.message.orEmpty()
}
fail("expected a $reason refusal")
throw AssertionError()
}
// ── tables and parsing ──────────────────────────────────────
@Test
fun `tables are enumerated per authority and anything else is out of scope`() {
assertEquals(ProviderTable.EXTENDED_PROPERTIES, ProviderTable.of(CALENDAR, "extended_properties"))
assertEquals(ProviderTable.SETTINGS, ProviderTable.of(CONTACTS, "settings"))
refused(BatchFailure.SCOPE) { ProviderTable.of(CONTACTS, "events") }
refused(BatchFailure.SCOPE) { ProviderTable.of(CALENDAR, "raw_contacts") }
refused(BatchFailure.SCOPE) { ProviderTable.of(CONTACTS, "contacts") }
refused(BatchFailure.SCOPE) { plan(CALENDAR, """{"op":"delete","table":"instances","where":"1"}""") }
}
@Test
fun `numbers keep integers exact whatever org_json parsed them into`() {
assertEquals(Cell.Integer(5), ProviderOpParser.numberCell(5))
assertEquals(Cell.Integer(5), ProviderOpParser.numberCell(5.0))
assertEquals(Cell.Integer(5), ProviderOpParser.numberCell(BigDecimal("5.0")))
assertEquals(Cell.Integer(1L shl 60), ProviderOpParser.numberCell(BigInteger.ONE.shiftLeft(60)))
assertEquals(Cell.Integer(1_700_000_000_000), ProviderOpParser.numberCell(1_700_000_000_000L))
assertEquals(Cell.Real(1.5), ProviderOpParser.numberCell(BigDecimal("1.5")))
assertEquals(Cell.Real(1.5), ProviderOpParser.numberCell(1.5))
}
@Test
fun `values keep text, numbers, booleans as 0 and 1, and nulls`() {
val insert = ProviderOpParser.parseBatch(
CONTACTS,
ops("""{"op":"insert","table":"raw_contacts","values":{"sync1":"a","dirty":0,"starred":true,"sync2":null}}"""),
).single() as ProviderOp.Insert
assertEquals(
mapOf("sync1" to Cell.Text("a"), "dirty" to Cell.Integer(0), "starred" to Cell.Integer(1), "sync2" to Cell.Null),
insert.values,
)
}
@Test
fun `malformed ops are provider failures`() {
refused(BatchFailure.PROVIDER) { ProviderOpParser.parseBatch(CONTACTS, "{}") }
refused(BatchFailure.PROVIDER) { plan(CONTACTS, """{"op":"upsert","table":"groups","values":{}}""") }
refused(BatchFailure.PROVIDER) { plan(CONTACTS, """{"op":"update","table":"groups","id":10,"values":{}}""") }
refused(BatchFailure.PROVIDER) { plan(CONTACTS, """{"op":"assert","table":"groups","where":"dirty = 1"}""") }
refused(BatchFailure.PROVIDER) { plan(CONTACTS, """{"op":"delete","table":"settings","id":1}""") }
refused(BatchFailure.PROVIDER) { plan(CONTACTS, """{"op":"delete","table":"groups","args":["x"]}""") }
refused(BatchFailure.PROVIDER) { plan(CONTACTS, """{"op":"delete","table":"groups","id":1.5}""") }
refused(BatchFailure.PROVIDER) { plan(CONTACTS, """{"op":"delete","table":"groups","where":"a = ?","args":[null]}""") }
}
@Test
fun `bytes are only accepted for data_data15`() {
val planned = plan(
CONTACTS,
"""{"op":"insert","table":"data","values":{"raw_contact_id":1,"mimetype":"vnd.android.cursor.item/photo","data15":{"b64":"AAEC"}}}""",
).single() as PlannedOp.Insert
assertEquals(Cell.Blob("AAEC"), planned.values["data15"])
refused(BatchFailure.SCOPE) {
plan(CONTACTS, """{"op":"update","table":"raw_contacts","id":1,"values":{"sync2":{"b64":"AAEC"}}}""")
}
refused(BatchFailure.SCOPE) {
plan(CONTACTS, """{"op":"insert","table":"data","values":{"raw_contact_id":1,"data1":{"b64":"AA"}}}""")
}
refused(BatchFailure.PROVIDER) {
plan(CONTACTS, """{"op":"insert","table":"data","values":{"raw_contact_id":1,"data15":{"bytes":"AA"}}}""")
}
}
// ── batch rules ─────────────────────────────────────────────
@Test
fun `a syncState op must be the last op and not a yield point`() {
val planned = plan(
CONTACTS,
"""{"op":"update","table":"groups","id":10,"values":{"sync2":"x"},"yieldAllowed":true}""",
"""{"op":"syncState","value":"{\"v\":1}"}""",
)
assertEquals(PlannedOp.SetSyncState("{\"v\":1}"), planned.last())
refused(BatchFailure.SCOPE) {
plan(CONTACTS, """{"op":"syncState","value":"{}"}""", """{"op":"delete","table":"groups","id":10}""")
}
refused(BatchFailure.SCOPE) {
plan(
CONTACTS,
"""{"op":"delete","table":"groups","id":10}""",
"""{"op":"syncState","value":"{}","yieldAllowed":true}""",
)
}
}
private fun deletes(count: Int, yieldAt: Set<Int> = emptySet()) = (0 until count).joinToString(",", "[", "]") { i ->
"""{"op":"delete","table":"groups","where":"sync1 = ?","args":["$i"]${if (i in yieldAt) ""","yieldAllowed":true""" else ""}}"""
}
@Test
fun `contacts batches stop at 499 ops between yield points, counted as ContactsProvider does`() {
assertEquals(499, ProviderOpParser.parseBatch(CONTACTS, deletes(499)).size)
refused(BatchFailure.PROVIDER) { ProviderOpParser.parseBatch(CONTACTS, deletes(500)) }
// The yielding op still counts toward the ops before it.
assertEquals(998, ProviderOpParser.parseBatch(CONTACTS, deletes(998, setOf(498))).size)
refused(BatchFailure.PROVIDER) { ProviderOpParser.parseBatch(CONTACTS, deletes(999, setOf(498))) }
refused(BatchFailure.PROVIDER) { ProviderOpParser.parseBatch(CONTACTS, deletes(600, setOf(499))) }
// A yield on the first op is ignored, as the provider ignores it.
refused(BatchFailure.PROVIDER) { ProviderOpParser.parseBatch(CONTACTS, deletes(500, setOf(0))) }
}
@Test
fun `calendar batches have no yield point limit`() {
val many = (0 until 600).joinToString(",", "[", "]") { """{"op":"delete","table":"colors","where":"color_index = '$it'"}""" }
assertEquals(600, ProviderOpParser.parseBatch(CALENDAR, many).size)
}
@Test
fun `back-references name earlier inserts, and parents name their parent table`() {
val planned = plan(
CONTACTS,
"""{"op":"insert","table":"raw_contacts","values":{"sourceid":"c/1"}}""",
"""{"op":"insert","table":"data","values":{"mimetype":"vnd.android.cursor.item/name","data1":"A"},"refs":{"raw_contact_id":0}}""",
)
assertEquals(mapOf("raw_contact_id" to 0), (planned[1] as PlannedOp.Insert).backReferences)
refused(BatchFailure.PROVIDER) {
plan(CONTACTS, """{"op":"insert","table":"data","values":{"mimetype":"x"},"refs":{"raw_contact_id":0}}""")
}
refused(BatchFailure.PROVIDER) {
plan(
CONTACTS,
"""{"op":"delete","table":"groups","id":10}""",
"""{"op":"insert","table":"data","values":{"mimetype":"x"},"refs":{"raw_contact_id":0}}""",
)
}
// Settings rows have no id to refer to.
refused(BatchFailure.PROVIDER) {
plan(
CONTACTS,
"""{"op":"insert","table":"settings","values":{"ungrouped_visible":1}}""",
"""{"op":"insert","table":"data","values":{"mimetype":"x"},"refs":{"raw_contact_id":0}}""",
)
}
refused(BatchFailure.SCOPE) {
plan(
CONTACTS,
"""{"op":"insert","table":"groups","values":{"title":"g"}}""",
"""{"op":"insert","table":"data","values":{"mimetype":"x"},"refs":{"raw_contact_id":0}}""",
)
}
refused(BatchFailure.SCOPE) { plan(CONTACTS, """{"op":"insert","table":"data","values":{"mimetype":"x"}}""") }
refused(BatchFailure.SCOPE) {
plan(CALENDAR, """{"op":"insert","table":"attendees","values":{"event_id":null,"attendeeEmail":"a@b"}}""")
}
}
// ── scope: inserts ──────────────────────────────────────────
@Test
fun `root inserts are written into the account, whatever the op says`() {
val planned = plan(
CONTACTS,
"""{"op":"insert","table":"raw_contacts","values":{"sourceid":"c/1","account_name":"alice@example.org"}}""",
).single() as PlannedOp.Insert
assertEquals(Cell.Text(ME.name), planned.values["account_name"])
assertEquals(Cell.Text(ME.type), planned.values["account_type"])
val calendar = plan(CALENDAR, """{"op":"insert","table":"calendars","values":{"name":"c"}}""").single()
assertEquals(Cell.Text(ME.type), (calendar as PlannedOp.Insert).values["account_type"])
}
@Test
fun `account columns never move a row out of the account`() {
refused(BatchFailure.SCOPE) {
plan(CONTACTS, """{"op":"insert","table":"raw_contacts","values":{"account_name":"bob@gmail.com"}}""")
}
refused(BatchFailure.SCOPE) {
plan(CONTACTS, """{"op":"update","table":"groups","id":10,"values":{"account_type":"com.google"}}""")
}
refused(BatchFailure.SCOPE) {
plan(CONTACTS, """{"op":"insert","table":"groups","values":{"title":"g","data_set":"plugin"}}""")
}
refused(BatchFailure.SCOPE) {
plan(CONTACTS, """{"op":"insert","table":"data","values":{"raw_contact_id":1,"account_name":"alice@example.org"}}""")
}
refused(BatchFailure.SCOPE) {
plan(CALENDAR, """{"op":"update","table":"events","id":30,"values":{"account_name":"alice@example.org"}}""")
}
}
@Test
fun `inserts must name a parent of the account that still exists`() {
plan(CONTACTS, """{"op":"insert","table":"data","values":{"raw_contact_id":1,"mimetype":"x"}}""")
plan(CONTACTS, """{"op":"insert","table":"data","values":{"raw_contact_id":"1","mimetype":"x"}}""")
refused(BatchFailure.SCOPE) { plan(CONTACTS, """{"op":"insert","table":"data","values":{"raw_contact_id":2,"mimetype":"x"}}""") }
refused(BatchFailure.ASSERT) { plan(CONTACTS, """{"op":"insert","table":"data","values":{"raw_contact_id":9,"mimetype":"x"}}""") }
refused(BatchFailure.PROVIDER) {
plan(CONTACTS, """{"op":"insert","table":"data","values":{"raw_contact_id":"me","mimetype":"x"}}""")
}
plan(CALENDAR, """{"op":"insert","table":"events","values":{"calendar_id":21,"dtstart":0}}""")
refused(BatchFailure.SCOPE) { plan(CALENDAR, """{"op":"insert","table":"events","values":{"calendar_id":22,"dtstart":0}}""") }
refused(BatchFailure.SCOPE) {
plan(CALENDAR, """{"op":"insert","table":"events","values":{"calendar_id":20,"original_id":32}}""")
}
plan(CALENDAR, """{"op":"insert","table":"reminders","values":{"event_id":31,"minutes":10}}""")
refused(BatchFailure.SCOPE) { plan(CALENDAR, """{"op":"insert","table":"reminders","values":{"event_id":32,"minutes":10}}""") }
refused(BatchFailure.ASSERT) { plan(CALENDAR, """{"op":"insert","table":"attendees","values":{"event_id":99}}""") }
}
@Test
fun `a membership row may only name a group of the account`() {
val membership = """"mimetype":"vnd.android.cursor.item/group_membership""""
plan(CONTACTS, """{"op":"insert","table":"data","values":{"raw_contact_id":1,$membership,"data1":10}}""")
plan(CONTACTS, """{"op":"insert","table":"data","values":{"raw_contact_id":1,$membership,"group_sourceid":"c/g"}}""")
refused(BatchFailure.SCOPE) {
plan(CONTACTS, """{"op":"insert","table":"data","values":{"raw_contact_id":1,$membership,"data1":11}}""")
}
// data1 of other kinds is plain data.
plan(CONTACTS, """{"op":"insert","table":"data","values":{"raw_contact_id":1,"mimetype":"x","data1":11}}""")
}
@Test
fun `a membership row's group is checked on updates by id too`() {
lookup.mimetypes[100] = GROUP_MEMBERSHIP_MIMETYPE
plan(CONTACTS, """{"op":"update","table":"data","id":100,"values":{"data1":10}}""")
refused(BatchFailure.SCOPE) { plan(CONTACTS, """{"op":"update","table":"data","id":100,"values":{"data1":11}}""") }
refused(BatchFailure.ASSERT) { plan(CONTACTS, """{"op":"update","table":"data","id":100,"values":{"data1":12}}""") }
// data1 by a selection could reach memberships the lookup never saw.
refused(BatchFailure.SCOPE) {
plan(CONTACTS, """{"op":"update","table":"data","where":"raw_contact_id = ?","args":[1],"values":{"data1":11}}""")
}
// data1 of other kinds is plain data.
lookup.mimetypes[100] = "vnd.android.cursor.item/phone_v2"
plan(CONTACTS, """{"op":"update","table":"data","id":100,"values":{"data1":11}}""")
}
@Test
fun `photo file ids are never written`() {
val photo = """"raw_contact_id":1,"mimetype":"vnd.android.cursor.item/photo""""
plan(CONTACTS, """{"op":"insert","table":"data","values":{$photo,"data14":null,"data15":{"b64":"AAAA"}}}""")
refused(BatchFailure.SCOPE) { plan(CONTACTS, """{"op":"insert","table":"data","values":{$photo,"data14":5}}""") }
refused(BatchFailure.SCOPE) { plan(CONTACTS, """{"op":"update","table":"data","id":100,"values":{"data14":5}}""") }
}
@Test
fun `a selection can't close the scope's parentheses or query elsewhere`() {
for (where in listOf("1) OR (1", "dirty = 1) OR (1 = 1", "(1", "1; DELETE FROM events", "1 -- x", "1 /* x */",
"_id IN (SELECT _id FROM events)", "1 UNION ALL x", "title = 'open")) {
val quoted = JSONObject.quote(where)
refused(BatchFailure.SCOPE) { plan(CALENDAR, """{"op":"update","table":"events","where":$quoted,"values":{"dirty":1}}""") }
refused(BatchFailure.SCOPE) { plan(CALENDAR, """{"op":"delete","table":"attendees","where":$quoted}""") }
refused(BatchFailure.SCOPE) {
ProviderOpParser.parseQuery(CALENDAR, """{"table":"attendees","columns":["_id"],"where":$quoted}""")
}
}
refused(BatchFailure.SCOPE) {
ProviderOpParser.parseQuery(CONTACTS, """{"table":"raw_contacts","columns":["_id"],"orderBy":"_id); DROP TABLE x; --"}""")
}
// Parentheses and keywords inside quoted literals are data.
plan(CALENDAR, """{"op":"update","table":"events","where":"title = '(x' OR title = 'select'","values":{"dirty":1}}""")
plan(CALENDAR, """{"op":"assert","table":"events","where":"(dirty = 1 OR deleted = 1) AND _sync_id LIKE '~pending/%'","expectCount":0}""")
ProviderOpParser.parseQuery(CONTACTS, """{"table":"raw_contacts","columns":["_id"],"orderBy":"_id DESC"}""")
}
@Test
fun `moving a row to another parent is checked like an insert`() {
refused(BatchFailure.SCOPE) { plan(CALENDAR, """{"op":"update","table":"events","id":30,"values":{"calendar_id":22}}""") }
refused(BatchFailure.SCOPE) { plan(CONTACTS, """{"op":"update","table":"data","id":100,"values":{"raw_contact_id":null}}""") }
plan(CALENDAR, """{"op":"update","table":"events","id":30,"values":{"calendar_id":21}}""")
}
// ── scope: selections ───────────────────────────────────────
@Test
fun `root tables are selected by their account columns`() {
val op = plan(
CONTACTS,
"""{"op":"update","table":"raw_contacts","where":"dirty = ? AND deleted = 0","args":[1],"values":{"dirty":0}}""",
).single() as PlannedOp.Update
assertEquals(
Selection("(dirty = ? AND deleted = 0) AND (account_name = ? AND account_type = ?)", listOf("1", ME.name, ME.type)),
op.selection,
)
assertNull(op.expectedCount)
}
@Test
fun `an op by id selects that row of the account and expects exactly one row`() {
val op = plan(CONTACTS, """{"op":"delete","table":"groups","id":10}""").single() as PlannedOp.Delete
assertEquals(Selection("(_id = ?) AND (account_name = ? AND account_type = ?)", listOf("10", ME.name, ME.type)), op.selection)
assertEquals(1, op.expectedCount)
val counted = plan(CONTACTS, """{"op":"assert","table":"raw_contacts","id":1,"expectCount":0}""").single()
assertEquals(0, (counted as PlannedOp.Assert).expectedCount)
}
@Test
fun `an id of another account is refused, a vanished one is left to the expected count`() {
refused(BatchFailure.SCOPE) { plan(CONTACTS, """{"op":"delete","table":"raw_contacts","id":2}""") }
refused(BatchFailure.SCOPE) { plan(CONTACTS, """{"op":"update","table":"data","id":101,"values":{"data1":"x"}}""") }
refused(BatchFailure.SCOPE) { plan(CALENDAR, """{"op":"assert","table":"events","id":32,"values":{"dirty":0}}""") }
refused(BatchFailure.SCOPE) { plan(CALENDAR, """{"op":"delete","table":"attendees","id":51}""") }
refused(BatchFailure.SCOPE) { plan(CALENDAR, """{"op":"update","table":"calendars","id":22,"values":{"name":"x"}}""") }
val gone = plan(CONTACTS, """{"op":"delete","table":"raw_contacts","id":9}""").single() as PlannedOp.Delete
assertEquals(1, gone.expectedCount)
}
@Test
fun `data rows rely on the URI parameters and never select on the Data view's account columns`() {
val op = plan(CONTACTS, """{"op":"update","table":"data","id":100,"values":{"data1":"x"}}""").single() as PlannedOp.Update
assertEquals(Selection("(_id = ?)", listOf("100")), op.selection)
val query = planner.planQuery(ProviderOpParser.parseQuery(CONTACTS, """{"table":"data","columns":["_id"],"where":"raw_contact_id IN (1)"}"""))
assertEquals(listOf(Selection("(raw_contact_id IN (1))", emptyList())), query.selections)
val all = planner.planQuery(ProviderOpParser.parseQuery(CONTACTS, """{"table":"data","columns":["_id"]}"""))
assertEquals(listOf(Selection.NONE), all.selections)
}
@Test
fun `events are selected by the account's calendars`() {
val query = planner.planQuery(
ProviderOpParser.parseQuery(CALENDAR, """{"table":"events","columns":["_id","title"],"where":"dirty = 1","orderBy":"_id"}"""),
)
assertEquals(listOf(Selection("(dirty = 1) AND (calendar_id IN (20,21))", emptyList())), query.selections)
assertEquals("_id", query.orderBy)
val update = plan(CALENDAR, """{"op":"update","table":"events","id":30,"values":{"dirty":0}}""").single() as PlannedOp.Update
assertEquals(Selection("(_id = ?) AND (calendar_id IN (20,21))", listOf("30")), update.selection)
}
@Test
fun `an account without calendars selects no events`() {
val carol = AccountRef("carol", ME.type)
val empty = ScopePlanner(carol, FakeLookup(carol).apply { calendars.putAll(lookup.calendars) })
val query = empty.planQuery(ProviderOpParser.parseQuery(CALENDAR, """{"table":"events","columns":["_id"]}"""))
assertEquals(listOf(Selection("(0)", emptyList())), query.selections)
}
@Test
fun `children of events are selected by the account's events among those they touch`() {
lookup.matching[ProviderTable.ATTENDEES to "event_id IN (30,32)"] = setOf(30, 32)
val query = planner.planQuery(
ProviderOpParser.parseQuery(CALENDAR, """{"table":"attendees","columns":["attendeeEmail"],"where":"event_id IN (30,32)"}"""),
)
assertEquals(listOf(Selection("(event_id IN (30,32)) AND (event_id IN (30))", emptyList())), query.selections)
val byId = plan(CALENDAR, """{"op":"delete","table":"attendees","id":50}""").single() as PlannedOp.Delete
assertEquals(Selection("(Attendees._id = ?) AND (event_id IN (30))", listOf("50")), byId.selection)
assertEquals(1, byId.expectedCount)
val gone = plan(CALENDAR, """{"op":"delete","table":"reminders","id":69}""").single() as PlannedOp.Delete
assertEquals(Selection("(Reminders._id = ?) AND (0)", listOf("69")), gone.selection)
lookup.matching[ProviderTable.REMINDERS to "event_id = ?"] = setOf(31)
val byWhere = plan(CALENDAR, """{"op":"delete","table":"reminders","where":"event_id = ?","args":[31]}""").single()
assertEquals(Selection("(event_id = ?) AND (event_id IN (31))", listOf("31")), (byWhere as PlannedOp.Delete).selection)
}
@Test
fun `a child query that touches none of the account's events reads nothing`() {
lookup.matching[ProviderTable.ATTENDEES to "event_id = 32"] = setOf(32)
val query = planner.planQuery(
ProviderOpParser.parseQuery(CALENDAR, """{"table":"attendees","columns":["_id"],"where":"event_id = 32"}"""),
)
assertTrue(query.selections.isEmpty())
}
@Test
fun `long event lists are split into chunks`() {
val many = (1000L until 1000L + 1200).toSet()
for (id in many) lookup.events[id] = 20
lookup.matching[ProviderTable.REMINDERS to null] = many
val query = planner.planQuery(ProviderOpParser.parseQuery(CALENDAR, """{"table":"reminders","columns":["minutes"]}"""))
assertEquals(3, query.selections.size)
assertTrue(query.selections.all { it.sql!!.startsWith("(event_id IN (") })
}
@Test
fun `extended properties are updated through their item URI, so only by id`() {
val op = plan(CALENDAR, """{"op":"update","table":"extended_properties","id":70,"values":{"value":"v"}}""").single()
assertEquals(PlannedOp.Update(ProviderTable.EXTENDED_PROPERTIES, Selection.NONE, 70, mapOf("value" to Cell.Text("v")), 1, false), op)
refused(BatchFailure.SCOPE) {
plan(CALENDAR, """{"op":"update","table":"extended_properties","id":71,"values":{"value":"v"}}""")
}
refused(BatchFailure.PROVIDER) {
plan(CALENDAR, """{"op":"update","table":"extended_properties","where":"name = 'x'","values":{"value":"v"}}""")
}
}
@Test
fun `asserts compare text and keep nulls`() {
val op = plan(
CONTACTS,
"""{"op":"assert","table":"raw_contacts","id":1,"values":{"version":3,"dirty":0,"sync3":null,"sourceid":"c/1"}}""",
).single() as PlannedOp.Assert
assertEquals(mapOf("version" to "3", "dirty" to "0", "sync3" to null, "sourceid" to "c/1"), op.values)
assertEquals(1, op.expectedCount)
}
@Test
fun `settings are written by account`() {
val insert = plan(CONTACTS, """{"op":"insert","table":"settings","values":{"ungrouped_visible":1,"should_sync":1}}""").single()
assertEquals(Cell.Text(ME.name), (insert as PlannedOp.Insert).values["account_name"])
val update = plan(CONTACTS, """{"op":"update","table":"settings","values":{"ungrouped_visible":1}}""").single()
assertEquals(
Selection("(account_name = ? AND account_type = ?)", listOf(ME.name, ME.type)),
(update as PlannedOp.Update).selection,
)
}
// ── results ─────────────────────────────────────────────────
@Test
fun `batch results are BatchResult JSON`() {
val ok = JSONObject(ProviderResults.ok(listOf(OpOutcome(id = 7), OpOutcome(count = 1), OpOutcome())))
assertEquals(true, ok.getBoolean("ok"))
val results = ok.getJSONArray("results")
assertEquals(7L, results.getJSONObject(0).getLong("id"))
assertEquals(1, results.getJSONObject(1).getInt("count"))
assertEquals(0, results.getJSONObject(2).length())
val failed = JSONObject(ProviderResults.failed(BatchFailure.TOO_LARGE, "TransactionTooLargeException"))
assertEquals(false, failed.getBoolean("ok"))
assertEquals("tooLarge", failed.getString("reason"))
assertEquals("TransactionTooLargeException", failed.getString("message"))
}
@Test
fun `an OperationApplicationException is an assert unless an insert got no row`() {
assertEquals(BatchFailure.ASSERT, ProviderResults.failureOfOperationApplication("Found value 4 when expected 3 for column version"))
assertEquals(BatchFailure.ASSERT, ProviderResults.failureOfOperationApplication("Expected 1 rows but actual 0"))
assertEquals(BatchFailure.ASSERT, ProviderResults.failureOfOperationApplication("wrong number of rows: 0"))
assertEquals(
BatchFailure.PROVIDER,
ProviderResults.failureOfOperationApplication("Insert into content://com.android.contacts/settings returned no result"),
)
assertEquals(
BatchFailure.PROVIDER,
ProviderResults.failureOfOperationApplication("Too many content provider operations between yield points."),
)
}
@Test
fun `query rows are ProviderRows JSON with escaped text`() {
val writer = ProviderRowsWriter(listOf("_id", "title", "x"))
writer.beginRow()
writer.longCell(9_007_199_254_740_991)
writer.textCell("a \"quoted\"\\ line\nbreak\u0001 and \u2028")
writer.nullCell()
writer.endRow()
writer.beginRow()
writer.longCell(2)
writer.doubleCell(1.5)
writer.doubleCell(Double.NaN)
writer.endRow()
val parsed = JSONObject(writer.finish())
assertEquals(JSONArray(listOf("_id", "title", "x")).toString(), parsed.getJSONArray("columns").toString())
val rows = parsed.getJSONArray("rows")
assertEquals(9_007_199_254_740_991L, rows.getJSONArray(0).getLong(0))
assertEquals("a \"quoted\"\\ line\nbreak\u0001 and \u2028", rows.getJSONArray(0).getString(1))
assertTrue(rows.getJSONArray(0).isNull(2))
assertEquals(1.5, rows.getJSONArray(1).getDouble(1), 0.0)
assertTrue(rows.getJSONArray(1).isNull(2))
assertEquals("{\"columns\":[],\"rows\":[]}", ProviderRowsWriter(emptyList()).finish())
}
@Test
fun `photos decode close to the target size and scale their longer side down to it`() {
assertEquals(1, PhotoScaling.sampleSize(720, 720, 512))
assertEquals(4, PhotoScaling.sampleSize(4000, 3000, 512))
assertEquals(512 to 384, PhotoScaling.targetSize(1000, 750, 512))
assertEquals(96 to 96, PhotoScaling.targetSize(96, 96, 512))
assertEquals(1 to 512, PhotoScaling.targetSize(3, 4000, 512))
}
}
@@ -0,0 +1,192 @@
package com.anonymous.bulwarkmobile.sync
import org.junit.Assert.assertEquals
import org.junit.Assert.assertFalse
import org.junit.Assert.assertTrue
import org.junit.Test
class PushRoutingTest {
private val contacts = "com.android.contacts"
private val calendar = "com.android.calendar"
private val routes = PushRouting.parseRoutes(
"""
{
"c": [{ "accountName": "alice@example.org", "authorities": ["$contacts", "$calendar"] }],
"team": [
{ "accountName": "alice@example.org", "authorities": ["$contacts"] },
{ "accountName": "alice-work", "authorities": ["$calendar"] }
]
}
""".trimIndent(),
strict = true,
)
private fun stateChange(changed: String) = mapOf(
"kind" to "jmap-state-change",
"accountLabel" to "alice",
"accountId" to "c",
"emailIds" to "[]",
"changed" to changed,
)
@Test
fun `a contact change requests a contacts sync and no mail task`() {
val decision = PushRouting.decide(stateChange("""{"c":{"ContactCard":"s1"}}"""), routes)
assertEquals(setOf("alice@example.org" to contacts), decision.syncs)
assertFalse(decision.startMailTask)
}
@Test
fun `calendar types request calendar syncs of the routed accounts only`() {
val decision = PushRouting.decide(stateChange("""{"team":{"Calendar":"s1","CalendarEvent":"s2"}}"""), routes)
assertEquals(setOf("alice-work" to calendar), decision.syncs)
assertFalse(decision.startMailTask)
}
@Test
fun `every account key is routed, not only the one repeated as accountId`() {
val decision = PushRouting.decide(
stateChange("""{"c":{"AddressBook":"s1"},"team":{"ContactCard":"s2","CalendarEvent":"s3"}}"""),
routes,
)
// alice@example.org's contacts sync is requested once.
assertEquals(setOf("alice@example.org" to contacts, "alice-work" to calendar), decision.syncs)
}
@Test
fun `mail anywhere in the map starts the mail task, next to the syncs`() {
val decision = PushRouting.decide(
stateChange("""{"team":{"CalendarEvent":"s1"},"c":{"EmailDelivery":"s2","Email":"s3"}}"""),
routes,
)
assertTrue(decision.startMailTask)
assertEquals(setOf("alice-work" to calendar), decision.syncs)
}
@Test
fun `an Email or Mailbox change is possible mail, as a subscription from an older build sends it`() {
for (changed in listOf(
"""{"c":{"Email":"s1","Mailbox":"s2"}}""",
"""{"c":{"Email":"s1"}}""",
"""{"c":{"Mailbox":"s1"}}""",
)) {
val decision = PushRouting.decide(stateChange(changed), routes)
assertTrue("changed=$changed", decision.startMailTask)
assertTrue("changed=$changed", decision.syncs.isEmpty())
}
val mixed = PushRouting.decide(stateChange("""{"team":{"CalendarEvent":"e1"},"c":{"Email":"s1"}}"""), routes)
assertTrue(mixed.startMailTask)
assertEquals(setOf("alice-work" to calendar), mixed.syncs)
// Types that are neither mail nor device sync say nothing about mail.
val other = PushRouting.decide(stateChange("""{"c":{"Thread":"t1","ContactCard":"s1"}}"""), routes)
assertFalse(other.startMailTask)
assertEquals(setOf("alice@example.org" to contacts), other.syncs)
}
@Test
fun `an email push always starts the mail task`() {
val data = mapOf("kind" to "jmap-email-push", "accountId" to "c", "changed" to """{"c":{"EmailDelivery":"s"}}""")
assertTrue(PushRouting.decide(data, routes).startMailTask)
assertTrue(PushRouting.decide(mapOf("kind" to "jmap-email-push"), routes).startMailTask)
}
@Test
fun `payloads without a readable map are legacy mail pushes`() {
for (changed in listOf(null, "", "{}", "not json", "[1]", """{"c":{}}""")) {
val data = stateChange(changed ?: "").let { if (changed == null) it - "changed" else it }
val decision = PushRouting.decide(data, routes)
assertTrue("changed=$changed", decision.startMailTask)
assertTrue("changed=$changed", decision.syncs.isEmpty())
}
}
@Test
fun `an unreadable account entry may be mail`() {
val decision = PushRouting.decide(stateChange("""{"c":"garbled","team":{"ContactCard":"s"}}"""), routes)
assertTrue(decision.startMailTask)
assertEquals(setOf("alice@example.org" to contacts), decision.syncs)
}
@Test
fun `reads a push the same way as the push task`() {
// kind (null: none), changed (null: none) → whether the mail task starts. The
// same table as MAIL_CASES in src/lib/__tests__/push-background-task.test.ts,
// whose carriesNoMail must agree.
val state = "jmap-state-change"
val emailPush = "jmap-email-push"
val cases: List<Triple<String?, String?, Boolean>> = listOf(
// No readable map: as before device sync.
Triple(state, null, true),
Triple(state, "", true),
Triple(state, "not json", true),
Triple(state, "[1]", true),
Triple(state, "{}", true),
// A map that names no type is read like a missing one.
Triple(state, """{"c":{}}""", true),
Triple(state, """{"c":{},"team":{}}""", true),
// An account entry that can't be read may be mail.
Triple(state, """{"c":null}""", true),
Triple(state, """{"c":"garbled","team":{"ContactCard":"s"}}""", true),
Triple(state, """{"c":[],"team":{"ContactCard":"s"}}""", true),
Triple(state, """{"c":5}""", true),
// Mail types anywhere in the map.
Triple(state, """{"c":{"EmailDelivery":"s"}}""", true),
Triple(state, """{"c":{"Email":"s"}}""", true),
Triple(state, """{"c":{"Mailbox":"s"}}""", true),
Triple(state, """{"c":{"ContactCard":"s1"},"team":{"EmailDelivery":"s2"}}""", true),
// Only a StateChange can say it carries no mail.
Triple(null, """{"c":{"ContactCard":"s"}}""", true),
Triple(emailPush, """{"c":{"EmailDelivery":"s"}}""", true),
Triple(emailPush, null, true),
// Contact and calendar changes, and types that say nothing about mail.
Triple(state, """{"c":{"ContactCard":"s1","AddressBook":"s2"}}""", false),
Triple(state, """{"c":{"CalendarEvent":"e1"},"team":{"Calendar":"c1"}}""", false),
Triple(state, """{"c":{"ContactCard":"s"},"team":{}}""", false),
Triple(state, """{"elsewhere":{"ContactCard":"s"}}""", false),
Triple(state, """{"c":{"Thread":"t1","ContactCard":"s1"}}""", false),
)
for ((kind, changed, mail) in cases) {
val data = buildMap<String, String> {
if (kind != null) put("kind", kind)
put("accountLabel", "alice")
put("accountId", "c")
put("emailIds", "[]")
if (changed != null) put("changed", changed)
}
assertEquals("kind=$kind changed=$changed", mail, PushRouting.decide(data, routes).startMailTask)
}
}
@Test
fun `accounts without routes are ignored`() {
val decision = PushRouting.decide(stateChange("""{"elsewhere":{"ContactCard":"s"}}"""), routes)
assertTrue(decision.syncs.isEmpty())
assertFalse(decision.startMailTask)
assertTrue(PushRouting.decide(stateChange("""{"c":{"ContactCard":"s"}}"""), emptyMap()).syncs.isEmpty())
}
@Test
fun `stored routes are validated strictly and read leniently`() {
val bad = listOf(
"[]",
"""{"c":{}}""",
"""{"c":[{"authorities":["$contacts"]}]}""",
"""{"c":[{"accountName":"a","authorities":["com.example.tasks"]}]}""",
)
for (json in bad) {
try {
PushRouting.parseRoutes(json, strict = true)
throw AssertionError("accepted $json")
} catch (e: IllegalArgumentException) {
// expected
}
}
assertEquals(emptyMap<String, List<PushRouting.Route>>(), PushRouting.parseRoutes("[]"))
assertEquals(
mapOf("c" to listOf(PushRouting.Route("a", setOf(contacts)))),
PushRouting.parseRoutes("""{"c":[{"accountName":"a","authorities":["$contacts","com.example.tasks"]},{"x":1}]}"""),
)
assertEquals(emptyMap<String, List<PushRouting.Route>>(), PushRouting.parseRoutes(null))
}
}
@@ -0,0 +1,99 @@
package com.anonymous.bulwarkmobile.sync
import org.junit.Assert.assertEquals
import org.junit.Test
class SyncReportsTest {
private fun report(outcome: String, extra: String = "") = """
{"v":1,"runId":"r","authority":"com.android.contacts","outcome":"$outcome",
"startedAt":0,"durationMs":5,"conflicts":0,"itemErrors":[],
"stats":{"downloaded":{"created":3,"updated":2,"deleted":1},
"uploaded":{"created":1,"updated":4,"deleted":2},"entries":13,"skipped":1}$extra}
""".trimIndent()
@Test
fun `a run without a report is a soft error`() {
assertEquals(SyncOutcome(ioErrors = 1), SyncReports.outcome(null, "task finished"))
}
@Test
fun `an unreadable report is a soft error`() {
assertEquals(SyncOutcome(ioErrors = 1), SyncReports.outcome("{not json", "reported"))
}
@Test
fun `ok sums both directions into the framework's stats`() {
assertEquals(
SyncOutcome(inserts = 4, updates = 6, deletes = 3, entries = 13, skipped = 1),
SyncReports.outcome(report("ok"), "reported"),
)
}
@Test
fun `io keeps the progress so the framework retries at once`() {
val outcome = SyncReports.outcome(report("io"), "reported")
assertEquals(1L, outcome.ioErrors)
assertEquals(4L, outcome.inserts)
}
@Test
fun `auth is hard and reports no progress, or the framework would retry it at once`() {
assertEquals(
SyncOutcome(authErrors = 1, entries = 13, skipped = 1),
SyncReports.outcome(report("auth"), "reported"),
)
}
@Test
fun `permission, unsupported and safety aborts are database errors without progress`() {
for (outcome in listOf("permission", "unsupported", "safetyAbort")) {
assertEquals(
outcome,
SyncOutcome(databaseError = true, entries = 13, skipped = 1),
SyncReports.outcome(report(outcome), "reported"),
)
}
}
@Test
fun `too many deletions reports the pending deletions for the system notification`() {
assertEquals(
SyncOutcome(tooManyDeletions = true, deletes = 42, entries = 13, skipped = 1),
SyncReports.outcome(report("tooManyDeletions", ""","tooManyDeletions":{"count":42,"threshold":20}"""), "reported"),
)
}
@Test
fun `delayUntil and moreRecordsToGet reach the framework`() {
val outcome = SyncReports.outcome(report("ok", ""","delayUntil":1790000000,"moreRecordsToGet":true"""), "reported")
assertEquals(1790000000L, outcome.delayUntil)
assertEquals(true, outcome.fullSyncRequested)
}
@Test
fun `cancelled and disabled runs are not errors`() {
for (outcome in listOf("cancelled", "disabled")) {
assertEquals(0L, SyncReports.outcome(report(outcome), "reported").ioErrors)
}
}
@Test
fun `an outcome this build does not know is retried`() {
assertEquals(1L, SyncReports.outcome(report("somethingNew"), "reported").ioErrors)
}
@Test
fun `the log summary names the outcome, failed items and the message`() {
assertEquals("outcome=ok", SyncReports.summary(report("ok")))
assertEquals(
"outcome=internal message=Invalid column x",
SyncReports.summary(report("internal", ",\"message\":\"Invalid column x\"")),
)
val withItems = report("ok").replace("\"itemErrors\":[]", "\"itemErrors\":[{\"ref\":\"a\"},{\"ref\":\"b\"}]")
assertEquals("outcome=ok itemErrors=2", SyncReports.summary(withItems))
assertEquals("no report", SyncReports.summary(null))
assertEquals("unreadable report", SyncReports.summary("{"))
val long = SyncReports.summary(report("io", ",\"message\":\"" + "m".repeat(400) + "\""))
assertEquals("outcome=io message=".length + 300, long.length)
}
}
+4 -2
View File
@@ -26,8 +26,10 @@ module.exports = {
expo: {
name: 'Bulwark Mobile',
slug: 'bulwark-mobile',
// mailto: lets Android/iOS offer the app for mail links in other apps.
scheme: ['bulwarkmobile', 'mailto'],
// mailto: lets Android/iOS offer the app for mail links in other apps;
// bulwarkmail: is the webmail's sign-in link (bulwarkmail://pair?...).
// Android's manifest is maintained by hand and lists the same schemes.
scheme: ['bulwarkmobile', 'bulwarkmail', 'mailto'],
version: VERSION,
orientation: 'portrait',
icon: './assets/icon.png',
+3 -3
View File
@@ -1020,7 +1020,8 @@ ones moved to the N/A lists, and the wrong text corrected.
| #46 email preview shows CSS | Not reproduced: HTML-only mail with `<style>` shows clean previews, and the viewer routes by type (`06742ef`). Ask for a sample, then close. |
| #44, #48 push without FCM / UnifiedPush | Uncommitted work in this tree; not in any release. Committed in `ee04e95`; not released yet. |
| #3 TLS client auth | Partial: Android has a certificate picker (Settings → Security); iOS doesn't. |
| #58 encryption, #52 widgets, #51 IMAP/SMTP, #34 sync adapters, #1 settings sync | Feature requests; see open questions. |
| #34 sync adapters | Done on Android: contacts and calendars sync both ways with the device's apps ([design](device-sync.md)). |
| #58 encryption, #52 widgets, #51 IMAP/SMTP, #1 settings sync | Feature requests; see open questions. |
No open webmail issue is about the native app. The six mobile-titled ones (#813, #838, #915,
#969, #999, #1020) concern the web and PWA.
@@ -1042,8 +1043,7 @@ No open webmail issue is about the native app. The six mobile-titled ones (#813,
for the page to be visible for some time, or apply only to the message that was actually
opened? Decided in `5f3f584`: only the page on screen auto-sends, once per message per session.
- **Settings sync (#1):** needs a server-side store, which neither client has today.
- **Scope of the feature requests:** encryption (#58), widgets (#52), IMAP/SMTP (#51) and native
sync adapters (#34).
- **Scope of the feature requests:** encryption (#58), widgets (#52) and IMAP/SMTP (#51).
## Reproducing
+1969
View File
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -315,4 +315,4 @@ RN covers the visible surface reasonably well (list with alphabetical index, det
- Print contact (`components/contacts/contact-print.ts`).
- Plugin contact APIs and the `contact-cryptokeys` plugin slot.
- `mailto:`/`tel:` handoff differences (RN uses `Linking`).
- Native issue #34 (device contacts / calendar sync adapters) is a feature request, not a parity item; note that a device sync would want the UID (#644) and PartialDate (#224) fixes above first.
- Native issue #34 (device contacts / calendar sync adapters) is not a parity item; it is done on Android (Settings → Contacts → "Sync to this device", [design](../device-sync.md)) and builds on the UID (#644) and PartialDate (#224) fixes above.
+8
View File
@@ -15,6 +15,14 @@ AppRegistry.registerHeadlessTask('BulwarkPushTask', () => async (data: Parameter
await Promise.allSettled([pushBackgroundTask(data), refreshWidgetsInBackground()]);
});
// Device sync (Android, #34): the contacts and calendar sync adapters run the
// sync engine through this task, headless or next to the UI. The engine is
// required on first use so an app start does not load it.
AppRegistry.registerHeadlessTask('BulwarkDeviceSync', () => async (data: import('./src/device-sync/types').RunPayload) => {
const { runDeviceSyncTask } = require('./src/device-sync/task') as typeof import('./src/device-sync/task');
await runDeviceSyncTask(data);
});
// Home-screen widgets (Android): every widget event runs this headless task.
registerWidgetTaskHandler(widgetTaskHandler);
+145 -1
View File
@@ -93,6 +93,8 @@
"until_date": "حتى {date}"
},
"settings": {
"device_sync_desc": "اعرض تقويماتك في تطبيق التقويم والتطبيقات الأخرى على هذا الجهاز. تتم مزامنة التغييرات في الاتجاهين.",
"device_sync_title": "المزامنة مع هذا الجهاز",
"show_week_numbers_mobile_desc": "عرض أرقام الأسابيع في عرض الشهر.",
"time_zone": "المنطقة الزمنية",
"time_zone_auto": "المنطقة الزمنية للجهاز",
@@ -249,6 +251,18 @@
"color_tag": "وسم",
"remove_color": "إزالة الوسم"
},
"device_sync": {
"auth_problem_text": "لم يعد الخادم يقبل تسجيل الدخول إلى {account}، لذلك توقفت مزامنة جهات الاتصال والتقويمات الخاصة به على هذا الجهاز. سجّل الدخول مرة أخرى لاستئناف المزامنة. يتم الاحتفاظ بالتغييرات التي أُجريت على هذا الجهاز.",
"auth_problem_title": "سجّل الدخول مرة أخرى لمواصلة المزامنة",
"problem_channel": "مشكلات المزامنة",
"sign_out_anyway": "تسجيل الخروج",
"sign_out_pending_message": "{count, plural, zero {# تغيير أُجري على هذا الجهاز لم يصل إلى الخادم. سيُفقد إذا سجّلت الخروج الآن.} one {تغيير واحد أُجري على هذا الجهاز لم يصل إلى الخادم. سيُفقد إذا سجّلت الخروج الآن.} two {تغييران أُجريا على هذا الجهاز لم يصلا إلى الخادم. سيُفقدان إذا سجّلت الخروج الآن.} few {# تغييرات أُجريت على هذا الجهاز لم تصل إلى الخادم. ستُفقد إذا سجّلت الخروج الآن.} many {# تغييرًا أُجريت على هذا الجهاز لم تصل إلى الخادم. ستُفقد إذا سجّلت الخروج الآن.} other {# تغيير أُجريت على هذا الجهاز لم تصل إلى الخادم. ستُفقد إذا سجّلت الخروج الآن.}}",
"sign_out_pending_title": "تسجيل الخروج على أي حال؟",
"sign_out_unknown_message": "ربما لم تصل التغييرات التي أُجريت على هذا الجهاز إلى الخادم. ستُفقد إذا سجّلت الخروج الآن.",
"signed_out_text": "تم تسجيل الخروج من {account}، لذلك توقفت مزامنة جهات الاتصال والتقويمات الخاصة به على هذا الجهاز. سجّل الدخول مرة أخرى لاستئناف المزامنة. يتم الاحتفاظ بالتغييرات التي أُجريت على هذا الجهاز.",
"signed_out_title": "سجّل الدخول لمواصلة المزامنة",
"signing_out": "جارٍ إزالة جهات الاتصال والتقويمات المتزامنة من هذا الجهاز…"
},
"email_composer": {
"attach_camera": "الكاميرا",
"attachment_reminder_body": "تذكر رسالتك \"{keyword}\" لكن لم يتم إرفاق أي ملف. هل تريد الإرسال على أي حال؟",
@@ -460,12 +474,19 @@
"email_step_title": "ما عنوان بريدك الإلكتروني؟",
"email_step_title_add": "ما العنوان الآخر؟",
"email_title": "استخدام عنوان بريدي الإلكتروني",
"err_account_limit_detail": "أزِل حسابًا من الإعدادات لإضافة حساب آخر.",
"err_bad_detail": "تحقق من بريدك الإلكتروني وكلمة المرور. إذا كان حسابك يستخدم تسجيل الدخول بخطوتين، فأنشئ كلمة مرور تطبيق في بريد الويب واستخدمها هنا.",
"err_bad_title": "لم ينجح ذلك",
"err_cert_detail": "تم رفض شهادة الأمان الخاصة بالخادم. إذا كان هذا خادمك الخاص، فتحقق من أن الشهادة صالحة وغير منتهية الصلاحية.",
"err_cert_title": "تعذّر التحقق من {host}",
"err_code_expired_detail": "رموز تسجيل الدخول صالحة لبضع دقائق فقط. أنشئ رمزًا جديدًا في بريد الويب وامسحه مجددًا.",
"err_code_expired_detail": "رموز تسجيل الدخول صالحة لمدة دقيقتين. اعرض رمزًا جديدًا في بريد الويب وامسحه مجددًا.",
"err_code_expired_or_used_detail": "اعرض رمزًا جديدًا في بريد الويب وامسحه مجددًا.",
"err_code_expired_or_used_title": "انتهت صلاحية هذا الرمز أو تم استخدامه من قبل",
"err_code_expired_title": "انتهت صلاحية هذا الرمز",
"err_code_invalid_detail": "اعرض رمزًا جديدًا في بريد الويب (الإعدادات ← الأمان ← ربط تطبيق الجوال) وامسحه.",
"err_code_invalid_title": "هذا الرمز غير صالح",
"err_code_used_detail": "كل رمز يعمل مرة واحدة فقط. اعرض رمزًا جديدًا في بريد الويب وامسحه مجددًا.",
"err_code_used_title": "تم استخدام هذا الرمز من قبل",
"err_generic_detail": "حدث خطأ ما. حاول مرة أخرى.",
"err_generic_title": "فشل تسجيل الدخول",
"err_interrupted_detail": "لم تتطابق الاستجابة مع الطلب الذي بدأناه. حاول تسجيل الدخول مرة أخرى.",
@@ -474,6 +495,17 @@
"err_no_server_title": "لا يوجد خادم بريد على {host}",
"err_no_webmail_detail": "لا يحتوي هذا الخادم على بريد ويب Bulwark ولا على تسجيل دخول عبر OAuth. استخدم كلمة مرور (أو كلمة مرور تطبيق) بدلًا من ذلك.",
"err_no_webmail_title": "لا توجد صفحة تسجيل دخول على {host}",
"err_pair_connect_detail": "اعرض رمزًا جديدًا على حاسوبك وامسحه مجددًا.",
"err_pair_connect_title": "تم تسجيل الدخول، لكن تعذّر الاتصال بـ {host}",
"err_pair_insecure_detail": "يريد {host} استخدام اتصال غير مشفّر.",
"err_pair_network_detail": "تحقق من اتصالك ومن أن هاتفك يستطيع الوصول إلى بريد الويب، ثم حاول مرة أخرى.",
"err_pair_rate_detail": "انتظر دقيقة، ثم حاول مرة أخرى.",
"err_pair_server_detail": "حاول مرة أخرى باستخدام رمز جديد. إذا استمر الفشل، فاتصل بالمسؤول.",
"err_pair_server_title": "تعذّر على بريد الويب إكمال تسجيل الدخول",
"err_pair_unsupported_detail": "لا يدعم {host} رموز تسجيل الدخول. قد يحتاج إلى تحديث، أو أن الرابط يشير إلى عنوان خاطئ.",
"err_pair_unsupported_title": "لا يمكن لبريد الويب هذا ربط الأجهزة",
"err_pair_untrusted_detail": "أرسل {host} بيانات تسجيل دخول لخادم لا يستطيع التطبيق التحقق منه.",
"err_pair_untrusted_title": "لا يمكن الوثوق بعملية تسجيل الدخول هذه",
"err_rate_detail": "طلب منا الخادم الانتظار قليلًا. حاول مجددًا بعد قليل.",
"err_rate_detail_seconds": "طلب منا الخادم الانتظار. حاول مجددًا بعد نحو {seconds} ث.",
"err_rate_title": "محاولات كثيرة جدًا",
@@ -487,6 +519,12 @@
"know_server": "أعرف عنوان خادمي",
"known_server_desc": "نعرف هذا الخادم بالفعل، لذا لا حاجة إلى إعداد",
"known_server_title": "حساب آخر على {host}",
"link_confirm_connect": "يطلب رابط تسجيل الدخول في هذه الصفحة. لا تتابع إلا إذا كنت تستخدم {host} لبريدك.",
"link_confirm_connect_add": "يطلب رابط إضافة حساب بتسجيل الدخول في هذه الصفحة. لا تتابع إلا إذا كنت تستخدم {host} لبريدك.",
"link_confirm_connect_title": "فتح صفحة تسجيل الدخول في {host}؟",
"link_confirm_pair": "يسجّل هذا الرابط الدخول إلى حساب من {host}. لا تتابع إلا إذا كنت قد عرضت للتو رمز تسجيل دخول على حاسوبك.",
"link_confirm_pair_add": "يضيف هذا الرابط حسابًا من {host} وينقل التطبيق إليه. لا تتابع إلا إذا كنت قد عرضت للتو رمز تسجيل دخول على حاسوبك.",
"link_confirm_title": "تسجيل الدخول برابط؟",
"looking_up": "جارٍ البحث عن خادمك…",
"manual": "إدخال تفاصيل الخادم يدويًا",
"notice_bad_qr": "هذا الرمز ليس رمز تسجيل دخول Bulwark",
@@ -505,6 +543,12 @@
"pairing_detail": "جارٍ إقران هذا الجهاز مع {host}…",
"password_subtitle": "تُرسَل كلمة مرورك إلى هذا الخادم فقط، وتُخزَّن في سلسلة مفاتيح الجهاز.",
"password_title": "تسجيل الدخول إلى {host}",
"paste_button": "لصق",
"paste_clipboard_empty": "لا يوجد شيء للصق. انسخ الرابط في بريد الويب أولًا.",
"paste_hint": "في بريد الويب، افتح الإعدادات ← الأمان ← ربط تطبيق الجوال، وانسخ رابط تسجيل الدخول والصقه هنا.",
"paste_invalid": "هذا ليس رابط تسجيل دخول Bulwark",
"paste_label": "رابط تسجيل الدخول",
"paste_title": "لصق رابط تسجيل الدخول",
"provider_detail": "ستكتبها في صفحتهم. لا يخزّن Bulwark سوى رمز تسجيل دخول يمكنك إبطاله في أي وقت.",
"provider_title": "تبقى كلمة مرورك لدى مزوّد خدمتك",
"qr_hint": "يعرض قسم الإعدادات ← الأمان ← ربط تطبيق الجوال رمزًا. وجّه الكاميرا نحوه.",
@@ -515,6 +559,7 @@
"server_hint": "العنوان نفسه الذي تكتبه في المتصفح. سنضيف https:// نيابةً عنك.",
"server_label": "عنوان الخادم",
"server_not_found": "لم نتمكن من العثور على خادم للنطاق {domain}. إذا كنت تستضيف خادمك بنفسك، فالعنوان هو الذي تستخدمه لبريد الويب.",
"server_paste_hint": "هل لديك رابط تسجيل دخول بدلًا من ذلك؟ الصقه هنا.",
"server_scan_hint": "إذا لم تكن متأكدًا، فامسح رمز تسجيل الدخول بدلًا من ذلك، فهو يتضمن عنوان الخادم.",
"server_subtitle": "أدخل العنوان الذي تستخدمه للوصول إلى بريد الويب.",
"server_title": "ما عنوان خادمك؟",
@@ -598,11 +643,110 @@
"book_count": "{count, plural, zero {# جهة اتصال} one {جهة اتصال واحدة} two {جهتا اتصال} few {# جهات اتصال} many {# جهة اتصال} other {# جهة اتصال}}",
"default_book": "دفتر العناوين الافتراضي",
"description_mobile": "تفضيلات العرض وأدوات دفاتر العناوين.",
"device_sync_desc": "اعرض دفاتر عناوينك في تطبيق جهات الاتصال والتطبيقات الأخرى على هذا الجهاز. تتم مزامنة التغييرات في الاتجاهين.",
"device_sync_title": "المزامنة مع هذا الجهاز",
"export_description_count": "{count, plural, zero {تصدير # جهة اتصال في ملف vCard واحد.} one {تصدير جهة اتصال واحدة في ملف vCard واحد.} two {تصدير جهتي اتصال في ملف vCard واحد.} few {تصدير # جهات اتصال في ملف vCard واحد.} many {تصدير # جهة اتصال في ملف vCard واحد.} other {تصدير # جهة اتصال في ملف vCard واحد.}}",
"export_empty": "لا توجد جهات اتصال للتصدير",
"import_description_mobile": "استيراد جهات الاتصال من ملف vCard (.vcf) مع اكتشاف التكرارات.",
"manage_description_mobile": "أنشئ دفاتر العناوين التي تنظّم جهات اتصالك، وأعد تسميتها، واحذفها."
},
"device_sync": {
"also_synced_by": "تتم مزامنته أيضًا عبر {accounts}، لذلك يظهر مرتين على هذا الجهاز.",
"android_settings": "إعدادات حساب Android",
"blocked_calendar": "لم يعد Android يطلب الوصول إلى التقويمات. اسمح به من إعدادات التطبيق، ثم فعّل المزامنة مرة أخرى.",
"blocked_contacts": "لم يعد Android يطلب الوصول إلى جهات الاتصال. اسمح به من إعدادات التطبيق، ثم فعّل المزامنة مرة أخرى.",
"blocked_title": "الوصول متوقف",
"books_default": "تتم مزامنة دفاتر عناوينك، أما المشتركة فلا تتم مزامنتها إلا إذا اخترتها.",
"books_hint": "تتم مزامنة دفاتر عناوينك ما لم توقفها، أما المشتركة فلا تتم مزامنتها إلا إذا فعّلتها.",
"books_label": "دفاتر العناوين",
"calendars_default": "تتم مزامنة تقويماتك، أما المشتركة فلا تتم مزامنتها إلا إذا اخترتها.",
"calendars_hint": "تتم مزامنة تقويماتك ما لم توقفها، أما المشتركة فلا تتم مزامنتها إلا إذا فعّلتها. تبقى قوائم المهام في Bulwark.",
"calendars_label": "التقويمات",
"choose": "اختيار",
"choose_books_title": "دفاتر العناوين المراد مزامنتها",
"choose_calendars_title": "التقويمات المراد مزامنتها",
"collections_count": "تتم مزامنة {selected} من {total}",
"continue": "متابعة",
"deletions_delete": "الحذف من الخادم",
"deletions_message": "حُذفت عناصر كثيرة دفعة واحدة على هذا الجهاز، لذلك لم تُحذف من الخادم. احذفها من هناك أيضًا، أو استعدها على هذا الجهاز.",
"deletions_restore": "استعادتها",
"deletions_title": "هل تريد حذفها من الخادم أيضًا؟",
"denied_calendar": "لا يستطيع Bulwark وضع تقويماتك على هذا الجهاز بدون الوصول إلى التقويمات.",
"denied_contacts": "لا يستطيع Bulwark وضع دفاتر عناوينك على هذا الجهاز بدون الوصول إلى جهات الاتصال.",
"denied_title": "تبقى المزامنة متوقفة",
"failed_title": "تعذّر تشغيل المزامنة",
"grant_access": "منح الوصول",
"interval_15m": "كل 15 دقيقة",
"interval_1h": "كل ساعة",
"interval_30m": "كل 30 دقيقة",
"interval_6h": "كل 6 ساعات",
"interval_desc": "عدد مرات المزامنة التي يجريها Android من تلقاء نفسه. تتم مزامنة التعديلات في Bulwark والتغييرات الواردة عبر الإشعارات الفورية بشكل أسرع.",
"interval_label": "فترة المزامنة",
"interval_manual": "بدون مزامنة منتظمة",
"keep_syncing": "مواصلة المزامنة",
"list_error_auth": "لم يقبل الخادم تسجيل الدخول.",
"list_error_network": "تعذّر الوصول إلى الخادم.",
"list_error_server": "تعذّر على الخادم عرض القائمة.",
"list_error_signed_out": "لم يتم تسجيل الدخول إلى هذا الحساب على هذا الجهاز.",
"master_off": "المزامنة التلقائية متوقفة على هذا الجهاز، لذلك لا تتم المزامنة إلا عند النقر على \"مزامنة الآن\".",
"new_contacts_default": "دفتر العناوين الافتراضي",
"new_contacts_desc": "دفتر العناوين لجهات الاتصال التي تُنشأ في تطبيقات أخرى على هذا الجهاز.",
"new_contacts_label": "حفظ جهات الاتصال الجديدة في",
"no_books": "لا توجد دفاتر عناوين في هذا الحساب.",
"no_calendars": "لا توجد تقويمات للمزامنة في هذا الحساب.",
"ok": "حسنًا",
"open_app_settings": "فتح إعدادات التطبيق",
"own_collections": "الخاصة بك",
"rationale_calendar": "لعرض تقويماتك في تطبيق التقويم، يحتاج Bulwark إلى الوصول إلى التقويمات على هذا الجهاز. ولا يغيّر إلا تقويمات حسابه.",
"rationale_contacts": "لعرض دفاتر عناوينك في تطبيق جهات الاتصال، يحتاج Bulwark إلى الوصول إلى جهات الاتصال على هذا الجهاز. ولا يغيّر إلا جهات الاتصال في حسابه.",
"rationale_title_calendar": "السماح بالوصول إلى التقويمات",
"rationale_title_contacts": "السماح بالوصول إلى جهات الاتصال",
"read_only": "للقراءة فقط",
"reminder_owner_bulwark": "Bulwark",
"reminder_owner_device": "تطبيق التقويم",
"reminder_question_message": "يمكن أن تصلك تذكيرات الأحداث المتزامنة من تطبيق التقويم على هذا الجهاز أو من Bulwark. اختر أحدهما حتى لا تصلك التذكيرات مرتين. يمكنك تغيير ذلك لاحقًا.",
"reminder_question_title": "من يجب أن يذكّرك؟",
"reminders_desc": "الجهة التي تذكّرك بالأحداث المتزامنة. يبقى الآخر صامتًا، فلا تصلك التذكيرات مرتين.",
"reminders_label": "التذكيرات",
"reminders_nobody": "إشعارات الأحداث في Bulwark متوقفة، لذلك لن يذكّرك شيء بالأحداث المتزامنة.",
"remove": "إزالة",
"remove_from_device": "إزالة من هذا الجهاز",
"remove_message": "ستُزال جهات الاتصال والتقويمات الخاصة بالحساب من هذا الجهاز. وستُفقد التغييرات التي أُجريت هنا ولم تصل إلى الخادم.",
"remove_title": "إزالة من هذا الجهاز؟",
"review_deletions": "مراجعة المحذوفات",
"shared_by": "تمت المشاركة بواسطة {name}",
"sign_in_again": "تسجيل الدخول مرة أخرى",
"status_auth": "لم يعد الخادم يقبل تسجيل الدخول. سجّل الدخول مرة أخرى لمواصلة المزامنة.",
"status_cancelled": "توقفت آخر مزامنة قبل اكتمالها. وستُستكمل في المرة القادمة.",
"status_failed": "فشلت آخر مزامنة: {message}",
"status_failed_plain": "فشلت آخر مزامنة.",
"status_io": "تعذّر الوصول إلى الخادم {when}. سيحاول Android مرة أخرى.",
"status_item_errors": "{count, plural, zero {تعذّرت مزامنة # عنصر.} one {تعذّرت مزامنة عنصر واحد.} two {تعذّرت مزامنة عنصرين.} few {تعذّرت مزامنة # عناصر.} many {تعذّرت مزامنة # عنصرًا.} other {تعذّرت مزامنة # عنصر.}}",
"status_off": "متوقفة",
"status_paused": "متوقفة مؤقتًا في إعدادات Android",
"status_permission_calendar": "تم إيقاف الوصول إلى التقويمات، لذلك لا تتم مزامنة أي شيء.",
"status_permission_contacts": "تم إيقاف الوصول إلى جهات الاتصال، لذلك لا تتم مزامنة أي شيء.",
"status_removed": "تمت الإزالة في إعدادات Android. فعّل المزامنة لإضافة الحساب مرة أخرى.",
"status_safety_abort": "تم الإيقاف: لم يُرجع الخادم أي شيء رغم أن هذا الجهاز لا يزال يحتوي على عناصر. تحقّق من الخادم، ثم أعد المزامنة.",
"status_synced": "آخر مزامنة: {when}",
"status_syncing": "جارٍ المزامنة…",
"status_too_many_deletions": "حُذفت عناصر كثيرة على هذا الجهاز. لن تُحذف من الخادم حتى تؤكد ذلك.",
"status_unsupported_calendar": "لا يوفّر الخادم أي تقويمات لهذا الحساب.",
"status_unsupported_contacts": "لا يوفّر الخادم أي دفاتر عناوين لهذا الحساب.",
"status_waiting": "بانتظار المزامنة الأولى",
"status_waiting_next": "بانتظار المزامنة التالية",
"suspended_desc": "تم تسجيل الخروج. تبقى جهات الاتصال والتقويمات الخاصة به على هذا الجهاز مع التغييرات التي أُجريت هنا، وستتم مزامنتها مجددًا بعد تسجيل الدخول.",
"switch_label": "مزامنة {account} مع هذا الجهاز",
"sync_now": "مزامنة الآن",
"turn_off_anyway": "إيقاف",
"turn_off_failed": "تعذّرت إزالة البيانات المتزامنة من هذا الجهاز. المزامنة متوقفة مؤقتًا؛ حاول مرة أخرى لاحقًا.",
"turn_off_failed_title": "تعذّر إيقاف المزامنة",
"turn_off_pending": "{count, plural, zero {# تغيير أُجري على هذا الجهاز لم يصل إلى الخادم بعد. سيُفقد إذا أوقفت المزامنة الآن.} one {تغيير واحد أُجري على هذا الجهاز لم يصل إلى الخادم بعد. سيُفقد إذا أوقفت المزامنة الآن.} two {تغييران أُجريا على هذا الجهاز لم يصلا إلى الخادم بعد. سيُفقدان إذا أوقفت المزامنة الآن.} few {# تغييرات أُجريت على هذا الجهاز لم تصل إلى الخادم بعد. ستُفقد إذا أوقفت المزامنة الآن.} many {# تغييرًا أُجريت على هذا الجهاز لم تصل إلى الخادم بعد. ستُفقد إذا أوقفت المزامنة الآن.} other {# تغيير أُجريت على هذا الجهاز لم تصل إلى الخادم بعد. ستُفقد إذا أوقفت المزامنة الآن.}}",
"turn_off_title": "الإيقاف على أي حال؟",
"turn_off_unknown": "تعذّر على Bulwark التحقق مما إذا كانت التغييرات التي أُجريت على هذا الجهاز قد وصلت إلى الخادم. ستُفقد إذا أوقفت المزامنة الآن.",
"turning_off": "جارٍ تحميل التغييرات ثم إزالة البيانات من هذا الجهاز…",
"turning_on": "جارٍ الإعداد…"
},
"downloads": {
"attachment_template": {
"description_mobile": "القالب المستخدم عند حفظ مرفق أو مشاركته."
+145 -1
View File
@@ -93,6 +93,8 @@
"until_date": "Fins al {date}"
},
"settings": {
"device_sync_desc": "Mostra els vostres calendaris a l'aplicació Calendari i a altres aplicacions d'aquest dispositiu. Els canvis se sincronitzen en tots dos sentits.",
"device_sync_title": "Sincronitza amb aquest dispositiu",
"show_week_numbers_mobile_desc": "Mostra els números de setmana a la vista de mes.",
"time_zone": "Zona horària",
"time_zone_auto": "Zona horària del dispositiu",
@@ -249,6 +251,18 @@
"color_tag": "Etiqueta",
"remove_color": "Elimina l'etiqueta"
},
"device_sync": {
"auth_problem_text": "El servidor ja no accepta l'inici de sessió de {account}, de manera que els seus contactes i calendaris d'aquest dispositiu han deixat de sincronitzar-se. Torneu a iniciar la sessió per reprendre la sincronització. Els canvis fets en aquest dispositiu es conserven.",
"auth_problem_title": "Torneu a iniciar la sessió per continuar sincronitzant",
"problem_channel": "Problemes de sincronització",
"sign_out_anyway": "Tanca la sessió",
"sign_out_pending_message": "{count, plural, one {# canvi fet en aquest dispositiu no ha arribat al servidor. Es perdrà si tanqueu la sessió ara.} other {# canvis fets en aquest dispositiu no han arribat al servidor. Es perdran si tanqueu la sessió ara.}}",
"sign_out_pending_title": "Voleu tancar la sessió igualment?",
"sign_out_unknown_message": "És possible que els canvis fets en aquest dispositiu no hagin arribat al servidor. Es perdran si tanqueu la sessió ara.",
"signed_out_text": "S'ha tancat la sessió de {account}, de manera que els seus contactes i calendaris d'aquest dispositiu ja no se sincronitzen. Torneu a iniciar la sessió per reprendre la sincronització. Els canvis fets en aquest dispositiu es conserven.",
"signed_out_title": "Inicieu la sessió per continuar sincronitzant",
"signing_out": "S'estan eliminant d'aquest dispositiu els contactes i calendaris sincronitzats…"
},
"email_composer": {
"attach_camera": "Càmera",
"attachment_reminder_body": "El vostre missatge esmenta «{keyword}», però no hi ha cap fitxer adjunt. Voleu enviar-lo igualment?",
@@ -460,12 +474,19 @@
"email_step_title": "Quina és la vostra adreça electrònica?",
"email_step_title_add": "Quina és l'altra adreça?",
"email_title": "Utilitza la meva adreça electrònica",
"err_account_limit_detail": "Suprimiu un compte a la configuració per afegir-ne un altre.",
"err_bad_detail": "Comproveu el correu electrònic i la contrasenya. Si el vostre compte utilitza l'autenticació de dos factors, creeu una contrasenya d'aplicació al webmail i utilitzeu-la aquí.",
"err_bad_title": "No ha funcionat",
"err_cert_detail": "S'ha rebutjat el certificat de seguretat del servidor. Si és el vostre propi servidor, comproveu que el certificat sigui vàlid i no hagi caducat.",
"err_cert_title": "No s'ha pogut verificar {host}",
"err_code_expired_detail": "Els codis d'inici de sessió són vàlids durant uns minuts. Genereu-ne un de nou al webmail i torneu-lo a escanejar.",
"err_code_expired_detail": "Els codis d'inici de sessió són vàlids durant dos minuts. Mostreu-ne un de nou al webmail i torneu-lo a escanejar.",
"err_code_expired_or_used_detail": "Mostreu-ne un de nou al webmail i torneu-lo a escanejar.",
"err_code_expired_or_used_title": "Aquest codi ha caducat o ja s'ha utilitzat",
"err_code_expired_title": "Aquest codi ha caducat",
"err_code_invalid_detail": "Mostreu un codi nou al webmail (Configuració → Seguretat → Enllaça l'aplicació mòbil) i escanegeu-lo.",
"err_code_invalid_title": "Aquest codi no és vàlid",
"err_code_used_detail": "Cada codi només funciona una vegada. Mostreu-ne un de nou al webmail i torneu-lo a escanejar.",
"err_code_used_title": "Aquest codi ja s'ha utilitzat",
"err_generic_detail": "Alguna cosa ha anat malament. Torneu-ho a provar.",
"err_generic_title": "Ha fallat l'inici de sessió",
"err_interrupted_detail": "La resposta no coincideix amb la sol·licitud que vam iniciar. Torneu a iniciar la sessió.",
@@ -474,6 +495,17 @@
"err_no_server_title": "No hi ha cap servidor de correu a {host}",
"err_no_webmail_detail": "Aquest servidor no té webmail del Bulwark ni inici de sessió OAuth. Utilitzeu una contrasenya (o una contrasenya d'aplicació).",
"err_no_webmail_title": "No hi ha cap pàgina d'inici de sessió a {host}",
"err_pair_connect_detail": "Mostreu un codi nou a l'ordinador i torneu-lo a escanejar.",
"err_pair_connect_title": "Sessió iniciada, però no s'ha pogut connectar a {host}",
"err_pair_insecure_detail": "{host} vol utilitzar una connexió sense xifrar.",
"err_pair_network_detail": "Comproveu la connexió i que el telèfon pugui accedir al webmail, i torneu-ho a provar.",
"err_pair_rate_detail": "Espereu un minut i torneu-ho a provar.",
"err_pair_server_detail": "Torneu-ho a provar amb un codi nou. Si continua fallant, consulteu l'administrador.",
"err_pair_server_title": "El webmail no ha pogut completar l'inici de sessió",
"err_pair_unsupported_detail": "{host} no admet codis d'inici de sessió. Potser necessita una actualització, o l'enllaç apunta a una adreça incorrecta.",
"err_pair_unsupported_title": "Aquest webmail no pot enllaçar dispositius",
"err_pair_untrusted_detail": "{host} ha enviat dades d'inici de sessió per a un servidor que l'aplicació no pot verificar.",
"err_pair_untrusted_title": "No es pot confiar en aquest inici de sessió",
"err_rate_detail": "El servidor ens ha demanat que esperem un moment. Torneu-ho a provar d'aquí a poc.",
"err_rate_detail_seconds": "El servidor ens ha demanat que esperem. Torneu-ho a provar d'aquí a uns {seconds} segons.",
"err_rate_title": "Massa intents",
@@ -487,6 +519,12 @@
"know_server": "Conec l'adreça del meu servidor",
"known_server_desc": "Ja coneixem aquest servidor, així que no cal configurar res",
"known_server_title": "Un altre compte a {host}",
"link_confirm_connect": "Un enllaç demana iniciar la sessió en aquesta pàgina. Continueu només si utilitzeu {host} per al correu.",
"link_confirm_connect_add": "Un enllaç demana afegir un compte iniciant la sessió en aquesta pàgina. Continueu només si utilitzeu {host} per al correu.",
"link_confirm_connect_title": "Voleu obrir la pàgina d'inici de sessió de {host}?",
"link_confirm_pair": "Aquest enllaç inicia la sessió en un compte de {host}. Continueu només si acabeu de mostrar un codi d'inici de sessió a l'ordinador.",
"link_confirm_pair_add": "Aquest enllaç afegeix un compte de {host} i hi canvia l'aplicació. Continueu només si acabeu de mostrar un codi d'inici de sessió a l'ordinador.",
"link_confirm_title": "Voleu iniciar la sessió amb un enllaç?",
"looking_up": "S'està cercant el vostre servidor…",
"manual": "Introdueix les dades del servidor manualment",
"notice_bad_qr": "Aquest codi no és un codi d'inici de sessió del Bulwark",
@@ -505,6 +543,12 @@
"pairing_detail": "S'està aparellant aquest dispositiu amb {host}…",
"password_subtitle": "La contrasenya només s'envia a aquest servidor i es desa al magatzem segur del dispositiu.",
"password_title": "Inicia la sessió a {host}",
"paste_button": "Enganxa",
"paste_clipboard_empty": "No hi ha res per enganxar. Primer copieu l'enllaç al webmail.",
"paste_hint": "Al webmail, obriu Configuració → Seguretat → Enllaça l'aplicació mòbil, copieu l'enllaç d'inici de sessió i enganxeu-lo aquí.",
"paste_invalid": "Això no és un enllaç d'inici de sessió del Bulwark",
"paste_label": "Enllaç d'inici de sessió",
"paste_title": "Enganxa l'enllaç d'inici de sessió",
"provider_detail": "L'escriureu a la seva pàgina. El Bulwark només desa un testimoni d'inici de sessió, que podeu revocar en qualsevol moment.",
"provider_title": "La contrasenya es queda amb el vostre proveïdor",
"qr_hint": "Configuració → Seguretat → Enllaça l'aplicació mòbil mostra un codi. Apunteu-hi la càmera.",
@@ -515,6 +559,7 @@
"server_hint": "La mateixa adreça que escriviu al navegador. Hi afegirem https://.",
"server_label": "Adreça del servidor",
"server_not_found": "No hem trobat cap servidor per a {domain}. Si l'allotgeu vosaltres, l'adreça és la que utilitzeu per al webmail.",
"server_paste_hint": "Teniu un enllaç d'inici de sessió? Enganxeu-lo aquí.",
"server_scan_hint": "Si no n'esteu segur, escanegeu un codi d'inici de sessió. Inclou l'adreça del servidor.",
"server_subtitle": "Introduïu l'adreça que utilitzeu per accedir al webmail.",
"server_title": "Quina és l'adreça del vostre servidor?",
@@ -598,11 +643,110 @@
"book_count": "{count, plural, one {# contacte} other {# contactes}}",
"default_book": "Llibreta d'adreces predeterminada",
"description_mobile": "Preferències de visualització i eines de la llibreta d'adreces.",
"device_sync_desc": "Mostra les vostres llibretes d'adreces a l'aplicació Contactes i a altres aplicacions d'aquest dispositiu. Els canvis se sincronitzen en tots dos sentits.",
"device_sync_title": "Sincronitza amb aquest dispositiu",
"export_description_count": "{count, plural, one {Exporta # contacte com un únic fitxer vCard.} other {Exporta # contactes com un únic fitxer vCard.}}",
"export_empty": "No hi ha contactes per exportar",
"import_description_mobile": "Importa contactes des d'un fitxer vCard (.vcf) amb detecció de duplicats.",
"manage_description_mobile": "Creeu, canvieu el nom i suprimiu les llibretes d'adreces que organitzen els contactes."
},
"device_sync": {
"also_synced_by": "També se sincronitza per a {accounts}, per això apareix dues vegades en aquest dispositiu.",
"android_settings": "Configuració del compte d'Android",
"blocked_calendar": "Android ja no demana accés als calendaris. Permeteu-lo a la configuració de l'aplicació i torneu a activar la sincronització.",
"blocked_contacts": "Android ja no demana accés als contactes. Permeteu-lo a la configuració de l'aplicació i torneu a activar la sincronització.",
"blocked_title": "L'accés està desactivat",
"books_default": "Les vostres llibretes d'adreces se sincronitzen; les compartides, només si les trieu.",
"books_hint": "Les vostres llibretes d'adreces se sincronitzen tret que les desactiveu; les compartides, només si les activeu.",
"books_label": "Llibretes d'adreces",
"calendars_default": "Els vostres calendaris se sincronitzen; els compartits, només si els trieu.",
"calendars_hint": "Els vostres calendaris se sincronitzen tret que els desactiveu; els compartits, només si els activeu. Les llistes de tasques es queden al Bulwark.",
"calendars_label": "Calendaris",
"choose": "Tria",
"choose_books_title": "Llibretes d'adreces per sincronitzar",
"choose_calendars_title": "Calendaris per sincronitzar",
"collections_count": "Sincronització: {selected} de {total}",
"continue": "Continua",
"deletions_delete": "Suprimeix al servidor",
"deletions_message": "S'han suprimit molts elements alhora en aquest dispositiu, de manera que no s'han suprimit al servidor. Suprimiu-los també allà o recupereu-los en aquest dispositiu.",
"deletions_restore": "Recupera'ls",
"deletions_title": "Voleu suprimir-los també al servidor?",
"denied_calendar": "Sense accés als calendaris, el Bulwark no pot posar els vostres calendaris en aquest dispositiu.",
"denied_contacts": "Sense accés als contactes, el Bulwark no pot posar les vostres llibretes d'adreces en aquest dispositiu.",
"denied_title": "La sincronització continua desactivada",
"failed_title": "No s'ha pogut activar la sincronització",
"grant_access": "Concedeix l'accés",
"interval_15m": "Cada 15 minuts",
"interval_1h": "Cada hora",
"interval_30m": "Cada 30 minuts",
"interval_6h": "Cada 6 hores",
"interval_desc": "Amb quina freqüència sincronitza Android pel seu compte. Els canvis fets al Bulwark i els que arriben per push se sincronitzen abans.",
"interval_label": "Interval de sincronització",
"interval_manual": "Sense sincronització periòdica",
"keep_syncing": "Continua sincronitzant",
"list_error_auth": "El servidor no ha acceptat l'inici de sessió.",
"list_error_network": "No s'ha pogut connectar amb el servidor.",
"list_error_server": "El servidor no n'ha pogut mostrar la llista.",
"list_error_signed_out": "Aquest compte no té la sessió iniciada en aquest dispositiu.",
"master_off": "La sincronització automàtica està desactivada en aquest dispositiu, de manera que només se sincronitza quan toqueu «Sincronitza ara».",
"new_contacts_default": "Llibreta d'adreces predeterminada",
"new_contacts_desc": "La llibreta d'adreces per als contactes creats en altres aplicacions d'aquest dispositiu.",
"new_contacts_label": "Desa els contactes nous a",
"no_books": "Aquest compte no té cap llibreta d'adreces.",
"no_calendars": "Aquest compte no té cap calendari per sincronitzar.",
"ok": "D'acord",
"open_app_settings": "Obre la configuració",
"own_collections": "Personals",
"rationale_calendar": "Per mostrar els vostres calendaris a l'aplicació Calendari, el Bulwark necessita accés als calendaris d'aquest dispositiu. Només modifica els calendaris del seu propi compte.",
"rationale_contacts": "Per mostrar les vostres llibretes d'adreces a l'aplicació Contactes, el Bulwark necessita accés als contactes d'aquest dispositiu. Només modifica els contactes del seu propi compte.",
"rationale_title_calendar": "Permet l'accés als calendaris",
"rationale_title_contacts": "Permet l'accés als contactes",
"read_only": "Només lectura",
"reminder_owner_bulwark": "Bulwark",
"reminder_owner_device": "Aplicació Calendari",
"reminder_question_message": "Els recordatoris dels esdeveniments sincronitzats poden venir de l'aplicació de calendari d'aquest dispositiu o del Bulwark. Trieu-ne un perquè no rebeu els recordatoris dues vegades. Ho podeu canviar més endavant.",
"reminder_question_title": "Qui us ha d'enviar els recordatoris?",
"reminders_desc": "Qui us recorda els esdeveniments sincronitzats. L'altre no avisa, perquè no rebeu els recordatoris dues vegades.",
"reminders_label": "Recordatoris",
"reminders_nobody": "Les notificacions d'esdeveniments del Bulwark estan desactivades, de manera que res no us recorda els esdeveniments sincronitzats.",
"remove": "Elimina",
"remove_from_device": "Elimina d'aquest dispositiu",
"remove_message": "Els contactes i calendaris del compte s'eliminen d'aquest dispositiu. Els canvis fets aquí que no hagin arribat al servidor es perden.",
"remove_title": "Voleu eliminar-ho d'aquest dispositiu?",
"review_deletions": "Revisa les supressions",
"shared_by": "Compartit per {name}",
"sign_in_again": "Torna a iniciar la sessió",
"status_auth": "El servidor ja no accepta l'inici de sessió. Torneu a iniciar la sessió per continuar sincronitzant.",
"status_cancelled": "L'última sincronització s'ha aturat abans d'hora. Continuarà la propera vegada.",
"status_failed": "Ha fallat l'última sincronització: {message}",
"status_failed_plain": "Ha fallat l'última sincronització.",
"status_io": "No s'ha pogut connectar amb el servidor {when}. Android ho tornarà a provar.",
"status_item_errors": "{count, plural, one {No s'ha pogut sincronitzar # element.} other {No s'han pogut sincronitzar # elements.}}",
"status_off": "Desactivada",
"status_paused": "En pausa a la configuració d'Android",
"status_permission_calendar": "S'ha desactivat l'accés als calendaris, de manera que no se sincronitza res.",
"status_permission_contacts": "S'ha desactivat l'accés als contactes, de manera que no se sincronitza res.",
"status_removed": "S'ha eliminat a la configuració d'Android. Activeu la sincronització per tornar a afegir el compte.",
"status_safety_abort": "S'ha aturat: el servidor no ha retornat res, però aquest dispositiu encara conté elements. Comproveu el servidor i torneu a sincronitzar.",
"status_synced": "Sincronitzat {when}",
"status_syncing": "S'està sincronitzant…",
"status_too_many_deletions": "S'han suprimit molts elements en aquest dispositiu. No se suprimiran al servidor fins que no ho confirmeu.",
"status_unsupported_calendar": "El servidor no ofereix calendaris per a aquest compte.",
"status_unsupported_contacts": "El servidor no ofereix llibretes d'adreces per a aquest compte.",
"status_waiting": "S'està esperant la primera sincronització",
"status_waiting_next": "S'està esperant la propera sincronització",
"suspended_desc": "Sessió tancada. Els seus contactes i calendaris es queden en aquest dispositiu, amb els canvis fets aquí, i es tornaran a sincronitzar quan inicieu la sessió.",
"switch_label": "Sincronitza {account} amb aquest dispositiu",
"sync_now": "Sincronitza ara",
"turn_off_anyway": "Desactiva",
"turn_off_failed": "No s'han pogut eliminar les dades sincronitzades d'aquest dispositiu. La sincronització està en pausa; torneu-ho a provar més tard.",
"turn_off_failed_title": "No s'ha pogut desactivar la sincronització",
"turn_off_pending": "{count, plural, one {# canvi fet en aquest dispositiu encara no ha arribat al servidor. Es perdrà si desactiveu la sincronització ara.} other {# canvis fets en aquest dispositiu encara no han arribat al servidor. Es perdran si desactiveu la sincronització ara.}}",
"turn_off_title": "Voleu desactivar-la igualment?",
"turn_off_unknown": "El Bulwark no ha pogut comprovar si els canvis fets en aquest dispositiu han arribat al servidor. Es perdran si desactiveu la sincronització ara.",
"turning_off": "S'estan pujant els canvis i després s'eliminaran les dades d'aquest dispositiu…",
"turning_on": "S'està configurant…"
},
"downloads": {
"attachment_template": {
"description_mobile": "Plantilla utilitzada en desar o compartir un fitxer adjunt."
+145 -1
View File
@@ -93,6 +93,8 @@
"until_date": "Do {date}"
},
"settings": {
"device_sync_desc": "Zobrazí vaše kalendáře v aplikaci Kalendář a dalších aplikacích v tomto zařízení. Změny se synchronizují oběma směry.",
"device_sync_title": "Synchronizovat s tímto zařízením",
"show_week_numbers_mobile_desc": "Zobrazovat čísla týdnů v měsíčním zobrazení.",
"time_zone": "Časové pásmo",
"time_zone_auto": "Časové pásmo zařízení",
@@ -249,6 +251,18 @@
"color_tag": "Štítek",
"remove_color": "Odebrat štítek"
},
"device_sync": {
"auth_problem_text": "Server už nepřijímá přihlášení účtu {account}, proto se jeho kontakty a kalendáře v tomto zařízení přestaly synchronizovat. Chcete-li pokračovat, přihlaste se znovu. Změny provedené v tomto zařízení zůstanou zachovány.",
"auth_problem_title": "Pro další synchronizaci se znovu přihlaste",
"problem_channel": "Problémy se synchronizací",
"sign_out_anyway": "Odhlásit se",
"sign_out_pending_message": "{count, plural, one {# změna provedená v tomto zařízení se nedostala na server. Pokud se teď odhlásíte, bude ztracena.} few {# změny provedené v tomto zařízení se nedostaly na server. Pokud se teď odhlásíte, budou ztraceny.} many {# změny provedené v tomto zařízení se nedostalo na server. Pokud se teď odhlásíte, budou ztraceny.} other {# změn provedených v tomto zařízení se nedostalo na server. Pokud se teď odhlásíte, budou ztraceny.}}",
"sign_out_pending_title": "Přesto se odhlásit?",
"sign_out_unknown_message": "Změny provedené v tomto zařízení se možná nedostaly na server. Pokud se teď odhlásíte, budou ztraceny.",
"signed_out_text": "Účet {account} byl odhlášen, proto se jeho kontakty a kalendáře v tomto zařízení už nesynchronizují. Chcete-li pokračovat, přihlaste se znovu. Změny provedené v tomto zařízení zůstanou zachovány.",
"signed_out_title": "Pro další synchronizaci se přihlaste",
"signing_out": "Odebírání synchronizovaných kontaktů a kalendářů z tohoto zařízení…"
},
"email_composer": {
"attach_camera": "Fotoaparát",
"attachment_reminder_body": "Vaše zpráva obsahuje slovo „{keyword}“, ale není k ní připojen žádný soubor. Přesto odeslat?",
@@ -460,12 +474,19 @@
"email_step_title": "Jaká je vaše e-mailová adresa?",
"email_step_title_add": "Jaká je ta druhá adresa?",
"email_title": "Použít moji e-mailovou adresu",
"err_account_limit_detail": "Chcete-li přidat další účet, odeberte některý v Nastavení.",
"err_bad_detail": "Zkontrolujte e-mail a heslo. Pokud váš účet používá dvoufázové přihlášení, vytvořte ve webmailu heslo aplikace a použijte ho zde.",
"err_bad_title": "To nevyšlo",
"err_cert_detail": "Bezpečnostní certifikát serveru byl odmítnut. Pokud jde o váš vlastní server, zkontrolujte, zda je certifikát platný a nevypršel.",
"err_cert_title": "{host} nelze ověřit",
"err_code_expired_detail": "Přihlašovací kódy platí několik minut. Vygenerujte ve webmailu nový a naskenujte ho znovu.",
"err_code_expired_detail": "Přihlašovací kódy platí dvě minuty. Zobrazte ve webmailu nový a naskenujte ho znovu.",
"err_code_expired_or_used_detail": "Zobrazte ve webmailu nový a naskenujte ho znovu.",
"err_code_expired_or_used_title": "Platnost kódu vypršela nebo už byl použit",
"err_code_expired_title": "Platnost kódu vypršela",
"err_code_invalid_detail": "Zobrazte ve webmailu nový kód (Nastavení → Zabezpečení → Propojit mobilní aplikaci) a naskenujte ho.",
"err_code_invalid_title": "Tento kód není platný",
"err_code_used_detail": "Každý kód funguje jen jednou. Zobrazte ve webmailu nový a naskenujte ho znovu.",
"err_code_used_title": "Tento kód už byl použit",
"err_generic_detail": "Něco se pokazilo. Zkuste to znovu.",
"err_generic_title": "Přihlášení selhalo",
"err_interrupted_detail": "Odpověď neodpovídala zahájenému požadavku. Zkuste se přihlásit znovu.",
@@ -474,6 +495,17 @@
"err_no_server_title": "Poštovní server nenalezen: {host}",
"err_no_webmail_detail": "Tento server nemá webmail Bulwark ani přihlášení přes OAuth. Použijte heslo (nebo heslo aplikace).",
"err_no_webmail_title": "Přihlašovací stránka nenalezena: {host}",
"err_pair_connect_detail": "Zobrazte na počítači nový kód a naskenujte ho znovu.",
"err_pair_connect_title": "Přihlášeno, ale nelze se připojit k {host}",
"err_pair_insecure_detail": "{host} chce použít nešifrované spojení.",
"err_pair_network_detail": "Zkontrolujte připojení a zda se telefon dostane k webmailu, a zkuste to znovu.",
"err_pair_rate_detail": "Počkejte minutu a zkuste to znovu.",
"err_pair_server_detail": "Zkuste to znovu s novým kódem. Pokud to stále selhává, obraťte se na správce.",
"err_pair_server_title": "Webmail nemohl dokončit přihlášení",
"err_pair_unsupported_detail": "{host} nepodporuje přihlašovací kódy. Možná potřebuje aktualizaci, nebo odkaz vede na špatnou adresu.",
"err_pair_unsupported_title": "Tento webmail neumí propojovat zařízení",
"err_pair_untrusted_detail": "{host} poslal přihlašovací údaje pro server, který aplikace nemůže ověřit.",
"err_pair_untrusted_title": "Tomuto přihlášení nelze důvěřovat",
"err_rate_detail": "Server nás požádal o chvíli strpení. Zkuste to brzy znovu.",
"err_rate_detail_seconds": "Server nás požádal o strpení. Zkuste to znovu přibližně za {seconds} s.",
"err_rate_title": "Příliš mnoho pokusů",
@@ -487,6 +519,12 @@
"know_server": "Znám adresu svého serveru",
"known_server_desc": "Tento server už známe, takže není třeba nic nastavovat",
"known_server_title": "Další účet na {host}",
"link_confirm_connect": "Odkaz žádá o přihlášení na této stránce. Pokračujte, jen pokud {host} používáte pro svůj e-mail.",
"link_confirm_connect_add": "Odkaz žádá o přidání účtu přihlášením na této stránce. Pokračujte, jen pokud {host} používáte pro svůj e-mail.",
"link_confirm_connect_title": "Otevřít přihlašovací stránku {host}?",
"link_confirm_pair": "Tento odkaz vás přihlásí k účtu z {host}. Pokračujte, jen pokud jste právě na počítači zobrazili přihlašovací kód.",
"link_confirm_pair_add": "Tento odkaz přidá účet z {host} a přepne na něj aplikaci. Pokračujte, jen pokud jste právě na počítači zobrazili přihlašovací kód.",
"link_confirm_title": "Přihlásit se pomocí odkazu?",
"looking_up": "Hledání vašeho serveru…",
"manual": "Zadat údaje serveru ručně",
"notice_bad_qr": "Toto není přihlašovací kód Bulwark",
@@ -505,6 +543,12 @@
"pairing_detail": "Párování tohoto zařízení: {host}…",
"password_subtitle": "Heslo se odešle pouze tomuto serveru a uloží se do úložiště klíčů v zařízení.",
"password_title": "Přihlásit se k {host}",
"paste_button": "Vložit",
"paste_clipboard_empty": "Není co vložit. Nejprve zkopírujte odkaz ve webmailu.",
"paste_hint": "Ve webmailu otevřete Nastavení → Zabezpečení → Propojit mobilní aplikaci, zkopírujte přihlašovací odkaz a vložte ho sem.",
"paste_invalid": "Toto není přihlašovací odkaz Bulwark",
"paste_label": "Přihlašovací odkaz",
"paste_title": "Vložit přihlašovací odkaz",
"provider_detail": "Zadáte ho na jeho stránce. Bulwark ukládá pouze přihlašovací token, který můžete kdykoli odvolat.",
"provider_title": "Vaše heslo zůstává u poskytovatele",
"qr_hint": "V Nastavení → Zabezpečení → Propojit mobilní aplikaci se zobrazí kód. Namiřte na něj fotoaparát.",
@@ -515,6 +559,7 @@
"server_hint": "Stejná adresa, jakou zadáváte v prohlížeči. https:// doplníme za vás.",
"server_label": "Adresa serveru",
"server_not_found": "Pro {domain} jsme nenašli žádný server. Pokud provozujete vlastní server, zadejte adresu, kterou používáte pro webmail.",
"server_paste_hint": "Máte místo toho přihlašovací odkaz? Vložte ho sem.",
"server_scan_hint": "Pokud si nejste jisti, naskenujte raději přihlašovací kód. Obsahuje adresu serveru.",
"server_subtitle": "Zadejte adresu, přes kterou otevíráte webmail.",
"server_title": "Jaká je adresa vašeho serveru?",
@@ -598,11 +643,110 @@
"book_count": "{count, plural, one {# kontakt} few {# kontakty} many {# kontaktu} other {# kontaktů}}",
"default_book": "Výchozí adresář",
"description_mobile": "Předvolby zobrazení a nástroje pro adresáře.",
"device_sync_desc": "Zobrazí vaše adresáře v aplikaci Kontakty a dalších aplikacích v tomto zařízení. Změny se synchronizují oběma směry.",
"device_sync_title": "Synchronizovat s tímto zařízením",
"export_description_count": "{count, plural, one {Exportovat # kontakt do jednoho souboru vCard.} few {Exportovat # kontakty do jednoho souboru vCard.} many {Exportovat # kontaktu do jednoho souboru vCard.} other {Exportovat # kontaktů do jednoho souboru vCard.}}",
"export_empty": "Žádné kontakty k exportu",
"import_description_mobile": "Importovat kontakty ze souboru vCard (.vcf) s rozpoznáním duplicit.",
"manage_description_mobile": "Vytvářejte, přejmenovávejte a odstraňujte adresáře, ve kterých máte uspořádané kontakty."
},
"device_sync": {
"also_synced_by": "Synchronizuje se také pro {accounts}, proto se v tomto zařízení zobrazuje dvakrát.",
"android_settings": "Nastavení účtu v Androidu",
"blocked_calendar": "Android už o přístup ke kalendářům nežádá. Povolte ho v nastavení aplikace a pak synchronizaci znovu zapněte.",
"blocked_contacts": "Android už o přístup ke kontaktům nežádá. Povolte ho v nastavení aplikace a pak synchronizaci znovu zapněte.",
"blocked_title": "Přístup je vypnutý",
"books_default": "Vaše vlastní adresáře se synchronizují, sdílené jen tehdy, když je vyberete.",
"books_hint": "Vaše vlastní adresáře se synchronizují, pokud je nevypnete; sdílené jen tehdy, když je zapnete.",
"books_label": "Adresáře",
"calendars_default": "Vaše vlastní kalendáře se synchronizují, sdílené jen tehdy, když je vyberete.",
"calendars_hint": "Vaše vlastní kalendáře se synchronizují, pokud je nevypnete; sdílené jen tehdy, když je zapnete. Seznamy úkolů zůstávají v Bulwarku.",
"calendars_label": "Kalendáře",
"choose": "Vybrat",
"choose_books_title": "Adresáře k synchronizaci",
"choose_calendars_title": "Kalendáře k synchronizaci",
"collections_count": "Synchronizováno: {selected} z {total}",
"continue": "Pokračovat",
"deletions_delete": "Smazat na serveru",
"deletions_message": "V tomto zařízení bylo najednou smazáno mnoho položek, proto nebyly smazány na serveru. Smažte je i tam, nebo je v tomto zařízení obnovte.",
"deletions_restore": "Obnovit",
"deletions_title": "Smazat je i na serveru?",
"denied_calendar": "Bez přístupu ke kalendářům nemůže Bulwark přenést vaše kalendáře do tohoto zařízení.",
"denied_contacts": "Bez přístupu ke kontaktům nemůže Bulwark přenést vaše adresáře do tohoto zařízení.",
"denied_title": "Synchronizace zůstává vypnutá",
"failed_title": "Synchronizaci se nepodařilo zapnout",
"grant_access": "Udělit přístup",
"interval_15m": "Každých 15 minut",
"interval_1h": "Každou hodinu",
"interval_30m": "Každých 30 minut",
"interval_6h": "Každých 6 hodin",
"interval_desc": "Jak často Android synchronizuje sám. Úpravy v Bulwarku a změny oznámené přes push se synchronizují dříve.",
"interval_label": "Interval synchronizace",
"interval_manual": "Bez pravidelné synchronizace",
"keep_syncing": "Dál synchronizovat",
"list_error_auth": "Server nepřijal přihlášení.",
"list_error_network": "Nepodařilo se spojit se serverem.",
"list_error_server": "Server nedokázal poskytnout seznam.",
"list_error_signed_out": "Tento účet není v tomto zařízení přihlášen.",
"master_off": "Automatická synchronizace je v tomto zařízení vypnutá, proto se synchronizuje jen po klepnutí na „Synchronizovat nyní“.",
"new_contacts_default": "Výchozí adresář",
"new_contacts_desc": "Adresář pro kontakty vytvořené v jiných aplikacích v tomto zařízení.",
"new_contacts_label": "Nové kontakty ukládat do",
"no_books": "Tento účet nemá žádné adresáře.",
"no_calendars": "Tento účet nemá žádné kalendáře k synchronizaci.",
"ok": "OK",
"open_app_settings": "Otevřít nastavení",
"own_collections": "Vlastní",
"rationale_calendar": "Aby mohl Bulwark zobrazit vaše kalendáře v aplikaci Kalendář, potřebuje přístup ke kalendářům v tomto zařízení. Mění jen kalendáře svého vlastního účtu.",
"rationale_contacts": "Aby mohl Bulwark zobrazit vaše adresáře v aplikaci Kontakty, potřebuje přístup ke kontaktům v tomto zařízení. Mění jen kontakty svého vlastního účtu.",
"rationale_title_calendar": "Povolit přístup ke kalendářům",
"rationale_title_contacts": "Povolit přístup ke kontaktům",
"read_only": "Jen pro čtení",
"reminder_owner_bulwark": "Bulwark",
"reminder_owner_device": "Aplikace Kalendář",
"reminder_question_message": "Připomenutí synchronizovaných událostí může zobrazovat aplikace kalendáře v tomto zařízení, nebo Bulwark. Vyberte jednu možnost, abyste nedostávali připomenutí dvakrát. Později to můžete změnit.",
"reminder_question_title": "Kdo vám má připomínat události?",
"reminders_desc": "Kdo vám připomíná synchronizované události. Druhá možnost mlčí, abyste nedostávali připomenutí dvakrát.",
"reminders_label": "Připomenutí",
"reminders_nobody": "Oznámení událostí v Bulwarku jsou vypnutá, takže vám synchronizované události nic nepřipomene.",
"remove": "Odebrat",
"remove_from_device": "Odebrat z tohoto zařízení",
"remove_message": "Kontakty a kalendáře účtu budou z tohoto zařízení odebrány. Změny provedené zde, které se nedostaly na server, budou ztraceny.",
"remove_title": "Odebrat z tohoto zařízení?",
"review_deletions": "Zkontrolovat smazání",
"shared_by": "Sdílí {name}",
"sign_in_again": "Znovu se přihlásit",
"status_auth": "Server už nepřijímá přihlášení. Pro další synchronizaci se znovu přihlaste.",
"status_cancelled": "Poslední synchronizace skončila předčasně. Příště bude pokračovat.",
"status_failed": "Poslední synchronizace selhala: {message}",
"status_failed_plain": "Poslední synchronizace selhala.",
"status_io": "Server byl {when} nedostupný. Android to zkusí znovu.",
"status_item_errors": "{count, plural, one {# položku se nepodařilo synchronizovat.} few {# položky se nepodařilo synchronizovat.} many {# položky se nepodařilo synchronizovat.} other {# položek se nepodařilo synchronizovat.}}",
"status_off": "Vypnuto",
"status_paused": "Pozastaveno v nastavení Androidu",
"status_permission_calendar": "Přístup ke kalendářům byl vypnut, proto se nic nesynchronizuje.",
"status_permission_contacts": "Přístup ke kontaktům byl vypnut, proto se nic nesynchronizuje.",
"status_removed": "Odebráno v nastavení Androidu. Chcete-li účet znovu přidat, zapněte synchronizaci.",
"status_safety_abort": "Zastaveno: server nic nevrátil, přestože toto zařízení stále obsahuje položky. Zkontrolujte server a pak synchronizujte znovu.",
"status_synced": "Synchronizováno {when}",
"status_syncing": "Synchronizace…",
"status_too_many_deletions": "V tomto zařízení bylo smazáno mnoho položek. Na serveru budou smazány až po vašem potvrzení.",
"status_unsupported_calendar": "Server pro tento účet nenabízí žádné kalendáře.",
"status_unsupported_contacts": "Server pro tento účet nenabízí žádné adresáře.",
"status_waiting": "Čeká se na první synchronizaci",
"status_waiting_next": "Čeká se na další synchronizaci",
"suspended_desc": "Odhlášeno. Kontakty a kalendáře účtu zůstanou v tomto zařízení i se zde provedenými změnami a po přihlášení se znovu synchronizují.",
"switch_label": "Synchronizovat {account} s tímto zařízením",
"sync_now": "Synchronizovat nyní",
"turn_off_anyway": "Vypnout",
"turn_off_failed": "Synchronizovaná data se nepodařilo z tohoto zařízení odebrat. Synchronizace je pozastavena; zkuste to později.",
"turn_off_failed_title": "Synchronizaci se nepodařilo vypnout",
"turn_off_pending": "{count, plural, one {# změna provedená v tomto zařízení se ještě nedostala na server. Pokud teď synchronizaci vypnete, bude ztracena.} few {# změny provedené v tomto zařízení se ještě nedostaly na server. Pokud teď synchronizaci vypnete, budou ztraceny.} many {# změny provedené v tomto zařízení se ještě nedostalo na server. Pokud teď synchronizaci vypnete, budou ztraceny.} other {# změn provedených v tomto zařízení se ještě nedostalo na server. Pokud teď synchronizaci vypnete, budou ztraceny.}}",
"turn_off_title": "Přesto vypnout?",
"turn_off_unknown": "Bulwark nemohl ověřit, zda se změny provedené v tomto zařízení dostaly na server. Pokud teď synchronizaci vypnete, budou ztraceny.",
"turning_off": "Nahrávání změn a poté odebírání dat z tohoto zařízení…",
"turning_on": "Nastavování…"
},
"downloads": {
"attachment_template": {
"description_mobile": "Šablona použitá při ukládání nebo sdílení přílohy."
+145 -1
View File
@@ -93,6 +93,8 @@
"until_date": "Indtil {date}"
},
"settings": {
"device_sync_desc": "Vis dine kalendere i Kalender-appen og andre apps på denne enhed. Ændringer synkroniseres begge veje.",
"device_sync_title": "Synkronisér med denne enhed",
"show_week_numbers_mobile_desc": "Vis ugenumre i månedsvisningen.",
"time_zone": "Tidszone",
"time_zone_auto": "Enhedens tidszone",
@@ -249,6 +251,18 @@
"color_tag": "Tag",
"remove_color": "Fjern tag"
},
"device_sync": {
"auth_problem_text": "Serveren accepterer ikke længere login for {account}, så kontoens kontakter og kalendere på denne enhed synkroniseres ikke længere. Log ind igen for at fortsætte. Ændringer foretaget på denne enhed bevares.",
"auth_problem_title": "Log ind igen for at fortsætte synkroniseringen",
"problem_channel": "Synkroniseringsproblemer",
"sign_out_anyway": "Log ud",
"sign_out_pending_message": "{count, plural, one {# ændring foretaget på denne enhed er ikke nået frem til serveren. Den går tabt, hvis du logger ud nu.} other {# ændringer foretaget på denne enhed er ikke nået frem til serveren. De går tabt, hvis du logger ud nu.}}",
"sign_out_pending_title": "Vil du logge ud alligevel?",
"sign_out_unknown_message": "Ændringer foretaget på denne enhed er måske ikke nået frem til serveren. De går tabt, hvis du logger ud nu.",
"signed_out_text": "{account} blev logget ud, så kontoens kontakter og kalendere på denne enhed synkroniseres ikke længere. Log ind igen for at fortsætte. Ændringer foretaget på denne enhed bevares.",
"signed_out_title": "Log ind for at fortsætte synkroniseringen",
"signing_out": "Fjerner synkroniserede kontakter og kalendere fra denne enhed…"
},
"email_composer": {
"attach_camera": "Kamera",
"attachment_reminder_body": "Din besked nævner \"{keyword}\", men ingen fil er vedhæftet. Send alligevel?",
@@ -460,12 +474,19 @@
"email_step_title": "Hvad er din e-mailadresse?",
"email_step_title_add": "Hvad er den anden adresse?",
"email_title": "Brug min e-mailadresse",
"err_account_limit_detail": "Fjern en konto i Indstillinger for at tilføje en ny.",
"err_bad_detail": "Tjek din e-mail og adgangskode. Hvis din konto bruger to-faktor-godkendelse, så opret en app-adgangskode i webmailen, og brug den her.",
"err_bad_title": "Det virkede ikke",
"err_cert_detail": "Serverens sikkerhedscertifikat blev afvist. Hvis det er din egen server, så tjek, at certifikatet er gyldigt og ikke udløbet.",
"err_cert_title": "Kunne ikke verificere {host}",
"err_code_expired_detail": "Loginkoder er kun gyldige i nogle få minutter. Generér en ny i webmailen, og scan igen.",
"err_code_expired_detail": "Loginkoder er gyldige i to minutter. Vis en ny i webmailen, og scan igen.",
"err_code_expired_or_used_detail": "Vis en ny i webmailen, og scan igen.",
"err_code_expired_or_used_title": "Den kode er udløbet eller allerede brugt",
"err_code_expired_title": "Koden er udløbet",
"err_code_invalid_detail": "Vis en ny kode i webmailen (Indstillinger → Sikkerhed → Tilknyt mobilapp), og scan den.",
"err_code_invalid_title": "Den kode er ikke gyldig",
"err_code_used_detail": "Hver kode virker kun én gang. Vis en ny i webmailen, og scan igen.",
"err_code_used_title": "Den kode er allerede brugt",
"err_generic_detail": "Noget gik galt. Prøv igen.",
"err_generic_title": "Login mislykkedes",
"err_interrupted_detail": "Svaret matchede ikke den anmodning, vi startede. Prøv at logge ind igen.",
@@ -474,6 +495,17 @@
"err_no_server_title": "Ingen mailserver på {host}",
"err_no_webmail_detail": "Denne server har hverken Bulwark-webmail eller OAuth-login. Brug i stedet en adgangskode (eller en app-adgangskode).",
"err_no_webmail_title": "Ingen login-side på {host}",
"err_pair_connect_detail": "Vis en ny kode på din computer, og scan igen.",
"err_pair_connect_title": "Logget ind, men kunne ikke oprette forbindelse til {host}",
"err_pair_insecure_detail": "{host} vil bruge en ukrypteret forbindelse.",
"err_pair_network_detail": "Tjek din forbindelse, og at din telefon kan nå webmailen, og prøv så igen.",
"err_pair_rate_detail": "Vent et minut, og prøv så igen.",
"err_pair_server_detail": "Prøv igen med en ny kode. Hvis det bliver ved med at mislykkes, så kontakt din administrator.",
"err_pair_server_title": "Webmailen kunne ikke gennemføre login",
"err_pair_unsupported_detail": "{host} understøtter ikke loginkoder. Den skal måske opdateres, eller linket peger på den forkerte adresse.",
"err_pair_unsupported_title": "Denne webmail kan ikke tilknytte enheder",
"err_pair_untrusted_detail": "{host} sendte loginoplysninger til en server, som appen ikke kan bekræfte.",
"err_pair_untrusted_title": "Dette login kan ikke betros",
"err_rate_detail": "Serveren bad os vente et øjeblik. Prøv igen om lidt.",
"err_rate_detail_seconds": "Serveren bad os vente. Prøv igen om cirka {seconds} sekunder.",
"err_rate_title": "For mange forsøg",
@@ -487,6 +519,12 @@
"know_server": "Jeg kender min serveradresse",
"known_server_desc": "Vi kender allerede denne server, så der skal ikke konfigureres noget",
"known_server_title": "En anden konto på {host}",
"link_confirm_connect": "Et link beder om at logge ind på denne side. Fortsæt kun, hvis du bruger {host} til din mail.",
"link_confirm_connect_add": "Et link beder om at tilføje en konto ved at logge ind på denne side. Fortsæt kun, hvis du bruger {host} til din mail.",
"link_confirm_connect_title": "Åbn login-siden for {host}?",
"link_confirm_pair": "Dette link logger ind på en konto fra {host}. Fortsæt kun, hvis du lige har vist en loginkode på din computer.",
"link_confirm_pair_add": "Dette link tilføjer en konto fra {host} og skifter appen til den. Fortsæt kun, hvis du lige har vist en loginkode på din computer.",
"link_confirm_title": "Log ind med et link?",
"looking_up": "Slår din server op…",
"manual": "Indtast serveroplysninger manuelt",
"notice_bad_qr": "Den kode er ikke en Bulwark-loginkode",
@@ -505,6 +543,12 @@
"pairing_detail": "Parrer denne enhed med {host}…",
"password_subtitle": "Din adgangskode sendes kun til denne server og gemmes i enhedens nøglering.",
"password_title": "Log ind på {host}",
"paste_button": "Indsæt",
"paste_clipboard_empty": "Der er intet at indsætte. Kopiér først linket i webmailen.",
"paste_hint": "Åbn Indstillinger → Sikkerhed → Tilknyt mobilapp i webmailen, kopiér loginlinket, og indsæt det her.",
"paste_invalid": "Det er ikke et Bulwark-loginlink",
"paste_label": "Loginlink",
"paste_title": "Indsæt loginlink",
"provider_detail": "Du indtaster den på deres side. Bulwark gemmer kun et login-token, som du til enhver tid kan tilbagekalde.",
"provider_title": "Din adgangskode bliver hos din udbyder",
"qr_hint": "Indstillinger → Sikkerhed → Tilknyt mobilapp viser en kode. Ret kameraet mod den.",
@@ -515,6 +559,7 @@
"server_hint": "Samme adresse, som du skriver i browseren. Vi tilføjer https:// for dig.",
"server_label": "Serveradresse",
"server_not_found": "Vi kunne ikke finde en server for {domain}. Hvis du selv hoster, er det den adresse, du bruger til webmail.",
"server_paste_hint": "Har du i stedet et loginlink? Indsæt det her.",
"server_scan_hint": "Hvis du er i tvivl, så scan i stedet en loginkode. Den indeholder serveradressen.",
"server_subtitle": "Indtast den adresse, du bruger til at nå din webmail.",
"server_title": "Hvad er din serveradresse?",
@@ -598,11 +643,110 @@
"book_count": "{count, plural, one {# kontakt} other {# kontakter}}",
"default_book": "Standardadressebog",
"description_mobile": "Visningsindstillinger og værktøjer til adressebøger.",
"device_sync_desc": "Vis dine adressebøger i Kontakter-appen og andre apps på denne enhed. Ændringer synkroniseres begge veje.",
"device_sync_title": "Synkronisér med denne enhed",
"export_description_count": "{count, plural, one {Eksportér # kontakt som én vCard-fil.} other {Eksportér # kontakter som én vCard-fil.}}",
"export_empty": "Ingen kontakter at eksportere",
"import_description_mobile": "Importér kontakter fra en vCard-fil (.vcf) med registrering af dubletter.",
"manage_description_mobile": "Opret, omdøb og fjern de adressebøger, der organiserer dine kontakter."
},
"device_sync": {
"also_synced_by": "Synkroniseres også for {accounts}, så den vises to gange på denne enhed.",
"android_settings": "Android-kontoindstillinger",
"blocked_calendar": "Android spørger ikke længere om adgang til kalendere. Tillad det i appens indstillinger, og slå derefter synkronisering til igen.",
"blocked_contacts": "Android spørger ikke længere om adgang til kontakter. Tillad det i appens indstillinger, og slå derefter synkronisering til igen.",
"blocked_title": "Adgang er slået fra",
"books_default": "Dine egne adressebøger synkroniseres; delte kun, når du vælger dem.",
"books_hint": "Dine egne adressebøger synkroniseres, medmindre du slår dem fra; delte kun, når du slår dem til.",
"books_label": "Adressebøger",
"calendars_default": "Dine egne kalendere synkroniseres; delte kun, når du vælger dem.",
"calendars_hint": "Dine egne kalendere synkroniseres, medmindre du slår dem fra; delte kun, når du slår dem til. Opgavelister bliver i Bulwark.",
"calendars_label": "Kalendere",
"choose": "Vælg",
"choose_books_title": "Adressebøger, der skal synkroniseres",
"choose_calendars_title": "Kalendere, der skal synkroniseres",
"collections_count": "{selected} af {total} synkroniseres",
"continue": "Fortsæt",
"deletions_delete": "Slet på serveren",
"deletions_message": "Mange elementer blev slettet på én gang på denne enhed, så de blev ikke slettet på serveren. Slet dem også der, eller hent dem tilbage på denne enhed.",
"deletions_restore": "Hent dem tilbage",
"deletions_title": "Vil du også slette dem på serveren?",
"denied_calendar": "Uden adgang til kalendere kan Bulwark ikke lægge dine kalendere på denne enhed.",
"denied_contacts": "Uden adgang til kontakter kan Bulwark ikke lægge dine adressebøger på denne enhed.",
"denied_title": "Synkronisering forbliver slået fra",
"failed_title": "Synkronisering kunne ikke slås til",
"grant_access": "Giv adgang",
"interval_15m": "Hvert 15. minut",
"interval_1h": "Hver time",
"interval_30m": "Hvert 30. minut",
"interval_6h": "Hver 6. time",
"interval_desc": "Hvor ofte Android synkroniserer af sig selv. Ændringer i Bulwark og ændringer, der meldes via push, synkroniseres hurtigere.",
"interval_label": "Synkroniseringsinterval",
"interval_manual": "Ingen regelmæssig synkronisering",
"keep_syncing": "Fortsæt synkronisering",
"list_error_auth": "Serveren accepterede ikke login.",
"list_error_network": "Serveren kunne ikke nås.",
"list_error_server": "Serveren kunne ikke vise listen.",
"list_error_signed_out": "Denne konto er ikke logget ind på denne enhed.",
"master_off": "Automatisk synkronisering er slået fra på denne enhed, så der synkroniseres kun, når du trykker på \"Synkronisér nu\".",
"new_contacts_default": "Standardadressebog",
"new_contacts_desc": "Adressebogen til kontakter, der oprettes i andre apps på denne enhed.",
"new_contacts_label": "Gem nye kontakter i",
"no_books": "Denne konto har ingen adressebøger.",
"no_calendars": "Denne konto har ingen kalendere at synkronisere.",
"ok": "OK",
"open_app_settings": "Åbn appindstillinger",
"own_collections": "Dine egne",
"rationale_calendar": "For at vise dine kalendere i Kalender-appen skal Bulwark have adgang til kalenderne på denne enhed. Bulwark ændrer kun kalenderne for sin egen konto.",
"rationale_contacts": "For at vise dine adressebøger i Kontakter-appen skal Bulwark have adgang til kontakterne på denne enhed. Bulwark ændrer kun kontakterne for sin egen konto.",
"rationale_title_calendar": "Giv adgang til kalendere",
"rationale_title_contacts": "Giv adgang til kontakter",
"read_only": "Skrivebeskyttet",
"reminder_owner_bulwark": "Bulwark",
"reminder_owner_device": "Kalender-app",
"reminder_question_message": "Påmindelser om synkroniserede begivenheder kan komme fra kalenderappen på denne enhed eller fra Bulwark. Vælg én af dem, så du ikke får to påmindelser. Du kan ændre det senere.",
"reminder_question_title": "Hvem skal minde dig om begivenheder?",
"reminders_desc": "Hvem der minder dig om synkroniserede begivenheder. Den anden forholder sig tavs, så du ikke får to påmindelser.",
"reminders_label": "Påmindelser",
"reminders_nobody": "Bulwarks notifikationer om begivenheder er slået fra, så intet minder dig om synkroniserede begivenheder.",
"remove": "Fjern",
"remove_from_device": "Fjern fra denne enhed",
"remove_message": "Kontoens kontakter og kalendere fjernes fra denne enhed. Ændringer foretaget her, som ikke er nået frem til serveren, går tabt.",
"remove_title": "Fjern fra denne enhed?",
"review_deletions": "Gennemgå sletninger",
"shared_by": "Delt af {name}",
"sign_in_again": "Log ind igen",
"status_auth": "Serveren accepterer ikke længere login. Log ind igen for at fortsætte synkroniseringen.",
"status_cancelled": "Den seneste synkronisering stoppede før tid. Den fortsætter næste gang.",
"status_failed": "Den seneste synkronisering mislykkedes: {message}",
"status_failed_plain": "Den seneste synkronisering mislykkedes.",
"status_io": "Serveren kunne ikke nås {when}. Android prøver igen.",
"status_item_errors": "{count, plural, one {# element kunne ikke synkroniseres.} other {# elementer kunne ikke synkroniseres.}}",
"status_off": "Fra",
"status_paused": "Sat på pause i Android-indstillinger",
"status_permission_calendar": "Adgangen til kalendere blev slået fra, så intet synkroniseres.",
"status_permission_contacts": "Adgangen til kontakter blev slået fra, så intet synkroniseres.",
"status_removed": "Fjernet i Android-indstillinger. Slå synkronisering til for at tilføje kontoen igen.",
"status_safety_abort": "Stoppet: Serveren returnerede intet, selvom denne enhed stadig har elementer. Tjek serveren, og synkronisér derefter igen.",
"status_synced": "Sidst synkroniseret: {when}",
"status_syncing": "Synkroniserer…",
"status_too_many_deletions": "Mange elementer blev slettet på denne enhed. De slettes ikke på serveren, før du bekræfter.",
"status_unsupported_calendar": "Serveren tilbyder ingen kalendere til denne konto.",
"status_unsupported_contacts": "Serveren tilbyder ingen adressebøger til denne konto.",
"status_waiting": "Venter på den første synkronisering",
"status_waiting_next": "Venter på den næste synkronisering",
"suspended_desc": "Logget ud. Kontoens kontakter og kalendere bliver på denne enhed sammen med de ændringer, der er foretaget her, og synkroniseres igen, når du logger ind.",
"switch_label": "Synkronisér {account} med denne enhed",
"sync_now": "Synkronisér nu",
"turn_off_anyway": "Slå fra",
"turn_off_failed": "De synkroniserede data kunne ikke fjernes fra denne enhed. Synkroniseringen er sat på pause; prøv igen senere.",
"turn_off_failed_title": "Synkronisering kunne ikke slås fra",
"turn_off_pending": "{count, plural, one {# ændring foretaget på denne enhed er endnu ikke nået frem til serveren. Den går tabt, hvis du slår synkronisering fra nu.} other {# ændringer foretaget på denne enhed er endnu ikke nået frem til serveren. De går tabt, hvis du slår synkronisering fra nu.}}",
"turn_off_title": "Vil du slå fra alligevel?",
"turn_off_unknown": "Bulwark kunne ikke kontrollere, om ændringer foretaget på denne enhed er nået frem til serveren. De går tabt, hvis du slår synkronisering fra nu.",
"turning_off": "Uploader ændringer og fjerner derefter data fra denne enhed…",
"turning_on": "Konfigurerer…"
},
"downloads": {
"attachment_template": {
"description_mobile": "Skabelon, der bruges, når en vedhæftning gemmes eller deles."
+145 -1
View File
@@ -93,6 +93,8 @@
"until_date": "Bis {date}"
},
"settings": {
"device_sync_desc": "Zeigt Ihre Kalender in der Kalender-App und in anderen Apps auf diesem Gerät an. Änderungen werden in beide Richtungen synchronisiert.",
"device_sync_title": "Mit diesem Gerät synchronisieren",
"show_week_numbers_mobile_desc": "Kalenderwochen in der Monatsansicht anzeigen.",
"time_zone": "Zeitzone",
"time_zone_auto": "Gerätezeitzone",
@@ -249,6 +251,18 @@
"color_tag": "Label",
"remove_color": "Label entfernen"
},
"device_sync": {
"auth_problem_text": "Der Server akzeptiert die Anmeldung von {account} nicht mehr, daher werden die Kontakte und Kalender dieses Kontos auf diesem Gerät nicht mehr synchronisiert. Melden Sie sich erneut an, um fortzufahren. Auf diesem Gerät vorgenommene Änderungen bleiben erhalten.",
"auth_problem_title": "Erneut anmelden, um weiter zu synchronisieren",
"problem_channel": "Synchronisierungsprobleme",
"sign_out_anyway": "Abmelden",
"sign_out_pending_message": "{count, plural, one {# auf diesem Gerät vorgenommene Änderung hat den Server nicht erreicht. Sie geht verloren, wenn Sie sich jetzt abmelden.} other {# auf diesem Gerät vorgenommene Änderungen haben den Server nicht erreicht. Sie gehen verloren, wenn Sie sich jetzt abmelden.}}",
"sign_out_pending_title": "Trotzdem abmelden?",
"sign_out_unknown_message": "Auf diesem Gerät vorgenommene Änderungen haben den Server möglicherweise nicht erreicht. Sie gehen verloren, wenn Sie sich jetzt abmelden.",
"signed_out_text": "{account} wurde abgemeldet, daher werden die Kontakte und Kalender dieses Kontos auf diesem Gerät nicht mehr synchronisiert. Melden Sie sich erneut an, um fortzufahren. Auf diesem Gerät vorgenommene Änderungen bleiben erhalten.",
"signed_out_title": "Anmelden, um weiter zu synchronisieren",
"signing_out": "Synchronisierte Kontakte und Kalender werden von diesem Gerät entfernt…"
},
"email_composer": {
"attach_camera": "Kamera",
"attachment_reminder_body": "Ihre Nachricht erwähnt \"{keyword}\", aber es ist keine Datei angehängt. Trotzdem senden?",
@@ -460,12 +474,19 @@
"email_step_title": "Wie lautet Ihre E-Mail-Adresse?",
"email_step_title_add": "Wie lautet die andere Adresse?",
"email_title": "Meine E-Mail-Adresse verwenden",
"err_account_limit_detail": "Entfernen Sie in den Einstellungen ein Konto, um ein weiteres hinzuzufügen.",
"err_bad_detail": "Prüfen Sie E-Mail-Adresse und Passwort. Wenn Ihr Konto die Zwei-Faktor-Anmeldung nutzt, erstellen Sie im Webmail ein App-Passwort und verwenden Sie es hier.",
"err_bad_title": "Das hat nicht funktioniert",
"err_cert_detail": "Das Sicherheitszertifikat des Servers wurde abgelehnt. Wenn dies Ihr eigener Server ist, prüfen Sie, ob das Zertifikat gültig und nicht abgelaufen ist.",
"err_cert_title": "Überprüfung von {host} fehlgeschlagen",
"err_code_expired_detail": "Anmeldecodes sind nur wenige Minuten gültig. Erzeugen Sie im Webmail einen neuen und scannen Sie erneut.",
"err_code_expired_detail": "Anmeldecodes sind zwei Minuten gültig. Zeigen Sie im Webmail einen neuen an und scannen Sie erneut.",
"err_code_expired_or_used_detail": "Zeigen Sie im Webmail einen neuen an und scannen Sie erneut.",
"err_code_expired_or_used_title": "Dieser Code ist abgelaufen oder wurde bereits verwendet",
"err_code_expired_title": "Dieser Code ist abgelaufen",
"err_code_invalid_detail": "Zeigen Sie im Webmail einen neuen Code an (Einstellungen → Sicherheit → Mobile App verknüpfen) und scannen Sie ihn.",
"err_code_invalid_title": "Dieser Code ist ungültig",
"err_code_used_detail": "Jeder Code funktioniert nur einmal. Zeigen Sie im Webmail einen neuen an und scannen Sie erneut.",
"err_code_used_title": "Dieser Code wurde bereits verwendet",
"err_generic_detail": "Etwas ist schiefgelaufen. Versuchen Sie es erneut.",
"err_generic_title": "Anmeldung fehlgeschlagen",
"err_interrupted_detail": "Die Antwort passte nicht zur gestarteten Anfrage. Melden Sie sich erneut an.",
@@ -474,6 +495,17 @@
"err_no_server_title": "Kein Mailserver bei {host}",
"err_no_webmail_detail": "Dieser Server hat weder ein Bulwark-Webmail noch eine OAuth-Anmeldung. Verwenden Sie stattdessen ein Passwort (oder ein App-Passwort).",
"err_no_webmail_title": "Keine Anmeldeseite bei {host}",
"err_pair_connect_detail": "Zeigen Sie auf Ihrem Computer einen neuen Code an und scannen Sie erneut.",
"err_pair_connect_title": "Angemeldet, aber keine Verbindung zu {host}",
"err_pair_insecure_detail": "{host} möchte eine unverschlüsselte Verbindung verwenden.",
"err_pair_network_detail": "Prüfen Sie Ihre Verbindung und ob Ihr Telefon das Webmail erreichen kann, und versuchen Sie es dann erneut.",
"err_pair_rate_detail": "Warten Sie eine Minute und versuchen Sie es dann erneut.",
"err_pair_server_detail": "Versuchen Sie es mit einem neuen Code erneut. Wenn es weiterhin fehlschlägt, wenden Sie sich an Ihren Administrator.",
"err_pair_server_title": "Das Webmail konnte die Anmeldung nicht abschließen",
"err_pair_unsupported_detail": "{host} unterstützt keine Anmeldecodes. Eventuell ist ein Update nötig, oder der Link verweist auf die falsche Adresse.",
"err_pair_unsupported_title": "Dieses Webmail kann keine Geräte verknüpfen",
"err_pair_untrusted_detail": "{host} hat Anmeldedaten für einen Server gesendet, den die App nicht überprüfen kann.",
"err_pair_untrusted_title": "Dieser Anmeldung kann nicht vertraut werden",
"err_rate_detail": "Der Server hat uns gebeten, kurz zu warten. Versuchen Sie es gleich noch einmal.",
"err_rate_detail_seconds": "Der Server hat uns gebeten zu warten. Versuchen Sie es in etwa {seconds} Sekunden erneut.",
"err_rate_title": "Zu viele Versuche",
@@ -487,6 +519,12 @@
"know_server": "Ich kenne meine Serveradresse",
"known_server_desc": "Diesen Server kennen wir bereits, daher ist keine Einrichtung nötig",
"known_server_title": "Weiteres Konto auf {host}",
"link_confirm_connect": "Ein Link möchte Sie auf dieser Seite anmelden. Fahren Sie nur fort, wenn Sie {host} für Ihre E-Mails verwenden.",
"link_confirm_connect_add": "Ein Link möchte über die Anmeldung auf dieser Seite ein Konto hinzufügen. Fahren Sie nur fort, wenn Sie {host} für Ihre E-Mails verwenden.",
"link_confirm_connect_title": "Anmeldeseite von {host} öffnen?",
"link_confirm_pair": "Dieser Link meldet Sie bei einem Konto von {host} an. Fahren Sie nur fort, wenn Sie gerade auf Ihrem Computer einen Anmeldecode angezeigt haben.",
"link_confirm_pair_add": "Dieser Link fügt ein Konto von {host} hinzu und wechselt die App zu diesem Konto. Fahren Sie nur fort, wenn Sie gerade auf Ihrem Computer einen Anmeldecode angezeigt haben.",
"link_confirm_title": "Mit einem Link anmelden?",
"looking_up": "Ihr Server wird gesucht…",
"manual": "Serverdaten manuell eingeben",
"notice_bad_qr": "Das ist kein Bulwark-Anmeldecode",
@@ -505,6 +543,12 @@
"pairing_detail": "Dieses Gerät wird mit {host} gekoppelt…",
"password_subtitle": "Ihr Passwort wird nur an diesen Server gesendet und im Schlüsselbund des Geräts gespeichert.",
"password_title": "Bei {host} anmelden",
"paste_button": "Einfügen",
"paste_clipboard_empty": "Nichts zum Einfügen. Kopieren Sie zuerst den Link im Webmail.",
"paste_hint": "Öffnen Sie im Webmail Einstellungen → Sicherheit → Mobile App verknüpfen, kopieren Sie den Anmeldelink und fügen Sie ihn hier ein.",
"paste_invalid": "Das ist kein Bulwark-Anmeldelink",
"paste_label": "Anmeldelink",
"paste_title": "Anmeldelink einfügen",
"provider_detail": "Sie geben es auf dessen Seite ein. Bulwark speichert nur ein Anmeldetoken, das Sie jederzeit widerrufen können.",
"provider_title": "Ihr Passwort bleibt bei Ihrem Anbieter",
"qr_hint": "Einstellungen → Sicherheit → Mobile App verknüpfen zeigt einen Code an. Richten Sie die Kamera darauf.",
@@ -515,6 +559,7 @@
"server_hint": "Dieselbe Adresse, die Sie im Browser eingeben. https:// ergänzen wir für Sie.",
"server_label": "Serveradresse",
"server_not_found": "Für {domain} wurde kein Server gefunden. Wenn Sie selbst hosten, ist es die Adresse, die Sie für das Webmail verwenden.",
"server_paste_hint": "Haben Sie stattdessen einen Anmeldelink? Fügen Sie ihn hier ein.",
"server_scan_hint": "Wenn Sie unsicher sind, scannen Sie stattdessen einen Anmeldecode. Er enthält die Serveradresse.",
"server_subtitle": "Geben Sie die Adresse ein, unter der Sie Ihr Webmail erreichen.",
"server_title": "Wie lautet Ihre Serveradresse?",
@@ -598,11 +643,110 @@
"book_count": "{count, plural, one {# Kontakt} other {# Kontakte}}",
"default_book": "Standardadressbuch",
"description_mobile": "Anzeigeeinstellungen und Adressbuch-Werkzeuge.",
"device_sync_desc": "Zeigt Ihre Adressbücher in der Kontakte-App und in anderen Apps auf diesem Gerät an. Änderungen werden in beide Richtungen synchronisiert.",
"device_sync_title": "Mit diesem Gerät synchronisieren",
"export_description_count": "{count, plural, one {# Kontakt als eine vCard-Datei exportieren.} other {# Kontakte als eine vCard-Datei exportieren.}}",
"export_empty": "Keine Kontakte zum Exportieren",
"import_description_mobile": "Kontakte aus einer vCard-Datei (.vcf) importieren, mit Duplikaterkennung.",
"manage_description_mobile": "Die Adressbücher erstellen, umbenennen und entfernen, in denen Ihre Kontakte organisiert sind."
},
"device_sync": {
"also_synced_by": "Wird auch für {accounts} synchronisiert und erscheint daher doppelt auf diesem Gerät.",
"android_settings": "Android-Kontoeinstellungen",
"blocked_calendar": "Android fragt nicht mehr nach dem Zugriff auf Kalender. Erlauben Sie ihn in den App-Einstellungen und schalten Sie die Synchronisierung dann wieder ein.",
"blocked_contacts": "Android fragt nicht mehr nach dem Zugriff auf Kontakte. Erlauben Sie ihn in den App-Einstellungen und schalten Sie die Synchronisierung dann wieder ein.",
"blocked_title": "Zugriff ist ausgeschaltet",
"books_default": "Ihre eigenen Adressbücher werden synchronisiert, geteilte nur, wenn Sie sie auswählen.",
"books_hint": "Ihre eigenen Adressbücher werden synchronisiert, außer Sie schalten sie aus; geteilte nur, wenn Sie sie einschalten.",
"books_label": "Adressbücher",
"calendars_default": "Ihre eigenen Kalender werden synchronisiert, geteilte nur, wenn Sie sie auswählen.",
"calendars_hint": "Ihre eigenen Kalender werden synchronisiert, außer Sie schalten sie aus; geteilte nur, wenn Sie sie einschalten. Aufgabenlisten bleiben in Bulwark.",
"calendars_label": "Kalender",
"choose": "Auswählen",
"choose_books_title": "Zu synchronisierende Adressbücher",
"choose_calendars_title": "Zu synchronisierende Kalender",
"collections_count": "{selected} von {total} synchronisiert",
"continue": "Weiter",
"deletions_delete": "Auf dem Server löschen",
"deletions_message": "Auf diesem Gerät wurden viele Elemente auf einmal gelöscht, daher wurden sie auf dem Server nicht gelöscht. Löschen Sie sie auch dort oder stellen Sie sie auf diesem Gerät wieder her.",
"deletions_restore": "Wiederherstellen",
"deletions_title": "Auch auf dem Server löschen?",
"denied_calendar": "Ohne Zugriff auf Kalender kann Bulwark Ihre Kalender nicht auf dieses Gerät bringen.",
"denied_contacts": "Ohne Zugriff auf Kontakte kann Bulwark Ihre Adressbücher nicht auf dieses Gerät bringen.",
"denied_title": "Synchronisierung bleibt aus",
"failed_title": "Synchronisierung konnte nicht eingeschaltet werden",
"grant_access": "Zugriff erlauben",
"interval_15m": "Alle 15 Minuten",
"interval_1h": "Jede Stunde",
"interval_30m": "Alle 30 Minuten",
"interval_6h": "Alle 6 Stunden",
"interval_desc": "Wie oft Android von selbst synchronisiert. Änderungen in Bulwark und per Push gemeldete Änderungen werden früher synchronisiert.",
"interval_label": "Synchronisierungsintervall",
"interval_manual": "Keine regelmäßige Synchronisierung",
"keep_syncing": "Weiter synchronisieren",
"list_error_auth": "Der Server hat die Anmeldung nicht akzeptiert.",
"list_error_network": "Der Server war nicht erreichbar.",
"list_error_server": "Der Server konnte sie nicht auflisten.",
"list_error_signed_out": "Dieses Konto ist auf diesem Gerät nicht angemeldet.",
"master_off": "Die automatische Synchronisierung ist auf diesem Gerät ausgeschaltet, daher wird nur synchronisiert, wenn Sie auf \"Jetzt synchronisieren\" tippen.",
"new_contacts_default": "Standardadressbuch",
"new_contacts_desc": "Das Adressbuch für Kontakte, die in anderen Apps auf diesem Gerät erstellt werden.",
"new_contacts_label": "Neue Kontakte speichern in",
"no_books": "Dieses Konto hat keine Adressbücher.",
"no_calendars": "Dieses Konto hat keine Kalender zum Synchronisieren.",
"ok": "OK",
"open_app_settings": "App-Einstellungen öffnen",
"own_collections": "Ihre eigenen",
"rationale_calendar": "Um Ihre Kalender in der Kalender-App anzuzeigen, benötigt Bulwark Zugriff auf die Kalender auf diesem Gerät. Bulwark ändert nur die Kalender seines eigenen Kontos.",
"rationale_contacts": "Um Ihre Adressbücher in der Kontakte-App anzuzeigen, benötigt Bulwark Zugriff auf die Kontakte auf diesem Gerät. Bulwark ändert nur die Kontakte seines eigenen Kontos.",
"rationale_title_calendar": "Zugriff auf Kalender erlauben",
"rationale_title_contacts": "Zugriff auf Kontakte erlauben",
"read_only": "Schreibgeschützt",
"reminder_owner_bulwark": "Bulwark",
"reminder_owner_device": "Kalender-App",
"reminder_question_message": "Synchronisierte Termine können Sie über die Kalender-App auf diesem Gerät oder über Bulwark erinnern. Wählen Sie eines davon, damit Sie nicht doppelt erinnert werden. Sie können dies später ändern.",
"reminder_question_title": "Wer soll Sie erinnern?",
"reminders_desc": "Wer Sie an synchronisierte Termine erinnert. Die jeweils andere App bleibt still, damit Sie nicht doppelt erinnert werden.",
"reminders_label": "Erinnerungen",
"reminders_nobody": "Die Terminbenachrichtigungen von Bulwark sind ausgeschaltet, daher erinnert Sie nichts an synchronisierte Termine.",
"remove": "Entfernen",
"remove_from_device": "Von diesem Gerät entfernen",
"remove_message": "Die Kontakte und Kalender des Kontos werden von diesem Gerät entfernt. Hier vorgenommene Änderungen, die den Server noch nicht erreicht haben, gehen verloren.",
"remove_title": "Von diesem Gerät entfernen?",
"review_deletions": "Löschungen prüfen",
"shared_by": "Von {name} geteilt",
"sign_in_again": "Erneut anmelden",
"status_auth": "Der Server akzeptiert die Anmeldung nicht mehr. Melden Sie sich erneut an, um weiter zu synchronisieren.",
"status_cancelled": "Die letzte Synchronisierung wurde vorzeitig beendet. Sie wird beim nächsten Mal fortgesetzt.",
"status_failed": "Die letzte Synchronisierung ist fehlgeschlagen: {message}",
"status_failed_plain": "Die letzte Synchronisierung ist fehlgeschlagen.",
"status_io": "Der Server war {when} nicht erreichbar. Android versucht es erneut.",
"status_item_errors": "{count, plural, one {# Element konnte nicht synchronisiert werden.} other {# Elemente konnten nicht synchronisiert werden.}}",
"status_off": "Aus",
"status_paused": "In den Android-Einstellungen pausiert",
"status_permission_calendar": "Der Zugriff auf Kalender wurde ausgeschaltet, daher wird nichts synchronisiert.",
"status_permission_contacts": "Der Zugriff auf Kontakte wurde ausgeschaltet, daher wird nichts synchronisiert.",
"status_removed": "In den Android-Einstellungen entfernt. Schalten Sie die Synchronisierung ein, um das Konto wieder hinzuzufügen.",
"status_safety_abort": "Angehalten: Der Server hat nichts zurückgegeben, obwohl dieses Gerät noch Elemente enthält. Prüfen Sie den Server und synchronisieren Sie dann erneut.",
"status_synced": "Zuletzt synchronisiert: {when}",
"status_syncing": "Wird synchronisiert…",
"status_too_many_deletions": "Auf diesem Gerät wurden viele Elemente gelöscht. Auf dem Server werden sie erst gelöscht, wenn Sie dies bestätigen.",
"status_unsupported_calendar": "Der Server bietet für dieses Konto keine Kalender an.",
"status_unsupported_contacts": "Der Server bietet für dieses Konto keine Adressbücher an.",
"status_waiting": "Warten auf die erste Synchronisierung",
"status_waiting_next": "Warten auf die nächste Synchronisierung",
"suspended_desc": "Abgemeldet. Die Kontakte und Kalender des Kontos bleiben mit den hier vorgenommenen Änderungen auf diesem Gerät und werden wieder synchronisiert, sobald Sie sich anmelden.",
"switch_label": "{account} mit diesem Gerät synchronisieren",
"sync_now": "Jetzt synchronisieren",
"turn_off_anyway": "Ausschalten",
"turn_off_failed": "Die synchronisierten Daten konnten nicht von diesem Gerät entfernt werden. Die Synchronisierung ist pausiert; versuchen Sie es später erneut.",
"turn_off_failed_title": "Synchronisierung konnte nicht ausgeschaltet werden",
"turn_off_pending": "{count, plural, one {# auf diesem Gerät vorgenommene Änderung hat den Server noch nicht erreicht. Sie geht verloren, wenn Sie die Synchronisierung jetzt ausschalten.} other {# auf diesem Gerät vorgenommene Änderungen haben den Server noch nicht erreicht. Sie gehen verloren, wenn Sie die Synchronisierung jetzt ausschalten.}}",
"turn_off_title": "Trotzdem ausschalten?",
"turn_off_unknown": "Bulwark konnte nicht prüfen, ob auf diesem Gerät vorgenommene Änderungen den Server erreicht haben. Sie gehen verloren, wenn Sie die Synchronisierung jetzt ausschalten.",
"turning_off": "Änderungen werden hochgeladen, dann werden die Daten von diesem Gerät entfernt…",
"turning_on": "Wird eingerichtet…"
},
"downloads": {
"attachment_template": {
"description_mobile": "Vorlage für das Speichern oder Teilen eines Anhangs."
+145 -1
View File
@@ -93,6 +93,8 @@
"until_date": "Until {date}"
},
"settings": {
"device_sync_desc": "Show your calendars in the Calendar app and other apps on this device. Changes sync both ways.",
"device_sync_title": "Sync to this device",
"show_week_numbers_mobile_desc": "Display week numbers in the month view.",
"time_zone": "Time zone",
"time_zone_auto": "Device time zone",
@@ -252,6 +254,18 @@
"deep_link": {
"open_failed": "Couldn't open this"
},
"device_sync": {
"auth_problem_text": "The server no longer accepts the sign-in of {account}, so its contacts and calendars on this device stopped syncing. Sign in again to resume. Changes made on this device are kept.",
"auth_problem_title": "Sign in again to keep syncing",
"problem_channel": "Sync problems",
"sign_out_anyway": "Sign out",
"sign_out_pending_message": "{count, plural, one {# change made on this device hasn't reached the server. It is lost if you sign out now.} other {# changes made on this device haven't reached the server. They are lost if you sign out now.}}",
"sign_out_pending_title": "Sign out anyway?",
"sign_out_unknown_message": "Changes made on this device may not have reached the server. They are lost if you sign out now.",
"signed_out_text": "{account} was signed out, so its contacts and calendars on this device no longer sync. Sign in again to resume. Changes made on this device are kept.",
"signed_out_title": "Sign in to keep syncing",
"signing_out": "Removing synced contacts and calendars from this device…"
},
"email_composer": {
"attach_camera": "Camera",
"attachment_reminder_body": "Your message mentions \"{keyword}\" but no file is attached. Send anyway?",
@@ -470,12 +484,19 @@
"email_step_title": "What's your email address?",
"email_step_title_add": "What's the other address?",
"email_title": "Use my email address",
"err_account_limit_detail": "Remove an account in Settings to add another one.",
"err_bad_detail": "Check your email and password. If your account uses two-factor sign-in, create an app password in the webmail and use that here.",
"err_bad_title": "That didn't work",
"err_cert_detail": "The server's security certificate was rejected. If this is your own server, check the certificate is valid and not expired.",
"err_cert_title": "Couldn't verify {host}",
"err_code_expired_detail": "Sign-in codes are good for a few minutes. Generate a fresh one in the webmail and scan again.",
"err_code_expired_detail": "Sign-in codes are good for two minutes. Show a new one in the webmail and scan again.",
"err_code_expired_or_used_detail": "Show a new one in the webmail and scan again.",
"err_code_expired_or_used_title": "That code has expired or was already used",
"err_code_expired_title": "That code has expired",
"err_code_invalid_detail": "Show a new code in the webmail (Settings → Security → Link Mobile App) and scan it.",
"err_code_invalid_title": "That code isn't valid",
"err_code_used_detail": "Each code works once. Show a new one in the webmail and scan again.",
"err_code_used_title": "That code was already used",
"err_generic_detail": "Something went wrong. Try again.",
"err_generic_title": "Sign-in failed",
"err_interrupted_detail": "The response didn't match the request we started. Try signing in again.",
@@ -484,6 +505,17 @@
"err_no_server_title": "No mail server at {host}",
"err_no_webmail_detail": "This server has no Bulwark webmail and no OAuth sign-in. Use a password (or an app password) instead.",
"err_no_webmail_title": "No sign-in page at {host}",
"err_pair_connect_detail": "Show a new code on your computer and scan again.",
"err_pair_connect_title": "Signed in, but couldn't connect to {host}",
"err_pair_insecure_detail": "{host} wants to use an unencrypted connection.",
"err_pair_network_detail": "Check your connection and that your phone can reach the webmail, then try again.",
"err_pair_rate_detail": "Wait a minute, then try again.",
"err_pair_server_detail": "Try again with a new code. If it keeps failing, ask your administrator.",
"err_pair_server_title": "The webmail couldn't complete the sign-in",
"err_pair_unsupported_detail": "{host} doesn't support sign-in codes. It may need an update, or the link points to the wrong address.",
"err_pair_unsupported_title": "This webmail can't link devices",
"err_pair_untrusted_detail": "{host} sent sign-in details for a server the app can't verify.",
"err_pair_untrusted_title": "This sign-in can't be trusted",
"err_rate_detail": "The server asked us to wait a moment. Try again shortly.",
"err_rate_detail_seconds": "The server asked us to wait. Try again in about {seconds} seconds.",
"err_rate_title": "Too many attempts",
@@ -497,6 +529,12 @@
"know_server": "I know my server address",
"known_server_desc": "We already know this server, so there's no setup",
"known_server_title": "Another account on {host}",
"link_confirm_connect": "A link asks to sign in on this page. Only continue if you use {host} for your mail.",
"link_confirm_connect_add": "A link asks to add an account by signing in on this page. Only continue if you use {host} for your mail.",
"link_confirm_connect_title": "Open the sign-in page of {host}?",
"link_confirm_pair": "This link signs in to an account from {host}. Only continue if you just showed a sign-in code on your computer.",
"link_confirm_pair_add": "This link adds an account from {host} and switches the app to it. Only continue if you just showed a sign-in code on your computer.",
"link_confirm_title": "Sign in with a link?",
"looking_up": "Looking up your server…",
"manual": "Enter server details manually",
"notice_bad_qr": "That code isn't a Bulwark sign-in code",
@@ -515,6 +553,12 @@
"pairing_detail": "Pairing this device with {host}…",
"password_subtitle": "Your password is sent to this server only, and stored in the device keychain.",
"password_title": "Sign in to {host}",
"paste_button": "Paste",
"paste_clipboard_empty": "Nothing to paste. Copy the link in the webmail first.",
"paste_hint": "In the webmail, open Settings → Security → Link Mobile App, copy the sign-in link and paste it here.",
"paste_invalid": "That isn't a Bulwark sign-in link",
"paste_label": "Sign-in link",
"paste_title": "Paste sign-in link",
"provider_detail": "You'll type it on their page. Bulwark only stores a sign-in token, which you can revoke at any time.",
"provider_title": "Your password stays with your provider",
"qr_hint": "Settings → Security → Link Mobile App shows a code. Point the camera at it.",
@@ -525,6 +569,7 @@
"server_hint": "Same address you type in the browser. We'll add https:// for you.",
"server_label": "Server address",
"server_not_found": "We couldn't find a server for {domain}. If you self-host, the address is the one you use for webmail.",
"server_paste_hint": "Have a sign-in link instead? Paste it here.",
"server_scan_hint": "If you're not sure, scan a sign-in code instead. It carries the server address.",
"server_subtitle": "Enter the address you use to reach your webmail.",
"server_title": "What's your server address?",
@@ -608,11 +653,110 @@
"book_count": "{count, plural, one {# contact} other {# contacts}}",
"default_book": "Default address book",
"description_mobile": "Display preferences and address-book tools.",
"device_sync_desc": "Show your address books in the Contacts app and other apps on this device. Changes sync both ways.",
"device_sync_title": "Sync to this device",
"export_description_count": "{count, plural, one {Export # contact as a single vCard file.} other {Export # contacts as a single vCard file.}}",
"export_empty": "No contacts to export",
"import_description_mobile": "Import contacts from a vCard (.vcf) file with duplicate detection.",
"manage_description_mobile": "Create, rename, and remove the address books that organize your contacts."
},
"device_sync": {
"also_synced_by": "Also synced for {accounts}, so it shows twice on this device.",
"android_settings": "Android account settings",
"blocked_calendar": "Android no longer asks for access to calendars. Allow it in the app's settings, then turn sync on again.",
"blocked_contacts": "Android no longer asks for access to contacts. Allow it in the app's settings, then turn sync on again.",
"blocked_title": "Access is turned off",
"books_default": "Your own address books sync; shared ones only when you pick them.",
"books_hint": "Your own address books sync unless you turn them off; shared ones only when you turn them on.",
"books_label": "Address books",
"calendars_default": "Your own calendars sync; shared ones only when you pick them.",
"calendars_hint": "Your own calendars sync unless you turn them off; shared ones only when you turn them on. Task lists stay in Bulwark.",
"calendars_label": "Calendars",
"choose": "Choose",
"choose_books_title": "Address books to sync",
"choose_calendars_title": "Calendars to sync",
"collections_count": "{selected, plural, one {# of {total} syncs} other {# of {total} sync}}",
"continue": "Continue",
"deletions_delete": "Delete on server",
"deletions_message": "Many items were deleted on this device at once, so they were not deleted on the server. Delete them there as well, or bring them back on this device.",
"deletions_restore": "Bring them back",
"deletions_title": "Delete them on the server too?",
"denied_calendar": "Without access to calendars, Bulwark cannot put your calendars on this device.",
"denied_contacts": "Without access to contacts, Bulwark cannot put your address books on this device.",
"denied_title": "Sync stays off",
"failed_title": "Sync could not be turned on",
"grant_access": "Grant access",
"interval_15m": "Every 15 minutes",
"interval_1h": "Every hour",
"interval_30m": "Every 30 minutes",
"interval_6h": "Every 6 hours",
"interval_desc": "How often Android syncs on its own. Edits in Bulwark and pushed changes sync sooner.",
"interval_label": "Sync interval",
"interval_manual": "No regular sync",
"keep_syncing": "Keep syncing",
"list_error_auth": "The server did not accept the sign-in.",
"list_error_network": "Could not reach the server.",
"list_error_server": "The server could not list them.",
"list_error_signed_out": "This account is not signed in on this device.",
"master_off": "Auto-sync is off on this device, so syncs only run when you tap Sync now.",
"new_contacts_default": "Default address book",
"new_contacts_desc": "The address book for contacts created in other apps on this device.",
"new_contacts_label": "New contacts go to",
"no_books": "This account has no address books.",
"no_calendars": "This account has no calendars to sync.",
"ok": "OK",
"open_app_settings": "Open app settings",
"own_collections": "Your own",
"rationale_calendar": "To show your calendars in the Calendar app, Bulwark needs access to the calendars on this device. It only changes the calendars of its own account.",
"rationale_contacts": "To show your address books in the Contacts app, Bulwark needs access to the contacts on this device. It only changes the contacts of its own account.",
"rationale_title_calendar": "Allow access to calendars",
"rationale_title_contacts": "Allow access to contacts",
"read_only": "Read-only",
"reminder_owner_bulwark": "Bulwark",
"reminder_owner_device": "Calendar app",
"reminder_question_message": "Synced events can remind you from the calendar app on this device or from Bulwark. Pick one so you are not reminded twice. You can change it later.",
"reminder_question_title": "Who should remind you?",
"reminders_desc": "Who reminds you of synced events. The other stays quiet, so you are not reminded twice.",
"reminders_label": "Reminders",
"reminders_nobody": "Bulwark's event notifications are off, so nothing reminds you of synced events.",
"remove": "Remove",
"remove_from_device": "Remove from this device",
"remove_message": "The account's contacts and calendars are removed from this device. Changes made here that haven't reached the server are lost.",
"remove_title": "Remove from this device?",
"review_deletions": "Review deletions",
"shared_by": "Shared by {name}",
"sign_in_again": "Sign in again",
"status_auth": "The server no longer accepts the sign-in. Sign in again to keep syncing.",
"status_cancelled": "The last sync stopped early. It continues next time.",
"status_failed": "The last sync failed: {message}",
"status_failed_plain": "The last sync failed.",
"status_io": "Could not reach the server {when}. Android tries again.",
"status_item_errors": "{count, plural, one {# item could not be synced.} other {# items could not be synced.}}",
"status_off": "Off",
"status_paused": "Paused in Android settings",
"status_permission_calendar": "Access to calendars was turned off, so nothing syncs.",
"status_permission_contacts": "Access to contacts was turned off, so nothing syncs.",
"status_removed": "Removed in Android settings. Turn on to add the account again.",
"status_safety_abort": "Stopped: the server returned nothing while this device still holds items. Check the server, then sync again.",
"status_synced": "Synced {when}",
"status_syncing": "Syncing…",
"status_too_many_deletions": "Many items were deleted on this device. They are not deleted on the server until you confirm.",
"status_unsupported_calendar": "The server offers no calendars for this account.",
"status_unsupported_contacts": "The server offers no address books for this account.",
"status_waiting": "Waiting for the first sync",
"status_waiting_next": "Waiting for the next sync",
"suspended_desc": "Signed out. Its contacts and calendars stay on this device, with the changes made here, and sync again once you sign in.",
"switch_label": "Sync {account} to this device",
"sync_now": "Sync now",
"turn_off_anyway": "Turn off",
"turn_off_failed": "The synced data could not be removed from this device. Sync is paused; try again later.",
"turn_off_failed_title": "Sync could not be turned off",
"turn_off_pending": "{count, plural, one {# change made on this device hasn't reached the server yet. It is lost if you turn sync off now.} other {# changes made on this device haven't reached the server yet. They are lost if you turn sync off now.}}",
"turn_off_title": "Turn off anyway?",
"turn_off_unknown": "Bulwark could not check whether changes made on this device reached the server. They are lost if you turn sync off now.",
"turning_off": "Uploading changes, then removing the data from this device…",
"turning_on": "Setting up…"
},
"downloads": {
"attachment_template": {
"description_mobile": "Template used when saving or sharing an attachment."
+145 -1
View File
@@ -93,6 +93,8 @@
"until_date": "Hasta el {date}"
},
"settings": {
"device_sync_desc": "Muestra tus calendarios en la app Calendario y en otras apps de este dispositivo. Los cambios se sincronizan en ambos sentidos.",
"device_sync_title": "Sincronizar con este dispositivo",
"show_week_numbers_mobile_desc": "Mostrar los números de semana en la vista mensual.",
"time_zone": "Zona horaria",
"time_zone_auto": "Zona horaria del dispositivo",
@@ -249,6 +251,18 @@
"color_tag": "Etiqueta",
"remove_color": "Eliminar etiqueta"
},
"device_sync": {
"auth_problem_text": "El servidor ya no acepta el inicio de sesión de {account}, así que sus contactos y calendarios de este dispositivo han dejado de sincronizarse. Vuelve a iniciar sesión para reanudar la sincronización. Los cambios hechos en este dispositivo se conservan.",
"auth_problem_title": "Vuelve a iniciar sesión para seguir sincronizando",
"problem_channel": "Problemas de sincronización",
"sign_out_anyway": "Cerrar sesión",
"sign_out_pending_message": "{count, plural, one {# cambio hecho en este dispositivo no ha llegado al servidor. Se perderá si cierras sesión ahora.} other {# cambios hechos en este dispositivo no han llegado al servidor. Se perderán si cierras sesión ahora.}}",
"sign_out_pending_title": "¿Cerrar sesión de todos modos?",
"sign_out_unknown_message": "Puede que los cambios hechos en este dispositivo no hayan llegado al servidor. Se perderán si cierras sesión ahora.",
"signed_out_text": "Se cerró la sesión de {account}, así que sus contactos y calendarios de este dispositivo ya no se sincronizan. Vuelve a iniciar sesión para reanudar la sincronización. Los cambios hechos en este dispositivo se conservan.",
"signed_out_title": "Inicia sesión para seguir sincronizando",
"signing_out": "Quitando de este dispositivo los contactos y calendarios sincronizados…"
},
"email_composer": {
"attach_camera": "Cámara",
"attachment_reminder_body": "Tu mensaje menciona \"{keyword}\" pero no hay ningún archivo adjunto. ¿Enviar de todos modos?",
@@ -460,12 +474,19 @@
"email_step_title": "¿Cuál es tu dirección de correo?",
"email_step_title_add": "¿Cuál es la otra dirección?",
"email_title": "Usar mi dirección de correo",
"err_account_limit_detail": "Elimina una cuenta en Ajustes para añadir otra.",
"err_bad_detail": "Comprueba tu correo y tu contraseña. Si tu cuenta usa autenticación de dos factores, crea una contraseña de aplicación en el webmail y úsala aquí.",
"err_bad_title": "No ha funcionado",
"err_cert_detail": "Se rechazó el certificado de seguridad del servidor. Si es tu propio servidor, comprueba que el certificado sea válido y no haya caducado.",
"err_cert_title": "No se pudo verificar {host}",
"err_code_expired_detail": "Los códigos de inicio de sesión son válidos durante unos minutos. Genera uno nuevo en el webmail y vuelve a escanearlo.",
"err_code_expired_detail": "Los códigos de inicio de sesión son válidos durante dos minutos. Muestra uno nuevo en el webmail y vuelve a escanearlo.",
"err_code_expired_or_used_detail": "Muestra uno nuevo en el webmail y vuelve a escanearlo.",
"err_code_expired_or_used_title": "Ese código ha caducado o ya se ha usado",
"err_code_expired_title": "Ese código ha caducado",
"err_code_invalid_detail": "Muestra un código nuevo en el webmail (Configuración → Seguridad → Vincular aplicación móvil) y escanéalo.",
"err_code_invalid_title": "Ese código no es válido",
"err_code_used_detail": "Cada código funciona una sola vez. Muestra uno nuevo en el webmail y vuelve a escanearlo.",
"err_code_used_title": "Ese código ya se ha usado",
"err_generic_detail": "Algo salió mal. Inténtalo de nuevo.",
"err_generic_title": "Error al iniciar sesión",
"err_interrupted_detail": "La respuesta no coincide con la solicitud que iniciamos. Vuelve a iniciar sesión.",
@@ -474,6 +495,17 @@
"err_no_server_title": "No hay ningún servidor de correo en {host}",
"err_no_webmail_detail": "Este servidor no tiene webmail de Bulwark ni inicio de sesión OAuth. Usa una contraseña (o una contraseña de aplicación).",
"err_no_webmail_title": "No hay página de inicio de sesión en {host}",
"err_pair_connect_detail": "Muestra un código nuevo en tu ordenador y vuelve a escanearlo.",
"err_pair_connect_title": "Sesión iniciada, pero no se pudo conectar con {host}",
"err_pair_insecure_detail": "{host} quiere usar una conexión sin cifrar.",
"err_pair_network_detail": "Comprueba tu conexión y que tu teléfono pueda acceder al webmail, y vuelve a intentarlo.",
"err_pair_rate_detail": "Espera un minuto y vuelve a intentarlo.",
"err_pair_server_detail": "Vuelve a intentarlo con un código nuevo. Si sigue fallando, consulta a tu administrador.",
"err_pair_server_title": "El webmail no ha podido completar el inicio de sesión",
"err_pair_unsupported_detail": "{host} no admite códigos de inicio de sesión. Puede que necesite una actualización o que el enlace apunte a una dirección incorrecta.",
"err_pair_unsupported_title": "Este webmail no puede vincular dispositivos",
"err_pair_untrusted_detail": "{host} ha enviado datos de inicio de sesión para un servidor que la aplicación no puede verificar.",
"err_pair_untrusted_title": "No se puede confiar en este inicio de sesión",
"err_rate_detail": "El servidor nos pidió esperar un momento. Inténtalo de nuevo en breve.",
"err_rate_detail_seconds": "El servidor nos pidió esperar. Inténtalo de nuevo en unos {seconds} segundos.",
"err_rate_title": "Demasiados intentos",
@@ -487,6 +519,12 @@
"know_server": "Conozco la dirección de mi servidor",
"known_server_desc": "Ya conocemos este servidor, así que no hay nada que configurar",
"known_server_title": "Otra cuenta en {host}",
"link_confirm_connect": "Un enlace pide iniciar sesión en esta página. Continúa solo si usas {host} para tu correo.",
"link_confirm_connect_add": "Un enlace pide añadir una cuenta iniciando sesión en esta página. Continúa solo si usas {host} para tu correo.",
"link_confirm_connect_title": "¿Abrir la página de inicio de sesión de {host}?",
"link_confirm_pair": "Este enlace inicia sesión en una cuenta de {host}. Continúa solo si acabas de mostrar un código de inicio de sesión en tu ordenador.",
"link_confirm_pair_add": "Este enlace añade una cuenta de {host} y cambia la aplicación a ella. Continúa solo si acabas de mostrar un código de inicio de sesión en tu ordenador.",
"link_confirm_title": "¿Iniciar sesión con un enlace?",
"looking_up": "Buscando tu servidor…",
"manual": "Introducir los datos del servidor manualmente",
"notice_bad_qr": "Ese código no es un código de inicio de sesión de Bulwark",
@@ -505,6 +543,12 @@
"pairing_detail": "Vinculando este dispositivo con {host}…",
"password_subtitle": "Tu contraseña solo se envía a este servidor y se guarda en el almacén seguro del dispositivo.",
"password_title": "Iniciar sesión en {host}",
"paste_button": "Pegar",
"paste_clipboard_empty": "No hay nada que pegar. Copia primero el enlace en el webmail.",
"paste_hint": "En el webmail, abre Configuración → Seguridad → Vincular aplicación móvil, copia el enlace de inicio de sesión y pégalo aquí.",
"paste_invalid": "Eso no es un enlace de inicio de sesión de Bulwark",
"paste_label": "Enlace de inicio de sesión",
"paste_title": "Pegar enlace de inicio de sesión",
"provider_detail": "La escribirás en su página. Bulwark solo guarda un token de inicio de sesión, que puedes revocar en cualquier momento.",
"provider_title": "Tu contraseña se queda con tu proveedor",
"qr_hint": "Configuración → Seguridad → Vincular aplicación móvil muestra un código. Apunta la cámara hacia él.",
@@ -515,6 +559,7 @@
"server_hint": "La misma dirección que escribes en el navegador. Añadiremos https:// por ti.",
"server_label": "Dirección del servidor",
"server_not_found": "No encontramos ningún servidor para {domain}. Si lo alojas tú, la dirección es la que usas para el webmail.",
"server_paste_hint": "¿Tienes un enlace de inicio de sesión? Pégalo aquí.",
"server_scan_hint": "Si no estás seguro, escanea un código de inicio de sesión. Incluye la dirección del servidor.",
"server_subtitle": "Introduce la dirección que usas para acceder a tu webmail.",
"server_title": "¿Cuál es la dirección de tu servidor?",
@@ -598,11 +643,110 @@
"book_count": "{count, plural, one {# contacto} other {# contactos}}",
"default_book": "Libreta de direcciones predeterminada",
"description_mobile": "Preferencias de visualización y herramientas de la libreta de direcciones.",
"device_sync_desc": "Muestra tus libretas de direcciones en la app Contactos y en otras apps de este dispositivo. Los cambios se sincronizan en ambos sentidos.",
"device_sync_title": "Sincronizar con este dispositivo",
"export_description_count": "{count, plural, one {Exporta # contacto como un único archivo vCard.} other {Exporta # contactos como un único archivo vCard.}}",
"export_empty": "No hay contactos para exportar",
"import_description_mobile": "Importa contactos desde un archivo vCard (.vcf) con detección de duplicados.",
"manage_description_mobile": "Crea, renombra y elimina las libretas de direcciones que organizan tus contactos."
},
"device_sync": {
"also_synced_by": "También se sincroniza para {accounts}, por lo que aparece dos veces en este dispositivo.",
"android_settings": "Ajustes de cuenta de Android",
"blocked_calendar": "Android ya no pide acceso a los calendarios. Permítelo en los ajustes de la app y vuelve a activar la sincronización.",
"blocked_contacts": "Android ya no pide acceso a los contactos. Permítelo en los ajustes de la app y vuelve a activar la sincronización.",
"blocked_title": "El acceso está desactivado",
"books_default": "Tus libretas de direcciones se sincronizan; las compartidas, solo si las eliges.",
"books_hint": "Tus libretas de direcciones se sincronizan salvo que las desactives; las compartidas, solo si las activas.",
"books_label": "Libretas de direcciones",
"calendars_default": "Tus calendarios se sincronizan; los compartidos, solo si los eliges.",
"calendars_hint": "Tus calendarios se sincronizan salvo que los desactives; los compartidos, solo si los activas. Las listas de tareas se quedan en Bulwark.",
"calendars_label": "Calendarios",
"choose": "Elegir",
"choose_books_title": "Libretas de direcciones que sincronizar",
"choose_calendars_title": "Calendarios que sincronizar",
"collections_count": "Sincronización: {selected} de {total}",
"continue": "Continuar",
"deletions_delete": "Eliminar en el servidor",
"deletions_message": "Se eliminaron muchos elementos a la vez en este dispositivo, así que no se eliminaron en el servidor. Elimínalos también allí o recupéralos en este dispositivo.",
"deletions_restore": "Recuperarlos",
"deletions_title": "¿Eliminarlos también en el servidor?",
"denied_calendar": "Sin acceso a los calendarios, Bulwark no puede poner tus calendarios en este dispositivo.",
"denied_contacts": "Sin acceso a los contactos, Bulwark no puede poner tus libretas de direcciones en este dispositivo.",
"denied_title": "La sincronización sigue desactivada",
"failed_title": "No se pudo activar la sincronización",
"grant_access": "Conceder acceso",
"interval_15m": "Cada 15 minutos",
"interval_1h": "Cada hora",
"interval_30m": "Cada 30 minutos",
"interval_6h": "Cada 6 horas",
"interval_desc": "Con qué frecuencia sincroniza Android por su cuenta. Los cambios hechos en Bulwark y los que llegan por push se sincronizan antes.",
"interval_label": "Intervalo de sincronización",
"interval_manual": "Sin sincronización periódica",
"keep_syncing": "Seguir sincronizando",
"list_error_auth": "El servidor no aceptó el inicio de sesión.",
"list_error_network": "No se pudo conectar con el servidor.",
"list_error_server": "El servidor no pudo mostrar la lista.",
"list_error_signed_out": "Esta cuenta no tiene la sesión iniciada en este dispositivo.",
"master_off": "La sincronización automática está desactivada en este dispositivo, así que solo se sincroniza cuando tocas \"Sincronizar ahora\".",
"new_contacts_default": "Libreta de direcciones predeterminada",
"new_contacts_desc": "La libreta de direcciones para los contactos creados en otras apps de este dispositivo.",
"new_contacts_label": "Guardar contactos nuevos en",
"no_books": "Esta cuenta no tiene libretas de direcciones.",
"no_calendars": "Esta cuenta no tiene calendarios que sincronizar.",
"ok": "Aceptar",
"open_app_settings": "Abrir ajustes de la app",
"own_collections": "Personales",
"rationale_calendar": "Para mostrar tus calendarios en la app Calendario, Bulwark necesita acceso a los calendarios de este dispositivo. Solo modifica los calendarios de su propia cuenta.",
"rationale_contacts": "Para mostrar tus libretas de direcciones en la app Contactos, Bulwark necesita acceso a los contactos de este dispositivo. Solo modifica los contactos de su propia cuenta.",
"rationale_title_calendar": "Permitir acceso a los calendarios",
"rationale_title_contacts": "Permitir acceso a los contactos",
"read_only": "Solo lectura",
"reminder_owner_bulwark": "Bulwark",
"reminder_owner_device": "App Calendario",
"reminder_question_message": "Los recordatorios de los eventos sincronizados pueden venir de la app de calendario de este dispositivo o de Bulwark. Elige una opción para no recibirlos dos veces. Puedes cambiarlo más tarde.",
"reminder_question_title": "¿Quién debe avisarte?",
"reminders_desc": "Quién te avisa de los eventos sincronizados. El otro se queda en silencio para que no recibas dos avisos.",
"reminders_label": "Recordatorios",
"reminders_nobody": "Las notificaciones de eventos de Bulwark están desactivadas, así que nada te avisará de los eventos sincronizados.",
"remove": "Quitar",
"remove_from_device": "Quitar de este dispositivo",
"remove_message": "Los contactos y calendarios de la cuenta se quitarán de este dispositivo. Los cambios hechos aquí que no hayan llegado al servidor se perderán.",
"remove_title": "¿Quitar de este dispositivo?",
"review_deletions": "Revisar eliminaciones",
"shared_by": "Compartido por {name}",
"sign_in_again": "Volver a iniciar sesión",
"status_auth": "El servidor ya no acepta el inicio de sesión. Vuelve a iniciar sesión para seguir sincronizando.",
"status_cancelled": "La última sincronización se detuvo antes de tiempo. Continuará la próxima vez.",
"status_failed": "La última sincronización falló: {message}",
"status_failed_plain": "La última sincronización falló.",
"status_io": "No se pudo conectar con el servidor {when}. Android lo volverá a intentar.",
"status_item_errors": "{count, plural, one {No se pudo sincronizar # elemento.} other {No se pudieron sincronizar # elementos.}}",
"status_off": "Desactivada",
"status_paused": "En pausa en los ajustes de Android",
"status_permission_calendar": "Se desactivó el acceso a los calendarios, así que no se sincroniza nada.",
"status_permission_contacts": "Se desactivó el acceso a los contactos, así que no se sincroniza nada.",
"status_removed": "Se quitó en los ajustes de Android. Activa la sincronización para volver a añadir la cuenta.",
"status_safety_abort": "Detenida: el servidor no devolvió nada, aunque este dispositivo aún tiene elementos. Revisa el servidor y vuelve a sincronizar.",
"status_synced": "Sincronizado {when}",
"status_syncing": "Sincronizando…",
"status_too_many_deletions": "Se eliminaron muchos elementos en este dispositivo. No se eliminarán en el servidor hasta que lo confirmes.",
"status_unsupported_calendar": "El servidor no ofrece calendarios para esta cuenta.",
"status_unsupported_contacts": "El servidor no ofrece libretas de direcciones para esta cuenta.",
"status_waiting": "Esperando la primera sincronización",
"status_waiting_next": "Esperando la próxima sincronización",
"suspended_desc": "Sesión cerrada. Sus contactos y calendarios se quedan en este dispositivo, con los cambios hechos aquí, y se volverán a sincronizar cuando inicies sesión.",
"switch_label": "Sincronizar {account} con este dispositivo",
"sync_now": "Sincronizar ahora",
"turn_off_anyway": "Desactivar",
"turn_off_failed": "No se pudieron quitar los datos sincronizados de este dispositivo. La sincronización está en pausa; inténtalo de nuevo más tarde.",
"turn_off_failed_title": "No se pudo desactivar la sincronización",
"turn_off_pending": "{count, plural, one {# cambio hecho en este dispositivo aún no ha llegado al servidor. Se perderá si desactivas la sincronización ahora.} other {# cambios hechos en este dispositivo aún no han llegado al servidor. Se perderán si desactivas la sincronización ahora.}}",
"turn_off_title": "¿Desactivar de todos modos?",
"turn_off_unknown": "Bulwark no pudo comprobar si los cambios hechos en este dispositivo llegaron al servidor. Se perderán si desactivas la sincronización ahora.",
"turning_off": "Subiendo los cambios y quitando después los datos de este dispositivo…",
"turning_on": "Configurando…"
},
"downloads": {
"attachment_template": {
"description_mobile": "Plantilla usada al guardar o compartir un adjunto."
+145 -1
View File
@@ -93,6 +93,8 @@
"until_date": "تا {date}"
},
"settings": {
"device_sync_desc": "تقویم‌های خود را در برنامه تقویم و برنامه‌های دیگر این دستگاه نشان دهید. تغییرات در هر دو جهت همگام‌سازی می‌شوند.",
"device_sync_title": "همگام‌سازی با این دستگاه",
"show_week_numbers_mobile_desc": "نمایش شماره هفته‌ها در نمای ماه.",
"time_zone": "منطقه زمانی",
"time_zone_auto": "منطقه زمانی دستگاه",
@@ -249,6 +251,18 @@
"color_tag": "برچسب",
"remove_color": "حذف برچسب"
},
"device_sync": {
"auth_problem_text": "سرور دیگر ورود {account} را نمی‌پذیرد، بنابراین همگام‌سازی مخاطبین و تقویم‌های این حساب در این دستگاه متوقف شد. برای ادامه، دوباره وارد شوید. تغییراتی که در این دستگاه ایجاد شده‌اند حفظ می‌شوند.",
"auth_problem_title": "برای ادامه همگام‌سازی دوباره وارد شوید",
"problem_channel": "مشکلات همگام‌سازی",
"sign_out_anyway": "خروج",
"sign_out_pending_message": "{count, plural, one {# تغییری که در این دستگاه ایجاد شده به سرور نرسیده است. اگر اکنون خارج شوید، از دست می‌رود.} other {# تغییری که در این دستگاه ایجاد شده به سرور نرسیده است. اگر اکنون خارج شوید، از دست می‌روند.}}",
"sign_out_pending_title": "به هر حال خارج می‌شوید؟",
"sign_out_unknown_message": "ممکن است تغییراتی که در این دستگاه ایجاد شده‌اند به سرور نرسیده باشند. اگر اکنون خارج شوید، از دست می‌روند.",
"signed_out_text": "خروج از {account} انجام شد، بنابراین مخاطبین و تقویم‌های این حساب در این دستگاه دیگر همگام‌سازی نمی‌شوند. برای ادامه، دوباره وارد شوید. تغییراتی که در این دستگاه ایجاد شده‌اند حفظ می‌شوند.",
"signed_out_title": "برای ادامه همگام‌سازی وارد شوید",
"signing_out": "در حال حذف مخاطبین و تقویم‌های همگام‌سازی‌شده از این دستگاه…"
},
"email_composer": {
"attach_camera": "دوربین",
"attachment_reminder_body": "در پیام شما به «{keyword}» اشاره شده اما فایلی پیوست نشده است. با این حال ارسال شود؟",
@@ -460,12 +474,19 @@
"email_step_title": "نشانی ایمیل شما چیست؟",
"email_step_title_add": "نشانی دیگر چیست؟",
"email_title": "استفاده از نشانی ایمیل من",
"err_account_limit_detail": "برای افزودن حساب دیگر، یکی از حساب‌ها را در تنظیمات حذف کنید.",
"err_bad_detail": "ایمیل و رمز عبور خود را بررسی کنید. اگر حساب شما از ورود دو مرحله‌ای استفاده می‌کند، در ایمیل تحت وب یک رمز برنامه بسازید و آن را اینجا وارد کنید.",
"err_bad_title": "موفق نشد",
"err_cert_detail": "گواهی امنیتی سرور رد شد. اگر این سرور خودتان است، بررسی کنید گواهی معتبر باشد و منقضی نشده باشد.",
"err_cert_title": "تأیید {host} ممکن نشد",
"err_code_expired_detail": "کدهای ورود فقط چند دقیقه اعتبار دارند. در ایمیل تحت وب کد تازه‌ای بسازید و دوباره اسکن کنید.",
"err_code_expired_detail": "کدهای ورود دو دقیقه اعتبار دارند. در ایمیل تحت وب کد تازه‌ای نمایش دهید و دوباره اسکن کنید.",
"err_code_expired_or_used_detail": "در ایمیل تحت وب کد تازه‌ای نمایش دهید و دوباره اسکن کنید.",
"err_code_expired_or_used_title": "این کد منقضی شده یا قبلاً استفاده شده است",
"err_code_expired_title": "این کد منقضی شده است",
"err_code_invalid_detail": "در ایمیل تحت وب کد تازه‌ای نمایش دهید (تنظیمات ← امنیت ← اتصال موبایل) و آن را اسکن کنید.",
"err_code_invalid_title": "این کد معتبر نیست",
"err_code_used_detail": "هر کد فقط یک بار کار می‌کند. در ایمیل تحت وب کد تازه‌ای نمایش دهید و دوباره اسکن کنید.",
"err_code_used_title": "این کد قبلاً استفاده شده است",
"err_generic_detail": "مشکلی پیش آمد. دوباره امتحان کنید.",
"err_generic_title": "ورود ناموفق بود",
"err_interrupted_detail": "پاسخ با درخواستی که آغاز کردیم مطابقت نداشت. دوباره وارد شوید.",
@@ -474,6 +495,17 @@
"err_no_server_title": "سرور ایمیلی در {host} نیست",
"err_no_webmail_detail": "این سرور نه ایمیل تحت وب Bulwark دارد و نه ورود با OAuth. به‌جای آن از رمز عبور (یا رمز برنامه) استفاده کنید.",
"err_no_webmail_title": "صفحه ورودی در {host} نیست",
"err_pair_connect_detail": "روی رایانه‌تان کد تازه‌ای نمایش دهید و دوباره اسکن کنید.",
"err_pair_connect_title": "وارد شدید، اما اتصال به {host} ممکن نشد",
"err_pair_insecure_detail": "{host} می‌خواهد از اتصال رمزگذاری‌نشده استفاده کند.",
"err_pair_network_detail": "اتصال خود را بررسی کنید و مطمئن شوید تلفنتان به ایمیل تحت وب دسترسی دارد، سپس دوباره امتحان کنید.",
"err_pair_rate_detail": "یک دقیقه صبر کنید، سپس دوباره امتحان کنید.",
"err_pair_server_detail": "با یک کد تازه دوباره امتحان کنید. اگر باز هم ناموفق بود، با مدیر سیستم تماس بگیرید.",
"err_pair_server_title": "ایمیل تحت وب نتوانست ورود را کامل کند",
"err_pair_unsupported_detail": "{host} از کدهای ورود پشتیبانی نمی‌کند. شاید نیاز به به‌روزرسانی داشته باشد، یا پیوند به نشانی اشتباهی اشاره می‌کند.",
"err_pair_unsupported_title": "این ایمیل تحت وب نمی‌تواند دستگاه‌ها را متصل کند",
"err_pair_untrusted_detail": "{host} اطلاعات ورود را برای سروری فرستاده که برنامه نمی‌تواند آن را تأیید کند.",
"err_pair_untrusted_title": "به این ورود نمی‌توان اعتماد کرد",
"err_rate_detail": "سرور از ما خواست کمی صبر کنیم. کمی بعد دوباره امتحان کنید.",
"err_rate_detail_seconds": "سرور از ما خواست صبر کنیم. حدود {seconds} ثانیه دیگر دوباره امتحان کنید.",
"err_rate_title": "تلاش‌های بیش از حد",
@@ -487,6 +519,12 @@
"know_server": "نشانی سرورم را می‌دانم",
"known_server_desc": "این سرور را از قبل می‌شناسیم، پس نیازی به راه‌اندازی نیست",
"known_server_title": "حسابی دیگر در {host}",
"link_confirm_connect": "یک پیوند می‌خواهد در این صفحه وارد شوید. فقط اگر برای ایمیل‌تان از {host} استفاده می‌کنید ادامه دهید.",
"link_confirm_connect_add": "یک پیوند می‌خواهد با ورود در این صفحه حسابی اضافه کنید. فقط اگر برای ایمیل‌تان از {host} استفاده می‌کنید ادامه دهید.",
"link_confirm_connect_title": "صفحه ورود {host} باز شود؟",
"link_confirm_pair": "این پیوند شما را به حسابی از {host} وارد می‌کند. فقط اگر همین حالا روی رایانه‌تان کد ورود نمایش داده‌اید ادامه دهید.",
"link_confirm_pair_add": "این پیوند حسابی از {host} را اضافه می‌کند و برنامه را به آن حساب می‌برد. فقط اگر همین حالا روی رایانه‌تان کد ورود نمایش داده‌اید ادامه دهید.",
"link_confirm_title": "با پیوند وارد می‌شوید؟",
"looking_up": "در حال جستجوی سرور شما…",
"manual": "وارد کردن دستی مشخصات سرور",
"notice_bad_qr": "این کد، کد ورود Bulwark نیست",
@@ -505,6 +543,12 @@
"pairing_detail": "در حال جفت کردن این دستگاه با {host}…",
"password_subtitle": "رمز عبور شما فقط به این سرور فرستاده می‌شود و در انبار امن دستگاه ذخیره می‌شود.",
"password_title": "ورود به {host}",
"paste_button": "چسباندن",
"paste_clipboard_empty": "چیزی برای چسباندن نیست. ابتدا پیوند را در ایمیل تحت وب کپی کنید.",
"paste_hint": "در ایمیل تحت وب، تنظیمات ← امنیت ← اتصال موبایل را باز کنید، پیوند ورود را کپی کنید و اینجا بچسبانید.",
"paste_invalid": "این پیوند ورود Bulwark نیست",
"paste_label": "پیوند ورود",
"paste_title": "چسباندن پیوند ورود",
"provider_detail": "آن را در صفحه آن‌ها وارد می‌کنید. Bulwark فقط یک توکن ورود نگه می‌دارد که هر زمان بخواهید می‌توانید باطلش کنید.",
"provider_title": "رمز عبور شما نزد ارائه‌دهنده‌تان می‌ماند",
"qr_hint": "در تنظیمات ← امنیت ← اتصال موبایل یک کد نمایش داده می‌شود. دوربین را به سمت آن بگیرید.",
@@ -515,6 +559,7 @@
"server_hint": "همان نشانی‌ای که در مرورگر تایپ می‌کنید. https:// را خودمان اضافه می‌کنیم.",
"server_label": "نشانی سرور",
"server_not_found": "سروری برای {domain} پیدا نکردیم. اگر سرور خودتان را میزبانی می‌کنید، نشانی همان است که برای ایمیل تحت وب استفاده می‌کنید.",
"server_paste_hint": "به‌جای آن پیوند ورود دارید؟ اینجا بچسبانید.",
"server_scan_hint": "اگر مطمئن نیستید، به‌جای آن کد ورود را اسکن کنید. نشانی سرور در آن هست.",
"server_subtitle": "نشانی‌ای را که با آن به ایمیل تحت وب دسترسی دارید وارد کنید.",
"server_title": "نشانی سرور شما چیست؟",
@@ -598,11 +643,110 @@
"book_count": "{count, plural, one {# مخاطب} other {# مخاطب}}",
"default_book": "دفترچه آدرس پیش‌فرض",
"description_mobile": "تنظیمات نمایش و ابزارهای دفترچه آدرس.",
"device_sync_desc": "دفترچه‌های آدرس خود را در برنامه مخاطبین و برنامه‌های دیگر این دستگاه نشان دهید. تغییرات در هر دو جهت همگام‌سازی می‌شوند.",
"device_sync_title": "همگام‌سازی با این دستگاه",
"export_description_count": "{count, plural, one {خروجی گرفتن از # مخاطب در قالب یک فایل vCard.} other {خروجی گرفتن از # مخاطب در قالب یک فایل vCard.}}",
"export_empty": "مخاطبی برای خروجی گرفتن نیست",
"import_description_mobile": "وارد کردن مخاطبین از فایل vCard (.vcf) با تشخیص موارد تکراری.",
"manage_description_mobile": "دفترچه‌های آدرسی را که مخاطبین شما را سازمان‌دهی می‌کنند ایجاد، تغییر نام و حذف کنید."
},
"device_sync": {
"also_synced_by": "برای {accounts} هم همگام‌سازی می‌شود، به همین دلیل در این دستگاه دو بار نمایش داده می‌شود.",
"android_settings": "تنظیمات حساب Android",
"blocked_calendar": "Android دیگر برای دسترسی به تقویم‌ها درخواست نمی‌دهد. آن را در تنظیمات برنامه مجاز کنید، سپس همگام‌سازی را دوباره روشن کنید.",
"blocked_contacts": "Android دیگر برای دسترسی به مخاطبین درخواست نمی‌دهد. آن را در تنظیمات برنامه مجاز کنید، سپس همگام‌سازی را دوباره روشن کنید.",
"blocked_title": "دسترسی خاموش است",
"books_default": "دفترچه‌های آدرس خودتان همگام‌سازی می‌شوند؛ دفترچه‌های اشتراکی فقط وقتی آن‌ها را انتخاب کنید.",
"books_hint": "دفترچه‌های آدرس خودتان همگام‌سازی می‌شوند، مگر اینکه آن‌ها را خاموش کنید؛ دفترچه‌های اشتراکی فقط وقتی آن‌ها را روشن کنید.",
"books_label": "دفترچه‌های آدرس",
"calendars_default": "تقویم‌های خودتان همگام‌سازی می‌شوند؛ تقویم‌های اشتراکی فقط وقتی آن‌ها را انتخاب کنید.",
"calendars_hint": "تقویم‌های خودتان همگام‌سازی می‌شوند، مگر اینکه آن‌ها را خاموش کنید؛ تقویم‌های اشتراکی فقط وقتی آن‌ها را روشن کنید. فهرست‌های وظایف در Bulwark می‌مانند.",
"calendars_label": "تقویم‌ها",
"choose": "انتخاب",
"choose_books_title": "دفترچه‌های آدرس برای همگام‌سازی",
"choose_calendars_title": "تقویم‌ها برای همگام‌سازی",
"collections_count": "{selected} از {total} همگام‌سازی می‌شوند",
"continue": "ادامه",
"deletions_delete": "حذف در سرور",
"deletions_message": "موارد زیادی یکجا در این دستگاه حذف شدند، بنابراین در سرور حذف نشدند. آن‌ها را در سرور هم حذف کنید یا در این دستگاه بازگردانید.",
"deletions_restore": "بازگرداندن",
"deletions_title": "در سرور هم حذف شوند؟",
"denied_calendar": "بدون دسترسی به تقویم‌ها، Bulwark نمی‌تواند تقویم‌های شما را در این دستگاه قرار دهد.",
"denied_contacts": "بدون دسترسی به مخاطبین، Bulwark نمی‌تواند دفترچه‌های آدرس شما را در این دستگاه قرار دهد.",
"denied_title": "همگام‌سازی خاموش می‌ماند",
"failed_title": "روشن کردن همگام‌سازی ممکن نشد",
"grant_access": "اعطای دسترسی",
"interval_15m": "هر 15 دقیقه",
"interval_1h": "هر ساعت",
"interval_30m": "هر 30 دقیقه",
"interval_6h": "هر 6 ساعت",
"interval_desc": "اینکه Android هر چند وقت یک بار خودش همگام‌سازی کند. ویرایش‌ها در Bulwark و تغییراتی که با push اعلام می‌شوند زودتر همگام‌سازی می‌شوند.",
"interval_label": "فاصله همگام‌سازی",
"interval_manual": "بدون همگام‌سازی منظم",
"keep_syncing": "ادامه همگام‌سازی",
"list_error_auth": "سرور ورود را نپذیرفت.",
"list_error_network": "اتصال به سرور ممکن نشد.",
"list_error_server": "سرور نتوانست فهرست را ارائه کند.",
"list_error_signed_out": "در این دستگاه به این حساب وارد نشده‌اید.",
"master_off": "همگام‌سازی خودکار در این دستگاه خاموش است، بنابراین همگام‌سازی فقط وقتی انجام می‌شود که روی «همگام‌سازی اکنون» ضربه بزنید.",
"new_contacts_default": "دفترچه آدرس پیش‌فرض",
"new_contacts_desc": "دفترچه آدرس برای مخاطبینی که در برنامه‌های دیگر این دستگاه ایجاد می‌شوند.",
"new_contacts_label": "محل ذخیره مخاطبین جدید",
"no_books": "این حساب هیچ دفترچه آدرسی ندارد.",
"no_calendars": "این حساب هیچ تقویمی برای همگام‌سازی ندارد.",
"ok": "تأیید",
"open_app_settings": "باز کردن تنظیمات برنامه",
"own_collections": "متعلق به شما",
"rationale_calendar": "Bulwark برای نمایش تقویم‌های شما در برنامه تقویم به تقویم‌های این دستگاه دسترسی نیاز دارد. فقط تقویم‌های حساب خودش را تغییر می‌دهد.",
"rationale_contacts": "Bulwark برای نمایش دفترچه‌های آدرس شما در برنامه مخاطبین به مخاطبین این دستگاه دسترسی نیاز دارد. فقط مخاطبین حساب خودش را تغییر می‌دهد.",
"rationale_title_calendar": "اجازه دسترسی به تقویم‌ها",
"rationale_title_contacts": "اجازه دسترسی به مخاطبین",
"read_only": "فقط خواندنی",
"reminder_owner_bulwark": "Bulwark",
"reminder_owner_device": "برنامه تقویم",
"reminder_question_message": "یادآور رویدادهای همگام‌سازی‌شده می‌تواند از برنامه تقویم این دستگاه یا از Bulwark بیاید. یکی را انتخاب کنید تا دو بار یادآوری دریافت نکنید. بعداً می‌توانید آن را تغییر دهید.",
"reminder_question_title": "چه کسی به شما یادآوری کند؟",
"reminders_desc": "چه کسی رویدادهای همگام‌سازی‌شده را به شما یادآوری می‌کند. دیگری ساکت می‌ماند تا دو بار یادآوری دریافت نکنید.",
"reminders_label": "یادآورها",
"reminders_nobody": "اعلان‌های رویداد Bulwark خاموش است، بنابراین هیچ چیز رویدادهای همگام‌سازی‌شده را به شما یادآوری نمی‌کند.",
"remove": "حذف",
"remove_from_device": "حذف از این دستگاه",
"remove_message": "مخاطبین و تقویم‌های این حساب از این دستگاه حذف می‌شوند. تغییراتی که اینجا ایجاد شده و به سرور نرسیده‌اند از دست می‌روند.",
"remove_title": "از این دستگاه حذف شود؟",
"review_deletions": "بررسی حذف‌ها",
"shared_by": "به اشتراک گذاشته شده توسط {name}",
"sign_in_again": "ورود دوباره",
"status_auth": "سرور دیگر ورود را نمی‌پذیرد. برای ادامه همگام‌سازی دوباره وارد شوید.",
"status_cancelled": "آخرین همگام‌سازی زودتر متوقف شد. دفعه بعد ادامه می‌یابد.",
"status_failed": "آخرین همگام‌سازی ناموفق بود: {message}",
"status_failed_plain": "آخرین همگام‌سازی ناموفق بود.",
"status_io": "اتصال به سرور ممکن نشد ({when}). Android دوباره تلاش می‌کند.",
"status_item_errors": "{count, plural, one {# مورد همگام‌سازی نشد.} other {# مورد همگام‌سازی نشد.}}",
"status_off": "خاموش",
"status_paused": "در تنظیمات Android متوقف شده",
"status_permission_calendar": "دسترسی به تقویم‌ها خاموش شد، بنابراین چیزی همگام‌سازی نمی‌شود.",
"status_permission_contacts": "دسترسی به مخاطبین خاموش شد، بنابراین چیزی همگام‌سازی نمی‌شود.",
"status_removed": "در تنظیمات Android حذف شد. برای افزودن دوباره حساب، همگام‌سازی را روشن کنید.",
"status_safety_abort": "متوقف شد: سرور چیزی برنگرداند، در حالی که این دستگاه هنوز موارد دارد. سرور را بررسی کنید، سپس دوباره همگام‌سازی کنید.",
"status_synced": "آخرین همگام‌سازی: {when}",
"status_syncing": "در حال همگام‌سازی…",
"status_too_many_deletions": "موارد زیادی در این دستگاه حذف شدند. تا وقتی تأیید نکنید، در سرور حذف نمی‌شوند.",
"status_unsupported_calendar": "سرور هیچ تقویمی برای این حساب ارائه نمی‌کند.",
"status_unsupported_contacts": "سرور هیچ دفترچه آدرسی برای این حساب ارائه نمی‌کند.",
"status_waiting": "در انتظار نخستین همگام‌سازی",
"status_waiting_next": "در انتظار همگام‌سازی بعدی",
"suspended_desc": "خارج شده. مخاطبین و تقویم‌های این حساب همراه با تغییراتی که اینجا ایجاد شده در این دستگاه می‌مانند و پس از ورود دوباره همگام‌سازی می‌شوند.",
"switch_label": "همگام‌سازی {account} با این دستگاه",
"sync_now": "همگام‌سازی اکنون",
"turn_off_anyway": "خاموش کردن",
"turn_off_failed": "حذف داده‌های همگام‌سازی‌شده از این دستگاه ممکن نشد. همگام‌سازی متوقف شده است؛ بعداً دوباره تلاش کنید.",
"turn_off_failed_title": "خاموش کردن همگام‌سازی ممکن نشد",
"turn_off_pending": "{count, plural, one {# تغییری که در این دستگاه ایجاد شده هنوز به سرور نرسیده است. اگر اکنون همگام‌سازی را خاموش کنید، از دست می‌رود.} other {# تغییری که در این دستگاه ایجاد شده هنوز به سرور نرسیده است. اگر اکنون همگام‌سازی را خاموش کنید، از دست می‌روند.}}",
"turn_off_title": "به هر حال خاموش شود؟",
"turn_off_unknown": "Bulwark نتوانست بررسی کند که آیا تغییراتی که در این دستگاه ایجاد شده‌اند به سرور رسیده‌اند یا نه. اگر اکنون همگام‌سازی را خاموش کنید، از دست می‌روند.",
"turning_off": "در حال بارگذاری تغییرات و سپس حذف داده‌ها از این دستگاه…",
"turning_on": "در حال راه‌اندازی…"
},
"downloads": {
"attachment_template": {
"description_mobile": "الگویی که هنگام ذخیره یا اشتراک‌گذاری پیوست استفاده می‌شود."
+145 -1
View File
@@ -93,6 +93,8 @@
"until_date": "Jusqu'au {date}"
},
"settings": {
"device_sync_desc": "Affichez vos calendriers dans l'application Agenda et dans les autres applications de cet appareil. Les modifications sont synchronisées dans les deux sens.",
"device_sync_title": "Synchroniser avec cet appareil",
"show_week_numbers_mobile_desc": "Afficher les numéros de semaine dans la vue mensuelle.",
"time_zone": "Fuseau horaire",
"time_zone_auto": "Fuseau horaire de l'appareil",
@@ -249,6 +251,18 @@
"color_tag": "Étiquette",
"remove_color": "Retirer l'étiquette"
},
"device_sync": {
"auth_problem_text": "Le serveur n'accepte plus la connexion de {account} : ses contacts et calendriers ne sont donc plus synchronisés sur cet appareil. Reconnectez-vous pour reprendre la synchronisation. Les modifications effectuées sur cet appareil sont conservées.",
"auth_problem_title": "Reconnectez-vous pour continuer la synchronisation",
"problem_channel": "Problèmes de synchronisation",
"sign_out_anyway": "Se déconnecter",
"sign_out_pending_message": "{count, plural, one {# modification effectuée sur cet appareil n'a pas atteint le serveur. Elle sera perdue si vous vous déconnectez maintenant.} other {# modifications effectuées sur cet appareil n'ont pas atteint le serveur. Elles seront perdues si vous vous déconnectez maintenant.}}",
"sign_out_pending_title": "Se déconnecter quand même ?",
"sign_out_unknown_message": "Les modifications effectuées sur cet appareil n'ont peut-être pas atteint le serveur. Elles seront perdues si vous vous déconnectez maintenant.",
"signed_out_text": "{account} a été déconnecté : ses contacts et calendriers ne sont donc plus synchronisés sur cet appareil. Reconnectez-vous pour reprendre la synchronisation. Les modifications effectuées sur cet appareil sont conservées.",
"signed_out_title": "Connectez-vous pour continuer la synchronisation",
"signing_out": "Suppression des contacts et calendriers synchronisés de cet appareil…"
},
"email_composer": {
"attach_camera": "Appareil photo",
"attachment_reminder_body": "Votre message mentionne « {keyword} » mais aucun fichier n'est joint. Envoyer quand même ?",
@@ -460,12 +474,19 @@
"email_step_title": "Quelle est votre adresse e-mail ?",
"email_step_title_add": "Quelle est l'autre adresse ?",
"email_title": "Utiliser mon adresse e-mail",
"err_account_limit_detail": "Supprimez un compte dans les Paramètres pour en ajouter un autre.",
"err_bad_detail": "Vérifiez votre adresse e-mail et votre mot de passe. Si votre compte utilise l'authentification à deux facteurs, créez un mot de passe d'application dans le webmail et utilisez-le ici.",
"err_bad_title": "Cela n'a pas fonctionné",
"err_cert_detail": "Le certificat de sécurité du serveur a été refusé. S'il s'agit de votre propre serveur, vérifiez que le certificat est valide et n'a pas expiré.",
"err_cert_title": "Impossible de vérifier {host}",
"err_code_expired_detail": "Les codes de connexion ne sont valables que quelques minutes. Générez-en un nouveau dans le webmail et scannez-le à nouveau.",
"err_code_expired_detail": "Les codes de connexion sont valables deux minutes. Affichez-en un nouveau dans le webmail et scannez-le à nouveau.",
"err_code_expired_or_used_detail": "Affichez-en un nouveau dans le webmail et scannez-le à nouveau.",
"err_code_expired_or_used_title": "Ce code a expiré ou a déjà été utilisé",
"err_code_expired_title": "Ce code a expiré",
"err_code_invalid_detail": "Affichez un nouveau code dans le webmail (Paramètres → Sécurité → Associer l'application mobile) et scannez-le.",
"err_code_invalid_title": "Ce code n'est pas valide",
"err_code_used_detail": "Chaque code ne fonctionne qu'une fois. Affichez-en un nouveau dans le webmail et scannez-le à nouveau.",
"err_code_used_title": "Ce code a déjà été utilisé",
"err_generic_detail": "Un problème est survenu. Réessayez.",
"err_generic_title": "Échec de la connexion",
"err_interrupted_detail": "La réponse ne correspondait pas à la requête que nous avions lancée. Essayez de vous reconnecter.",
@@ -474,6 +495,17 @@
"err_no_server_title": "Aucun serveur de messagerie sur {host}",
"err_no_webmail_detail": "Ce serveur n'a ni webmail Bulwark ni connexion OAuth. Utilisez plutôt un mot de passe (ou un mot de passe d'application).",
"err_no_webmail_title": "Aucune page de connexion sur {host}",
"err_pair_connect_detail": "Affichez un nouveau code sur votre ordinateur et scannez-le à nouveau.",
"err_pair_connect_title": "Connecté, mais impossible de joindre {host}",
"err_pair_insecure_detail": "{host} veut utiliser une connexion non chiffrée.",
"err_pair_network_detail": "Vérifiez votre connexion et que votre téléphone peut accéder au webmail, puis réessayez.",
"err_pair_rate_detail": "Patientez une minute, puis réessayez.",
"err_pair_server_detail": "Réessayez avec un nouveau code. Si le problème persiste, contactez votre administrateur.",
"err_pair_server_title": "Le webmail n'a pas pu terminer la connexion",
"err_pair_unsupported_detail": "{host} ne prend pas en charge les codes de connexion. Il a peut-être besoin d'une mise à jour, ou le lien pointe vers la mauvaise adresse.",
"err_pair_unsupported_title": "Ce webmail ne peut pas associer d'appareils",
"err_pair_untrusted_detail": "{host} a envoyé des informations de connexion pour un serveur que l'application ne peut pas vérifier.",
"err_pair_untrusted_title": "Cette connexion n'est pas fiable",
"err_rate_detail": "Le serveur nous a demandé de patienter un instant. Réessayez dans un moment.",
"err_rate_detail_seconds": "Le serveur nous a demandé de patienter. Réessayez dans environ {seconds} secondes.",
"err_rate_title": "Trop de tentatives",
@@ -487,6 +519,12 @@
"know_server": "Je connais l'adresse de mon serveur",
"known_server_desc": "Nous connaissons déjà ce serveur, aucune configuration n'est donc nécessaire",
"known_server_title": "Un autre compte sur {host}",
"link_confirm_connect": "Un lien demande à vous connecter sur cette page. Ne continuez que si vous utilisez {host} pour vos e-mails.",
"link_confirm_connect_add": "Un lien demande à ajouter un compte en vous connectant sur cette page. Ne continuez que si vous utilisez {host} pour vos e-mails.",
"link_confirm_connect_title": "Ouvrir la page de connexion de {host} ?",
"link_confirm_pair": "Ce lien vous connecte à un compte de {host}. Ne continuez que si vous venez d'afficher un code de connexion sur votre ordinateur.",
"link_confirm_pair_add": "Ce lien ajoute un compte de {host} et fait basculer l'application sur ce compte. Ne continuez que si vous venez d'afficher un code de connexion sur votre ordinateur.",
"link_confirm_title": "Se connecter avec un lien ?",
"looking_up": "Recherche de votre serveur…",
"manual": "Saisir les informations du serveur manuellement",
"notice_bad_qr": "Ce code n'est pas un code de connexion Bulwark",
@@ -505,6 +543,12 @@
"pairing_detail": "Association de cet appareil avec {host}…",
"password_subtitle": "Votre mot de passe n'est envoyé qu'à ce serveur et est stocké dans le trousseau de l'appareil.",
"password_title": "Se connecter à {host}",
"paste_button": "Coller",
"paste_clipboard_empty": "Rien à coller. Copiez d'abord le lien dans le webmail.",
"paste_hint": "Dans le webmail, ouvrez Paramètres → Sécurité → Associer l'application mobile, copiez le lien de connexion et collez-le ici.",
"paste_invalid": "Ce n'est pas un lien de connexion Bulwark",
"paste_label": "Lien de connexion",
"paste_title": "Coller le lien de connexion",
"provider_detail": "Vous le saisirez sur leur page. Bulwark ne stocke qu'un jeton de connexion, que vous pouvez révoquer à tout moment.",
"provider_title": "Votre mot de passe reste chez votre fournisseur",
"qr_hint": "Paramètres → Sécurité → Associer l'application mobile affiche un code. Pointez l'appareil photo dessus.",
@@ -515,6 +559,7 @@
"server_hint": "La même adresse que celle saisie dans le navigateur. Nous ajoutons https:// pour vous.",
"server_label": "Adresse du serveur",
"server_not_found": "Aucun serveur trouvé pour {domain}. Si vous l'hébergez vous-même, l'adresse est celle que vous utilisez pour le webmail.",
"server_paste_hint": "Vous avez plutôt un lien de connexion ? Collez-le ici.",
"server_scan_hint": "En cas de doute, scannez plutôt un code de connexion. Il contient l'adresse du serveur.",
"server_subtitle": "Saisissez l'adresse que vous utilisez pour accéder à votre webmail.",
"server_title": "Quelle est l'adresse de votre serveur ?",
@@ -598,11 +643,110 @@
"book_count": "{count, plural, one {# contact} other {# contacts}}",
"default_book": "Carnet d'adresses par défaut",
"description_mobile": "Préférences d'affichage et outils pour les carnets d'adresses.",
"device_sync_desc": "Affichez vos carnets d'adresses dans l'application Contacts et dans les autres applications de cet appareil. Les modifications sont synchronisées dans les deux sens.",
"device_sync_title": "Synchroniser avec cet appareil",
"export_description_count": "{count, plural, one {Exporter # contact dans un seul fichier vCard.} other {Exporter # contacts dans un seul fichier vCard.}}",
"export_empty": "Aucun contact à exporter",
"import_description_mobile": "Importer des contacts depuis un fichier vCard (.vcf) avec détection des doublons.",
"manage_description_mobile": "Créez, renommez et supprimez les carnets d'adresses qui organisent vos contacts."
},
"device_sync": {
"also_synced_by": "Également synchronisé pour {accounts} : il apparaît donc deux fois sur cet appareil.",
"android_settings": "Paramètres du compte Android",
"blocked_calendar": "Android ne demande plus l'accès aux calendriers. Autorisez-le dans les paramètres de l'application, puis réactivez la synchronisation.",
"blocked_contacts": "Android ne demande plus l'accès aux contacts. Autorisez-le dans les paramètres de l'application, puis réactivez la synchronisation.",
"blocked_title": "L'accès est désactivé",
"books_default": "Vos propres carnets d'adresses sont synchronisés ; les carnets partagés, uniquement si vous les choisissez.",
"books_hint": "Vos propres carnets d'adresses sont synchronisés, sauf si vous les désactivez ; les carnets partagés, uniquement si vous les activez.",
"books_label": "Carnets d'adresses",
"calendars_default": "Vos propres calendriers sont synchronisés ; les calendriers partagés, uniquement si vous les choisissez.",
"calendars_hint": "Vos propres calendriers sont synchronisés, sauf si vous les désactivez ; les calendriers partagés, uniquement si vous les activez. Les listes de tâches restent dans Bulwark.",
"calendars_label": "Calendriers",
"choose": "Choisir",
"choose_books_title": "Carnets d'adresses à synchroniser",
"choose_calendars_title": "Calendriers à synchroniser",
"collections_count": "Synchronisation : {selected} sur {total}",
"continue": "Continuer",
"deletions_delete": "Supprimer sur le serveur",
"deletions_message": "De nombreux éléments ont été supprimés d'un coup sur cet appareil ; ils n'ont donc pas été supprimés sur le serveur. Supprimez-les aussi sur le serveur ou restaurez-les sur cet appareil.",
"deletions_restore": "Restaurer",
"deletions_title": "Les supprimer aussi sur le serveur ?",
"denied_calendar": "Sans accès aux calendriers, Bulwark ne peut pas placer vos calendriers sur cet appareil.",
"denied_contacts": "Sans accès aux contacts, Bulwark ne peut pas placer vos carnets d'adresses sur cet appareil.",
"denied_title": "La synchronisation reste désactivée",
"failed_title": "Impossible d'activer la synchronisation",
"grant_access": "Autoriser l'accès",
"interval_15m": "Toutes les 15 minutes",
"interval_1h": "Toutes les heures",
"interval_30m": "Toutes les 30 minutes",
"interval_6h": "Toutes les 6 heures",
"interval_desc": "Fréquence à laquelle Android synchronise de lui-même. Les modifications faites dans Bulwark et celles signalées par push sont synchronisées plus tôt.",
"interval_label": "Fréquence de synchronisation",
"interval_manual": "Pas de synchronisation régulière",
"keep_syncing": "Continuer à synchroniser",
"list_error_auth": "Le serveur n'a pas accepté la connexion.",
"list_error_network": "Impossible de joindre le serveur.",
"list_error_server": "Le serveur n'a pas pu en fournir la liste.",
"list_error_signed_out": "Ce compte n'est pas connecté sur cet appareil.",
"master_off": "La synchronisation automatique est désactivée sur cet appareil : la synchronisation n'a lieu que lorsque vous appuyez sur « Synchroniser maintenant ».",
"new_contacts_default": "Carnet d'adresses par défaut",
"new_contacts_desc": "Le carnet d'adresses des contacts créés dans d'autres applications de cet appareil.",
"new_contacts_label": "Enregistrer les nouveaux contacts dans",
"no_books": "Ce compte n'a aucun carnet d'adresses.",
"no_calendars": "Ce compte n'a aucun calendrier à synchroniser.",
"ok": "OK",
"open_app_settings": "Ouvrir les paramètres",
"own_collections": "Les vôtres",
"rationale_calendar": "Pour afficher vos calendriers dans l'application Agenda, Bulwark doit accéder aux calendriers de cet appareil. Il ne modifie que les calendriers de son propre compte.",
"rationale_contacts": "Pour afficher vos carnets d'adresses dans l'application Contacts, Bulwark doit accéder aux contacts de cet appareil. Il ne modifie que les contacts de son propre compte.",
"rationale_title_calendar": "Autoriser l'accès aux calendriers",
"rationale_title_contacts": "Autoriser l'accès aux contacts",
"read_only": "Lecture seule",
"reminder_owner_bulwark": "Bulwark",
"reminder_owner_device": "Application Agenda",
"reminder_question_message": "Les événements synchronisés peuvent vous être rappelés par l'application d'agenda de cet appareil ou par Bulwark. Choisissez l'un des deux pour ne pas recevoir deux rappels. Vous pourrez modifier ce choix plus tard.",
"reminder_question_title": "Qui doit vous envoyer les rappels ?",
"reminders_desc": "Qui vous rappelle les événements synchronisés. L'autre reste silencieux pour que vous ne receviez pas deux rappels.",
"reminders_label": "Rappels",
"reminders_nobody": "Les notifications d'événements de Bulwark sont désactivées : rien ne vous rappelle donc les événements synchronisés.",
"remove": "Supprimer",
"remove_from_device": "Supprimer de cet appareil",
"remove_message": "Les contacts et calendriers du compte sont supprimés de cet appareil. Les modifications faites ici qui n'ont pas atteint le serveur sont perdues.",
"remove_title": "Supprimer de cet appareil ?",
"review_deletions": "Vérifier les suppressions",
"shared_by": "Partagé par {name}",
"sign_in_again": "Se reconnecter",
"status_auth": "Le serveur n'accepte plus la connexion. Reconnectez-vous pour continuer la synchronisation.",
"status_cancelled": "La dernière synchronisation s'est arrêtée avant la fin. Elle reprendra la prochaine fois.",
"status_failed": "Échec de la dernière synchronisation : {message}",
"status_failed_plain": "Échec de la dernière synchronisation.",
"status_io": "Le serveur était injoignable {when}. Android va réessayer.",
"status_item_errors": "{count, plural, one {# élément n'a pas pu être synchronisé.} other {# éléments n'ont pas pu être synchronisés.}}",
"status_off": "Désactivée",
"status_paused": "En pause dans les paramètres Android",
"status_permission_calendar": "L'accès aux calendriers a été désactivé : rien n'est synchronisé.",
"status_permission_contacts": "L'accès aux contacts a été désactivé : rien n'est synchronisé.",
"status_removed": "Supprimé dans les paramètres Android. Activez la synchronisation pour ajouter à nouveau le compte.",
"status_safety_abort": "Arrêtée : le serveur n'a rien renvoyé alors que cet appareil contient encore des éléments. Vérifiez le serveur, puis relancez la synchronisation.",
"status_synced": "Synchronisé {when}",
"status_syncing": "Synchronisation…",
"status_too_many_deletions": "De nombreux éléments ont été supprimés sur cet appareil. Ils ne seront pas supprimés sur le serveur tant que vous n'aurez pas confirmé.",
"status_unsupported_calendar": "Le serveur ne propose aucun calendrier pour ce compte.",
"status_unsupported_contacts": "Le serveur ne propose aucun carnet d'adresses pour ce compte.",
"status_waiting": "En attente de la première synchronisation",
"status_waiting_next": "En attente de la prochaine synchronisation",
"suspended_desc": "Déconnecté. Ses contacts et calendriers restent sur cet appareil, avec les modifications faites ici, et seront de nouveau synchronisés dès que vous vous connecterez.",
"switch_label": "Synchroniser {account} avec cet appareil",
"sync_now": "Synchroniser maintenant",
"turn_off_anyway": "Désactiver",
"turn_off_failed": "Les données synchronisées n'ont pas pu être supprimées de cet appareil. La synchronisation est en pause ; réessayez plus tard.",
"turn_off_failed_title": "Impossible de désactiver la synchronisation",
"turn_off_pending": "{count, plural, one {# modification effectuée sur cet appareil n'a pas encore atteint le serveur. Elle sera perdue si vous désactivez la synchronisation maintenant.} other {# modifications effectuées sur cet appareil n'ont pas encore atteint le serveur. Elles seront perdues si vous désactivez la synchronisation maintenant.}}",
"turn_off_title": "Désactiver quand même ?",
"turn_off_unknown": "Bulwark n'a pas pu vérifier si les modifications effectuées sur cet appareil ont atteint le serveur. Elles seront perdues si vous désactivez la synchronisation maintenant.",
"turning_off": "Envoi des modifications, puis suppression des données de cet appareil…",
"turning_on": "Configuration…"
},
"downloads": {
"attachment_template": {
"description_mobile": "Modèle utilisé pour enregistrer ou partager une pièce jointe."
+145 -1
View File
@@ -93,6 +93,8 @@
"until_date": "עד {date}"
},
"settings": {
"device_sync_desc": "הצג את לוחות השנה שלך באפליקציית היומן ובאפליקציות אחרות במכשיר הזה. השינויים מסתנכרנים בשני הכיוונים.",
"device_sync_title": "סנכרון למכשיר הזה",
"show_week_numbers_mobile_desc": "הצג מספרי שבועות בתצוגת החודש.",
"time_zone": "אזור זמן",
"time_zone_auto": "אזור הזמן של המכשיר",
@@ -249,6 +251,18 @@
"color_tag": "תג",
"remove_color": "הסר תג"
},
"device_sync": {
"auth_problem_text": "השרת כבר לא מקבל את ההתחברות של {account}, ולכן אנשי הקשר ולוחות השנה שלו במכשיר הזה הפסיקו להסתנכרן. התחבר מחדש כדי לחדש את הסנכרון. שינויים שבוצעו במכשיר הזה נשמרים.",
"auth_problem_title": "התחבר מחדש כדי להמשיך לסנכרן",
"problem_channel": "בעיות סנכרון",
"sign_out_anyway": "התנתק",
"sign_out_pending_message": "{count, plural, one {שינוי אחד שבוצע במכשיר הזה לא הגיע לשרת. הוא יאבד אם תתנתק עכשיו.} two {שני שינויים שבוצעו במכשיר הזה לא הגיעו לשרת. הם יאבדו אם תתנתק עכשיו.} other {# שינויים שבוצעו במכשיר הזה לא הגיעו לשרת. הם יאבדו אם תתנתק עכשיו.}}",
"sign_out_pending_title": "להתנתק בכל זאת?",
"sign_out_unknown_message": "ייתכן ששינויים שבוצעו במכשיר הזה לא הגיעו לשרת. הם יאבדו אם תתנתק עכשיו.",
"signed_out_text": "בוצעה התנתקות מ-{account}, ולכן אנשי הקשר ולוחות השנה שלו במכשיר הזה כבר לא מסתנכרנים. התחבר מחדש כדי לחדש את הסנכרון. שינויים שבוצעו במכשיר הזה נשמרים.",
"signed_out_title": "התחבר כדי להמשיך לסנכרן",
"signing_out": "מסיר מהמכשיר הזה את אנשי הקשר ולוחות השנה המסונכרנים…"
},
"email_composer": {
"attach_camera": "מצלמה",
"attachment_reminder_body": "ההודעה שלך מזכירה \"{keyword}\" אבל לא צורף קובץ. לשלוח בכל זאת?",
@@ -460,12 +474,19 @@
"email_step_title": "מה כתובת האימייל שלך?",
"email_step_title_add": "מה הכתובת האחרת?",
"email_title": "השתמש בכתובת האימייל שלי",
"err_account_limit_detail": "הסר חשבון בהגדרות כדי להוסיף חשבון נוסף.",
"err_bad_detail": "בדוק את האימייל והסיסמה. אם החשבון שלך משתמש באימות דו-שלבי, צור סיסמת אפליקציה בדואר האינטרנט והשתמש בה כאן.",
"err_bad_title": "זה לא עבד",
"err_cert_detail": "תעודת האבטחה של השרת נדחתה. אם זה השרת שלך, ודא שהתעודה תקפה ושתוקפה לא פג.",
"err_cert_title": "לא ניתן לאמת את {host}",
"err_code_expired_detail": "קודי התחברות תקפים לכמה דקות בלבד. צור קוד חדש בדואר האינטרנט וסרוק שוב.",
"err_code_expired_detail": "קודי התחברות תקפים לשתי דקות. הצג קוד חדש בדואר האינטרנט וסרוק שוב.",
"err_code_expired_or_used_detail": "הצג קוד חדש בדואר האינטרנט וסרוק שוב.",
"err_code_expired_or_used_title": "תוקף הקוד פג או שהוא כבר נוצל",
"err_code_expired_title": "תוקף הקוד פג",
"err_code_invalid_detail": "הצג קוד חדש בדואר האינטרנט (הגדרות ← אבטחה ← הקשר יישום נייד) וסרוק אותו.",
"err_code_invalid_title": "הקוד הזה אינו תקף",
"err_code_used_detail": "כל קוד עובד פעם אחת בלבד. הצג קוד חדש בדואר האינטרנט וסרוק שוב.",
"err_code_used_title": "הקוד הזה כבר נוצל",
"err_generic_detail": "משהו השתבש. נסה שוב.",
"err_generic_title": "ההתחברות נכשלה",
"err_interrupted_detail": "התגובה לא תאמה לבקשה שהתחלנו. נסה להתחבר שוב.",
@@ -474,6 +495,17 @@
"err_no_server_title": "לא נמצא שרת דואר: {host}",
"err_no_webmail_detail": "בשרת זה אין דואר אינטרנט של Bulwark ואין התחברות OAuth. השתמש במקום זאת בסיסמה (או בסיסמת אפליקציה).",
"err_no_webmail_title": "אין דף התחברות: {host}",
"err_pair_connect_detail": "הצג קוד חדש במחשב וסרוק שוב.",
"err_pair_connect_title": "ההתחברות הצליחה, אך אין חיבור אל {host}",
"err_pair_insecure_detail": "{host} רוצה להשתמש בחיבור לא מוצפן.",
"err_pair_network_detail": "בדוק את החיבור ושהטלפון יכול להגיע לדואר האינטרנט, ונסה שוב.",
"err_pair_rate_detail": "המתן דקה ונסה שוב.",
"err_pair_server_detail": "נסה שוב עם קוד חדש. אם זה ממשיך להיכשל, פנה למנהל המערכת.",
"err_pair_server_title": "דואר האינטרנט לא הצליח להשלים את ההתחברות",
"err_pair_unsupported_detail": "{host} לא תומך בקודי התחברות. ייתכן שנדרש עדכון, או שהקישור מפנה לכתובת שגויה.",
"err_pair_unsupported_title": "דואר האינטרנט הזה לא יכול לקשר מכשירים",
"err_pair_untrusted_detail": "{host} שלח פרטי התחברות לשרת שהיישום לא יכול לאמת.",
"err_pair_untrusted_title": "אי אפשר לסמוך על ההתחברות הזו",
"err_rate_detail": "השרת ביקש שנמתין רגע. נסה שוב בקרוב.",
"err_rate_detail_seconds": "השרת ביקש שנמתין. נסה שוב בעוד כ-{seconds} שניות.",
"err_rate_title": "יותר מדי ניסיונות",
@@ -487,6 +519,12 @@
"know_server": "אני יודע את כתובת השרת שלי",
"known_server_desc": "השרת הזה כבר מוכר לנו, כך שאין צורך בהגדרה",
"known_server_title": "חשבון נוסף ב-{host}",
"link_confirm_connect": "קישור מבקש להתחבר בדף הזה. המשך רק אם אתה משתמש ב-{host} לדואר שלך.",
"link_confirm_connect_add": "קישור מבקש להוסיף חשבון באמצעות התחברות בדף הזה. המשך רק אם אתה משתמש ב-{host} לדואר שלך.",
"link_confirm_connect_title": "לפתוח את דף ההתחברות של {host}?",
"link_confirm_pair": "הקישור הזה מחבר לחשבון מ-{host}. המשך רק אם הצגת עכשיו קוד התחברות במחשב.",
"link_confirm_pair_add": "הקישור הזה מוסיף חשבון מ-{host} ומעביר אליו את היישום. המשך רק אם הצגת עכשיו קוד התחברות במחשב.",
"link_confirm_title": "להתחבר עם קישור?",
"looking_up": "מחפש את השרת שלך…",
"manual": "הזן את פרטי השרת ידנית",
"notice_bad_qr": "הקוד הזה אינו קוד התחברות של Bulwark",
@@ -505,6 +543,12 @@
"pairing_detail": "מצמיד את המכשיר הזה אל {host}…",
"password_subtitle": "הסיסמה שלך נשלחת לשרת הזה בלבד ונשמרת במחזיק המפתחות של המכשיר.",
"password_title": "התחברות אל {host}",
"paste_button": "הדבק",
"paste_clipboard_empty": "אין מה להדביק. העתק קודם את הקישור בדואר האינטרנט.",
"paste_hint": "בדואר האינטרנט, פתח את הגדרות ← אבטחה ← הקשר יישום נייד, העתק את קישור ההתחברות והדבק אותו כאן.",
"paste_invalid": "זה לא קישור התחברות של Bulwark",
"paste_label": "קישור התחברות",
"paste_title": "הדבק קישור התחברות",
"provider_detail": "תקליד אותה בדף שלהם. Bulwark שומרת רק אסימון התחברות, שאפשר לבטל בכל עת.",
"provider_title": "הסיסמה שלך נשארת אצל הספק",
"qr_hint": "בהגדרות ← אבטחה ← הקשר יישום נייד מוצג קוד. כוון אליו את המצלמה.",
@@ -515,6 +559,7 @@
"server_hint": "אותה כתובת שאתה מקליד בדפדפן. נוסיף בשבילך את https://.",
"server_label": "כתובת השרת",
"server_not_found": "לא מצאנו שרת עבור {domain}. אם אתה מארח בעצמך, הכתובת היא זו שבה אתה משתמש לדואר האינטרנט.",
"server_paste_hint": "יש לך קישור התחברות במקום זאת? הדבק אותו כאן.",
"server_scan_hint": "אם אינך בטוח, סרוק במקום זאת קוד התחברות. הוא כולל את כתובת השרת.",
"server_subtitle": "הזן את הכתובת שבה אתה ניגש לדואר האינטרנט.",
"server_title": "מה כתובת השרת שלך?",
@@ -598,11 +643,110 @@
"book_count": "{count, plural, one {איש קשר אחד} two {שני אנשי קשר} other {# אנשי קשר}}",
"default_book": "ספר כתובות ברירת מחדל",
"description_mobile": "העדפות תצוגה וכלים לספרי כתובות.",
"device_sync_desc": "הצג את ספרי הכתובות שלך באפליקציית אנשי הקשר ובאפליקציות אחרות במכשיר הזה. השינויים מסתנכרנים בשני הכיוונים.",
"device_sync_title": "סנכרון למכשיר הזה",
"export_description_count": "{count, plural, one {ייצוא איש קשר אחד כקובץ vCard יחיד.} two {ייצוא שני אנשי קשר כקובץ vCard יחיד.} other {ייצוא # אנשי קשר כקובץ vCard יחיד.}}",
"export_empty": "אין אנשי קשר לייצוא",
"import_description_mobile": "ייבוא אנשי קשר מקובץ vCard (.vcf) עם זיהוי כפילויות.",
"manage_description_mobile": "צור, שנה שם והסר את ספרי הכתובות שמארגנים את אנשי הקשר שלך."
},
"device_sync": {
"also_synced_by": "מסתנכרן גם עבור {accounts}, ולכן מופיע פעמיים במכשיר הזה.",
"android_settings": "הגדרות החשבון ב-Android",
"blocked_calendar": "Android כבר לא מבקש גישה ללוחות השנה. אפשר את הגישה בהגדרות האפליקציה ואז הפעל שוב את הסנכרון.",
"blocked_contacts": "Android כבר לא מבקש גישה לאנשי הקשר. אפשר את הגישה בהגדרות האפליקציה ואז הפעל שוב את הסנכרון.",
"blocked_title": "הגישה כבויה",
"books_default": "ספרי הכתובות שלך מסתנכרנים; ספרים משותפים רק אם תבחר בהם.",
"books_hint": "ספרי הכתובות שלך מסתנכרנים אלא אם תכבה אותם; ספרים משותפים רק אם תפעיל אותם.",
"books_label": "ספרי כתובות",
"calendars_default": "לוחות השנה שלך מסתנכרנים; לוחות משותפים רק אם תבחר בהם.",
"calendars_hint": "לוחות השנה שלך מסתנכרנים אלא אם תכבה אותם; לוחות משותפים רק אם תפעיל אותם. רשימות המשימות נשארות ב-Bulwark.",
"calendars_label": "לוחות שנה",
"choose": "בחירה",
"choose_books_title": "ספרי כתובות לסנכרון",
"choose_calendars_title": "לוחות שנה לסנכרון",
"collections_count": "מסתנכרנים: {selected} מתוך {total}",
"continue": "המשך",
"deletions_delete": "מחיקה בשרת",
"deletions_message": "פריטים רבים נמחקו בבת אחת במכשיר הזה, ולכן הם לא נמחקו בשרת. מחק אותם גם שם או החזר אותם למכשיר הזה.",
"deletions_restore": "החזרה",
"deletions_title": "למחוק אותם גם בשרת?",
"denied_calendar": "ללא גישה ללוחות השנה, Bulwark לא יכולה להעביר את לוחות השנה שלך למכשיר הזה.",
"denied_contacts": "ללא גישה לאנשי הקשר, Bulwark לא יכולה להעביר את ספרי הכתובות שלך למכשיר הזה.",
"denied_title": "הסנכרון נשאר כבוי",
"failed_title": "לא ניתן היה להפעיל את הסנכרון",
"grant_access": "מתן גישה",
"interval_15m": "כל 15 דקות",
"interval_1h": "כל שעה",
"interval_30m": "כל 30 דקות",
"interval_6h": "כל 6 שעות",
"interval_desc": "באיזו תדירות Android מסנכרן מעצמו. עריכות ב-Bulwark ושינויים שמתקבלים ב-Push מסתנכרנים מוקדם יותר.",
"interval_label": "תדירות סנכרון",
"interval_manual": "ללא סנכרון קבוע",
"keep_syncing": "המשך לסנכרן",
"list_error_auth": "השרת לא קיבל את ההתחברות.",
"list_error_network": "לא ניתן היה להתחבר לשרת.",
"list_error_server": "השרת לא הצליח להציג את הרשימה.",
"list_error_signed_out": "החשבון הזה לא מחובר במכשיר הזה.",
"master_off": "הסנכרון האוטומטי כבוי במכשיר הזה, ולכן הסנכרון מתבצע רק כשאתה מקיש על \"סנכרן עכשיו\".",
"new_contacts_default": "ספר כתובות ברירת מחדל",
"new_contacts_desc": "ספר הכתובות לאנשי קשר שנוצרים באפליקציות אחרות במכשיר הזה.",
"new_contacts_label": "יעד לאנשי קשר חדשים",
"no_books": "לחשבון הזה אין ספרי כתובות.",
"no_calendars": "לחשבון הזה אין לוחות שנה לסנכרון.",
"ok": "אישור",
"open_app_settings": "פתיחת הגדרות האפליקציה",
"own_collections": "שלך",
"rationale_calendar": "כדי להציג את לוחות השנה שלך באפליקציית היומן, Bulwark צריכה גישה ללוחות השנה במכשיר הזה. היא משנה רק את לוחות השנה של החשבון שלה.",
"rationale_contacts": "כדי להציג את ספרי הכתובות שלך באפליקציית אנשי הקשר, Bulwark צריכה גישה לאנשי הקשר במכשיר הזה. היא משנה רק את אנשי הקשר של החשבון שלה.",
"rationale_title_calendar": "מתן גישה ללוחות השנה",
"rationale_title_contacts": "מתן גישה לאנשי הקשר",
"read_only": "קריאה בלבד",
"reminder_owner_bulwark": "Bulwark",
"reminder_owner_device": "אפליקציית היומן",
"reminder_question_message": "תזכורות לאירועים מסונכרנים יכולות להגיע מאפליקציית היומן במכשיר הזה או מ-Bulwark. בחר אחת מהן כדי שלא תקבל תזכורות כפולות. אפשר לשנות זאת מאוחר יותר.",
"reminder_question_title": "מי ישלח לך תזכורות?",
"reminders_desc": "מי מזכיר לך על אירועים מסונכרנים. השני שותק, כך שלא תקבל תזכורות כפולות.",
"reminders_label": "תזכורות",
"reminders_nobody": "התראות האירועים של Bulwark כבויות, ולכן שום דבר לא יזכיר לך על אירועים מסונכרנים.",
"remove": "הסרה",
"remove_from_device": "הסרה מהמכשיר הזה",
"remove_message": "אנשי הקשר ולוחות השנה של החשבון יוסרו מהמכשיר הזה. שינויים שבוצעו כאן ועדיין לא הגיעו לשרת יאבדו.",
"remove_title": "להסיר מהמכשיר הזה?",
"review_deletions": "בדיקת המחיקות",
"shared_by": "משותף על ידי {name}",
"sign_in_again": "התחברות מחדש",
"status_auth": "השרת כבר לא מקבל את ההתחברות. התחבר מחדש כדי להמשיך לסנכרן.",
"status_cancelled": "הסנכרון האחרון נעצר מוקדם. הוא ימשיך בפעם הבאה.",
"status_failed": "הסנכרון האחרון נכשל: {message}",
"status_failed_plain": "הסנכרון האחרון נכשל.",
"status_io": "לא ניתן היה להתחבר לשרת {when}. Android ינסה שוב.",
"status_item_errors": "{count, plural, one {לא ניתן היה לסנכרן פריט אחד.} two {לא ניתן היה לסנכרן שני פריטים.} other {לא ניתן היה לסנכרן # פריטים.}}",
"status_off": "כבוי",
"status_paused": "מושהה בהגדרות Android",
"status_permission_calendar": "הגישה ללוחות השנה כובתה, ולכן שום דבר לא מסתנכרן.",
"status_permission_contacts": "הגישה לאנשי הקשר כובתה, ולכן שום דבר לא מסתנכרן.",
"status_removed": "הוסר בהגדרות Android. הפעל את הסנכרון כדי להוסיף את החשבון מחדש.",
"status_safety_abort": "נעצר: השרת לא החזיר דבר, אף שבמכשיר הזה עדיין יש פריטים. בדוק את השרת ואז סנכרן שוב.",
"status_synced": "סונכרן {when}",
"status_syncing": "מסנכרן…",
"status_too_many_deletions": "פריטים רבים נמחקו במכשיר הזה. הם לא יימחקו בשרת עד שתאשר.",
"status_unsupported_calendar": "השרת לא מציע לוחות שנה לחשבון הזה.",
"status_unsupported_contacts": "השרת לא מציע ספרי כתובות לחשבון הזה.",
"status_waiting": "ממתין לסנכרון הראשון",
"status_waiting_next": "ממתין לסנכרון הבא",
"suspended_desc": "מנותק. אנשי הקשר ולוחות השנה שלו נשארים במכשיר הזה, עם השינויים שבוצעו כאן, ויסתנכרנו שוב אחרי שתתחבר.",
"switch_label": "סנכרון {account} למכשיר הזה",
"sync_now": "סנכרן עכשיו",
"turn_off_anyway": "כיבוי",
"turn_off_failed": "לא ניתן היה להסיר את הנתונים המסונכרנים מהמכשיר הזה. הסנכרון מושהה; נסה שוב מאוחר יותר.",
"turn_off_failed_title": "לא ניתן היה לכבות את הסנכרון",
"turn_off_pending": "{count, plural, one {שינוי אחד שבוצע במכשיר הזה עדיין לא הגיע לשרת. הוא יאבד אם תכבה את הסנכרון עכשיו.} two {שני שינויים שבוצעו במכשיר הזה עדיין לא הגיעו לשרת. הם יאבדו אם תכבה את הסנכרון עכשיו.} other {# שינויים שבוצעו במכשיר הזה עדיין לא הגיעו לשרת. הם יאבדו אם תכבה את הסנכרון עכשיו.}}",
"turn_off_title": "לכבות בכל זאת?",
"turn_off_unknown": "Bulwark לא הצליחה לבדוק אם השינויים שבוצעו במכשיר הזה הגיעו לשרת. הם יאבדו אם תכבה את הסנכרון עכשיו.",
"turning_off": "מעלה שינויים ואז מסיר את הנתונים מהמכשיר הזה…",
"turning_on": "מגדיר…"
},
"downloads": {
"attachment_template": {
"description_mobile": "התבנית שמשמשת בעת שמירה או שיתוף של קובץ מצורף."
+145 -1
View File
@@ -93,6 +93,8 @@
"until_date": "Eddig: {date}"
},
"settings": {
"device_sync_desc": "A naptáraid megjelennek a Naptár alkalmazásban és az eszköz más alkalmazásaiban. A módosítások mindkét irányban szinkronizálódnak.",
"device_sync_title": "Szinkronizálás ezzel az eszközzel",
"show_week_numbers_mobile_desc": "Hétszámok megjelenítése a havi nézetben.",
"time_zone": "Időzóna",
"time_zone_auto": "Eszköz időzónája",
@@ -249,6 +251,18 @@
"color_tag": "Címke",
"remove_color": "Címke eltávolítása"
},
"device_sync": {
"auth_problem_text": "A szerver már nem fogadja el ennek a fióknak a bejelentkezését: {account}. Emiatt a fiók névjegyei és naptárai ezen az eszközön már nem szinkronizálódnak. A folytatáshoz jelentkezz be újra. Az ezen az eszközön végzett módosítások megmaradnak.",
"auth_problem_title": "Jelentkezz be újra a szinkronizálás folytatásához",
"problem_channel": "Szinkronizálási problémák",
"sign_out_anyway": "Kijelentkezés",
"sign_out_pending_message": "{count, plural, one {Ezen az eszközön # módosítás nem jutott el a szerverre. Elvész, ha most kijelentkezel.} other {Ezen az eszközön # módosítás nem jutott el a szerverre. Elvesznek, ha most kijelentkezel.}}",
"sign_out_pending_title": "Mindenképp kijelentkezel?",
"sign_out_unknown_message": "Előfordulhat, hogy az ezen az eszközön végzett módosítások nem jutottak el a szerverre. Elvesznek, ha most kijelentkezel.",
"signed_out_text": "Ez a fiók már nincs bejelentkezve: {account}. Emiatt a fiók névjegyei és naptárai ezen az eszközön már nem szinkronizálódnak. A folytatáshoz jelentkezz be újra. Az ezen az eszközön végzett módosítások megmaradnak.",
"signed_out_title": "Jelentkezz be a szinkronizálás folytatásához",
"signing_out": "A szinkronizált névjegyek és naptárak eltávolítása erről az eszközről…"
},
"email_composer": {
"attach_camera": "Kamera",
"attachment_reminder_body": "Az üzeneted említi a(z) „{keyword}” kifejezést, de nincs fájl csatolva. Elküldöd így is?",
@@ -460,12 +474,19 @@
"email_step_title": "Mi az e-mail-címed?",
"email_step_title_add": "Mi a másik cím?",
"email_title": "E-mail-címem használata",
"err_account_limit_detail": "Másik fiók hozzáadásához távolíts el egyet a Beállításokban.",
"err_bad_detail": "Ellenőrizd az e-mail-címet és a jelszót. Ha a fiókod kétlépcsős bejelentkezést használ, hozz létre alkalmazásjelszót a webmailben, és azt használd itt.",
"err_bad_title": "Ez nem sikerült",
"err_cert_detail": "A szerver biztonsági tanúsítványát elutasítottuk. Ha ez a saját szervered, ellenőrizd, hogy a tanúsítvány érvényes és nem járt le.",
"err_cert_title": "Nem sikerült ellenőrizni: {host}",
"err_code_expired_detail": "A bejelentkezési kódok néhány percig érvényesek. Generálj újat a webmailben, és olvasd be újra.",
"err_code_expired_detail": "A bejelentkezési kódok két percig érvényesek. Jeleníts meg újat a webmailben, és olvasd be újra.",
"err_code_expired_or_used_detail": "Jeleníts meg újat a webmailben, és olvasd be újra.",
"err_code_expired_or_used_title": "Ez a kód lejárt, vagy már felhasználták",
"err_code_expired_title": "Ez a kód lejárt",
"err_code_invalid_detail": "Jeleníts meg új kódot a webmailben (Beállítások → Biztonság → Mobilalkalmazás összekapcsolása), és olvasd be.",
"err_code_invalid_title": "Ez a kód érvénytelen",
"err_code_used_detail": "Minden kód csak egyszer használható. Jeleníts meg újat a webmailben, és olvasd be újra.",
"err_code_used_title": "Ezt a kódot már felhasználták",
"err_generic_detail": "Valami hiba történt. Próbáld újra.",
"err_generic_title": "Sikertelen bejelentkezés",
"err_interrupted_detail": "A válasz nem egyezett az elindított kéréssel. Próbálj meg újra bejelentkezni.",
@@ -474,6 +495,17 @@
"err_no_server_title": "Nincs levelezőszerver itt: {host}",
"err_no_webmail_detail": "Ezen a szerveren nincs Bulwark webmail és OAuth-bejelentkezés sem. Használj inkább jelszót (vagy alkalmazásjelszót).",
"err_no_webmail_title": "Nincs bejelentkezési oldal itt: {host}",
"err_pair_connect_detail": "Jeleníts meg új kódot a számítógépen, és olvasd be újra.",
"err_pair_connect_title": "Bejelentkezve, de nem sikerült csatlakozni: {host}",
"err_pair_insecure_detail": "A(z) {host} titkosítatlan kapcsolatot akar használni.",
"err_pair_network_detail": "Ellenőrizd a kapcsolatot, és hogy a telefonod eléri-e a webmailt, majd próbáld újra.",
"err_pair_rate_detail": "Várj egy percet, majd próbáld újra.",
"err_pair_server_detail": "Próbáld újra egy új kóddal. Ha továbbra sem sikerül, fordulj a rendszergazdához.",
"err_pair_server_title": "A webmail nem tudta befejezni a bejelentkezést",
"err_pair_unsupported_detail": "A(z) {host} nem támogatja a bejelentkezési kódokat. Lehet, hogy frissíteni kell, vagy a hivatkozás rossz címre mutat.",
"err_pair_unsupported_title": "Ez a webmail nem tud eszközöket összekapcsolni",
"err_pair_untrusted_detail": "A(z) {host} bejelentkezési adatokat küldött egy olyan szerverhez, amelyet az alkalmazás nem tud ellenőrizni.",
"err_pair_untrusted_title": "Ebben a bejelentkezésben nem lehet megbízni",
"err_rate_detail": "A szerver arra kért, hogy várjunk egy kicsit. Próbáld újra hamarosan.",
"err_rate_detail_seconds": "A szerver arra kért, hogy várjunk. Próbáld újra kb. {seconds} másodperc múlva.",
"err_rate_title": "Túl sok próbálkozás",
@@ -487,6 +519,12 @@
"know_server": "Ismerem a szerverem címét",
"known_server_desc": "Ezt a szervert már ismerjük, így nincs mit beállítani",
"known_server_title": "Másik fiók itt: {host}",
"link_confirm_connect": "Egy hivatkozás bejelentkezést kér ezen az oldalon. Csak akkor folytasd, ha a(z) {host} címet használod a leveleidhez.",
"link_confirm_connect_add": "Egy hivatkozás egy fiók hozzáadását kéri bejelentkezéssel ezen az oldalon. Csak akkor folytasd, ha a(z) {host} címet használod a leveleidhez.",
"link_confirm_connect_title": "Megnyitod a(z) {host} bejelentkezési oldalát?",
"link_confirm_pair": "Ez a hivatkozás bejelentkeztet egy fiókba itt: {host}. Csak akkor folytasd, ha az imént jelenítettél meg bejelentkezési kódot a számítógépeden.",
"link_confirm_pair_add": "Ez a hivatkozás hozzáad egy fiókot innen: {host}, és átváltja rá az alkalmazást. Csak akkor folytasd, ha az imént jelenítettél meg bejelentkezési kódot a számítógépeden.",
"link_confirm_title": "Bejelentkezel egy hivatkozással?",
"looking_up": "Szerver keresése…",
"manual": "Szerveradatok kézi megadása",
"notice_bad_qr": "Ez nem Bulwark bejelentkezési kód",
@@ -505,6 +543,12 @@
"pairing_detail": "Az eszköz párosítása: {host}…",
"password_subtitle": "A jelszavadat csak erre a szerverre küldjük el, és az eszköz kulcstárolójában tároljuk.",
"password_title": "Bejelentkezés: {host}",
"paste_button": "Beillesztés",
"paste_clipboard_empty": "Nincs mit beilleszteni. Előbb másold ki a hivatkozást a webmailben.",
"paste_hint": "A webmailben nyisd meg a Beállítások → Biztonság → Mobilalkalmazás összekapcsolása menüt, másold ki a bejelentkezési hivatkozást, és illeszd be ide.",
"paste_invalid": "Ez nem Bulwark bejelentkezési hivatkozás",
"paste_label": "Bejelentkezési hivatkozás",
"paste_title": "Bejelentkezési hivatkozás beillesztése",
"provider_detail": "A szolgáltató oldalán írod be. A Bulwark csak egy bejelentkezési tokent tárol, amelyet bármikor visszavonhatsz.",
"provider_title": "A jelszavad a szolgáltatódnál marad",
"qr_hint": "A Beállítások → Biztonság → Mobilalkalmazás összekapcsolása egy kódot jelenít meg. Irányítsd rá a kamerát.",
@@ -515,6 +559,7 @@
"server_hint": "Ugyanaz a cím, amelyet a böngészőbe írsz. A https:// előtagot mi tesszük hozzá.",
"server_label": "Szervercím",
"server_not_found": "Nem találtunk szervert ehhez: {domain}. Ha saját szervert üzemeltetsz, a webmailhez használt címet add meg.",
"server_paste_hint": "Inkább bejelentkezési hivatkozásod van? Illeszd be ide.",
"server_scan_hint": "Ha nem vagy biztos benne, olvass be inkább egy bejelentkezési kódot. Ez tartalmazza a szerver címét.",
"server_subtitle": "Add meg a címet, amelyen a webmailt eléred.",
"server_title": "Mi a szervered címe?",
@@ -598,11 +643,110 @@
"book_count": "{count, plural, one {# névjegy} other {# névjegy}}",
"default_book": "Alapértelmezett címjegyzék",
"description_mobile": "Megjelenítési beállítások és címjegyzék-eszközök.",
"device_sync_desc": "A címjegyzékeid megjelennek a Névjegyek alkalmazásban és az eszköz más alkalmazásaiban. A módosítások mindkét irányban szinkronizálódnak.",
"device_sync_title": "Szinkronizálás ezzel az eszközzel",
"export_description_count": "{count, plural, one {# névjegy exportálása egyetlen vCard-fájlba.} other {# névjegy exportálása egyetlen vCard-fájlba.}}",
"export_empty": "Nincs exportálható névjegy",
"import_description_mobile": "Névjegyek importálása vCard (.vcf) fájlból, a duplikátumok felismerésével.",
"manage_description_mobile": "Itt hozhatod létre, nevezheted át és távolíthatod el a névjegyeidet rendező címjegyzékeket."
},
"device_sync": {
"also_synced_by": "Más fiókhoz is szinkronizálódik ({accounts}), ezért kétszer jelenik meg ezen az eszközön.",
"android_settings": "Android-fiókbeállítások",
"blocked_calendar": "Az Android már nem kér hozzáférést a naptárakhoz. Engedélyezd az alkalmazás beállításaiban, majd kapcsold be újra a szinkronizálást.",
"blocked_contacts": "Az Android már nem kér hozzáférést a névjegyekhez. Engedélyezd az alkalmazás beállításaiban, majd kapcsold be újra a szinkronizálást.",
"blocked_title": "A hozzáférés ki van kapcsolva",
"books_default": "A saját címjegyzékeid szinkronizálódnak, a megosztottak csak akkor, ha kiválasztod őket.",
"books_hint": "A saját címjegyzékeid szinkronizálódnak, hacsak ki nem kapcsolod őket; a megosztottak csak akkor, ha bekapcsolod őket.",
"books_label": "Címjegyzékek",
"calendars_default": "A saját naptáraid szinkronizálódnak, a megosztottak csak akkor, ha kiválasztod őket.",
"calendars_hint": "A saját naptáraid szinkronizálódnak, hacsak ki nem kapcsolod őket; a megosztottak csak akkor, ha bekapcsolod őket. A feladatlisták a Bulwarkban maradnak.",
"calendars_label": "Naptárak",
"choose": "Kiválasztás",
"choose_books_title": "Szinkronizálandó címjegyzékek",
"choose_calendars_title": "Szinkronizálandó naptárak",
"collections_count": "Szinkronizálva: {selected}/{total}",
"continue": "Tovább",
"deletions_delete": "Törlés a szerveren",
"deletions_message": "Ezen az eszközön egyszerre sok elemet töröltek, ezért a szerveren nem lettek törölve. Töröld őket ott is, vagy állítsd vissza őket ezen az eszközön.",
"deletions_restore": "Visszaállítás",
"deletions_title": "A szerveren is törlöd őket?",
"denied_calendar": "A naptárakhoz való hozzáférés nélkül a Bulwark nem tudja a naptáraidat erre az eszközre hozni.",
"denied_contacts": "A névjegyekhez való hozzáférés nélkül a Bulwark nem tudja a címjegyzékeidet erre az eszközre hozni.",
"denied_title": "A szinkronizálás kikapcsolva marad",
"failed_title": "Nem sikerült bekapcsolni a szinkronizálást",
"grant_access": "Hozzáférés megadása",
"interval_15m": "15 percenként",
"interval_1h": "Óránként",
"interval_30m": "30 percenként",
"interval_6h": "6 óránként",
"interval_desc": "Milyen gyakran szinkronizál az Android magától. A Bulwarkban végzett szerkesztések és a push útján jelzett módosítások hamarabb szinkronizálódnak.",
"interval_label": "Szinkronizálási időköz",
"interval_manual": "Nincs rendszeres szinkronizálás",
"keep_syncing": "Szinkronizálás folytatása",
"list_error_auth": "A szerver nem fogadta el a bejelentkezést.",
"list_error_network": "Nem sikerült elérni a szervert.",
"list_error_server": "A szerver nem tudta visszaadni a listát.",
"list_error_signed_out": "Ez a fiók nincs bejelentkezve ezen az eszközön.",
"master_off": "Az automatikus szinkronizálás ki van kapcsolva ezen az eszközön, ezért szinkronizálás csak akkor történik, ha a „Szinkronizálás most” gombra koppintasz.",
"new_contacts_default": "Alapértelmezett címjegyzék",
"new_contacts_desc": "A címjegyzék az eszköz más alkalmazásaiban létrehozott névjegyekhez.",
"new_contacts_label": "Új névjegyek helye",
"no_books": "Ennek a fióknak nincs címjegyzéke.",
"no_calendars": "Ennek a fióknak nincs szinkronizálható naptára.",
"ok": "OK",
"open_app_settings": "Beállítások megnyitása",
"own_collections": "Saját",
"rationale_calendar": "Ahhoz, hogy a naptáraid megjelenjenek a Naptár alkalmazásban, a Bulwarknak hozzá kell férnie az eszköz naptáraihoz. Csak a saját fiókja naptárait módosítja.",
"rationale_contacts": "Ahhoz, hogy a címjegyzékeid megjelenjenek a Névjegyek alkalmazásban, a Bulwarknak hozzá kell férnie az eszköz névjegyeihez. Csak a saját fiókja névjegyeit módosítja.",
"rationale_title_calendar": "Hozzáférés engedélyezése a naptárakhoz",
"rationale_title_contacts": "Hozzáférés engedélyezése a névjegyekhez",
"read_only": "Csak olvasható",
"reminder_owner_bulwark": "Bulwark",
"reminder_owner_device": "Naptár alkalmazás",
"reminder_question_message": "A szinkronizált eseményekre az eszköz naptáralkalmazása vagy a Bulwark emlékeztethet. Válassz egyet, hogy ne kapj kétszer emlékeztetőt. Később módosíthatod.",
"reminder_question_title": "Ki emlékeztessen?",
"reminders_desc": "Ki emlékeztet a szinkronizált eseményekre. A másik csendben marad, így nem kapsz kétszer emlékeztetőt.",
"reminders_label": "Emlékeztetők",
"reminders_nobody": "A Bulwark eseményértesítései ki vannak kapcsolva, így semmi sem emlékeztet a szinkronizált eseményekre.",
"remove": "Eltávolítás",
"remove_from_device": "Eltávolítás erről az eszközről",
"remove_message": "A fiók névjegyei és naptárai törlődnek erről az eszközről. Az itt végzett, a szerverre még el nem jutott módosítások elvesznek.",
"remove_title": "Eltávolítod erről az eszközről?",
"review_deletions": "Törlések áttekintése",
"shared_by": "Megosztotta: {name}",
"sign_in_again": "Újbóli bejelentkezés",
"status_auth": "A szerver már nem fogadja el a bejelentkezést. Jelentkezz be újra a szinkronizálás folytatásához.",
"status_cancelled": "A legutóbbi szinkronizálás idő előtt leállt. Legközelebb folytatódik.",
"status_failed": "A legutóbbi szinkronizálás sikertelen: {message}",
"status_failed_plain": "A legutóbbi szinkronizálás sikertelen.",
"status_io": "A szerver nem volt elérhető ({when}). Az Android újra megpróbálja.",
"status_item_errors": "{count, plural, one {# elemet nem sikerült szinkronizálni.} other {# elemet nem sikerült szinkronizálni.}}",
"status_off": "Kikapcsolva",
"status_paused": "Szüneteltetve az Android-beállításokban",
"status_permission_calendar": "A naptárakhoz való hozzáférés ki lett kapcsolva, ezért semmi sem szinkronizálódik.",
"status_permission_contacts": "A névjegyekhez való hozzáférés ki lett kapcsolva, ezért semmi sem szinkronizálódik.",
"status_removed": "Eltávolítva az Android-beállításokban. Kapcsold be a szinkronizálást a fiók újbóli hozzáadásához.",
"status_safety_abort": "Leállítva: a szerver semmit sem adott vissza, pedig ezen az eszközön még vannak elemek. Ellenőrizd a szervert, majd szinkronizálj újra.",
"status_synced": "Szinkronizálva: {when}",
"status_syncing": "Szinkronizálás…",
"status_too_many_deletions": "Ezen az eszközön sok elemet töröltek. A szerveren csak akkor törlődnek, ha megerősíted.",
"status_unsupported_calendar": "A szerver nem kínál naptárakat ehhez a fiókhoz.",
"status_unsupported_contacts": "A szerver nem kínál címjegyzékeket ehhez a fiókhoz.",
"status_waiting": "Várakozás az első szinkronizálásra",
"status_waiting_next": "Várakozás a következő szinkronizálásra",
"suspended_desc": "Kijelentkezve. A fiók névjegyei és naptárai az itt végzett módosításokkal együtt ezen az eszközön maradnak, és bejelentkezés után újra szinkronizálódnak.",
"switch_label": "{account} szinkronizálása ezzel az eszközzel",
"sync_now": "Szinkronizálás most",
"turn_off_anyway": "Kikapcsolás",
"turn_off_failed": "A szinkronizált adatokat nem sikerült eltávolítani erről az eszközről. A szinkronizálás szünetel; próbáld újra később.",
"turn_off_failed_title": "Nem sikerült kikapcsolni a szinkronizálást",
"turn_off_pending": "{count, plural, one {Ezen az eszközön # módosítás még nem jutott el a szerverre. Elvész, ha most kikapcsolod a szinkronizálást.} other {Ezen az eszközön # módosítás még nem jutott el a szerverre. Elvesznek, ha most kikapcsolod a szinkronizálást.}}",
"turn_off_title": "Mindenképp kikapcsolod?",
"turn_off_unknown": "A Bulwark nem tudta ellenőrizni, hogy az ezen az eszközön végzett módosítások eljutottak-e a szerverre. Elvesznek, ha most kikapcsolod a szinkronizálást.",
"turning_off": "Módosítások feltöltése, majd az adatok eltávolítása erről az eszközről…",
"turning_on": "Beállítás folyamatban…"
},
"downloads": {
"attachment_template": {
"description_mobile": "Csatolmány mentésekor vagy megosztásakor használt sablon."
+145 -1
View File
@@ -93,6 +93,8 @@
"until_date": "Fino al {date}"
},
"settings": {
"device_sync_desc": "Mostra i tuoi calendari nell'app Calendario e nelle altre app di questo dispositivo. Le modifiche vengono sincronizzate in entrambe le direzioni.",
"device_sync_title": "Sincronizza con questo dispositivo",
"show_week_numbers_mobile_desc": "Mostra i numeri di settimana nella vista mensile.",
"time_zone": "Fuso orario",
"time_zone_auto": "Fuso orario del dispositivo",
@@ -249,6 +251,18 @@
"color_tag": "Etichetta",
"remove_color": "Rimuovi etichetta"
},
"device_sync": {
"auth_problem_text": "Il server non accetta più l'accesso di {account}, quindi i suoi contatti e calendari su questo dispositivo non vengono più sincronizzati. Accedi di nuovo per riprendere. Le modifiche fatte su questo dispositivo vengono mantenute.",
"auth_problem_title": "Accedi di nuovo per continuare a sincronizzare",
"problem_channel": "Problemi di sincronizzazione",
"sign_out_anyway": "Esci",
"sign_out_pending_message": "{count, plural, one {# modifica fatta su questo dispositivo non ha raggiunto il server. Andrà persa se esci ora.} other {# modifiche fatte su questo dispositivo non hanno raggiunto il server. Andranno perse se esci ora.}}",
"sign_out_pending_title": "Uscire comunque?",
"sign_out_unknown_message": "Le modifiche fatte su questo dispositivo potrebbero non aver raggiunto il server. Andranno perse se esci ora.",
"signed_out_text": "{account} è stato disconnesso, quindi i suoi contatti e calendari su questo dispositivo non vengono più sincronizzati. Accedi di nuovo per riprendere. Le modifiche fatte su questo dispositivo vengono mantenute.",
"signed_out_title": "Accedi per continuare a sincronizzare",
"signing_out": "Rimozione dei contatti e dei calendari sincronizzati da questo dispositivo…"
},
"email_composer": {
"attach_camera": "Fotocamera",
"attachment_reminder_body": "Il tuo messaggio menziona \"{keyword}\" ma nessun file è allegato. Inviare comunque?",
@@ -460,12 +474,19 @@
"email_step_title": "Qual è il tuo indirizzo email?",
"email_step_title_add": "Qual è l'altro indirizzo?",
"email_title": "Usa il mio indirizzo email",
"err_account_limit_detail": "Rimuovi un account in Impostazioni per aggiungerne un altro.",
"err_bad_detail": "Controlla email e password. Se il tuo account usa l'autenticazione a due fattori, crea una password per le app nella webmail e usala qui.",
"err_bad_title": "Non ha funzionato",
"err_cert_detail": "Il certificato di sicurezza del server è stato rifiutato. Se è il tuo server, verifica che il certificato sia valido e non scaduto.",
"err_cert_title": "Impossibile verificare {host}",
"err_code_expired_detail": "I codici di accesso sono validi per pochi minuti. Generane uno nuovo nella webmail e scansionalo di nuovo.",
"err_code_expired_detail": "I codici di accesso sono validi per due minuti. Mostrane uno nuovo nella webmail e scansionalo di nuovo.",
"err_code_expired_or_used_detail": "Mostrane uno nuovo nella webmail e scansionalo di nuovo.",
"err_code_expired_or_used_title": "Questo codice è scaduto o è già stato usato",
"err_code_expired_title": "Questo codice è scaduto",
"err_code_invalid_detail": "Mostra un nuovo codice nella webmail (Impostazioni → Sicurezza → Collega l'app mobile) e scansionalo.",
"err_code_invalid_title": "Questo codice non è valido",
"err_code_used_detail": "Ogni codice funziona una sola volta. Mostrane uno nuovo nella webmail e scansionalo di nuovo.",
"err_code_used_title": "Questo codice è già stato usato",
"err_generic_detail": "Si è verificato un errore. Riprova.",
"err_generic_title": "Accesso non riuscito",
"err_interrupted_detail": "La risposta non corrisponde alla richiesta che abbiamo avviato. Prova ad accedere di nuovo.",
@@ -474,6 +495,17 @@
"err_no_server_title": "Nessun server di posta su {host}",
"err_no_webmail_detail": "Questo server non ha una webmail Bulwark né l'accesso OAuth. Usa una password (o una password per le app).",
"err_no_webmail_title": "Nessuna pagina di accesso su {host}",
"err_pair_connect_detail": "Mostra un nuovo codice sul computer e scansionalo di nuovo.",
"err_pair_connect_title": "Accesso eseguito, ma impossibile connettersi a {host}",
"err_pair_insecure_detail": "{host} vuole usare una connessione non cifrata.",
"err_pair_network_detail": "Controlla la connessione e che il telefono possa raggiungere la webmail, poi riprova.",
"err_pair_rate_detail": "Attendi un minuto, poi riprova.",
"err_pair_server_detail": "Riprova con un nuovo codice. Se continua a non funzionare, rivolgiti all'amministratore.",
"err_pair_server_title": "La webmail non è riuscita a completare l'accesso",
"err_pair_unsupported_detail": "{host} non supporta i codici di accesso. Potrebbe servire un aggiornamento, oppure il link punta all'indirizzo sbagliato.",
"err_pair_unsupported_title": "Questa webmail non può collegare dispositivi",
"err_pair_untrusted_detail": "{host} ha inviato dati di accesso per un server che l'app non può verificare.",
"err_pair_untrusted_title": "Questo accesso non è affidabile",
"err_rate_detail": "Il server ci ha chiesto di attendere un momento. Riprova tra poco.",
"err_rate_detail_seconds": "Il server ci ha chiesto di attendere. Riprova tra circa {seconds} secondi.",
"err_rate_title": "Troppi tentativi",
@@ -487,6 +519,12 @@
"know_server": "Conosco l'indirizzo del mio server",
"known_server_desc": "Conosciamo già questo server, quindi non c'è nulla da configurare",
"known_server_title": "Un altro account su {host}",
"link_confirm_connect": "Un link chiede di accedere su questa pagina. Continua solo se usi {host} per la tua posta.",
"link_confirm_connect_add": "Un link chiede di aggiungere un account accedendo su questa pagina. Continua solo se usi {host} per la tua posta.",
"link_confirm_connect_title": "Aprire la pagina di accesso di {host}?",
"link_confirm_pair": "Questo link ti fa accedere a un account di {host}. Continua solo se hai appena mostrato un codice di accesso sul computer.",
"link_confirm_pair_add": "Questo link aggiunge un account di {host} e passa l'app a quell'account. Continua solo se hai appena mostrato un codice di accesso sul computer.",
"link_confirm_title": "Accedere con un link?",
"looking_up": "Ricerca del tuo server…",
"manual": "Inserisci i dati del server manualmente",
"notice_bad_qr": "Questo codice non è un codice di accesso Bulwark",
@@ -505,6 +543,12 @@
"pairing_detail": "Associazione di questo dispositivo con {host}…",
"password_subtitle": "La password viene inviata solo a questo server e salvata nell'archivio sicuro del dispositivo.",
"password_title": "Accedi a {host}",
"paste_button": "Incolla",
"paste_clipboard_empty": "Niente da incollare. Copia prima il link nella webmail.",
"paste_hint": "Nella webmail apri Impostazioni → Sicurezza → Collega l'app mobile, copia il link di accesso e incollalo qui.",
"paste_invalid": "Questo non è un link di accesso Bulwark",
"paste_label": "Link di accesso",
"paste_title": "Incolla link di accesso",
"provider_detail": "La digiterai nella loro pagina. Bulwark salva solo un token di accesso, che puoi revocare in qualsiasi momento.",
"provider_title": "La tua password resta al tuo provider",
"qr_hint": "Impostazioni → Sicurezza → Collega l'app mobile mostra un codice. Inquadralo con la fotocamera.",
@@ -515,6 +559,7 @@
"server_hint": "Lo stesso indirizzo che digiti nel browser. Aggiungeremo noi https://.",
"server_label": "Indirizzo del server",
"server_not_found": "Non abbiamo trovato un server per {domain}. Se lo gestisci tu, l'indirizzo è quello che usi per la webmail.",
"server_paste_hint": "Hai invece un link di accesso? Incollalo qui.",
"server_scan_hint": "Se non sei sicuro, scansiona un codice di accesso: contiene l'indirizzo del server.",
"server_subtitle": "Inserisci l'indirizzo che usi per raggiungere la tua webmail.",
"server_title": "Qual è l'indirizzo del tuo server?",
@@ -598,11 +643,110 @@
"book_count": "{count, plural, one {# contatto} other {# contatti}}",
"default_book": "Rubrica predefinita",
"description_mobile": "Preferenze di visualizzazione e strumenti per le rubriche.",
"device_sync_desc": "Mostra le tue rubriche nell'app Contatti e nelle altre app di questo dispositivo. Le modifiche vengono sincronizzate in entrambe le direzioni.",
"device_sync_title": "Sincronizza con questo dispositivo",
"export_description_count": "{count, plural, one {Esporta # contatto come un unico file vCard.} other {Esporta # contatti come un unico file vCard.}}",
"export_empty": "Nessun contatto da esportare",
"import_description_mobile": "Importa contatti da un file vCard (.vcf) con rilevamento dei duplicati.",
"manage_description_mobile": "Crea, rinomina e rimuovi le rubriche che organizzano i tuoi contatti."
},
"device_sync": {
"also_synced_by": "Si sincronizza anche per {accounts}, quindi compare due volte su questo dispositivo.",
"android_settings": "Impostazioni account Android",
"blocked_calendar": "Android non chiede più l'accesso ai calendari. Consentilo nelle impostazioni dell'app, poi riattiva la sincronizzazione.",
"blocked_contacts": "Android non chiede più l'accesso ai contatti. Consentilo nelle impostazioni dell'app, poi riattiva la sincronizzazione.",
"blocked_title": "L'accesso è disattivato",
"books_default": "Le tue rubriche vengono sincronizzate; quelle condivise solo se le scegli.",
"books_hint": "Le tue rubriche vengono sincronizzate a meno che tu non le disattivi; quelle condivise solo se le attivi.",
"books_label": "Rubriche",
"calendars_default": "I tuoi calendari vengono sincronizzati; quelli condivisi solo se li scegli.",
"calendars_hint": "I tuoi calendari vengono sincronizzati a meno che tu non li disattivi; quelli condivisi solo se li attivi. Gli elenchi di attività restano in Bulwark.",
"calendars_label": "Calendari",
"choose": "Scegli",
"choose_books_title": "Rubriche da sincronizzare",
"choose_calendars_title": "Calendari da sincronizzare",
"collections_count": "Sincronizzazione: {selected} su {total}",
"continue": "Continua",
"deletions_delete": "Elimina dal server",
"deletions_message": "Molti elementi sono stati eliminati contemporaneamente su questo dispositivo, quindi non sono stati eliminati sul server. Eliminali anche lì o ripristinali su questo dispositivo.",
"deletions_restore": "Ripristina",
"deletions_title": "Eliminarli anche sul server?",
"denied_calendar": "Senza l'accesso ai calendari, Bulwark non può portare i tuoi calendari su questo dispositivo.",
"denied_contacts": "Senza l'accesso ai contatti, Bulwark non può portare le tue rubriche su questo dispositivo.",
"denied_title": "La sincronizzazione resta disattivata",
"failed_title": "Impossibile attivare la sincronizzazione",
"grant_access": "Consenti l'accesso",
"interval_15m": "Ogni 15 minuti",
"interval_1h": "Ogni ora",
"interval_30m": "Ogni 30 minuti",
"interval_6h": "Ogni 6 ore",
"interval_desc": "La frequenza con cui Android sincronizza da solo. Le modifiche fatte in Bulwark e quelle notificate via push vengono sincronizzate prima.",
"interval_label": "Intervallo di sincronizzazione",
"interval_manual": "Nessuna sincronizzazione periodica",
"keep_syncing": "Continua a sincronizzare",
"list_error_auth": "Il server non ha accettato l'accesso.",
"list_error_network": "Impossibile raggiungere il server.",
"list_error_server": "Il server non è riuscito a fornire l'elenco.",
"list_error_signed_out": "Su questo dispositivo non hai eseguito l'accesso a questo account.",
"master_off": "La sincronizzazione automatica è disattivata su questo dispositivo, quindi si sincronizza solo quando tocchi \"Sincronizza ora\".",
"new_contacts_default": "Rubrica predefinita",
"new_contacts_desc": "La rubrica per i contatti creati in altre app su questo dispositivo.",
"new_contacts_label": "Salva i nuovi contatti in",
"no_books": "Questo account non ha rubriche.",
"no_calendars": "Questo account non ha calendari da sincronizzare.",
"ok": "OK",
"open_app_settings": "Apri impostazioni app",
"own_collections": "Personali",
"rationale_calendar": "Per mostrare i tuoi calendari nell'app Calendario, Bulwark ha bisogno dell'accesso ai calendari di questo dispositivo. Modifica solo i calendari del proprio account.",
"rationale_contacts": "Per mostrare le tue rubriche nell'app Contatti, Bulwark ha bisogno dell'accesso ai contatti di questo dispositivo. Modifica solo i contatti del proprio account.",
"rationale_title_calendar": "Consenti l'accesso ai calendari",
"rationale_title_contacts": "Consenti l'accesso ai contatti",
"read_only": "Sola lettura",
"reminder_owner_bulwark": "Bulwark",
"reminder_owner_device": "App Calendario",
"reminder_question_message": "I promemoria degli eventi sincronizzati possono arrivare dall'app di calendario di questo dispositivo o da Bulwark. Scegline uno per non riceverli due volte. Puoi cambiare idea in seguito.",
"reminder_question_title": "Chi deve inviarti i promemoria?",
"reminders_desc": "Chi ti ricorda gli eventi sincronizzati. L'altro resta in silenzio, così non ricevi due promemoria.",
"reminders_label": "Promemoria",
"reminders_nobody": "Le notifiche degli eventi di Bulwark sono disattivate, quindi niente ti ricorda gli eventi sincronizzati.",
"remove": "Rimuovi",
"remove_from_device": "Rimuovi da questo dispositivo",
"remove_message": "I contatti e i calendari dell'account vengono rimossi da questo dispositivo. Le modifiche fatte qui che non hanno raggiunto il server andranno perse.",
"remove_title": "Rimuovere da questo dispositivo?",
"review_deletions": "Controlla eliminazioni",
"shared_by": "Condiviso da {name}",
"sign_in_again": "Accedi di nuovo",
"status_auth": "Il server non accetta più l'accesso. Accedi di nuovo per continuare a sincronizzare.",
"status_cancelled": "L'ultima sincronizzazione si è interrotta prima del termine. Riprenderà la prossima volta.",
"status_failed": "Ultima sincronizzazione non riuscita: {message}",
"status_failed_plain": "Ultima sincronizzazione non riuscita.",
"status_io": "Il server non era raggiungibile {when}. Android riproverà.",
"status_item_errors": "{count, plural, one {Impossibile sincronizzare # elemento.} other {Impossibile sincronizzare # elementi.}}",
"status_off": "Disattivata",
"status_paused": "In pausa nelle impostazioni di Android",
"status_permission_calendar": "L'accesso ai calendari è stato disattivato, quindi non viene sincronizzato nulla.",
"status_permission_contacts": "L'accesso ai contatti è stato disattivato, quindi non viene sincronizzato nulla.",
"status_removed": "Rimosso nelle impostazioni di Android. Attiva la sincronizzazione per aggiungere di nuovo l'account.",
"status_safety_abort": "Interrotta: il server non ha restituito nulla mentre questo dispositivo contiene ancora elementi. Controlla il server, poi sincronizza di nuovo.",
"status_synced": "Sincronizzato {when}",
"status_syncing": "Sincronizzazione…",
"status_too_many_deletions": "Molti elementi sono stati eliminati su questo dispositivo. Non verranno eliminati sul server finché non confermi.",
"status_unsupported_calendar": "Il server non offre calendari per questo account.",
"status_unsupported_contacts": "Il server non offre rubriche per questo account.",
"status_waiting": "In attesa della prima sincronizzazione",
"status_waiting_next": "In attesa della prossima sincronizzazione",
"suspended_desc": "Disconnesso. I suoi contatti e calendari restano su questo dispositivo, con le modifiche fatte qui, e verranno sincronizzati di nuovo quando accedi.",
"switch_label": "Sincronizza {account} con questo dispositivo",
"sync_now": "Sincronizza ora",
"turn_off_anyway": "Disattiva",
"turn_off_failed": "Impossibile rimuovere i dati sincronizzati da questo dispositivo. La sincronizzazione è in pausa; riprova più tardi.",
"turn_off_failed_title": "Impossibile disattivare la sincronizzazione",
"turn_off_pending": "{count, plural, one {# modifica fatta su questo dispositivo non ha ancora raggiunto il server. Andrà persa se disattivi ora la sincronizzazione.} other {# modifiche fatte su questo dispositivo non hanno ancora raggiunto il server. Andranno perse se disattivi ora la sincronizzazione.}}",
"turn_off_title": "Disattivare comunque?",
"turn_off_unknown": "Bulwark non è riuscito a verificare se le modifiche fatte su questo dispositivo hanno raggiunto il server. Andranno perse se disattivi ora la sincronizzazione.",
"turning_off": "Caricamento delle modifiche, poi rimozione dei dati da questo dispositivo…",
"turning_on": "Configurazione…"
},
"downloads": {
"attachment_template": {
"description_mobile": "Modello usato quando salvi o condividi un allegato."
+145 -1
View File
@@ -93,6 +93,8 @@
"until_date": "{date}まで"
},
"settings": {
"device_sync_desc": "カレンダーアプリやこのデバイスの他のアプリにカレンダーを表示します。変更は双方向に同期されます。",
"device_sync_title": "このデバイスに同期",
"show_week_numbers_mobile_desc": "月表示に週番号を表示する",
"time_zone": "タイムゾーン",
"time_zone_auto": "デバイスのタイムゾーン",
@@ -249,6 +251,18 @@
"color_tag": "ラベル",
"remove_color": "ラベルを削除"
},
"device_sync": {
"auth_problem_text": "サーバーが {account} のサインインを受け付けなくなったため、このデバイス上のこのアカウントの連絡先とカレンダーの同期が停止しました。再開するには、もう一度サインインしてください。このデバイスで行った変更は保持されます。",
"auth_problem_title": "同期を続けるには再度サインインしてください",
"problem_channel": "同期の問題",
"sign_out_anyway": "サインアウト",
"sign_out_pending_message": "{count, plural, other {このデバイスで行った#件の変更がサーバーに届いていません。今サインアウトすると失われます。}}",
"sign_out_pending_title": "それでもサインアウトしますか?",
"sign_out_unknown_message": "このデバイスで行った変更がサーバーに届いていない可能性があります。今サインアウトすると失われます。",
"signed_out_text": "{account} からサインアウトされたため、このデバイス上のこのアカウントの連絡先とカレンダーは同期されなくなりました。再開するには、もう一度サインインしてください。このデバイスで行った変更は保持されます。",
"signed_out_title": "同期を続けるにはサインインしてください",
"signing_out": "同期した連絡先とカレンダーをこのデバイスから削除しています…"
},
"email_composer": {
"attach_camera": "カメラ",
"attachment_reminder_body": "メッセージに「{keyword}」が含まれていますが、ファイルが添付されていません。このまま送信しますか?",
@@ -460,12 +474,19 @@
"email_step_title": "メールアドレスを入力してください",
"email_step_title_add": "もう一つのメールアドレスを入力してください",
"email_title": "メールアドレスを使用",
"err_account_limit_detail": "別のアカウントを追加するには、設定でアカウントを削除してください。",
"err_bad_detail": "メールアドレスとパスワードを確認してください。アカウントで二要素認証を使用している場合は、ウェブメールでアプリパスワードを作成し、ここで使用してください。",
"err_bad_title": "サインインできませんでした",
"err_cert_detail": "サーバーのセキュリティ証明書が拒否されました。ご自身のサーバーの場合は、証明書が有効で期限切れでないことを確認してください。",
"err_cert_title": "{host}を検証できませんでした",
"err_code_expired_detail": "サインインコードの有効期間は数分です。ウェブメールで新しいコードを生成して、もう一度スキャンしてください。",
"err_code_expired_detail": "サインインコードの有効期間は2分です。ウェブメールで新しいコードを表示して、もう一度スキャンしてください。",
"err_code_expired_or_used_detail": "ウェブメールで新しいコードを表示して、もう一度スキャンしてください。",
"err_code_expired_or_used_title": "このコードは期限切れか、すでに使用されています",
"err_code_expired_title": "コードの有効期限が切れています",
"err_code_invalid_detail": "ウェブメールで新しいコードを表示し(「設定 → セキュリティ → モバイルアプリを連携」)、スキャンしてください。",
"err_code_invalid_title": "このコードは無効です",
"err_code_used_detail": "各コードは1回しか使えません。ウェブメールで新しいコードを表示して、もう一度スキャンしてください。",
"err_code_used_title": "このコードはすでに使用されています",
"err_generic_detail": "問題が発生しました。もう一度お試しください。",
"err_generic_title": "サインインに失敗しました",
"err_interrupted_detail": "応答が開始したリクエストと一致しませんでした。もう一度サインインしてください。",
@@ -474,6 +495,17 @@
"err_no_server_title": "{host}にメールサーバーがありません",
"err_no_webmail_detail": "このサーバーには Bulwark ウェブメールも OAuth サインインもありません。代わりにパスワード(またはアプリパスワード)を使用してください。",
"err_no_webmail_title": "{host}にサインインページがありません",
"err_pair_connect_detail": "コンピューターで新しいコードを表示して、もう一度スキャンしてください。",
"err_pair_connect_title": "サインインしましたが、{host} に接続できませんでした",
"err_pair_insecure_detail": "{host} が暗号化されていない接続を使おうとしています。",
"err_pair_network_detail": "接続状況と、スマートフォンからウェブメールにアクセスできるかを確認して、もう一度お試しください。",
"err_pair_rate_detail": "1分待ってから、もう一度お試しください。",
"err_pair_server_detail": "新しいコードでもう一度お試しください。それでも失敗する場合は、管理者にお問い合わせください。",
"err_pair_server_title": "ウェブメールでサインインを完了できませんでした",
"err_pair_unsupported_detail": "{host} はサインインコードに対応していません。アップデートが必要か、リンクのアドレスが間違っている可能性があります。",
"err_pair_unsupported_title": "このウェブメールはデバイスを連携できません",
"err_pair_untrusted_detail": "{host} から、アプリが検証できないサーバー用のサインイン情報が送られてきました。",
"err_pair_untrusted_title": "このサインインは信頼できません",
"err_rate_detail": "サーバーから少し待つよう求められました。しばらくしてからもう一度お試しください。",
"err_rate_detail_seconds": "サーバーから待機するよう求められました。約{seconds}秒後にもう一度お試しください。",
"err_rate_title": "試行回数が多すぎます",
@@ -487,6 +519,12 @@
"know_server": "サーバーアドレスがわかる",
"known_server_desc": "このサーバーは登録済みのため、設定は不要です",
"known_server_title": "{host}の別のアカウント",
"link_confirm_connect": "リンクがこのページでのサインインを求めています。メールに {host} を使っている場合にのみ続行してください。",
"link_confirm_connect_add": "リンクがこのページでサインインしてアカウントを追加するよう求めています。メールに {host} を使っている場合にのみ続行してください。",
"link_confirm_connect_title": "{host} のサインインページを開きますか?",
"link_confirm_pair": "このリンクは {host} のアカウントにサインインします。パソコンでサインインコードを表示したばかりの場合にのみ続行してください。",
"link_confirm_pair_add": "このリンクは {host} のアカウントを追加し、アプリをそのアカウントに切り替えます。パソコンでサインインコードを表示したばかりの場合にのみ続行してください。",
"link_confirm_title": "リンクでサインインしますか?",
"looking_up": "サーバーを検索しています…",
"manual": "サーバー情報を手動で入力",
"notice_bad_qr": "このコードは Bulwark のサインインコードではありません",
@@ -505,6 +543,12 @@
"pairing_detail": "このデバイスを{host}とペアリングしています…",
"password_subtitle": "パスワードはこのサーバーにのみ送信され、デバイスのキーチェーンに保存されます。",
"password_title": "{host}にサインイン",
"paste_button": "貼り付け",
"paste_clipboard_empty": "貼り付ける内容がありません。先にウェブメールでリンクをコピーしてください。",
"paste_hint": "ウェブメールで「設定 → セキュリティ → モバイルアプリを連携」を開き、サインインリンクをコピーしてここに貼り付けてください。",
"paste_invalid": "これは Bulwark のサインインリンクではありません",
"paste_label": "サインインリンク",
"paste_title": "サインインリンクを貼り付け",
"provider_detail": "パスワードはプロバイダーのページで入力します。Bulwark が保存するのはサインイントークンのみで、いつでも取り消すことができます。",
"provider_title": "パスワードはプロバイダーにのみ送信されます",
"qr_hint": "「設定 → セキュリティ → モバイルアプリを連携」でコードが表示されます。カメラをコードに向けてください。",
@@ -515,6 +559,7 @@
"server_hint": "ブラウザーで入力するものと同じアドレスです。https:// は自動で追加されます。",
"server_label": "サーバーアドレス",
"server_not_found": "{domain}のサーバーが見つかりませんでした。セルフホストしている場合は、ウェブメールで使用しているアドレスを入力してください。",
"server_paste_hint": "代わりにサインインリンクをお持ちですか?ここに貼り付けてください。",
"server_scan_hint": "わからない場合は、代わりにサインインコードをスキャンしてください。コードにサーバーアドレスが含まれています。",
"server_subtitle": "ウェブメールへのアクセスに使用しているアドレスを入力してください。",
"server_title": "サーバーアドレスを入力してください",
@@ -598,11 +643,110 @@
"book_count": "{count, plural, other {#件の連絡先}}",
"default_book": "デフォルトのアドレス帳",
"description_mobile": "表示設定とアドレス帳のツールです。",
"device_sync_desc": "連絡帳アプリやこのデバイスの他のアプリにアドレス帳を表示します。変更は双方向に同期されます。",
"device_sync_title": "このデバイスに同期",
"export_description_count": "{count, plural, other {#件の連絡先を1つの vCard ファイルとしてエクスポートします。}}",
"export_empty": "エクスポートする連絡先がありません",
"import_description_mobile": "重複を検出しながら、vCard(.vcf)ファイルから連絡先をインポートします。",
"manage_description_mobile": "連絡先を整理するアドレス帳の作成、名前変更、削除ができます。"
},
"device_sync": {
"also_synced_by": "{accounts} でも同期されているため、このデバイスには2回表示されます。",
"android_settings": "Android のアカウント設定",
"blocked_calendar": "Android はカレンダーへのアクセスを求めなくなりました。アプリの設定で許可してから、同期をもう一度オンにしてください。",
"blocked_contacts": "Android は連絡先へのアクセスを求めなくなりました。アプリの設定で許可してから、同期をもう一度オンにしてください。",
"blocked_title": "アクセスがオフになっています",
"books_default": "自分のアドレス帳は同期されます。共有されたアドレス帳は選択した場合のみ同期されます。",
"books_hint": "自分のアドレス帳はオフにしない限り同期されます。共有されたアドレス帳はオンにした場合のみ同期されます。",
"books_label": "アドレス帳",
"calendars_default": "自分のカレンダーは同期されます。共有されたカレンダーは選択した場合のみ同期されます。",
"calendars_hint": "自分のカレンダーはオフにしない限り同期されます。共有されたカレンダーはオンにした場合のみ同期されます。タスクリストは Bulwark に残ります。",
"calendars_label": "カレンダー",
"choose": "選択",
"choose_books_title": "同期するアドレス帳",
"choose_calendars_title": "同期するカレンダー",
"collections_count": "{total}件中{selected}件を同期",
"continue": "続行",
"deletions_delete": "サーバーで削除",
"deletions_message": "このデバイスで多数の項目が一度に削除されたため、サーバーでは削除されていません。サーバーでも削除するか、このデバイスに復元してください。",
"deletions_restore": "復元",
"deletions_title": "サーバーでも削除しますか?",
"denied_calendar": "カレンダーへのアクセスがないと、Bulwark はカレンダーをこのデバイスに追加できません。",
"denied_contacts": "連絡先へのアクセスがないと、Bulwark はアドレス帳をこのデバイスに追加できません。",
"denied_title": "同期はオフのままです",
"failed_title": "同期をオンにできませんでした",
"grant_access": "アクセスを許可",
"interval_15m": "15分ごと",
"interval_1h": "1時間ごと",
"interval_30m": "30分ごと",
"interval_6h": "6時間ごと",
"interval_desc": "Android が自動で同期する頻度です。Bulwark での編集やプッシュで通知された変更は、より早く同期されます。",
"interval_label": "同期の間隔",
"interval_manual": "定期的に同期しない",
"keep_syncing": "同期を続ける",
"list_error_auth": "サーバーがサインインを受け付けませんでした。",
"list_error_network": "サーバーに接続できませんでした。",
"list_error_server": "サーバーが一覧を返せませんでした。",
"list_error_signed_out": "このデバイスではこのアカウントにサインインしていません。",
"master_off": "このデバイスでは自動同期がオフになっているため、「今すぐ同期」をタップしたときにのみ同期されます。",
"new_contacts_default": "デフォルトのアドレス帳",
"new_contacts_desc": "このデバイスの他のアプリで作成した連絡先の保存先となるアドレス帳です。",
"new_contacts_label": "新しい連絡先の保存先",
"no_books": "このアカウントにはアドレス帳がありません。",
"no_calendars": "このアカウントには同期できるカレンダーがありません。",
"ok": "OK",
"open_app_settings": "アプリの設定を開く",
"own_collections": "自分のもの",
"rationale_calendar": "カレンダーアプリにカレンダーを表示するには、Bulwark にこのデバイスのカレンダーへのアクセスを許可する必要があります。Bulwark が変更するのは自分のアカウントのカレンダーだけです。",
"rationale_contacts": "連絡帳アプリにアドレス帳を表示するには、Bulwark にこのデバイスの連絡先へのアクセスを許可する必要があります。Bulwark が変更するのは自分のアカウントの連絡先だけです。",
"rationale_title_calendar": "カレンダーへのアクセスを許可",
"rationale_title_contacts": "連絡先へのアクセスを許可",
"read_only": "読み取り専用",
"reminder_owner_bulwark": "Bulwark",
"reminder_owner_device": "カレンダーアプリ",
"reminder_question_message": "同期した予定のリマインダーは、このデバイスのカレンダーアプリか Bulwark のどちらかから通知できます。重複して通知されないよう、どちらか一方を選んでください。後で変更できます。",
"reminder_question_title": "どちらから通知しますか?",
"reminders_desc": "同期した予定のリマインダーを通知するアプリです。もう一方は通知しないため、重複して通知されません。",
"reminders_label": "リマインダー",
"reminders_nobody": "Bulwark の予定の通知がオフになっているため、同期した予定のリマインダーは通知されません。",
"remove": "削除",
"remove_from_device": "このデバイスから削除",
"remove_message": "このアカウントの連絡先とカレンダーがこのデバイスから削除されます。ここで行った変更のうち、サーバーに届いていないものは失われます。",
"remove_title": "このデバイスから削除しますか?",
"review_deletions": "削除を確認",
"shared_by": "{name} が共有",
"sign_in_again": "再度サインイン",
"status_auth": "サーバーがサインインを受け付けなくなりました。同期を続けるには、再度サインインしてください。",
"status_cancelled": "前回の同期は途中で停止しました。次回に続きから同期します。",
"status_failed": "前回の同期に失敗しました:{message}",
"status_failed_plain": "前回の同期に失敗しました。",
"status_io": "サーバーに接続できませんでした({when})。Android が再試行します。",
"status_item_errors": "{count, plural, other {#件の項目を同期できませんでした。}}",
"status_off": "オフ",
"status_paused": "Android の設定で一時停止中",
"status_permission_calendar": "カレンダーへのアクセスがオフになったため、何も同期されません。",
"status_permission_contacts": "連絡先へのアクセスがオフになったため、何も同期されません。",
"status_removed": "Android の設定で削除されました。アカウントを再度追加するには、同期をオンにしてください。",
"status_safety_abort": "停止しました:このデバイスに項目が残っているのに、サーバーから何も返されませんでした。サーバーを確認してから、もう一度同期してください。",
"status_synced": "最終同期:{when}",
"status_syncing": "同期中…",
"status_too_many_deletions": "このデバイスで多数の項目が削除されました。確認するまでサーバーでは削除されません。",
"status_unsupported_calendar": "サーバーはこのアカウントのカレンダーを提供していません。",
"status_unsupported_contacts": "サーバーはこのアカウントのアドレス帳を提供していません。",
"status_waiting": "初回の同期を待っています",
"status_waiting_next": "次回の同期を待っています",
"suspended_desc": "サインアウトしました。このアカウントの連絡先とカレンダーは、ここで行った変更とともにこのデバイスに残り、サインインすると再び同期されます。",
"switch_label": "{account} をこのデバイスに同期",
"sync_now": "今すぐ同期",
"turn_off_anyway": "オフにする",
"turn_off_failed": "同期したデータをこのデバイスから削除できませんでした。同期は一時停止しています。後でもう一度お試しください。",
"turn_off_failed_title": "同期をオフにできませんでした",
"turn_off_pending": "{count, plural, other {このデバイスで行った#件の変更がまだサーバーに届いていません。今同期をオフにすると失われます。}}",
"turn_off_title": "それでもオフにしますか?",
"turn_off_unknown": "このデバイスで行った変更がサーバーに届いたかどうかを Bulwark で確認できませんでした。今同期をオフにすると失われます。",
"turning_off": "変更をアップロードしてから、このデバイスのデータを削除しています…",
"turning_on": "設定しています…"
},
"downloads": {
"attachment_template": {
"description_mobile": "添付ファイルを保存または共有するときに使用するテンプレートです。"
+145 -1
View File
@@ -93,6 +93,8 @@
"until_date": "{date}까지"
},
"settings": {
"device_sync_desc": "캘린더 앱과 이 기기의 다른 앱에 내 캘린더를 표시해요. 변경 사항은 양방향으로 동기화돼요.",
"device_sync_title": "이 기기에 동기화",
"show_week_numbers_mobile_desc": "월간 보기에 주 차 번호를 표시해요.",
"time_zone": "시간대",
"time_zone_auto": "기기 시간대",
@@ -249,6 +251,18 @@
"color_tag": "태그",
"remove_color": "태그 제거"
},
"device_sync": {
"auth_problem_text": "서버가 더 이상 {account} 계정의 로그인을 허용하지 않아서 이 기기에 있는 이 계정의 연락처와 캘린더 동기화가 중단되었어요. 다시 시작하려면 다시 로그인해 주세요. 이 기기에서 변경한 내용은 유지돼요.",
"auth_problem_title": "계속 동기화하려면 다시 로그인해 주세요",
"problem_channel": "동기화 문제",
"sign_out_anyway": "로그아웃",
"sign_out_pending_message": "{count, plural, other {이 기기에서 변경한 내용 #개가 서버에 전달되지 않았어요. 지금 로그아웃하면 사라져요.}}",
"sign_out_pending_title": "그래도 로그아웃할까요?",
"sign_out_unknown_message": "이 기기에서 변경한 내용이 서버에 전달되지 않았을 수 있어요. 지금 로그아웃하면 사라져요.",
"signed_out_text": "{account} 계정에서 로그아웃되어 이 기기에 있는 이 계정의 연락처와 캘린더가 더 이상 동기화되지 않아요. 다시 시작하려면 다시 로그인해 주세요. 이 기기에서 변경한 내용은 유지돼요.",
"signed_out_title": "계속 동기화하려면 로그인해 주세요",
"signing_out": "동기화된 연락처와 캘린더를 이 기기에서 삭제하는 중…"
},
"email_composer": {
"attach_camera": "카메라",
"attachment_reminder_body": "메시지에 \"{keyword}\"이(가) 언급되어 있지만 첨부된 파일이 없어요. 그래도 보낼까요?",
@@ -460,12 +474,19 @@
"email_step_title": "이메일 주소가 무엇인가요?",
"email_step_title_add": "다른 주소는 무엇인가요?",
"email_title": "내 이메일 주소 사용",
"err_account_limit_detail": "다른 계정을 추가하려면 설정에서 계정을 삭제하세요.",
"err_bad_detail": "이메일과 비밀번호를 확인해 주세요. 계정에 2단계 인증을 사용 중이라면 웹메일에서 앱 비밀번호를 만들어 여기에 입력해 주세요.",
"err_bad_title": "로그인하지 못했어요",
"err_cert_detail": "서버의 보안 인증서가 거부되었어요. 직접 운영하는 서버라면 인증서가 유효하고 만료되지 않았는지 확인해 주세요.",
"err_cert_title": "{host}을(를) 확인할 수 없어요",
"err_code_expired_detail": "로그인 코드는 몇 분 동안만 유효해요. 웹메일에서 새 코드를 생성한 후 다시 스캔해 주세요.",
"err_code_expired_detail": "로그인 코드는 2분 동안 유효해요. 웹메일에서 새 코드를 표시한 후 다시 스캔해 주세요.",
"err_code_expired_or_used_detail": "웹메일에서 새 코드를 표시한 후 다시 스캔해 주세요.",
"err_code_expired_or_used_title": "만료되었거나 이미 사용된 코드예요",
"err_code_expired_title": "코드가 만료되었어요",
"err_code_invalid_detail": "웹메일에서 새 코드를 표시한 후(설정 → 보안 → 모바일 앱 연결) 스캔해 주세요.",
"err_code_invalid_title": "유효하지 않은 코드예요",
"err_code_used_detail": "각 코드는 한 번만 사용할 수 있어요. 웹메일에서 새 코드를 표시한 후 다시 스캔해 주세요.",
"err_code_used_title": "이미 사용된 코드예요",
"err_generic_detail": "문제가 발생했어요. 다시 시도해 주세요.",
"err_generic_title": "로그인 실패",
"err_interrupted_detail": "응답이 시작한 요청과 일치하지 않아요. 다시 로그인해 주세요.",
@@ -474,6 +495,17 @@
"err_no_server_title": "{host}에 메일 서버가 없어요",
"err_no_webmail_detail": "이 서버에는 Bulwark 웹메일과 OAuth 로그인이 없어요. 대신 비밀번호(또는 앱 비밀번호)를 사용해 주세요.",
"err_no_webmail_title": "{host}에 로그인 페이지가 없어요",
"err_pair_connect_detail": "컴퓨터에서 새 코드를 표시한 후 다시 스캔해 주세요.",
"err_pair_connect_title": "로그인했지만 {host}에 연결하지 못했어요",
"err_pair_insecure_detail": "{host}에서 암호화되지 않은 연결을 사용하려고 해요.",
"err_pair_network_detail": "연결 상태와 휴대폰에서 웹메일에 접속할 수 있는지 확인한 후 다시 시도해 주세요.",
"err_pair_rate_detail": "1분 정도 기다린 후 다시 시도해 주세요.",
"err_pair_server_detail": "새 코드로 다시 시도해 주세요. 계속 실패하면 관리자에게 문의해 주세요.",
"err_pair_server_title": "웹메일에서 로그인을 완료하지 못했어요",
"err_pair_unsupported_detail": "{host}에서 로그인 코드를 지원하지 않아요. 업데이트가 필요하거나 링크가 잘못된 주소를 가리키고 있을 수 있어요.",
"err_pair_unsupported_title": "이 웹메일은 기기를 연결할 수 없어요",
"err_pair_untrusted_detail": "{host}에서 앱이 확인할 수 없는 서버의 로그인 정보를 보냈어요.",
"err_pair_untrusted_title": "이 로그인은 신뢰할 수 없어요",
"err_rate_detail": "서버에서 잠시 기다려 달라고 요청했어요. 잠시 후 다시 시도해 주세요.",
"err_rate_detail_seconds": "서버에서 기다려 달라고 요청했어요. 약 {seconds}초 후에 다시 시도해 주세요.",
"err_rate_title": "시도 횟수가 너무 많아요",
@@ -487,6 +519,12 @@
"know_server": "서버 주소를 알고 있어요",
"known_server_desc": "이미 알고 있는 서버라서 설정이 필요 없어요",
"known_server_title": "{host}의 다른 계정",
"link_confirm_connect": "링크가 이 페이지에서 로그인하도록 요청하고 있어요. 메일에 {host}을(를) 사용하는 경우에만 계속하세요.",
"link_confirm_connect_add": "링크가 이 페이지에서 로그인해 계정을 추가하도록 요청하고 있어요. 메일에 {host}을(를) 사용하는 경우에만 계속하세요.",
"link_confirm_connect_title": "{host}의 로그인 페이지를 열까요?",
"link_confirm_pair": "이 링크는 {host}의 계정으로 로그인해요. 방금 컴퓨터에서 로그인 코드를 표시한 경우에만 계속하세요.",
"link_confirm_pair_add": "이 링크는 {host}의 계정을 추가하고 앱을 해당 계정으로 전환해요. 방금 컴퓨터에서 로그인 코드를 표시한 경우에만 계속하세요.",
"link_confirm_title": "링크로 로그인할까요?",
"looking_up": "서버를 찾는 중…",
"manual": "서버 정보 직접 입력",
"notice_bad_qr": "Bulwark 로그인 코드가 아니에요",
@@ -505,6 +543,12 @@
"pairing_detail": "이 기기를 {host}와(과) 페어링하는 중…",
"password_subtitle": "비밀번호는 이 서버로만 전송되며 기기의 키체인에 저장돼요.",
"password_title": "{host}에 로그인",
"paste_button": "붙여넣기",
"paste_clipboard_empty": "붙여넣을 내용이 없어요. 먼저 웹메일에서 링크를 복사해 주세요.",
"paste_hint": "웹메일에서 설정 → 보안 → 모바일 앱 연결을 열고 로그인 링크를 복사해 여기에 붙여넣어 주세요.",
"paste_invalid": "Bulwark 로그인 링크가 아니에요",
"paste_label": "로그인 링크",
"paste_title": "로그인 링크 붙여넣기",
"provider_detail": "비밀번호는 제공업체의 페이지에서 입력해요. Bulwark는 로그인 토큰만 저장하며, 언제든지 해지할 수 있어요.",
"provider_title": "비밀번호는 제공업체에만 전달돼요",
"qr_hint": "설정 → 보안 → 모바일 앱 연결에서 코드가 표시돼요. 카메라를 코드에 비춰 주세요.",
@@ -515,6 +559,7 @@
"server_hint": "브라우저에 입력하는 주소와 같아요. https://는 자동으로 추가돼요.",
"server_label": "서버 주소",
"server_not_found": "{domain}의 서버를 찾을 수 없어요. 직접 호스팅하는 경우 웹메일에 사용하는 주소를 입력해 주세요.",
"server_paste_hint": "로그인 링크가 있나요? 여기에 붙여넣어 주세요.",
"server_scan_hint": "잘 모르겠다면 대신 로그인 코드를 스캔해 주세요. 코드에 서버 주소가 포함되어 있어요.",
"server_subtitle": "웹메일에 접속할 때 사용하는 주소를 입력해 주세요.",
"server_title": "서버 주소가 무엇인가요?",
@@ -598,11 +643,110 @@
"book_count": "{count, plural, other {연락처 #개}}",
"default_book": "기본 주소록",
"description_mobile": "표시 설정과 주소록 도구예요.",
"device_sync_desc": "연락처 앱과 이 기기의 다른 앱에 내 주소록을 표시해요. 변경 사항은 양방향으로 동기화돼요.",
"device_sync_title": "이 기기에 동기화",
"export_description_count": "{count, plural, other {연락처 #개를 하나의 vCard 파일로 내보내요.}}",
"export_empty": "내보낼 연락처가 없어요",
"import_description_mobile": "vCard(.vcf) 파일에서 연락처를 가져오고 중복을 감지해요.",
"manage_description_mobile": "연락처를 정리하는 주소록을 만들고, 이름을 바꾸고, 삭제할 수 있어요."
},
"device_sync": {
"also_synced_by": "{accounts} 계정에서도 동기화되어 이 기기에 두 번 표시돼요.",
"android_settings": "Android 계정 설정",
"blocked_calendar": "Android가 더 이상 캘린더 접근 권한을 요청하지 않아요. 앱 설정에서 허용한 후 동기화를 다시 켜 주세요.",
"blocked_contacts": "Android가 더 이상 연락처 접근 권한을 요청하지 않아요. 앱 설정에서 허용한 후 동기화를 다시 켜 주세요.",
"blocked_title": "접근 권한이 꺼져 있어요",
"books_default": "내 주소록은 동기화되고, 공유된 주소록은 선택한 경우에만 동기화돼요.",
"books_hint": "내 주소록은 끄지 않는 한 동기화되고, 공유된 주소록은 켠 경우에만 동기화돼요.",
"books_label": "주소록",
"calendars_default": "내 캘린더는 동기화되고, 공유된 캘린더는 선택한 경우에만 동기화돼요.",
"calendars_hint": "내 캘린더는 끄지 않는 한 동기화되고, 공유된 캘린더는 켠 경우에만 동기화돼요. 할 일 목록은 Bulwark에 남아요.",
"calendars_label": "캘린더",
"choose": "선택",
"choose_books_title": "동기화할 주소록",
"choose_calendars_title": "동기화할 캘린더",
"collections_count": "{total}개 중 {selected}개 동기화",
"continue": "계속",
"deletions_delete": "서버에서 삭제",
"deletions_message": "이 기기에서 많은 항목이 한꺼번에 삭제되어 서버에서는 삭제되지 않았어요. 서버에서도 삭제하거나 이 기기에 다시 복원해 주세요.",
"deletions_restore": "복원",
"deletions_title": "서버에서도 삭제할까요?",
"denied_calendar": "캘린더 접근 권한이 없으면 Bulwark가 내 캘린더를 이 기기에 추가할 수 없어요.",
"denied_contacts": "연락처 접근 권한이 없으면 Bulwark가 내 주소록을 이 기기에 추가할 수 없어요.",
"denied_title": "동기화가 꺼진 상태로 유지돼요",
"failed_title": "동기화를 켤 수 없어요",
"grant_access": "접근 권한 허용",
"interval_15m": "15분마다",
"interval_1h": "1시간마다",
"interval_30m": "30분마다",
"interval_6h": "6시간마다",
"interval_desc": "Android가 자동으로 동기화하는 주기예요. Bulwark에서 수정한 내용과 푸시로 알려진 변경 사항은 더 빨리 동기화돼요.",
"interval_label": "동기화 주기",
"interval_manual": "정기 동기화 안 함",
"keep_syncing": "계속 동기화",
"list_error_auth": "서버가 로그인을 허용하지 않았어요.",
"list_error_network": "서버에 연결할 수 없어요.",
"list_error_server": "서버에서 목록을 가져올 수 없어요.",
"list_error_signed_out": "이 기기에서 이 계정에 로그인되어 있지 않아요.",
"master_off": "이 기기에서 자동 동기화가 꺼져 있어서 \"지금 동기화\"를 탭할 때만 동기화돼요.",
"new_contacts_default": "기본 주소록",
"new_contacts_desc": "이 기기의 다른 앱에서 만든 연락처를 저장할 주소록이에요.",
"new_contacts_label": "새 연락처 저장 위치",
"no_books": "이 계정에는 주소록이 없어요.",
"no_calendars": "이 계정에는 동기화할 캘린더가 없어요.",
"ok": "확인",
"open_app_settings": "앱 설정 열기",
"own_collections": "내 항목",
"rationale_calendar": "캘린더 앱에 내 캘린더를 표시하려면 Bulwark에 이 기기의 캘린더 접근 권한이 필요해요. Bulwark는 자기 계정의 캘린더만 변경해요.",
"rationale_contacts": "연락처 앱에 내 주소록을 표시하려면 Bulwark에 이 기기의 연락처 접근 권한이 필요해요. Bulwark는 자기 계정의 연락처만 변경해요.",
"rationale_title_calendar": "캘린더 접근 허용",
"rationale_title_contacts": "연락처 접근 허용",
"read_only": "읽기 전용",
"reminder_owner_bulwark": "Bulwark",
"reminder_owner_device": "캘린더 앱",
"reminder_question_message": "동기화된 일정 알림은 이 기기의 캘린더 앱이나 Bulwark에서 받을 수 있어요. 알림을 두 번 받지 않도록 하나를 선택해 주세요. 나중에 변경할 수 있어요.",
"reminder_question_title": "어디에서 알림을 받을까요?",
"reminders_desc": "동기화된 일정 알림을 보내는 앱이에요. 다른 쪽은 알림을 보내지 않아 알림을 두 번 받지 않아요.",
"reminders_label": "알림",
"reminders_nobody": "Bulwark의 일정 알림이 꺼져 있어서 동기화된 일정 알림을 받을 수 없어요.",
"remove": "제거",
"remove_from_device": "이 기기에서 제거",
"remove_message": "이 계정의 연락처와 캘린더가 이 기기에서 제거돼요. 여기에서 변경한 내용 중 서버에 전달되지 않은 내용은 사라져요.",
"remove_title": "이 기기에서 제거할까요?",
"review_deletions": "삭제 항목 검토",
"shared_by": "{name} 님이 공유함",
"sign_in_again": "다시 로그인",
"status_auth": "서버가 더 이상 로그인을 허용하지 않아요. 계속 동기화하려면 다시 로그인해 주세요.",
"status_cancelled": "마지막 동기화가 도중에 멈췄어요. 다음번에 이어서 진행해요.",
"status_failed": "마지막 동기화 실패: {message}",
"status_failed_plain": "마지막 동기화에 실패했어요.",
"status_io": "서버에 연결할 수 없었어요({when}). Android가 다시 시도해요.",
"status_item_errors": "{count, plural, other {항목 #개를 동기화할 수 없었어요.}}",
"status_off": "끔",
"status_paused": "Android 설정에서 일시중지됨",
"status_permission_calendar": "캘린더 접근 권한이 꺼져서 아무것도 동기화되지 않아요.",
"status_permission_contacts": "연락처 접근 권한이 꺼져서 아무것도 동기화되지 않아요.",
"status_removed": "Android 설정에서 삭제되었어요. 계정을 다시 추가하려면 동기화를 켜 주세요.",
"status_safety_abort": "중지됨: 이 기기에 아직 항목이 있는데 서버가 아무것도 반환하지 않았어요. 서버를 확인한 후 다시 동기화해 주세요.",
"status_synced": "마지막 동기화: {when}",
"status_syncing": "동기화 중…",
"status_too_many_deletions": "이 기기에서 많은 항목이 삭제되었어요. 확인하기 전까지 서버에서는 삭제되지 않아요.",
"status_unsupported_calendar": "서버가 이 계정에 캘린더를 제공하지 않아요.",
"status_unsupported_contacts": "서버가 이 계정에 주소록을 제공하지 않아요.",
"status_waiting": "첫 동기화를 기다리는 중",
"status_waiting_next": "다음 동기화를 기다리는 중",
"suspended_desc": "로그아웃됨. 이 계정의 연락처와 캘린더는 여기에서 변경한 내용과 함께 이 기기에 남아 있고, 로그인하면 다시 동기화돼요.",
"switch_label": "{account} 계정을 이 기기에 동기화",
"sync_now": "지금 동기화",
"turn_off_anyway": "끄기",
"turn_off_failed": "동기화된 데이터를 이 기기에서 제거할 수 없었어요. 동기화가 일시중지되었어요. 나중에 다시 시도해 주세요.",
"turn_off_failed_title": "동기화를 끌 수 없어요",
"turn_off_pending": "{count, plural, other {이 기기에서 변경한 내용 #개가 아직 서버에 전달되지 않았어요. 지금 동기화를 끄면 사라져요.}}",
"turn_off_title": "그래도 끌까요?",
"turn_off_unknown": "이 기기에서 변경한 내용이 서버에 전달되었는지 Bulwark에서 확인할 수 없었어요. 지금 동기화를 끄면 사라져요.",
"turning_off": "변경 사항을 업로드한 후 이 기기에서 데이터를 제거하는 중…",
"turning_on": "설정하는 중…"
},
"downloads": {
"attachment_template": {
"description_mobile": "첨부 파일을 저장하거나 공유할 때 사용하는 템플릿이에요."
+145 -1
View File
@@ -93,6 +93,8 @@
"until_date": "Līdz {date}"
},
"settings": {
"device_sync_desc": "Rādiet savus kalendārus lietotnē Kalendārs un citās šīs ierīces lietotnēs. Izmaiņas tiek sinhronizētas abos virzienos.",
"device_sync_title": "Sinhronizēt ar šo ierīci",
"show_week_numbers_mobile_desc": "Rādīt nedēļu numurus mēneša skatā.",
"time_zone": "Laika josla",
"time_zone_auto": "Ierīces laika josla",
@@ -249,6 +251,18 @@
"color_tag": "Tags",
"remove_color": "Noņemt tagu"
},
"device_sync": {
"auth_problem_text": "Serveris vairs nepieņem konta {account} pierakstīšanos, tāpēc tā kontakti un kalendāri šajā ierīcē vairs netiek sinhronizēti. Lai turpinātu, pierakstieties vēlreiz. Šajā ierīcē veiktās izmaiņas tiek saglabātas.",
"auth_problem_title": "Pierakstieties vēlreiz, lai turpinātu sinhronizāciju",
"problem_channel": "Sinhronizācijas problēmas",
"sign_out_anyway": "Izrakstīties",
"sign_out_pending_message": "{count, plural, zero {# izmaiņas, kas veiktas šajā ierīcē, nav nonākušas serverī. Tās tiks zaudētas, ja tagad izrakstīsieties.} one {# izmaiņa, kas veikta šajā ierīcē, nav nonākusi serverī. Tā tiks zaudēta, ja tagad izrakstīsieties.} other {# izmaiņas, kas veiktas šajā ierīcē, nav nonākušas serverī. Tās tiks zaudētas, ja tagad izrakstīsieties.}}",
"sign_out_pending_title": "Tomēr izrakstīties?",
"sign_out_unknown_message": "Šajā ierīcē veiktās izmaiņas, iespējams, nav nonākušas serverī. Tās tiks zaudētas, ja tagad izrakstīsieties.",
"signed_out_text": "Konts {account} tika izrakstīts, tāpēc tā kontakti un kalendāri šajā ierīcē vairs netiek sinhronizēti. Lai turpinātu, pierakstieties vēlreiz. Šajā ierīcē veiktās izmaiņas tiek saglabātas.",
"signed_out_title": "Pierakstieties, lai turpinātu sinhronizāciju",
"signing_out": "Sinhronizētie kontakti un kalendāri tiek noņemti no šīs ierīces…"
},
"email_composer": {
"attach_camera": "Kamera",
"attachment_reminder_body": "Jūsu ziņojumā minēts \"{keyword}\", bet nav pievienots neviens fails. Vai tomēr sūtīt?",
@@ -460,12 +474,19 @@
"email_step_title": "Kāda ir jūsu e-pasta adrese?",
"email_step_title_add": "Kāda ir otra adrese?",
"email_title": "Izmantot manu e-pasta adresi",
"err_account_limit_detail": "Lai pievienotu citu kontu, noņemiet kādu kontu iestatījumos.",
"err_bad_detail": "Pārbaudiet e-pasta adresi un paroli. Ja jūsu kontā tiek izmantota divpakāpju pierakstīšanās, izveidojiet lietotnes paroli tīmekļa pastā un izmantojiet to šeit.",
"err_bad_title": "Tas neizdevās",
"err_cert_detail": "Servera drošības sertifikāts tika noraidīts. Ja tas ir jūsu serveris, pārbaudiet, vai sertifikāts ir derīgs un tā termiņš nav beidzies.",
"err_cert_title": "Neizdevās pārbaudīt: {host}",
"err_code_expired_detail": "Pierakstīšanās kodi ir derīgi dažas minūtes. Izveidojiet jaunu tīmekļa pastā un skenējiet vēlreiz.",
"err_code_expired_detail": "Pierakstīšanās kodi ir derīgi divas minūtes. Parādiet jaunu tīmekļa pastā un skenējiet vēlreiz.",
"err_code_expired_or_used_detail": "Parādiet jaunu tīmekļa pastā un skenējiet vēlreiz.",
"err_code_expired_or_used_title": "Šī koda derīgums ir beidzies, vai tas jau ir izmantots",
"err_code_expired_title": "Šī koda derīgums ir beidzies",
"err_code_invalid_detail": "Parādiet jaunu kodu tīmekļa pastā (Iestatījumi → Drošība → Saistīt mobilo lietotni) un noskenējiet to.",
"err_code_invalid_title": "Šis kods nav derīgs",
"err_code_used_detail": "Katrs kods darbojas tikai vienu reizi. Parādiet jaunu tīmekļa pastā un skenējiet vēlreiz.",
"err_code_used_title": "Šis kods jau ir izmantots",
"err_generic_detail": "Kaut kas nogāja greizi. Mēģiniet vēlreiz.",
"err_generic_title": "Pierakstīšanās neizdevās",
"err_interrupted_detail": "Atbilde neatbilda sāktajam pieprasījumam. Mēģiniet pierakstīties vēlreiz.",
@@ -474,6 +495,17 @@
"err_no_server_title": "Pasta serveris nav atrasts: {host}",
"err_no_webmail_detail": "Šim serverim nav Bulwark tīmekļa pasta un OAuth pierakstīšanās. Tā vietā izmantojiet paroli (vai lietotnes paroli).",
"err_no_webmail_title": "Pierakstīšanās lapa nav atrasta: {host}",
"err_pair_connect_detail": "Parādiet jaunu kodu datorā un skenējiet vēlreiz.",
"err_pair_connect_title": "Pierakstījāties, bet neizdevās izveidot savienojumu ar {host}",
"err_pair_insecure_detail": "{host} vēlas izmantot nešifrētu savienojumu.",
"err_pair_network_detail": "Pārbaudiet savienojumu un to, vai tālrunis var piekļūt tīmekļa pastam, un mēģiniet vēlreiz.",
"err_pair_rate_detail": "Uzgaidiet minūti un mēģiniet vēlreiz.",
"err_pair_server_detail": "Mēģiniet vēlreiz ar jaunu kodu. Ja tas joprojām neizdodas, sazinieties ar administratoru.",
"err_pair_server_title": "Tīmekļa pasts nevarēja pabeigt pierakstīšanos",
"err_pair_unsupported_detail": "{host} neatbalsta pierakstīšanās kodus. Iespējams, tam nepieciešams atjauninājums, vai saite norāda uz nepareizu adresi.",
"err_pair_unsupported_title": "Šis tīmekļa pasts nevar saistīt ierīces",
"err_pair_untrusted_detail": "{host} nosūtīja pierakstīšanās datus serverim, ko lietotne nevar pārbaudīt.",
"err_pair_untrusted_title": "Šai pierakstīšanās reizei nevar uzticēties",
"err_rate_detail": "Serveris lūdza brīdi uzgaidīt. Drīz mēģiniet vēlreiz.",
"err_rate_detail_seconds": "Serveris lūdza uzgaidīt. Mēģiniet vēlreiz pēc aptuveni {seconds} s.",
"err_rate_title": "Pārāk daudz mēģinājumu",
@@ -487,6 +519,12 @@
"know_server": "Es zinu sava servera adresi",
"known_server_desc": "Šis serveris mums jau ir zināms, tāpēc nekas nav jāiestata",
"known_server_title": "Vēl viens konts: {host}",
"link_confirm_connect": "Saite aicina pierakstīties šajā lapā. Turpiniet tikai tad, ja izmantojat {host} savam e-pastam.",
"link_confirm_connect_add": "Saite aicina pievienot kontu, pierakstoties šajā lapā. Turpiniet tikai tad, ja izmantojat {host} savam e-pastam.",
"link_confirm_connect_title": "Atvērt {host} pierakstīšanās lapu?",
"link_confirm_pair": "Šī saite pierakstās kontā no {host}. Turpiniet tikai tad, ja tikko datorā parādījāt pierakstīšanās kodu.",
"link_confirm_pair_add": "Šī saite pievieno kontu no {host} un pārslēdz lietotni uz to. Turpiniet tikai tad, ja tikko datorā parādījāt pierakstīšanās kodu.",
"link_confirm_title": "Pierakstīties ar saiti?",
"looking_up": "Meklē jūsu serveri…",
"manual": "Ievadīt servera datus manuāli",
"notice_bad_qr": "Šis nav Bulwark pierakstīšanās kods",
@@ -505,6 +543,12 @@
"pairing_detail": "Šī ierīce tiek savienota pārī: {host}…",
"password_subtitle": "Jūsu parole tiek nosūtīta tikai uz šo serveri un glabāta ierīces atslēgu krātuvē.",
"password_title": "Pierakstīšanās: {host}",
"paste_button": "Ielīmēt",
"paste_clipboard_empty": "Nav ko ielīmēt. Vispirms nokopējiet saiti tīmekļa pastā.",
"paste_hint": "Tīmekļa pastā atveriet Iestatījumi → Drošība → Saistīt mobilo lietotni, nokopējiet pierakstīšanās saiti un ielīmējiet to šeit.",
"paste_invalid": "Šī nav Bulwark pierakstīšanās saite",
"paste_label": "Pierakstīšanās saite",
"paste_title": "Ielīmēt pierakstīšanās saiti",
"provider_detail": "Jūs to ievadīsiet pakalpojumu sniedzēja lapā. Bulwark glabā tikai pierakstīšanās tokenu, ko varat jebkurā laikā atsaukt.",
"provider_title": "Jūsu parole paliek pie pakalpojumu sniedzēja",
"qr_hint": "Sadaļā Iestatījumi → Drošība → Saistīt mobilo lietotni tiek parādīts kods. Pavērsiet pret to kameru.",
@@ -515,6 +559,7 @@
"server_hint": "Tā pati adrese, ko rakstāt pārlūkā. https:// pievienosim mēs.",
"server_label": "Servera adrese",
"server_not_found": "Mēs neatradām serveri domēnam {domain}. Ja izmantojat savu serveri, norādiet adresi, ko lietojat tīmekļa pastam.",
"server_paste_hint": "Jums ir pierakstīšanās saite? Ielīmējiet to šeit.",
"server_scan_hint": "Ja šaubāties, tā vietā skenējiet pierakstīšanās kodu. Tajā ir servera adrese.",
"server_subtitle": "Ievadiet adresi, ar kuru atverat savu tīmekļa pastu.",
"server_title": "Kāda ir jūsu servera adrese?",
@@ -598,11 +643,110 @@
"book_count": "{count, plural, zero {# kontakti} one {# kontakts} other {# kontakti}}",
"default_book": "Noklusējuma adrešu grāmata",
"description_mobile": "Attēlošanas preferences un adrešu grāmatu rīki.",
"device_sync_desc": "Rādiet savas adrešu grāmatas lietotnē Kontakti un citās šīs ierīces lietotnēs. Izmaiņas tiek sinhronizētas abos virzienos.",
"device_sync_title": "Sinhronizēt ar šo ierīci",
"export_description_count": "{count, plural, zero {Eksportēt # kontaktus vienā vCard failā.} one {Eksportēt # kontaktu vienā vCard failā.} other {Eksportēt # kontaktus vienā vCard failā.}}",
"export_empty": "Nav kontaktu, ko eksportēt",
"import_description_mobile": "Importēt kontaktus no vCard (.vcf) faila ar dublikātu noteikšanu.",
"manage_description_mobile": "Izveidojiet, pārdēvējiet un noņemiet adrešu grāmatas, kurās kārtoti jūsu kontakti."
},
"device_sync": {
"also_synced_by": "Sinhronizējas arī kontiem {accounts}, tāpēc šajā ierīcē parādās divreiz.",
"android_settings": "Android konta iestatījumi",
"blocked_calendar": "Android vairs neprasa piekļuvi kalendāriem. Atļaujiet to lietotnes iestatījumos un pēc tam atkal ieslēdziet sinhronizāciju.",
"blocked_contacts": "Android vairs neprasa piekļuvi kontaktiem. Atļaujiet to lietotnes iestatījumos un pēc tam atkal ieslēdziet sinhronizāciju.",
"blocked_title": "Piekļuve ir izslēgta",
"books_default": "Jūsu adrešu grāmatas tiek sinhronizētas, koplietotās — tikai tad, ja tās izvēlaties.",
"books_hint": "Jūsu adrešu grāmatas tiek sinhronizētas, ja vien tās neizslēdzat; koplietotās — tikai tad, ja tās ieslēdzat.",
"books_label": "Adrešu grāmatas",
"calendars_default": "Jūsu kalendāri tiek sinhronizēti, koplietotie — tikai tad, ja tos izvēlaties.",
"calendars_hint": "Jūsu kalendāri tiek sinhronizēti, ja vien tos neizslēdzat; koplietotie — tikai tad, ja tos ieslēdzat. Uzdevumu saraksti paliek Bulwark.",
"calendars_label": "Kalendāri",
"choose": "Izvēlēties",
"choose_books_title": "Sinhronizējamās adrešu grāmatas",
"choose_calendars_title": "Sinhronizējamie kalendāri",
"collections_count": "Sinhronizē: {selected} no {total}",
"continue": "Turpināt",
"deletions_delete": "Dzēst serverī",
"deletions_message": "Šajā ierīcē vienlaikus tika izdzēsts daudz vienumu, tāpēc tie netika izdzēsti serverī. Izdzēsiet tos arī tur vai atjaunojiet tos šajā ierīcē.",
"deletions_restore": "Atjaunot",
"deletions_title": "Vai dzēst tos arī serverī?",
"denied_calendar": "Bez piekļuves kalendāriem Bulwark nevar ievietot jūsu kalendārus šajā ierīcē.",
"denied_contacts": "Bez piekļuves kontaktiem Bulwark nevar ievietot jūsu adrešu grāmatas šajā ierīcē.",
"denied_title": "Sinhronizācija paliek izslēgta",
"failed_title": "Sinhronizāciju neizdevās ieslēgt",
"grant_access": "Piešķirt piekļuvi",
"interval_15m": "Ik pēc 15 minūtēm",
"interval_1h": "Ik pēc stundas",
"interval_30m": "Ik pēc 30 minūtēm",
"interval_6h": "Ik pēc 6 stundām",
"interval_desc": "Cik bieži Android sinhronizē patstāvīgi. Labojumi Bulwark un ar push paziņotās izmaiņas tiek sinhronizēti ātrāk.",
"interval_label": "Sinhronizācijas intervāls",
"interval_manual": "Bez regulāras sinhronizācijas",
"keep_syncing": "Turpināt sinhronizāciju",
"list_error_auth": "Serveris nepieņēma pierakstīšanos.",
"list_error_network": "Neizdevās sazināties ar serveri.",
"list_error_server": "Serveris nespēja sniegt sarakstu.",
"list_error_signed_out": "Šis konts šajā ierīcē nav pierakstīts.",
"master_off": "Automātiskā sinhronizācija šajā ierīcē ir izslēgta, tāpēc sinhronizācija notiek tikai tad, kad pieskaraties \"Sinhronizēt tagad\".",
"new_contacts_default": "Noklusējuma adrešu grāmata",
"new_contacts_desc": "Adrešu grāmata kontaktiem, kas izveidoti citās šīs ierīces lietotnēs.",
"new_contacts_label": "Kur saglabāt jaunos kontaktus",
"no_books": "Šim kontam nav adrešu grāmatu.",
"no_calendars": "Šim kontam nav sinhronizējamu kalendāru.",
"ok": "Labi",
"open_app_settings": "Atvērt iestatījumus",
"own_collections": "Jūsu",
"rationale_calendar": "Lai rādītu jūsu kalendārus lietotnē Kalendārs, Bulwark nepieciešama piekļuve šīs ierīces kalendāriem. Bulwark maina tikai sava konta kalendārus.",
"rationale_contacts": "Lai rādītu jūsu adrešu grāmatas lietotnē Kontakti, Bulwark nepieciešama piekļuve šīs ierīces kontaktiem. Bulwark maina tikai sava konta kontaktus.",
"rationale_title_calendar": "Atļaut piekļuvi kalendāriem",
"rationale_title_contacts": "Atļaut piekļuvi kontaktiem",
"read_only": "Tikai lasāms",
"reminder_owner_bulwark": "Bulwark",
"reminder_owner_device": "Lietotne Kalendārs",
"reminder_question_message": "Atgādinājumus par sinhronizētajiem notikumiem var sūtīt šīs ierīces kalendāra lietotne vai Bulwark. Izvēlieties vienu, lai nesaņemtu atgādinājumus divreiz. Vēlāk to var mainīt.",
"reminder_question_title": "Kas jums atgādinās?",
"reminders_desc": "Kas jums atgādina par sinhronizētajiem notikumiem. Otrs klusē, lai jūs nesaņemtu atgādinājumus divreiz.",
"reminders_label": "Atgādinājumi",
"reminders_nobody": "Bulwark notikumu paziņojumi ir izslēgti, tāpēc nekas neatgādina par sinhronizētajiem notikumiem.",
"remove": "Noņemt",
"remove_from_device": "Noņemt no šīs ierīces",
"remove_message": "Konta kontakti un kalendāri tiks noņemti no šīs ierīces. Šeit veiktās izmaiņas, kas nav nonākušas serverī, tiks zaudētas.",
"remove_title": "Vai noņemt no šīs ierīces?",
"review_deletions": "Pārskatīt dzēšanas",
"shared_by": "Kopīgoja: {name}",
"sign_in_again": "Pierakstīties vēlreiz",
"status_auth": "Serveris vairs nepieņem pierakstīšanos. Pierakstieties vēlreiz, lai turpinātu sinhronizāciju.",
"status_cancelled": "Pēdējā sinhronizācija apstājās priekšlaicīgi. Nākamreiz tā turpināsies.",
"status_failed": "Pēdējā sinhronizācija neizdevās: {message}",
"status_failed_plain": "Pēdējā sinhronizācija neizdevās.",
"status_io": "Serveris {when} nebija sasniedzams. Android mēģinās vēlreiz.",
"status_item_errors": "{count, plural, zero {# vienumus neizdevās sinhronizēt.} one {# vienumu neizdevās sinhronizēt.} other {# vienumus neizdevās sinhronizēt.}}",
"status_off": "Izslēgta",
"status_paused": "Apturēta Android iestatījumos",
"status_permission_calendar": "Piekļuve kalendāriem tika izslēgta, tāpēc nekas netiek sinhronizēts.",
"status_permission_contacts": "Piekļuve kontaktiem tika izslēgta, tāpēc nekas netiek sinhronizēts.",
"status_removed": "Noņemts Android iestatījumos. Ieslēdziet sinhronizāciju, lai kontu pievienotu vēlreiz.",
"status_safety_abort": "Apturēts: serveris neatgrieza neko, lai gan šajā ierīcē joprojām ir vienumi. Pārbaudiet serveri un pēc tam sinhronizējiet vēlreiz.",
"status_synced": "Sinhronizēts {when}",
"status_syncing": "Sinhronizē…",
"status_too_many_deletions": "Šajā ierīcē tika izdzēsts daudz vienumu. Serverī tie netiks izdzēsti, kamēr jūs to neapstiprināsiet.",
"status_unsupported_calendar": "Serveris šim kontam nepiedāvā kalendārus.",
"status_unsupported_contacts": "Serveris šim kontam nepiedāvā adrešu grāmatas.",
"status_waiting": "Gaida pirmo sinhronizāciju",
"status_waiting_next": "Gaida nākamo sinhronizāciju",
"suspended_desc": "Izrakstīts. Konta kontakti un kalendāri paliek šajā ierīcē kopā ar šeit veiktajām izmaiņām un tiks atkal sinhronizēti, tiklīdz pierakstīsieties.",
"switch_label": "Sinhronizēt {account} ar šo ierīci",
"sync_now": "Sinhronizēt tagad",
"turn_off_anyway": "Izslēgt",
"turn_off_failed": "Sinhronizētos datus neizdevās noņemt no šīs ierīces. Sinhronizācija ir apturēta; vēlāk mēģiniet vēlreiz.",
"turn_off_failed_title": "Sinhronizāciju neizdevās izslēgt",
"turn_off_pending": "{count, plural, zero {# izmaiņas, kas veiktas šajā ierīcē, vēl nav nonākušas serverī. Tās tiks zaudētas, ja tagad izslēgsiet sinhronizāciju.} one {# izmaiņa, kas veikta šajā ierīcē, vēl nav nonākusi serverī. Tā tiks zaudēta, ja tagad izslēgsiet sinhronizāciju.} other {# izmaiņas, kas veiktas šajā ierīcē, vēl nav nonākušas serverī. Tās tiks zaudētas, ja tagad izslēgsiet sinhronizāciju.}}",
"turn_off_title": "Tomēr izslēgt?",
"turn_off_unknown": "Bulwark nevarēja pārbaudīt, vai šajā ierīcē veiktās izmaiņas ir nonākušas serverī. Tās tiks zaudētas, ja tagad izslēgsiet sinhronizāciju.",
"turning_off": "Augšupielādē izmaiņas, pēc tam noņem datus no šīs ierīces…",
"turning_on": "Notiek iestatīšana…"
},
"downloads": {
"attachment_template": {
"description_mobile": "Veidne, ko izmanto, saglabājot vai kopīgojot pielikumu."
+145 -1
View File
@@ -93,6 +93,8 @@
"until_date": "{date} хүртэл"
},
"settings": {
"device_sync_desc": "Хуанлиудаа энэ төхөөрөмжийн Хуанли апп болон бусад аппуудад харуулна. Өөрчлөлтүүд хоёр чиглэлд синк хийгдэнэ.",
"device_sync_title": "Энэ төхөөрөмжтэй синк хийх",
"show_week_numbers_mobile_desc": "Сарын харагдацад долоо хоногийн дугаарыг харуулах.",
"time_zone": "Цагийн бүс",
"time_zone_auto": "Төхөөрөмжийн цагийн бүс",
@@ -249,6 +251,18 @@
"color_tag": "Таг",
"remove_color": "Тагийг хасах"
},
"device_sync": {
"auth_problem_text": "Сервер {account} бүртгэлийн нэвтрэлтийг хүлээн авахаа больсон тул энэ төхөөрөмж дээрх түүний харилцагчид болон хуанлиуд синк хийгдэхээ болилоо. Үргэлжлүүлэхийн тулд дахин нэвтэрнэ үү. Энэ төхөөрөмж дээр хийсэн өөрчлөлтүүд хадгалагдана.",
"auth_problem_title": "Синкийг үргэлжлүүлэхийн тулд дахин нэвтэрнэ үү",
"problem_channel": "Синкийн асуудлууд",
"sign_out_anyway": "Гарах",
"sign_out_pending_message": "{count, plural, one {Энэ төхөөрөмж дээр хийсэн # өөрчлөлт серверт хүрээгүй байна. Одоо гарвал энэ нь алга болно.} other {Энэ төхөөрөмж дээр хийсэн # өөрчлөлт серверт хүрээгүй байна. Одоо гарвал эдгээр нь алга болно.}}",
"sign_out_pending_title": "Ямар ч байсан гарах уу?",
"sign_out_unknown_message": "Энэ төхөөрөмж дээр хийсэн өөрчлөлтүүд серверт хүрээгүй байж магадгүй. Одоо гарвал тэдгээр нь алга болно.",
"signed_out_text": "{account} бүртгэлээс гарсан тул энэ төхөөрөмж дээрх түүний харилцагчид болон хуанлиуд синк хийгдэхээ болилоо. Үргэлжлүүлэхийн тулд дахин нэвтэрнэ үү. Энэ төхөөрөмж дээр хийсэн өөрчлөлтүүд хадгалагдана.",
"signed_out_title": "Синкийг үргэлжлүүлэхийн тулд нэвтэрнэ үү",
"signing_out": "Синк хийсэн харилцагчид болон хуанлиудыг энэ төхөөрөмжөөс устгаж байна…"
},
"email_composer": {
"attach_camera": "Камер",
"attachment_reminder_body": "Таны имэйлд \"{keyword}\" гэж дурдсан ч файл хавсаргаагүй байна. Ямар ч байсан илгээх үү?",
@@ -460,12 +474,19 @@
"email_step_title": "Таны имэйл хаяг юу вэ?",
"email_step_title_add": "Нөгөө хаяг юу вэ?",
"email_title": "Имэйл хаягаа ашиглах",
"err_account_limit_detail": "Өөр бүртгэл нэмэхийн тулд Тохиргооноос нэг бүртгэлийг хасна уу.",
"err_bad_detail": "Имэйл болон нууц үгээ шалгана уу. Хэрэв таны бүртгэл хоёр шаттай нэвтрэлт ашигладаг бол вэбмэйлд аппын нууц үг үүсгээд энд ашиглана уу.",
"err_bad_title": "Амжилтгүй боллоо",
"err_cert_detail": "Серверийн аюулгүй байдлын гэрчилгээг татгалзсан. Хэрэв энэ таны өөрийн сервер бол гэрчилгээ хүчинтэй, хугацаа нь дуусаагүй эсэхийг шалгана уу.",
"err_cert_title": "Баталгаажуулж чадсангүй: {host}",
"err_code_expired_detail": "Нэвтрэх код хэдхэн минут хүчинтэй. Вэбмэйлд шинэ код үүсгээд дахин скан хийнэ үү.",
"err_code_expired_detail": "Нэвтрэх код хоёр минут хүчинтэй. Вэбмэйлд шинэ код харуулаад дахин скан хийнэ үү.",
"err_code_expired_or_used_detail": "Вэбмэйлд шинэ код харуулаад дахин скан хийнэ үү.",
"err_code_expired_or_used_title": "Энэ кодын хугацаа дууссан эсвэл аль хэдийн ашиглагдсан",
"err_code_expired_title": "Кодын хугацаа дууссан",
"err_code_invalid_detail": "Вэбмэйлд шинэ код харуулаад (Тохиргоо → Аюулгүй байдал → Мобайл програмыг холбох) скан хийнэ үү.",
"err_code_invalid_title": "Энэ код хүчингүй байна",
"err_code_used_detail": "Код бүр зөвхөн нэг удаа ажиллана. Вэбмэйлд шинэ код харуулаад дахин скан хийнэ үү.",
"err_code_used_title": "Энэ код аль хэдийн ашиглагдсан",
"err_generic_detail": "Ямар нэг алдаа гарлаа. Дахин оролдоно уу.",
"err_generic_title": "Нэвтэрч чадсангүй",
"err_interrupted_detail": "Хариу нь бидний эхлүүлсэн хүсэлттэй таарахгүй байна. Дахин нэвтэрч үзнэ үү.",
@@ -474,6 +495,17 @@
"err_no_server_title": "Мэйл сервер алга: {host}",
"err_no_webmail_detail": "Энэ серверт Bulwark вэбмэйл болон OAuth нэвтрэлт байхгүй. Оронд нь нууц үг (эсвэл аппын нууц үг) ашиглана уу.",
"err_no_webmail_title": "Нэвтрэх хуудас алга: {host}",
"err_pair_connect_detail": "Компьютер дээрээ шинэ код харуулаад дахин скан хийнэ үү.",
"err_pair_connect_title": "Нэвтэрсэн ч {host} руу холбогдож чадсангүй",
"err_pair_insecure_detail": "{host} шифрлэгдээгүй холболт ашиглахыг хүсэж байна.",
"err_pair_network_detail": "Холболтоо болон утас тань вэбмэйлд хүрч чадаж байгаа эсэхийг шалгаад дахин оролдоно уу.",
"err_pair_rate_detail": "Нэг минут хүлээгээд дахин оролдоно уу.",
"err_pair_server_detail": "Шинэ кодоор дахин оролдоно уу. Алдаа үргэлжилбэл админтайгаа холбогдоно уу.",
"err_pair_server_title": "Вэбмэйл нэвтрэлтийг дуусгаж чадсангүй",
"err_pair_unsupported_detail": "{host} нэвтрэх кодыг дэмждэггүй. Шинэчлэл шаардлагатай байж магадгүй, эсвэл холбоос буруу хаяг руу заасан байна.",
"err_pair_unsupported_title": "Энэ вэбмэйл төхөөрөмж холбох боломжгүй",
"err_pair_untrusted_detail": "{host} програмын баталгаажуулж чадахгүй серверийн нэвтрэх мэдээллийг илгээсэн.",
"err_pair_untrusted_title": "Энэ нэвтрэлтэд итгэх боломжгүй",
"err_rate_detail": "Сервер түр хүлээхийг хүслээ. Удахгүй дахин оролдоно уу.",
"err_rate_detail_seconds": "Сервер хүлээхийг хүслээ. Ойролцоогоор {seconds} секундын дараа дахин оролдоно уу.",
"err_rate_title": "Хэт олон оролдлого",
@@ -487,6 +519,12 @@
"know_server": "Би серверийн хаягаа мэднэ",
"known_server_desc": "Бид энэ серверийг аль хэдийн мэддэг тул тохируулах шаардлагагүй",
"known_server_title": "{host} дээрх өөр бүртгэл",
"link_confirm_connect": "Холбоос энэ хуудсанд нэвтрэхийг хүсэж байна. Та имэйлдээ {host}-ийг ашигладаг бол л үргэлжлүүлнэ үү.",
"link_confirm_connect_add": "Холбоос энэ хуудсанд нэвтэрч бүртгэл нэмэхийг хүсэж байна. Та имэйлдээ {host}-ийг ашигладаг бол л үргэлжлүүлнэ үү.",
"link_confirm_connect_title": "{host}-ийн нэвтрэх хуудсыг нээх үү?",
"link_confirm_pair": "Энэ холбоос {host} дээрх бүртгэлд нэвтрүүлнэ. Та саяхан компьютер дээрээ нэвтрэх код харуулсан бол л үргэлжлүүлнэ үү.",
"link_confirm_pair_add": "Энэ холбоос {host} дээрх бүртгэлийг нэмээд програмыг түүн рүү шилжүүлнэ. Та саяхан компьютер дээрээ нэвтрэх код харуулсан бол л үргэлжлүүлнэ үү.",
"link_confirm_title": "Холбоосоор нэвтрэх үү?",
"looking_up": "Таны серверийг хайж байна…",
"manual": "Серверийн мэдээллийг гараар оруулах",
"notice_bad_qr": "Энэ код Bulwark-ийн нэвтрэх код биш байна",
@@ -505,6 +543,12 @@
"pairing_detail": "Энэ төхөөрөмжийг холбож байна: {host}…",
"password_subtitle": "Таны нууц үгийг зөвхөн энэ сервер рүү илгээх бөгөөд төхөөрөмжийн түлхүүрийн санд хадгална.",
"password_title": "Нэвтрэх: {host}",
"paste_button": "Буулгах",
"paste_clipboard_empty": "Буулгах зүйл алга. Эхлээд вэбмэйлээс холбоосыг хуулна уу.",
"paste_hint": "Вэбмэйлд Тохиргоо → Аюулгүй байдал → Мобайл програмыг холбох хэсгийг нээж, нэвтрэх холбоосыг хуулаад энд буулгана уу.",
"paste_invalid": "Энэ Bulwark-ийн нэвтрэх холбоос биш байна",
"paste_label": "Нэвтрэх холбоос",
"paste_title": "Нэвтрэх холбоос буулгах",
"provider_detail": "Та нууц үгээ тэдний хуудсанд бичнэ. Bulwark зөвхөн нэвтрэх токен хадгалах бөгөөд та үүнийг хүссэн үедээ хүчингүй болгож болно.",
"provider_title": "Таны нууц үг үйлчилгээ үзүүлэгч дээрээ үлдэнэ",
"qr_hint": "Тохиргоо → Аюулгүй байдал → Мобайл програмыг холбох хэсэгт код гарна. Камераа түүн рүү чиглүүлнэ үү.",
@@ -515,6 +559,7 @@
"server_hint": "Хөтөч дээр бичдэг хаяг. https://-г бид нэмнэ.",
"server_label": "Серверийн хаяг",
"server_not_found": "{domain} домэйны сервер олдсонгүй. Хэрэв та өөрөө сервертэй бол вэбмэйлд ашигладаг хаягаа оруулна уу.",
"server_paste_hint": "Оронд нь нэвтрэх холбоос байгаа юу? Энд буулгана уу.",
"server_scan_hint": "Итгэлгүй байвал оронд нь нэвтрэх код скан хийнэ үү. Үүнд серверийн хаяг агуулагддаг.",
"server_subtitle": "Вэбмэйл рүүгээ ороход ашигладаг хаягаа оруулна уу.",
"server_title": "Таны серверийн хаяг юу вэ?",
@@ -598,11 +643,110 @@
"book_count": "{count, plural, one {# харилцагч} other {# харилцагч}}",
"default_book": "Өгөгдмөл хаягийн дэвтэр",
"description_mobile": "Харагдах байдлын тохиргоо болон хаягийн дэвтрийн хэрэгслүүд.",
"device_sync_desc": "Хаягийн дэвтрүүдээ энэ төхөөрөмжийн Харилцагчид апп болон бусад аппуудад харуулна. Өөрчлөлтүүд хоёр чиглэлд синк хийгдэнэ.",
"device_sync_title": "Энэ төхөөрөмжтэй синк хийх",
"export_description_count": "{count, plural, one {# харилцагчийг нэг vCard файл болгон экспортлох.} other {# харилцагчийг нэг vCard файл болгон экспортлох.}}",
"export_empty": "Экспортлох харилцагч алга",
"import_description_mobile": "vCard (.vcf) файлаас давхардлыг илрүүлэн харилцагчдыг импортлох.",
"manage_description_mobile": "Харилцагчдаа цэгцлэх хаягийн дэвтрүүдийг үүсгэх, нэрийг нь өөрчлөх, устгах."
},
"device_sync": {
"also_synced_by": "{accounts} бүртгэлд мөн синк хийгддэг тул энэ төхөөрөмж дээр хоёр удаа харагдана.",
"android_settings": "Android бүртгэлийн тохиргоо",
"blocked_calendar": "Android хуанлид хандах зөвшөөрөл дахин асуухгүй. Аппын тохиргооноос зөвшөөрөөд синкийг дахин асаана уу.",
"blocked_contacts": "Android харилцагчдад хандах зөвшөөрөл дахин асуухгүй. Аппын тохиргооноос зөвшөөрөөд синкийг дахин асаана уу.",
"blocked_title": "Хандалт унтарсан байна",
"books_default": "Таны өөрийн хаягийн дэвтрүүд синк хийгдэнэ; хуваалцсан нь зөвхөн та сонгосон үед.",
"books_hint": "Таны өөрийн хаягийн дэвтрүүд таныг унтраахаас бусад тохиолдолд синк хийгдэнэ; хуваалцсан нь зөвхөн та асаасан үед.",
"books_label": "Хаягийн дэвтрүүд",
"calendars_default": "Таны өөрийн хуанлиуд синк хийгдэнэ; хуваалцсан нь зөвхөн та сонгосон үед.",
"calendars_hint": "Таны өөрийн хуанлиуд таныг унтраахаас бусад тохиолдолд синк хийгдэнэ; хуваалцсан нь зөвхөн та асаасан үед. Даалгаврын жагсаалтууд Bulwark-д үлдэнэ.",
"calendars_label": "Хуанлиуд",
"choose": "Сонгох",
"choose_books_title": "Синк хийх хаягийн дэвтрүүд",
"choose_calendars_title": "Синк хийх хуанлиуд",
"collections_count": "Синк хийгдэж буй: {selected}/{total}",
"continue": "Үргэлжлүүлэх",
"deletions_delete": "Сервер дээр устгах",
"deletions_message": "Энэ төхөөрөмж дээр олон зүйлийг нэг дор устгасан тул сервер дээр устгаагүй. Тэдгээрийг тэнд ч мөн устгах эсвэл энэ төхөөрөмж дээр сэргээнэ үү.",
"deletions_restore": "Сэргээх",
"deletions_title": "Сервер дээр ч мөн устгах уу?",
"denied_calendar": "Хуанлид хандах эрхгүйгээр Bulwark таны хуанлиудыг энэ төхөөрөмж дээр байршуулж чадахгүй.",
"denied_contacts": "Харилцагчдад хандах эрхгүйгээр Bulwark таны хаягийн дэвтрүүдийг энэ төхөөрөмж дээр байршуулж чадахгүй.",
"denied_title": "Синк унтраалттай хэвээр байна",
"failed_title": "Синкийг асааж чадсангүй",
"grant_access": "Хандалт олгох",
"interval_15m": "15 минут тутамд",
"interval_1h": "Цаг бүр",
"interval_30m": "30 минут тутамд",
"interval_6h": "6 цаг тутамд",
"interval_desc": "Android өөрөө хэр олон удаа синк хийхийг заана. Bulwark дахь засварууд болон push-аар мэдэгдсэн өөрчлөлтүүд илүү эрт синк хийгдэнэ.",
"interval_label": "Синкийн давтамж",
"interval_manual": "Тогтмол синк хийхгүй",
"keep_syncing": "Синкийг үргэлжлүүлэх",
"list_error_auth": "Сервер нэвтрэлтийг хүлээн аваагүй.",
"list_error_network": "Сервертэй холбогдож чадсангүй.",
"list_error_server": "Сервер жагсаалтыг гаргаж чадсангүй.",
"list_error_signed_out": "Энэ төхөөрөмж дээр энэ бүртгэлээр нэвтрээгүй байна.",
"master_off": "Энэ төхөөрөмж дээр автомат синк унтарсан байгаа тул зөвхөн \"Одоо синк хийх\" дээр товшиход синк хийгдэнэ.",
"new_contacts_default": "Өгөгдмөл хаягийн дэвтэр",
"new_contacts_desc": "Энэ төхөөрөмжийн бусад аппад үүсгэсэн харилцагчдыг хадгалах хаягийн дэвтэр.",
"new_contacts_label": "Шинэ харилцагчдыг хадгалах газар",
"no_books": "Энэ бүртгэлд хаягийн дэвтэр алга.",
"no_calendars": "Энэ бүртгэлд синк хийх хуанли алга.",
"ok": "OK",
"open_app_settings": "Аппын тохиргоог нээх",
"own_collections": "Таных",
"rationale_calendar": "Таны хуанлиудыг Хуанли аппад харуулахын тулд Bulwark-д энэ төхөөрөмжийн хуанлид хандах эрх хэрэгтэй. Энэ нь зөвхөн өөрийн бүртгэлийн хуанлиудыг өөрчилнө.",
"rationale_contacts": "Таны хаягийн дэвтрүүдийг Харилцагчид аппад харуулахын тулд Bulwark-д энэ төхөөрөмжийн харилцагчдад хандах эрх хэрэгтэй. Энэ нь зөвхөн өөрийн бүртгэлийн харилцагчдыг өөрчилнө.",
"rationale_title_calendar": "Хуанлид хандахыг зөвшөөрөх",
"rationale_title_contacts": "Харилцагчдад хандахыг зөвшөөрөх",
"read_only": "Зөвхөн унших",
"reminder_owner_bulwark": "Bulwark",
"reminder_owner_device": "Хуанли апп",
"reminder_question_message": "Синк хийсэн үйл явдлын сануулгыг энэ төхөөрөмжийн хуанли апп эсвэл Bulwark илгээж болно. Сануулга хоёр удаа ирэхгүйн тулд аль нэгийг нь сонгоно уу. Үүнийг дараа нь өөрчилж болно.",
"reminder_question_title": "Хэн танд сануулах вэ?",
"reminders_desc": "Синк хийсэн үйл явдлын талаар хэн танд сануулах. Нөгөө нь чимээгүй байх тул сануулга хоёр удаа ирэхгүй.",
"reminders_label": "Сануулгууд",
"reminders_nobody": "Bulwark-ын үйл явдлын мэдэгдэл унтарсан тул синк хийсэн үйл явдлын талаар юу ч танд сануулахгүй.",
"remove": "Хасах",
"remove_from_device": "Энэ төхөөрөмжөөс хасах",
"remove_message": "Бүртгэлийн харилцагчид болон хуанлиуд энэ төхөөрөмжөөс хасагдана. Энд хийсэн, серверт хүрээгүй өөрчлөлтүүд алга болно.",
"remove_title": "Энэ төхөөрөмжөөс хасах уу?",
"review_deletions": "Устгалуудыг хянах",
"shared_by": "Хуваалцсан: {name}",
"sign_in_again": "Дахин нэвтрэх",
"status_auth": "Сервер нэвтрэлтийг хүлээн авахаа больсон. Синкийг үргэлжлүүлэхийн тулд дахин нэвтэрнэ үү.",
"status_cancelled": "Сүүлийн синк эрт зогссон. Дараагийн удаа үргэлжилнэ.",
"status_failed": "Сүүлийн синк амжилтгүй: {message}",
"status_failed_plain": "Сүүлийн синк амжилтгүй боллоо.",
"status_io": "Сервертэй холбогдож чадсангүй ({when}). Android дахин оролдоно.",
"status_item_errors": "{count, plural, one {# зүйлийг синк хийж чадсангүй.} other {# зүйлийг синк хийж чадсангүй.}}",
"status_off": "Унтраалттай",
"status_paused": "Android-ийн тохиргоонд түр зогсоосон",
"status_permission_calendar": "Хуанлид хандах эрх унтарсан тул юу ч синк хийгдэхгүй.",
"status_permission_contacts": "Харилцагчдад хандах эрх унтарсан тул юу ч синк хийгдэхгүй.",
"status_removed": "Android-ийн тохиргооноос хасагдсан. Бүртгэлийг дахин нэмэхийн тулд синкийг асаана уу.",
"status_safety_abort": "Зогссон: энэ төхөөрөмж дээр зүйлс байсаар байхад сервер юу ч буцаасангүй. Серверийг шалгаад дахин синк хийнэ үү.",
"status_synced": "Сүүлийн синк: {when}",
"status_syncing": "Синк хийж байна…",
"status_too_many_deletions": "Энэ төхөөрөмж дээр олон зүйл устгагдсан. Таныг баталгаажуулах хүртэл сервер дээр устгахгүй.",
"status_unsupported_calendar": "Сервер энэ бүртгэлд хуанли санал болгодоггүй.",
"status_unsupported_contacts": "Сервер энэ бүртгэлд хаягийн дэвтэр санал болгодоггүй.",
"status_waiting": "Анхны синкийг хүлээж байна",
"status_waiting_next": "Дараагийн синкийг хүлээж байна",
"suspended_desc": "Гарсан. Түүний харилцагчид болон хуанлиуд энд хийсэн өөрчлөлтүүдийн хамт энэ төхөөрөмж дээр үлдэх бөгөөд таныг нэвтэрмэгц дахин синк хийгдэнэ.",
"switch_label": "{account} бүртгэлийг энэ төхөөрөмжтэй синк хийх",
"sync_now": "Одоо синк хийх",
"turn_off_anyway": "Унтраах",
"turn_off_failed": "Синк хийсэн өгөгдлийг энэ төхөөрөмжөөс хасаж чадсангүй. Синк түр зогссон; дараа дахин оролдоно уу.",
"turn_off_failed_title": "Синкийг унтрааж чадсангүй",
"turn_off_pending": "{count, plural, one {Энэ төхөөрөмж дээр хийсэн # өөрчлөлт серверт хараахан хүрээгүй байна. Одоо синкийг унтраавал энэ нь алга болно.} other {Энэ төхөөрөмж дээр хийсэн # өөрчлөлт серверт хараахан хүрээгүй байна. Одоо синкийг унтраавал эдгээр нь алга болно.}}",
"turn_off_title": "Ямар ч байсан унтраах уу?",
"turn_off_unknown": "Энэ төхөөрөмж дээр хийсэн өөрчлөлтүүд серверт хүрсэн эсэхийг Bulwark шалгаж чадсангүй. Одоо синкийг унтраавал тэдгээр нь алга болно.",
"turning_off": "Өөрчлөлтүүдийг илгээж, дараа нь өгөгдлийг энэ төхөөрөмжөөс хасаж байна…",
"turning_on": "Тохируулж байна…"
},
"downloads": {
"attachment_template": {
"description_mobile": "Хавсралтыг хадгалах эсвэл хуваалцахад ашиглах загвар."
+145 -1
View File
@@ -93,6 +93,8 @@
"until_date": "Til {date}"
},
"settings": {
"device_sync_desc": "Vis kalenderne dine i Kalender-appen og andre apper på denne enheten. Endringer synkroniseres begge veier.",
"device_sync_title": "Synkroniser med denne enheten",
"show_week_numbers_mobile_desc": "Vis ukenummer i månedsvisningen.",
"time_zone": "Tidssone",
"time_zone_auto": "Enhetens tidssone",
@@ -249,6 +251,18 @@
"color_tag": "Etikett",
"remove_color": "Fjern etiketten"
},
"device_sync": {
"auth_problem_text": "Serveren godtar ikke lenger påloggingen for {account}, så kontaktene og kalenderne til kontoen på denne enheten synkroniseres ikke lenger. Logg på igjen for å fortsette. Endringer som er gjort på denne enheten, beholdes.",
"auth_problem_title": "Logg på igjen for å fortsette synkroniseringen",
"problem_channel": "Synkroniseringsproblemer",
"sign_out_anyway": "Logg ut",
"sign_out_pending_message": "{count, plural, one {# endring som er gjort på denne enheten, har ikke nådd serveren. Den går tapt hvis du logger ut nå.} other {# endringer som er gjort på denne enheten, har ikke nådd serveren. De går tapt hvis du logger ut nå.}}",
"sign_out_pending_title": "Vil du logge ut likevel?",
"sign_out_unknown_message": "Endringer som er gjort på denne enheten, har kanskje ikke nådd serveren. De går tapt hvis du logger ut nå.",
"signed_out_text": "{account} ble logget ut, så kontaktene og kalenderne til kontoen på denne enheten synkroniseres ikke lenger. Logg på igjen for å fortsette. Endringer som er gjort på denne enheten, beholdes.",
"signed_out_title": "Logg på for å fortsette synkroniseringen",
"signing_out": "Fjerner synkroniserte kontakter og kalendere fra denne enheten…"
},
"email_composer": {
"attach_camera": "Kamera",
"attachment_reminder_body": "Meldingen din nevner «{keyword}», men ingen fil er vedlagt. Sende likevel?",
@@ -460,12 +474,19 @@
"email_step_title": "Hva er e-postadressen din?",
"email_step_title_add": "Hva er den andre adressen?",
"email_title": "Bruk e-postadressen min",
"err_account_limit_detail": "Fjern en konto i Innstillinger for å legge til en ny.",
"err_bad_detail": "Sjekk e-postadressen og passordet. Hvis kontoen din bruker tofaktorautentisering, oppretter du et app-passord i nettposten og bruker det her.",
"err_bad_title": "Det fungerte ikke",
"err_cert_detail": "Serverens sikkerhetssertifikat ble avvist. Hvis dette er din egen server, må du sjekke at sertifikatet er gyldig og ikke utløpt.",
"err_cert_title": "Kunne ikke bekrefte {host}",
"err_code_expired_detail": "Påloggingskoder er bare gyldige i noen få minutter. Lag en ny i nettposten, og skann på nytt.",
"err_code_expired_detail": "Påloggingskoder er gyldige i to minutter. Vis en ny i nettposten, og skann på nytt.",
"err_code_expired_or_used_detail": "Vis en ny i nettposten, og skann på nytt.",
"err_code_expired_or_used_title": "Koden er utløpt eller allerede brukt",
"err_code_expired_title": "Koden er utløpt",
"err_code_invalid_detail": "Vis en ny kode i nettposten (Innstillinger → Sikkerhet → Koble til mobilappen), og skann den.",
"err_code_invalid_title": "Koden er ikke gyldig",
"err_code_used_detail": "Hver kode virker bare én gang. Vis en ny i nettposten, og skann på nytt.",
"err_code_used_title": "Koden er allerede brukt",
"err_generic_detail": "Noe gikk galt. Prøv igjen.",
"err_generic_title": "Påloggingen mislyktes",
"err_interrupted_detail": "Svaret samsvarte ikke med forespørselen vi startet. Prøv å logge på igjen.",
@@ -474,6 +495,17 @@
"err_no_server_title": "Ingen e-postserver på {host}",
"err_no_webmail_detail": "Denne serveren har verken Bulwark-nettpost eller OAuth-pålogging. Bruk et passord (eller et app-passord) i stedet.",
"err_no_webmail_title": "Ingen påloggingsside på {host}",
"err_pair_connect_detail": "Vis en ny kode på datamaskinen, og skann på nytt.",
"err_pair_connect_title": "Pålogget, men kunne ikke koble til {host}",
"err_pair_insecure_detail": "{host} vil bruke en ukryptert tilkobling.",
"err_pair_network_detail": "Sjekk tilkoblingen og at telefonen kan nå nettposten, og prøv deretter på nytt.",
"err_pair_rate_detail": "Vent et minutt, og prøv deretter på nytt.",
"err_pair_server_detail": "Prøv på nytt med en ny kode. Hvis det fortsatt mislykkes, kontakt administratoren.",
"err_pair_server_title": "Nettposten kunne ikke fullføre påloggingen",
"err_pair_unsupported_detail": "{host} støtter ikke påloggingskoder. Den må kanskje oppdateres, eller lenken peker til feil adresse.",
"err_pair_unsupported_title": "Denne nettposten kan ikke koble til enheter",
"err_pair_untrusted_detail": "{host} sendte påloggingsinformasjon for en server appen ikke kan bekrefte.",
"err_pair_untrusted_title": "Denne påloggingen kan ikke stoles på",
"err_rate_detail": "Serveren ba oss vente litt. Prøv igjen om et øyeblikk.",
"err_rate_detail_seconds": "Serveren ba oss vente. Prøv igjen om omtrent {seconds} sekunder.",
"err_rate_title": "For mange forsøk",
@@ -487,6 +519,12 @@
"know_server": "Jeg kjenner serveradressen min",
"known_server_desc": "Vi kjenner allerede denne serveren, så du trenger ikke å sette opp noe",
"known_server_title": "En annen konto på {host}",
"link_confirm_connect": "En lenke ber om å logge på på denne siden. Fortsett bare hvis du bruker {host} til e-posten din.",
"link_confirm_connect_add": "En lenke ber om å legge til en konto ved å logge på på denne siden. Fortsett bare hvis du bruker {host} til e-posten din.",
"link_confirm_connect_title": "Åpne påloggingssiden til {host}?",
"link_confirm_pair": "Denne lenken logger på en konto fra {host}. Fortsett bare hvis du nettopp viste en påloggingskode på datamaskinen.",
"link_confirm_pair_add": "Denne lenken legger til en konto fra {host} og bytter appen til den. Fortsett bare hvis du nettopp viste en påloggingskode på datamaskinen.",
"link_confirm_title": "Logge på med en lenke?",
"looking_up": "Slår opp serveren din…",
"manual": "Skriv inn serverdetaljer manuelt",
"notice_bad_qr": "Koden er ikke en påloggingskode for Bulwark",
@@ -505,6 +543,12 @@
"pairing_detail": "Kobler denne enheten til {host}…",
"password_subtitle": "Passordet ditt sendes bare til denne serveren og lagres i nøkkelringen på enheten.",
"password_title": "Logg på {host}",
"paste_button": "Lim inn",
"paste_clipboard_empty": "Ingenting å lime inn. Kopier lenken i nettposten først.",
"paste_hint": "Åpne Innstillinger → Sikkerhet → Koble til mobilappen i nettposten, kopier påloggingslenken og lim den inn her.",
"paste_invalid": "Det er ikke en påloggingslenke for Bulwark",
"paste_label": "Påloggingslenke",
"paste_title": "Lim inn påloggingslenke",
"provider_detail": "Du skriver det inn på deres side. Bulwark lagrer bare et påloggingstoken, som du når som helst kan tilbakekalle.",
"provider_title": "Passordet ditt blir hos leverandøren",
"qr_hint": "Innstillinger → Sikkerhet → Koble til mobilappen viser en kode. Rett kameraet mot den.",
@@ -515,6 +559,7 @@
"server_hint": "Samme adresse som du skriver inn i nettleseren. Vi legger til https:// for deg.",
"server_label": "Serveradresse",
"server_not_found": "Vi fant ingen server for {domain}. Hvis du drifter din egen server, er det adressen du bruker for nettposten.",
"server_paste_hint": "Har du en påloggingslenke i stedet? Lim den inn her.",
"server_scan_hint": "Hvis du er usikker, kan du skanne en påloggingskode i stedet. Den inneholder serveradressen.",
"server_subtitle": "Skriv inn adressen du bruker for å nå nettposten din.",
"server_title": "Hva er serveradressen din?",
@@ -598,11 +643,110 @@
"book_count": "{count, plural, one {# kontakt} other {# kontakter}}",
"default_book": "Standardadressebok",
"description_mobile": "Visningsvalg og verktøy for adressebøker.",
"device_sync_desc": "Vis adressebøkene dine i Kontakter-appen og andre apper på denne enheten. Endringer synkroniseres begge veier.",
"device_sync_title": "Synkroniser med denne enheten",
"export_description_count": "{count, plural, one {Eksporter # kontakt som én vCard-fil.} other {Eksporter # kontakter som én vCard-fil.}}",
"export_empty": "Ingen kontakter å eksportere",
"import_description_mobile": "Importer kontakter fra en vCard-fil (.vcf) med gjenkjenning av duplikater.",
"manage_description_mobile": "Opprett, gi nytt navn til og fjern adressebøkene som organiserer kontaktene dine."
},
"device_sync": {
"also_synced_by": "Synkroniseres også for {accounts}, så den vises to ganger på denne enheten.",
"android_settings": "Android-kontoinnstillinger",
"blocked_calendar": "Android spør ikke lenger om tilgang til kalendere. Gi tilgang i appinnstillingene, og slå deretter på synkronisering igjen.",
"blocked_contacts": "Android spør ikke lenger om tilgang til kontakter. Gi tilgang i appinnstillingene, og slå deretter på synkronisering igjen.",
"blocked_title": "Tilgangen er slått av",
"books_default": "Dine egne adressebøker synkroniseres; delte bare når du velger dem.",
"books_hint": "Dine egne adressebøker synkroniseres med mindre du slår dem av; delte bare når du slår dem på.",
"books_label": "Adressebøker",
"calendars_default": "Dine egne kalendere synkroniseres; delte bare når du velger dem.",
"calendars_hint": "Dine egne kalendere synkroniseres med mindre du slår dem av; delte bare når du slår dem på. Oppgavelister blir værende i Bulwark.",
"calendars_label": "Kalendere",
"choose": "Velg",
"choose_books_title": "Adressebøker som skal synkroniseres",
"choose_calendars_title": "Kalendere som skal synkroniseres",
"collections_count": "{selected} av {total} synkroniseres",
"continue": "Fortsett",
"deletions_delete": "Slett på serveren",
"deletions_message": "Mange elementer ble slettet på én gang på denne enheten, så de ble ikke slettet på serveren. Slett dem der også, eller hent dem tilbake på denne enheten.",
"deletions_restore": "Hent dem tilbake",
"deletions_title": "Vil du slette dem på serveren også?",
"denied_calendar": "Uten tilgang til kalendere kan ikke Bulwark legge kalenderne dine på denne enheten.",
"denied_contacts": "Uten tilgang til kontakter kan ikke Bulwark legge adressebøkene dine på denne enheten.",
"denied_title": "Synkroniseringen forblir av",
"failed_title": "Kunne ikke slå på synkronisering",
"grant_access": "Gi tilgang",
"interval_15m": "Hvert 15. minutt",
"interval_1h": "Hver time",
"interval_30m": "Hvert 30. minutt",
"interval_6h": "Hver 6. time",
"interval_desc": "Hvor ofte Android synkroniserer av seg selv. Endringer i Bulwark og endringer som varsles via push, synkroniseres tidligere.",
"interval_label": "Synkroniseringsintervall",
"interval_manual": "Ingen jevnlig synkronisering",
"keep_syncing": "Fortsett synkroniseringen",
"list_error_auth": "Serveren godtok ikke påloggingen.",
"list_error_network": "Kunne ikke nå serveren.",
"list_error_server": "Serveren kunne ikke vise listen.",
"list_error_signed_out": "Denne kontoen er ikke pålogget på denne enheten.",
"master_off": "Automatisk synkronisering er slått av på denne enheten, så synkronisering skjer bare når du trykker på «Synkroniser nå».",
"new_contacts_default": "Standardadressebok",
"new_contacts_desc": "Adresseboken for kontakter som opprettes i andre apper på denne enheten.",
"new_contacts_label": "Lagre nye kontakter i",
"no_books": "Denne kontoen har ingen adressebøker.",
"no_calendars": "Denne kontoen har ingen kalendere å synkronisere.",
"ok": "OK",
"open_app_settings": "Åpne appinnstillingene",
"own_collections": "Dine egne",
"rationale_calendar": "For å vise kalenderne dine i Kalender-appen trenger Bulwark tilgang til kalenderne på denne enheten. Bulwark endrer bare kalenderne til sin egen konto.",
"rationale_contacts": "For å vise adressebøkene dine i Kontakter-appen trenger Bulwark tilgang til kontaktene på denne enheten. Bulwark endrer bare kontaktene til sin egen konto.",
"rationale_title_calendar": "Gi tilgang til kalendere",
"rationale_title_contacts": "Gi tilgang til kontakter",
"read_only": "Skrivebeskyttet",
"reminder_owner_bulwark": "Bulwark",
"reminder_owner_device": "Kalender-appen",
"reminder_question_message": "Påminnelser om synkroniserte hendelser kan komme fra kalenderappen på denne enheten eller fra Bulwark. Velg én av dem, så du ikke får to påminnelser. Du kan endre dette senere.",
"reminder_question_title": "Hvem skal minne deg på hendelser?",
"reminders_desc": "Hvem som minner deg på synkroniserte hendelser. Den andre er stille, så du ikke får to påminnelser.",
"reminders_label": "Påminnelser",
"reminders_nobody": "Hendelsesvarslene i Bulwark er slått av, så ingenting minner deg på synkroniserte hendelser.",
"remove": "Fjern",
"remove_from_device": "Fjern fra denne enheten",
"remove_message": "Kontoens kontakter og kalendere fjernes fra denne enheten. Endringer som er gjort her og ikke har nådd serveren, går tapt.",
"remove_title": "Vil du fjerne fra denne enheten?",
"review_deletions": "Gå gjennom slettinger",
"shared_by": "Delt av {name}",
"sign_in_again": "Logg på igjen",
"status_auth": "Serveren godtar ikke lenger påloggingen. Logg på igjen for å fortsette synkroniseringen.",
"status_cancelled": "Den siste synkroniseringen stoppet før den var ferdig. Den fortsetter neste gang.",
"status_failed": "Den siste synkroniseringen mislyktes: {message}",
"status_failed_plain": "Den siste synkroniseringen mislyktes.",
"status_io": "Kunne ikke nå serveren {when}. Android prøver igjen.",
"status_item_errors": "{count, plural, one {# element kunne ikke synkroniseres.} other {# elementer kunne ikke synkroniseres.}}",
"status_off": "Av",
"status_paused": "Satt på pause i Android-innstillingene",
"status_permission_calendar": "Tilgangen til kalendere ble slått av, så ingenting synkroniseres.",
"status_permission_contacts": "Tilgangen til kontakter ble slått av, så ingenting synkroniseres.",
"status_removed": "Fjernet i Android-innstillingene. Slå på synkronisering for å legge til kontoen igjen.",
"status_safety_abort": "Stoppet: Serveren returnerte ingenting, selv om denne enheten fortsatt har elementer. Sjekk serveren, og synkroniser deretter på nytt.",
"status_synced": "Synkronisert {when}",
"status_syncing": "Synkroniserer…",
"status_too_many_deletions": "Mange elementer ble slettet på denne enheten. De slettes ikke på serveren før du bekrefter.",
"status_unsupported_calendar": "Serveren tilbyr ingen kalendere for denne kontoen.",
"status_unsupported_contacts": "Serveren tilbyr ingen adressebøker for denne kontoen.",
"status_waiting": "Venter på den første synkroniseringen",
"status_waiting_next": "Venter på neste synkronisering",
"suspended_desc": "Logget ut. Kontoens kontakter og kalendere blir liggende på denne enheten sammen med endringene som er gjort her, og synkroniseres igjen når du logger på.",
"switch_label": "Synkroniser {account} med denne enheten",
"sync_now": "Synkroniser nå",
"turn_off_anyway": "Slå av",
"turn_off_failed": "De synkroniserte dataene kunne ikke fjernes fra denne enheten. Synkroniseringen er satt på pause. Prøv igjen senere.",
"turn_off_failed_title": "Kunne ikke slå av synkronisering",
"turn_off_pending": "{count, plural, one {# endring som er gjort på denne enheten, har ikke nådd serveren ennå. Den går tapt hvis du slår av synkronisering nå.} other {# endringer som er gjort på denne enheten, har ikke nådd serveren ennå. De går tapt hvis du slår av synkronisering nå.}}",
"turn_off_title": "Vil du slå av likevel?",
"turn_off_unknown": "Bulwark kunne ikke sjekke om endringer som er gjort på denne enheten, har nådd serveren. De går tapt hvis du slår av synkronisering nå.",
"turning_off": "Laster opp endringer og fjerner deretter dataene fra denne enheten…",
"turning_on": "Konfigurerer…"
},
"downloads": {
"attachment_template": {
"description_mobile": "Malen som brukes når et vedlegg lagres eller deles."
+145 -1
View File
@@ -93,6 +93,8 @@
"until_date": "Tot {date}"
},
"settings": {
"device_sync_desc": "Toon uw agenda's in de Agenda-app en andere apps op dit apparaat. Wijzigingen worden in beide richtingen gesynchroniseerd.",
"device_sync_title": "Synchroniseren met dit apparaat",
"show_week_numbers_mobile_desc": "Weeknummers weergeven in de maandweergave.",
"time_zone": "Tijdzone",
"time_zone_auto": "Tijdzone van apparaat",
@@ -249,6 +251,18 @@
"color_tag": "Label",
"remove_color": "Label verwijderen"
},
"device_sync": {
"auth_problem_text": "De server accepteert de aanmelding van {account} niet meer, dus de contacten en agenda's van dit account op dit apparaat worden niet meer gesynchroniseerd. Meld u opnieuw aan om verder te gaan. Wijzigingen op dit apparaat blijven behouden.",
"auth_problem_title": "Meld u opnieuw aan om te blijven synchroniseren",
"problem_channel": "Synchronisatieproblemen",
"sign_out_anyway": "Afmelden",
"sign_out_pending_message": "{count, plural, one {# wijziging op dit apparaat heeft de server niet bereikt. Die gaat verloren als u zich nu afmeldt.} other {# wijzigingen op dit apparaat hebben de server niet bereikt. Die gaan verloren als u zich nu afmeldt.}}",
"sign_out_pending_title": "Toch afmelden?",
"sign_out_unknown_message": "Wijzigingen op dit apparaat hebben de server mogelijk niet bereikt. Ze gaan verloren als u zich nu afmeldt.",
"signed_out_text": "{account} is afgemeld, dus de contacten en agenda's van dit account op dit apparaat worden niet meer gesynchroniseerd. Meld u opnieuw aan om verder te gaan. Wijzigingen op dit apparaat blijven behouden.",
"signed_out_title": "Meld u aan om te blijven synchroniseren",
"signing_out": "Gesynchroniseerde contacten en agenda's worden van dit apparaat verwijderd…"
},
"email_composer": {
"attach_camera": "Camera",
"attachment_reminder_body": "Uw bericht vermeldt \"{keyword}\" maar er is geen bestand bijgevoegd. Toch verzenden?",
@@ -460,12 +474,19 @@
"email_step_title": "Wat is uw e-mailadres?",
"email_step_title_add": "Wat is het andere adres?",
"email_title": "Mijn e-mailadres gebruiken",
"err_account_limit_detail": "Verwijder een account in Instellingen om er nog een toe te voegen.",
"err_bad_detail": "Controleer uw e-mailadres en wachtwoord. Als uw account tweefactorauthenticatie gebruikt, maak dan in de webmail een app-wachtwoord aan en gebruik dat hier.",
"err_bad_title": "Dat is niet gelukt",
"err_cert_detail": "Het beveiligingscertificaat van de server is geweigerd. Als dit uw eigen server is, controleer dan of het certificaat geldig en niet verlopen is.",
"err_cert_title": "Kan {host} niet verifiëren",
"err_code_expired_detail": "Inlogcodes zijn maar een paar minuten geldig. Genereer een nieuwe in de webmail en scan opnieuw.",
"err_code_expired_detail": "Inlogcodes zijn twee minuten geldig. Toon een nieuwe in de webmail en scan opnieuw.",
"err_code_expired_or_used_detail": "Toon een nieuwe in de webmail en scan opnieuw.",
"err_code_expired_or_used_title": "Die code is verlopen of al gebruikt",
"err_code_expired_title": "Die code is verlopen",
"err_code_invalid_detail": "Toon een nieuwe code in de webmail (Instellingen → Beveiliging → Mobiele app koppelen) en scan die.",
"err_code_invalid_title": "Die code is niet geldig",
"err_code_used_detail": "Elke code werkt maar één keer. Toon een nieuwe in de webmail en scan opnieuw.",
"err_code_used_title": "Die code is al gebruikt",
"err_generic_detail": "Er is iets misgegaan. Probeer het opnieuw.",
"err_generic_title": "Inloggen mislukt",
"err_interrupted_detail": "Het antwoord kwam niet overeen met het gestarte verzoek. Probeer opnieuw in te loggen.",
@@ -474,6 +495,17 @@
"err_no_server_title": "Geen mailserver op {host}",
"err_no_webmail_detail": "Deze server heeft geen Bulwark-webmail en geen OAuth-aanmelding. Gebruik in plaats daarvan een wachtwoord (of een app-wachtwoord).",
"err_no_webmail_title": "Geen inlogpagina op {host}",
"err_pair_connect_detail": "Toon een nieuwe code op uw computer en scan opnieuw.",
"err_pair_connect_title": "Ingelogd, maar kan geen verbinding maken met {host}",
"err_pair_insecure_detail": "{host} wil een onversleutelde verbinding gebruiken.",
"err_pair_network_detail": "Controleer uw verbinding en of uw telefoon de webmail kan bereiken, en probeer het opnieuw.",
"err_pair_rate_detail": "Wacht een minuut en probeer het dan opnieuw.",
"err_pair_server_detail": "Probeer het opnieuw met een nieuwe code. Blijft het mislukken, neem dan contact op met uw beheerder.",
"err_pair_server_title": "De webmail kon het inloggen niet voltooien",
"err_pair_unsupported_detail": "{host} ondersteunt geen inlogcodes. Mogelijk is een update nodig, of de link verwijst naar het verkeerde adres.",
"err_pair_unsupported_title": "Deze webmail kan geen apparaten koppelen",
"err_pair_untrusted_detail": "{host} heeft inloggegevens gestuurd voor een server die de app niet kan verifiëren.",
"err_pair_untrusted_title": "Deze aanmelding kan niet worden vertrouwd",
"err_rate_detail": "De server vroeg ons even te wachten. Probeer het zo opnieuw.",
"err_rate_detail_seconds": "De server vroeg ons te wachten. Probeer het over ongeveer {seconds} seconden opnieuw.",
"err_rate_title": "Te veel pogingen",
@@ -487,6 +519,12 @@
"know_server": "Ik ken mijn serveradres",
"known_server_desc": "We kennen deze server al, dus er hoeft niets te worden ingesteld",
"known_server_title": "Nog een account op {host}",
"link_confirm_connect": "Een link vraagt om op deze pagina in te loggen. Ga alleen door als u {host} voor uw e-mail gebruikt.",
"link_confirm_connect_add": "Een link vraagt om een account toe te voegen door op deze pagina in te loggen. Ga alleen door als u {host} voor uw e-mail gebruikt.",
"link_confirm_connect_title": "Inlogpagina van {host} openen?",
"link_confirm_pair": "Deze link logt u in op een account van {host}. Ga alleen door als u zojuist een inlogcode op uw computer hebt getoond.",
"link_confirm_pair_add": "Deze link voegt een account van {host} toe en schakelt de app daarnaar over. Ga alleen door als u zojuist een inlogcode op uw computer hebt getoond.",
"link_confirm_title": "Inloggen met een link?",
"looking_up": "Uw server opzoeken…",
"manual": "Servergegevens handmatig invoeren",
"notice_bad_qr": "Die code is geen Bulwark-inlogcode",
@@ -505,6 +543,12 @@
"pairing_detail": "Dit apparaat wordt gekoppeld aan {host}…",
"password_subtitle": "Uw wachtwoord wordt alleen naar deze server verzonden en opgeslagen in de sleutelhanger van het apparaat.",
"password_title": "Inloggen bij {host}",
"paste_button": "Plakken",
"paste_clipboard_empty": "Niets om te plakken. Kopieer eerst de link in de webmail.",
"paste_hint": "Open in de webmail Instellingen → Beveiliging → Mobiele app koppelen, kopieer de inloglink en plak die hier.",
"paste_invalid": "Dat is geen Bulwark-inloglink",
"paste_label": "Inloglink",
"paste_title": "Inloglink plakken",
"provider_detail": "U typt het op hun pagina. Bulwark bewaart alleen een inlogtoken, dat u op elk moment kunt intrekken.",
"provider_title": "Uw wachtwoord blijft bij uw provider",
"qr_hint": "Instellingen → Beveiliging → Mobiele app koppelen toont een code. Richt de camera erop.",
@@ -515,6 +559,7 @@
"server_hint": "Hetzelfde adres dat u in de browser typt. We voegen https:// voor u toe.",
"server_label": "Serveradres",
"server_not_found": "We konden geen server vinden voor {domain}. Als u zelf host, is het het adres dat u voor de webmail gebruikt.",
"server_paste_hint": "Hebt u in plaats daarvan een inloglink? Plak die hier.",
"server_scan_hint": "Weet u het niet zeker? Scan dan een inlogcode. Die bevat het serveradres.",
"server_subtitle": "Voer het adres in waarmee u uw webmail bereikt.",
"server_title": "Wat is uw serveradres?",
@@ -598,11 +643,110 @@
"book_count": "{count, plural, one {# contact} other {# contacten}}",
"default_book": "Standaardadresboek",
"description_mobile": "Weergavevoorkeuren en hulpmiddelen voor adresboeken.",
"device_sync_desc": "Toon uw adresboeken in de Contacten-app en andere apps op dit apparaat. Wijzigingen worden in beide richtingen gesynchroniseerd.",
"device_sync_title": "Synchroniseren met dit apparaat",
"export_description_count": "{count, plural, one {# contact exporteren als één vCard-bestand.} other {# contacten exporteren als één vCard-bestand.}}",
"export_empty": "Geen contacten om te exporteren",
"import_description_mobile": "Contacten importeren uit een vCard-bestand (.vcf) met detectie van duplicaten.",
"manage_description_mobile": "Maak, hernoem en verwijder de adresboeken waarin uw contacten zijn ingedeeld."
},
"device_sync": {
"also_synced_by": "Wordt ook gesynchroniseerd voor {accounts} en verschijnt daarom twee keer op dit apparaat.",
"android_settings": "Android-accountinstellingen",
"blocked_calendar": "Android vraagt niet meer om toegang tot agenda's. Sta de toegang toe in de app-instellingen en zet synchronisatie daarna weer aan.",
"blocked_contacts": "Android vraagt niet meer om toegang tot contacten. Sta de toegang toe in de app-instellingen en zet synchronisatie daarna weer aan.",
"blocked_title": "Toegang staat uit",
"books_default": "Uw eigen adresboeken worden gesynchroniseerd; gedeelde alleen als u ze kiest.",
"books_hint": "Uw eigen adresboeken worden gesynchroniseerd, tenzij u ze uitzet; gedeelde alleen als u ze aanzet.",
"books_label": "Adresboeken",
"calendars_default": "Uw eigen agenda's worden gesynchroniseerd; gedeelde alleen als u ze kiest.",
"calendars_hint": "Uw eigen agenda's worden gesynchroniseerd, tenzij u ze uitzet; gedeelde alleen als u ze aanzet. Takenlijsten blijven in Bulwark.",
"calendars_label": "Agenda's",
"choose": "Kiezen",
"choose_books_title": "Te synchroniseren adresboeken",
"choose_calendars_title": "Te synchroniseren agenda's",
"collections_count": "{selected} van {total} gesynchroniseerd",
"continue": "Doorgaan",
"deletions_delete": "Op server verwijderen",
"deletions_message": "Er zijn op dit apparaat veel items tegelijk verwijderd, daarom zijn ze niet op de server verwijderd. Verwijder ze daar ook of zet ze terug op dit apparaat.",
"deletions_restore": "Terugzetten",
"deletions_title": "Ook op de server verwijderen?",
"denied_calendar": "Zonder toegang tot agenda's kan Bulwark uw agenda's niet op dit apparaat zetten.",
"denied_contacts": "Zonder toegang tot contacten kan Bulwark uw adresboeken niet op dit apparaat zetten.",
"denied_title": "Synchronisatie blijft uit",
"failed_title": "Synchronisatie kon niet worden aangezet",
"grant_access": "Toegang geven",
"interval_15m": "Elke 15 minuten",
"interval_1h": "Elk uur",
"interval_30m": "Elke 30 minuten",
"interval_6h": "Elke 6 uur",
"interval_desc": "Hoe vaak Android uit zichzelf synchroniseert. Wijzigingen in Bulwark en via push gemelde wijzigingen worden eerder gesynchroniseerd.",
"interval_label": "Synchronisatie-interval",
"interval_manual": "Geen regelmatige synchronisatie",
"keep_syncing": "Blijven synchroniseren",
"list_error_auth": "De server heeft de aanmelding niet geaccepteerd.",
"list_error_network": "Kan de server niet bereiken.",
"list_error_server": "De server kon ze niet weergeven.",
"list_error_signed_out": "Dit account is niet aangemeld op dit apparaat.",
"master_off": "Automatisch synchroniseren staat uit op dit apparaat, dus er wordt alleen gesynchroniseerd als u op \"Nu synchroniseren\" tikt.",
"new_contacts_default": "Standaardadresboek",
"new_contacts_desc": "Het adresboek voor contacten die in andere apps op dit apparaat worden gemaakt.",
"new_contacts_label": "Nieuwe contacten opslaan in",
"no_books": "Dit account heeft geen adresboeken.",
"no_calendars": "Dit account heeft geen agenda's om te synchroniseren.",
"ok": "OK",
"open_app_settings": "App-instellingen openen",
"own_collections": "Uw eigen",
"rationale_calendar": "Om uw agenda's in de Agenda-app te tonen, heeft Bulwark toegang nodig tot de agenda's op dit apparaat. Bulwark wijzigt alleen de agenda's van zijn eigen account.",
"rationale_contacts": "Om uw adresboeken in de Contacten-app te tonen, heeft Bulwark toegang nodig tot de contacten op dit apparaat. Bulwark wijzigt alleen de contacten van zijn eigen account.",
"rationale_title_calendar": "Toegang tot agenda's toestaan",
"rationale_title_contacts": "Toegang tot contacten toestaan",
"read_only": "Alleen lezen",
"reminder_owner_bulwark": "Bulwark",
"reminder_owner_device": "Agenda-app",
"reminder_question_message": "Gesynchroniseerde evenementen kunnen u herinneren via de agenda-app op dit apparaat of via Bulwark. Kies er één, zodat u niet dubbel wordt herinnerd. U kunt dit later wijzigen.",
"reminder_question_title": "Wie moet u herinneren?",
"reminders_desc": "Wie u herinnert aan gesynchroniseerde evenementen. De andere blijft stil, zodat u niet dubbel wordt herinnerd.",
"reminders_label": "Herinneringen",
"reminders_nobody": "De evenementmeldingen van Bulwark staan uit, dus niets herinnert u aan gesynchroniseerde evenementen.",
"remove": "Verwijderen",
"remove_from_device": "Verwijderen van dit apparaat",
"remove_message": "De contacten en agenda's van het account worden van dit apparaat verwijderd. Wijzigingen die hier zijn gemaakt en de server nog niet hebben bereikt, gaan verloren.",
"remove_title": "Verwijderen van dit apparaat?",
"review_deletions": "Verwijderingen bekijken",
"shared_by": "Gedeeld door {name}",
"sign_in_again": "Opnieuw aanmelden",
"status_auth": "De server accepteert de aanmelding niet meer. Meld u opnieuw aan om te blijven synchroniseren.",
"status_cancelled": "De laatste synchronisatie is voortijdig gestopt. Die gaat de volgende keer verder.",
"status_failed": "Laatste synchronisatie mislukt: {message}",
"status_failed_plain": "Laatste synchronisatie mislukt.",
"status_io": "De server was {when} niet bereikbaar. Android probeert het opnieuw.",
"status_item_errors": "{count, plural, one {# item kon niet worden gesynchroniseerd.} other {# items konden niet worden gesynchroniseerd.}}",
"status_off": "Uit",
"status_paused": "Gepauzeerd in Android-instellingen",
"status_permission_calendar": "Toegang tot agenda's is uitgezet, dus er wordt niets gesynchroniseerd.",
"status_permission_contacts": "Toegang tot contacten is uitgezet, dus er wordt niets gesynchroniseerd.",
"status_removed": "Verwijderd in Android-instellingen. Zet synchronisatie aan om het account opnieuw toe te voegen.",
"status_safety_abort": "Gestopt: de server gaf niets terug terwijl dit apparaat nog items bevat. Controleer de server en synchroniseer daarna opnieuw.",
"status_synced": "Laatst gesynchroniseerd: {when}",
"status_syncing": "Synchroniseren…",
"status_too_many_deletions": "Er zijn veel items verwijderd op dit apparaat. Ze worden pas op de server verwijderd als u dat bevestigt.",
"status_unsupported_calendar": "De server biedt geen agenda's aan voor dit account.",
"status_unsupported_contacts": "De server biedt geen adresboeken aan voor dit account.",
"status_waiting": "Wachten op de eerste synchronisatie",
"status_waiting_next": "Wachten op de volgende synchronisatie",
"suspended_desc": "Afgemeld. De contacten en agenda's van het account blijven met de hier gemaakte wijzigingen op dit apparaat en worden weer gesynchroniseerd zodra u zich aanmeldt.",
"switch_label": "{account} synchroniseren met dit apparaat",
"sync_now": "Nu synchroniseren",
"turn_off_anyway": "Uitzetten",
"turn_off_failed": "De gesynchroniseerde gegevens konden niet van dit apparaat worden verwijderd. Synchronisatie is gepauzeerd; probeer het later opnieuw.",
"turn_off_failed_title": "Synchronisatie kon niet worden uitgezet",
"turn_off_pending": "{count, plural, one {# wijziging op dit apparaat heeft de server nog niet bereikt. Die gaat verloren als u synchronisatie nu uitzet.} other {# wijzigingen op dit apparaat hebben de server nog niet bereikt. Die gaan verloren als u synchronisatie nu uitzet.}}",
"turn_off_title": "Toch uitzetten?",
"turn_off_unknown": "Bulwark kon niet controleren of wijzigingen op dit apparaat de server hebben bereikt. Ze gaan verloren als u synchronisatie nu uitzet.",
"turning_off": "Wijzigingen uploaden en daarna de gegevens van dit apparaat verwijderen…",
"turning_on": "Instellen…"
},
"downloads": {
"attachment_template": {
"description_mobile": "Sjabloon voor het opslaan of delen van een bijlage."
+145 -1
View File
@@ -93,6 +93,8 @@
"until_date": "Do {date}"
},
"settings": {
"device_sync_desc": "Pokazuj swoje kalendarze w aplikacji Kalendarz i innych aplikacjach na tym urządzeniu. Zmiany są synchronizowane w obie strony.",
"device_sync_title": "Synchronizuj z tym urządzeniem",
"show_week_numbers_mobile_desc": "Wyświetlaj numery tygodni w widoku miesiąca.",
"time_zone": "Strefa czasowa",
"time_zone_auto": "Strefa czasowa urządzenia",
@@ -249,6 +251,18 @@
"color_tag": "Etykieta",
"remove_color": "Usuń etykietę"
},
"device_sync": {
"auth_problem_text": "Serwer nie akceptuje już logowania konta {account}, więc jego kontakty i kalendarze na tym urządzeniu przestały się synchronizować. Zaloguj się ponownie, aby wznowić synchronizację. Zmiany wprowadzone na tym urządzeniu zostaną zachowane.",
"auth_problem_title": "Zaloguj się ponownie, aby dalej synchronizować",
"problem_channel": "Problemy z synchronizacją",
"sign_out_anyway": "Wyloguj się",
"sign_out_pending_message": "{count, plural, one {# zmiana wprowadzona na tym urządzeniu nie dotarła do serwera. Zostanie utracona, jeśli wylogujesz się teraz.} few {# zmiany wprowadzone na tym urządzeniu nie dotarły do serwera. Zostaną utracone, jeśli wylogujesz się teraz.} many {# zmian wprowadzonych na tym urządzeniu nie dotarło do serwera. Zostaną utracone, jeśli wylogujesz się teraz.} other {# zmiany wprowadzonej na tym urządzeniu nie dotarło do serwera. Zostaną utracone, jeśli wylogujesz się teraz.}}",
"sign_out_pending_title": "Wylogować się mimo to?",
"sign_out_unknown_message": "Zmiany wprowadzone na tym urządzeniu mogły nie dotrzeć do serwera. Zostaną utracone, jeśli wylogujesz się teraz.",
"signed_out_text": "Konto {account} zostało wylogowane, więc jego kontakty i kalendarze na tym urządzeniu nie są już synchronizowane. Zaloguj się ponownie, aby wznowić synchronizację. Zmiany wprowadzone na tym urządzeniu zostaną zachowane.",
"signed_out_title": "Zaloguj się, aby dalej synchronizować",
"signing_out": "Usuwanie zsynchronizowanych kontaktów i kalendarzy z tego urządzenia…"
},
"email_composer": {
"attach_camera": "Aparat",
"attachment_reminder_body": "Twoja wiadomość wspomina o „{keyword}”, ale nie załączono żadnego pliku. Wysłać mimo to?",
@@ -460,12 +474,19 @@
"email_step_title": "Jaki jest Twój adres e-mail?",
"email_step_title_add": "Jaki jest drugi adres?",
"email_title": "Użyj mojego adresu e-mail",
"err_account_limit_detail": "Usuń konto w Ustawieniach, aby dodać kolejne.",
"err_bad_detail": "Sprawdź adres e-mail i hasło. Jeśli Twoje konto używa logowania dwuskładnikowego, utwórz hasło aplikacji w webmailu i użyj go tutaj.",
"err_bad_title": "To nie zadziałało",
"err_cert_detail": "Certyfikat bezpieczeństwa serwera został odrzucony. Jeśli to Twój własny serwer, sprawdź, czy certyfikat jest ważny i nie wygasł.",
"err_cert_title": "Nie można zweryfikować: {host}",
"err_code_expired_detail": "Kody logowania są ważne przez kilka minut. Wygeneruj nowy w webmailu i zeskanuj go ponownie.",
"err_code_expired_detail": "Kody logowania są ważne przez dwie minuty. Wyświetl nowy w webmailu i zeskanuj go ponownie.",
"err_code_expired_or_used_detail": "Wyświetl nowy w webmailu i zeskanuj go ponownie.",
"err_code_expired_or_used_title": "Ten kod wygasł lub został już użyty",
"err_code_expired_title": "Ten kod wygasł",
"err_code_invalid_detail": "Wyświetl nowy kod w webmailu (Ustawienia → Bezpieczeństwo → Połącz aplikację mobilną) i zeskanuj go.",
"err_code_invalid_title": "Ten kod jest nieprawidłowy",
"err_code_used_detail": "Każdy kod działa tylko raz. Wyświetl nowy w webmailu i zeskanuj go ponownie.",
"err_code_used_title": "Ten kod został już użyty",
"err_generic_detail": "Coś poszło nie tak. Spróbuj ponownie.",
"err_generic_title": "Logowanie nie powiodło się",
"err_interrupted_detail": "Odpowiedź nie pasuje do rozpoczętego żądania. Spróbuj zalogować się ponownie.",
@@ -474,6 +495,17 @@
"err_no_server_title": "Brak serwera poczty: {host}",
"err_no_webmail_detail": "Ten serwer nie ma webmaila Bulwark ani logowania OAuth. Użyj hasła (lub hasła aplikacji).",
"err_no_webmail_title": "Brak strony logowania: {host}",
"err_pair_connect_detail": "Wyświetl nowy kod na komputerze i zeskanuj go ponownie.",
"err_pair_connect_title": "Zalogowano, ale nie można połączyć się z {host}",
"err_pair_insecure_detail": "{host} chce użyć nieszyfrowanego połączenia.",
"err_pair_network_detail": "Sprawdź połączenie i czy telefon ma dostęp do webmaila, a potem spróbuj ponownie.",
"err_pair_rate_detail": "Poczekaj minutę i spróbuj ponownie.",
"err_pair_server_detail": "Spróbuj ponownie z nowym kodem. Jeśli nadal się nie udaje, skontaktuj się z administratorem.",
"err_pair_server_title": "Webmail nie mógł dokończyć logowania",
"err_pair_unsupported_detail": "{host} nie obsługuje kodów logowania. Może wymagać aktualizacji albo link wskazuje zły adres.",
"err_pair_unsupported_title": "Ten webmail nie może łączyć urządzeń",
"err_pair_untrusted_detail": "{host} przesłał dane logowania dla serwera, którego aplikacja nie może zweryfikować.",
"err_pair_untrusted_title": "Temu logowaniu nie można zaufać",
"err_rate_detail": "Serwer poprosił o chwilę przerwy. Spróbuj ponownie za moment.",
"err_rate_detail_seconds": "Serwer poprosił o odczekanie. Spróbuj ponownie za około {seconds} s.",
"err_rate_title": "Zbyt wiele prób",
@@ -487,6 +519,12 @@
"know_server": "Znam adres swojego serwera",
"known_server_desc": "Ten serwer jest już znany, więc nie trzeba niczego konfigurować",
"known_server_title": "Kolejne konto na {host}",
"link_confirm_connect": "Link prosi o zalogowanie się na tej stronie. Kontynuuj tylko, jeśli używasz {host} do poczty.",
"link_confirm_connect_add": "Link prosi o dodanie konta przez zalogowanie się na tej stronie. Kontynuuj tylko, jeśli używasz {host} do poczty.",
"link_confirm_connect_title": "Otworzyć stronę logowania {host}?",
"link_confirm_pair": "Ten link loguje do konta z {host}. Kontynuuj tylko, jeśli kod logowania został właśnie wyświetlony na Twoim komputerze.",
"link_confirm_pair_add": "Ten link dodaje konto z {host} i przełącza na nie aplikację. Kontynuuj tylko, jeśli kod logowania został właśnie wyświetlony na Twoim komputerze.",
"link_confirm_title": "Zalogować się za pomocą linku?",
"looking_up": "Wyszukiwanie serwera…",
"manual": "Wprowadź dane serwera ręcznie",
"notice_bad_qr": "To nie jest kod logowania Bulwark",
@@ -505,6 +543,12 @@
"pairing_detail": "Parowanie tego urządzenia: {host}…",
"password_subtitle": "Hasło jest wysyłane tylko do tego serwera i przechowywane w magazynie kluczy urządzenia.",
"password_title": "Zaloguj się do {host}",
"paste_button": "Wklej",
"paste_clipboard_empty": "Nie ma nic do wklejenia. Najpierw skopiuj link w webmailu.",
"paste_hint": "W webmailu otwórz Ustawienia → Bezpieczeństwo → Połącz aplikację mobilną, skopiuj link logowania i wklej go tutaj.",
"paste_invalid": "To nie jest link logowania Bulwark",
"paste_label": "Link logowania",
"paste_title": "Wklej link logowania",
"provider_detail": "Wpiszesz je na stronie dostawcy. Bulwark przechowuje tylko token logowania, który możesz w każdej chwili unieważnić.",
"provider_title": "Twoje hasło zostaje u dostawcy",
"qr_hint": "W Ustawienia → Bezpieczeństwo → Połącz aplikację mobilną wyświetla się kod. Skieruj na niego aparat.",
@@ -515,6 +559,7 @@
"server_hint": "Ten sam adres, który wpisujesz w przeglądarce. Dodamy https:// za Ciebie.",
"server_label": "Adres serwera",
"server_not_found": "Nie znaleźliśmy serwera dla {domain}. Jeśli masz własny serwer, podaj adres, którego używasz do webmaila.",
"server_paste_hint": "Masz zamiast tego link logowania? Wklej go tutaj.",
"server_scan_hint": "Jeśli nie masz pewności, zeskanuj kod logowania. Zawiera on adres serwera.",
"server_subtitle": "Wpisz adres, pod którym otwierasz webmail.",
"server_title": "Jaki jest adres Twojego serwera?",
@@ -598,11 +643,110 @@
"book_count": "{count, plural, one {# kontakt} few {# kontakty} many {# kontaktów} other {# kontaktu}}",
"default_book": "Domyślna książka adresowa",
"description_mobile": "Preferencje wyświetlania i narzędzia książek adresowych.",
"device_sync_desc": "Pokazuj swoje książki adresowe w aplikacji Kontakty i innych aplikacjach na tym urządzeniu. Zmiany są synchronizowane w obie strony.",
"device_sync_title": "Synchronizuj z tym urządzeniem",
"export_description_count": "{count, plural, one {Eksportuj # kontakt jako jeden plik vCard.} few {Eksportuj # kontakty jako jeden plik vCard.} many {Eksportuj # kontaktów jako jeden plik vCard.} other {Eksportuj # kontaktu jako jeden plik vCard.}}",
"export_empty": "Brak kontaktów do eksportu",
"import_description_mobile": "Importuj kontakty z pliku vCard (.vcf) z wykrywaniem duplikatów.",
"manage_description_mobile": "Twórz, zmieniaj nazwy i usuwaj książki adresowe, w których porządkujesz kontakty."
},
"device_sync": {
"also_synced_by": "Synchronizuje się także dla {accounts}, więc pojawia się na tym urządzeniu dwa razy.",
"android_settings": "Ustawienia konta w Androidzie",
"blocked_calendar": "Android nie prosi już o dostęp do kalendarzy. Zezwól na niego w ustawieniach aplikacji, a potem ponownie włącz synchronizację.",
"blocked_contacts": "Android nie prosi już o dostęp do kontaktów. Zezwól na niego w ustawieniach aplikacji, a potem ponownie włącz synchronizację.",
"blocked_title": "Dostęp jest wyłączony",
"books_default": "Twoje własne książki adresowe są synchronizowane, a udostępnione tylko wtedy, gdy je wybierzesz.",
"books_hint": "Twoje własne książki adresowe są synchronizowane, chyba że je wyłączysz, a udostępnione tylko wtedy, gdy je włączysz.",
"books_label": "Książki adresowe",
"calendars_default": "Twoje własne kalendarze są synchronizowane, a udostępnione tylko wtedy, gdy je wybierzesz.",
"calendars_hint": "Twoje własne kalendarze są synchronizowane, chyba że je wyłączysz, a udostępnione tylko wtedy, gdy je włączysz. Listy zadań pozostają w Bulwark.",
"calendars_label": "Kalendarze",
"choose": "Wybierz",
"choose_books_title": "Książki adresowe do synchronizacji",
"choose_calendars_title": "Kalendarze do synchronizacji",
"collections_count": "Synchronizowane: {selected} z {total}",
"continue": "Dalej",
"deletions_delete": "Usuń na serwerze",
"deletions_message": "Na tym urządzeniu usunięto naraz wiele elementów, więc nie zostały usunięte na serwerze. Usuń je także tam albo przywróć je na tym urządzeniu.",
"deletions_restore": "Przywróć je",
"deletions_title": "Usunąć je także na serwerze?",
"denied_calendar": "Bez dostępu do kalendarzy Bulwark nie może umieścić Twoich kalendarzy na tym urządzeniu.",
"denied_contacts": "Bez dostępu do kontaktów Bulwark nie może umieścić Twoich książek adresowych na tym urządzeniu.",
"denied_title": "Synchronizacja pozostaje wyłączona",
"failed_title": "Nie udało się włączyć synchronizacji",
"grant_access": "Przyznaj dostęp",
"interval_15m": "Co 15 minut",
"interval_1h": "Co godzinę",
"interval_30m": "Co 30 minut",
"interval_6h": "Co 6 godzin",
"interval_desc": "Jak często Android synchronizuje samodzielnie. Zmiany w Bulwark i zmiany zgłoszone przez push są synchronizowane szybciej.",
"interval_label": "Częstotliwość synchronizacji",
"interval_manual": "Bez regularnej synchronizacji",
"keep_syncing": "Synchronizuj dalej",
"list_error_auth": "Serwer nie zaakceptował logowania.",
"list_error_network": "Nie udało się połączyć z serwerem.",
"list_error_server": "Serwer nie mógł udostępnić listy.",
"list_error_signed_out": "To konto nie jest zalogowane na tym urządzeniu.",
"master_off": "Autosynchronizacja jest wyłączona na tym urządzeniu, więc synchronizacja odbywa się tylko po stuknięciu „Synchronizuj teraz”.",
"new_contacts_default": "Domyślna książka adresowa",
"new_contacts_desc": "Książka adresowa dla kontaktów utworzonych w innych aplikacjach na tym urządzeniu.",
"new_contacts_label": "Zapisuj nowe kontakty w",
"no_books": "To konto nie ma książek adresowych.",
"no_calendars": "To konto nie ma kalendarzy do synchronizacji.",
"ok": "OK",
"open_app_settings": "Otwórz ustawienia",
"own_collections": "Własne",
"rationale_calendar": "Aby pokazywać Twoje kalendarze w aplikacji Kalendarz, Bulwark potrzebuje dostępu do kalendarzy na tym urządzeniu. Zmienia tylko kalendarze własnego konta.",
"rationale_contacts": "Aby pokazywać Twoje książki adresowe w aplikacji Kontakty, Bulwark potrzebuje dostępu do kontaktów na tym urządzeniu. Zmienia tylko kontakty własnego konta.",
"rationale_title_calendar": "Zezwól na dostęp do kalendarzy",
"rationale_title_contacts": "Zezwól na dostęp do kontaktów",
"read_only": "Tylko do odczytu",
"reminder_owner_bulwark": "Bulwark",
"reminder_owner_device": "Aplikacja Kalendarz",
"reminder_question_message": "Przypomnienia o zsynchronizowanych wydarzeniach mogą pochodzić z aplikacji kalendarza na tym urządzeniu albo z Bulwark. Wybierz jedno źródło, aby nie dostawać przypomnień podwójnie. Możesz to później zmienić.",
"reminder_question_title": "Kto ma Ci przypominać?",
"reminders_desc": "Kto przypomina Ci o zsynchronizowanych wydarzeniach. Drugie źródło milczy, więc nie dostajesz przypomnień podwójnie.",
"reminders_label": "Przypomnienia",
"reminders_nobody": "Powiadomienia o wydarzeniach w Bulwark są wyłączone, więc nic nie przypomina Ci o zsynchronizowanych wydarzeniach.",
"remove": "Usuń",
"remove_from_device": "Usuń z tego urządzenia",
"remove_message": "Kontakty i kalendarze tego konta zostaną usunięte z tego urządzenia. Zmiany wprowadzone tutaj, które nie dotarły do serwera, zostaną utracone.",
"remove_title": "Usunąć z tego urządzenia?",
"review_deletions": "Przejrzyj usunięcia",
"shared_by": "Udostępnione przez: {name}",
"sign_in_again": "Zaloguj się ponownie",
"status_auth": "Serwer nie akceptuje już logowania. Zaloguj się ponownie, aby dalej synchronizować.",
"status_cancelled": "Ostatnia synchronizacja zatrzymała się przedwcześnie. Będzie kontynuowana następnym razem.",
"status_failed": "Ostatnia synchronizacja nie powiodła się: {message}",
"status_failed_plain": "Ostatnia synchronizacja nie powiodła się.",
"status_io": "Nie udało się połączyć z serwerem {when}. Android spróbuje ponownie.",
"status_item_errors": "{count, plural, one {Nie udało się zsynchronizować # elementu.} few {Nie udało się zsynchronizować # elementów.} many {Nie udało się zsynchronizować # elementów.} other {Nie udało się zsynchronizować # elementu.}}",
"status_off": "Wyłączona",
"status_paused": "Wstrzymana w ustawieniach Androida",
"status_permission_calendar": "Dostęp do kalendarzy został wyłączony, więc nic nie jest synchronizowane.",
"status_permission_contacts": "Dostęp do kontaktów został wyłączony, więc nic nie jest synchronizowane.",
"status_removed": "Usunięte w ustawieniach Androida. Włącz synchronizację, aby ponownie dodać konto.",
"status_safety_abort": "Zatrzymano: serwer nic nie zwrócił, choć na tym urządzeniu wciąż są elementy. Sprawdź serwer, a potem zsynchronizuj ponownie.",
"status_synced": "Zsynchronizowano {when}",
"status_syncing": "Synchronizowanie…",
"status_too_many_deletions": "Na tym urządzeniu usunięto wiele elementów. Nie zostaną usunięte na serwerze, dopóki tego nie potwierdzisz.",
"status_unsupported_calendar": "Serwer nie udostępnia kalendarzy dla tego konta.",
"status_unsupported_contacts": "Serwer nie udostępnia książek adresowych dla tego konta.",
"status_waiting": "Oczekiwanie na pierwszą synchronizację",
"status_waiting_next": "Oczekiwanie na następną synchronizację",
"suspended_desc": "Wylogowano. Kontakty i kalendarze tego konta pozostają na tym urządzeniu razem ze zmianami wprowadzonymi tutaj i zostaną ponownie zsynchronizowane po zalogowaniu.",
"switch_label": "Synchronizuj {account} z tym urządzeniem",
"sync_now": "Synchronizuj teraz",
"turn_off_anyway": "Wyłącz",
"turn_off_failed": "Nie udało się usunąć zsynchronizowanych danych z tego urządzenia. Synchronizacja jest wstrzymana; spróbuj ponownie później.",
"turn_off_failed_title": "Nie udało się wyłączyć synchronizacji",
"turn_off_pending": "{count, plural, one {# zmiana wprowadzona na tym urządzeniu nie dotarła jeszcze do serwera. Zostanie utracona, jeśli teraz wyłączysz synchronizację.} few {# zmiany wprowadzone na tym urządzeniu nie dotarły jeszcze do serwera. Zostaną utracone, jeśli teraz wyłączysz synchronizację.} many {# zmian wprowadzonych na tym urządzeniu nie dotarło jeszcze do serwera. Zostaną utracone, jeśli teraz wyłączysz synchronizację.} other {# zmiany wprowadzonej na tym urządzeniu nie dotarło jeszcze do serwera. Zostaną utracone, jeśli teraz wyłączysz synchronizację.}}",
"turn_off_title": "Wyłączyć mimo to?",
"turn_off_unknown": "Bulwark nie mógł sprawdzić, czy zmiany wprowadzone na tym urządzeniu dotarły do serwera. Zostaną utracone, jeśli teraz wyłączysz synchronizację.",
"turning_off": "Wysyłanie zmian, a potem usuwanie danych z tego urządzenia…",
"turning_on": "Konfigurowanie…"
},
"downloads": {
"attachment_template": {
"description_mobile": "Szablon używany przy zapisywaniu lub udostępnianiu załącznika."
+145 -1
View File
@@ -93,6 +93,8 @@
"until_date": "Até {date}"
},
"settings": {
"device_sync_desc": "Mostre seus calendários no app Agenda e em outros apps deste dispositivo. As alterações são sincronizadas nos dois sentidos.",
"device_sync_title": "Sincronizar com este dispositivo",
"show_week_numbers_mobile_desc": "Exibir números da semana na visualização mensal.",
"time_zone": "Fuso horário",
"time_zone_auto": "Fuso horário do dispositivo",
@@ -249,6 +251,18 @@
"color_tag": "Etiqueta",
"remove_color": "Remover etiqueta"
},
"device_sync": {
"auth_problem_text": "O servidor não aceita mais o login de {account}, então os contatos e calendários dessa conta neste dispositivo pararam de ser sincronizados. Faça login novamente para retomar. As alterações feitas neste dispositivo são mantidas.",
"auth_problem_title": "Faça login novamente para continuar sincronizando",
"problem_channel": "Problemas de sincronização",
"sign_out_anyway": "Sair",
"sign_out_pending_message": "{count, plural, one {# alteração feita neste dispositivo não chegou ao servidor. Ela será perdida se você sair agora.} other {# alterações feitas neste dispositivo não chegaram ao servidor. Elas serão perdidas se você sair agora.}}",
"sign_out_pending_title": "Sair mesmo assim?",
"sign_out_unknown_message": "As alterações feitas neste dispositivo podem não ter chegado ao servidor. Elas serão perdidas se você sair agora.",
"signed_out_text": "A sessão de {account} foi encerrada, então os contatos e calendários dessa conta neste dispositivo não são mais sincronizados. Faça login novamente para retomar. As alterações feitas neste dispositivo são mantidas.",
"signed_out_title": "Faça login para continuar sincronizando",
"signing_out": "Removendo contatos e calendários sincronizados deste dispositivo…"
},
"email_composer": {
"attach_camera": "Câmera",
"attachment_reminder_body": "Sua mensagem menciona \"{keyword}\", mas nenhum arquivo está anexado. Enviar mesmo assim?",
@@ -460,12 +474,19 @@
"email_step_title": "Qual é o seu endereço de e-mail?",
"email_step_title_add": "Qual é o outro endereço?",
"email_title": "Usar meu endereço de e-mail",
"err_account_limit_detail": "Remova uma conta em Configurações para adicionar outra.",
"err_bad_detail": "Verifique seu e-mail e sua senha. Se sua conta usa autenticação de dois fatores, crie uma senha de aplicativo no webmail e use-a aqui.",
"err_bad_title": "Não funcionou",
"err_cert_detail": "O certificado de segurança do servidor foi rejeitado. Se o servidor for seu, verifique se o certificado é válido e não expirou.",
"err_cert_title": "Não foi possível verificar {host}",
"err_code_expired_detail": "Os códigos de login valem por alguns minutos. Gere um novo no webmail e escaneie de novo.",
"err_code_expired_detail": "Os códigos de login valem por dois minutos. Mostre um novo no webmail e escaneie de novo.",
"err_code_expired_or_used_detail": "Mostre um novo no webmail e escaneie de novo.",
"err_code_expired_or_used_title": "Esse código expirou ou já foi usado",
"err_code_expired_title": "Esse código expirou",
"err_code_invalid_detail": "Mostre um novo código no webmail (Configurações → Segurança → Vincular aplicativo móvel) e escaneie-o.",
"err_code_invalid_title": "Esse código não é válido",
"err_code_used_detail": "Cada código funciona uma única vez. Mostre um novo no webmail e escaneie de novo.",
"err_code_used_title": "Esse código já foi usado",
"err_generic_detail": "Algo deu errado. Tente novamente.",
"err_generic_title": "Falha no login",
"err_interrupted_detail": "A resposta não corresponde à solicitação que iniciamos. Tente entrar novamente.",
@@ -474,6 +495,17 @@
"err_no_server_title": "Nenhum servidor de e-mail em {host}",
"err_no_webmail_detail": "Este servidor não tem webmail do Bulwark nem login OAuth. Use uma senha (ou uma senha de aplicativo).",
"err_no_webmail_title": "Nenhuma página de login em {host}",
"err_pair_connect_detail": "Mostre um novo código no computador e escaneie de novo.",
"err_pair_connect_title": "Login feito, mas não foi possível conectar a {host}",
"err_pair_insecure_detail": "{host} quer usar uma conexão sem criptografia.",
"err_pair_network_detail": "Verifique sua conexão e se o celular consegue acessar o webmail, depois tente de novo.",
"err_pair_rate_detail": "Aguarde um minuto e tente de novo.",
"err_pair_server_detail": "Tente de novo com um novo código. Se continuar falhando, fale com o administrador.",
"err_pair_server_title": "O webmail não conseguiu concluir o login",
"err_pair_unsupported_detail": "{host} não oferece suporte a códigos de login. Talvez precise de uma atualização, ou o link aponta para o endereço errado.",
"err_pair_unsupported_title": "Este webmail não consegue vincular dispositivos",
"err_pair_untrusted_detail": "{host} enviou dados de login para um servidor que o aplicativo não consegue verificar.",
"err_pair_untrusted_title": "Este login não é confiável",
"err_rate_detail": "O servidor pediu para aguardarmos um momento. Tente novamente em breve.",
"err_rate_detail_seconds": "O servidor pediu para aguardarmos. Tente novamente em cerca de {seconds} segundos.",
"err_rate_title": "Tentativas demais",
@@ -487,6 +519,12 @@
"know_server": "Sei o endereço do meu servidor",
"known_server_desc": "Já conhecemos este servidor, então não há nada para configurar",
"known_server_title": "Outra conta em {host}",
"link_confirm_connect": "Um link pede para fazer login nesta página. Só continue se você usa {host} para o seu e-mail.",
"link_confirm_connect_add": "Um link pede para adicionar uma conta fazendo login nesta página. Só continue se você usa {host} para o seu e-mail.",
"link_confirm_connect_title": "Abrir a página de login de {host}?",
"link_confirm_pair": "Este link faz login em uma conta de {host}. Só continue se você acabou de mostrar um código de login no computador.",
"link_confirm_pair_add": "Este link adiciona uma conta de {host} e muda o aplicativo para ela. Só continue se você acabou de mostrar um código de login no computador.",
"link_confirm_title": "Entrar com um link?",
"looking_up": "Procurando seu servidor…",
"manual": "Inserir os dados do servidor manualmente",
"notice_bad_qr": "Esse código não é um código de login do Bulwark",
@@ -505,6 +543,12 @@
"pairing_detail": "Pareando este dispositivo com {host}…",
"password_subtitle": "Sua senha é enviada apenas para este servidor e fica guardada no armazenamento seguro do dispositivo.",
"password_title": "Entrar em {host}",
"paste_button": "Colar",
"paste_clipboard_empty": "Nada para colar. Copie o link no webmail primeiro.",
"paste_hint": "No webmail, abra Configurações → Segurança → Vincular aplicativo móvel, copie o link de login e cole aqui.",
"paste_invalid": "Isso não é um link de login do Bulwark",
"paste_label": "Link de login",
"paste_title": "Colar link de login",
"provider_detail": "Você vai digitá-la na página deles. O Bulwark armazena apenas um token de login, que você pode revogar a qualquer momento.",
"provider_title": "Sua senha fica com seu provedor",
"qr_hint": "Configurações → Segurança → Vincular aplicativo móvel mostra um código. Aponte a câmera para ele.",
@@ -515,6 +559,7 @@
"server_hint": "O mesmo endereço que você digita no navegador. Adicionamos o https:// para você.",
"server_label": "Endereço do servidor",
"server_not_found": "Não encontramos um servidor para {domain}. Se você hospeda o seu próprio, o endereço é o que você usa para o webmail.",
"server_paste_hint": "Tem um link de login? Cole aqui.",
"server_scan_hint": "Se não tiver certeza, escaneie um código de login. Ele contém o endereço do servidor.",
"server_subtitle": "Digite o endereço que você usa para acessar seu webmail.",
"server_title": "Qual é o endereço do seu servidor?",
@@ -598,11 +643,110 @@
"book_count": "{count, plural, one {# contato} other {# contatos}}",
"default_book": "Catálogo de endereços padrão",
"description_mobile": "Preferências de exibição e ferramentas do catálogo de endereços.",
"device_sync_desc": "Mostre seus catálogos de endereços no app Contatos e em outros apps deste dispositivo. As alterações são sincronizadas nos dois sentidos.",
"device_sync_title": "Sincronizar com este dispositivo",
"export_description_count": "{count, plural, one {Exporta # contato como um único arquivo vCard.} other {Exporta # contatos como um único arquivo vCard.}}",
"export_empty": "Nenhum contato para exportar",
"import_description_mobile": "Importa contatos de um arquivo vCard (.vcf) com detecção de duplicados.",
"manage_description_mobile": "Crie, renomeie e remova os catálogos de endereços que organizam seus contatos."
},
"device_sync": {
"also_synced_by": "Também é sincronizado para {accounts}, por isso aparece duas vezes neste dispositivo.",
"android_settings": "Configurações de conta do Android",
"blocked_calendar": "O Android não pede mais acesso aos calendários. Permita o acesso nas configurações do app e ative a sincronização de novo.",
"blocked_contacts": "O Android não pede mais acesso aos contatos. Permita o acesso nas configurações do app e ative a sincronização de novo.",
"blocked_title": "O acesso está desativado",
"books_default": "Seus catálogos de endereços são sincronizados; os compartilhados, só quando você os escolher.",
"books_hint": "Seus catálogos de endereços são sincronizados, a menos que você os desative; os compartilhados, só quando você os ativar.",
"books_label": "Catálogos de endereços",
"calendars_default": "Seus calendários são sincronizados; os compartilhados, só quando você os escolher.",
"calendars_hint": "Seus calendários são sincronizados, a menos que você os desative; os compartilhados, só quando você os ativar. As listas de tarefas ficam no Bulwark.",
"calendars_label": "Calendários",
"choose": "Escolher",
"choose_books_title": "Catálogos de endereços para sincronizar",
"choose_calendars_title": "Calendários para sincronizar",
"collections_count": "{selected} de {total} sincronizados",
"continue": "Continuar",
"deletions_delete": "Excluir no servidor",
"deletions_message": "Muitos itens foram excluídos de uma vez neste dispositivo, por isso não foram excluídos no servidor. Exclua-os lá também ou restaure-os neste dispositivo.",
"deletions_restore": "Restaurar",
"deletions_title": "Excluir também no servidor?",
"denied_calendar": "Sem acesso aos calendários, o Bulwark não consegue colocar seus calendários neste dispositivo.",
"denied_contacts": "Sem acesso aos contatos, o Bulwark não consegue colocar seus catálogos de endereços neste dispositivo.",
"denied_title": "A sincronização continua desativada",
"failed_title": "Não foi possível ativar a sincronização",
"grant_access": "Conceder acesso",
"interval_15m": "A cada 15 minutos",
"interval_1h": "A cada hora",
"interval_30m": "A cada 30 minutos",
"interval_6h": "A cada 6 horas",
"interval_desc": "Com que frequência o Android sincroniza por conta própria. Edições no Bulwark e alterações avisadas por push são sincronizadas antes.",
"interval_label": "Intervalo de sincronização",
"interval_manual": "Sem sincronização periódica",
"keep_syncing": "Continuar sincronizando",
"list_error_auth": "O servidor não aceitou o login.",
"list_error_network": "Não foi possível acessar o servidor.",
"list_error_server": "O servidor não conseguiu listá-los.",
"list_error_signed_out": "Esta conta não está conectada neste dispositivo.",
"master_off": "A sincronização automática está desativada neste dispositivo, então só há sincronização quando você toca em \"Sincronizar agora\".",
"new_contacts_default": "Catálogo de endereços padrão",
"new_contacts_desc": "O catálogo de endereços para contatos criados em outros apps deste dispositivo.",
"new_contacts_label": "Salvar novos contatos em",
"no_books": "Esta conta não tem catálogos de endereços.",
"no_calendars": "Esta conta não tem calendários para sincronizar.",
"ok": "OK",
"open_app_settings": "Abrir configurações do app",
"own_collections": "Seus",
"rationale_calendar": "Para mostrar seus calendários no app Agenda, o Bulwark precisa de acesso aos calendários deste dispositivo. Ele só altera os calendários da própria conta.",
"rationale_contacts": "Para mostrar seus catálogos de endereços no app Contatos, o Bulwark precisa de acesso aos contatos deste dispositivo. Ele só altera os contatos da própria conta.",
"rationale_title_calendar": "Permitir acesso aos calendários",
"rationale_title_contacts": "Permitir acesso aos contatos",
"read_only": "Somente leitura",
"reminder_owner_bulwark": "Bulwark",
"reminder_owner_device": "App Agenda",
"reminder_question_message": "Os lembretes de eventos sincronizados podem vir do app de agenda deste dispositivo ou do Bulwark. Escolha um para não receber lembretes em dobro. Você pode mudar isso depois.",
"reminder_question_title": "Quem deve lembrar você?",
"reminders_desc": "Quem lembra você dos eventos sincronizados. O outro fica em silêncio, para que você não receba lembretes em dobro.",
"reminders_label": "Lembretes",
"reminders_nobody": "As notificações de eventos do Bulwark estão desativadas, então nada vai lembrar você dos eventos sincronizados.",
"remove": "Remover",
"remove_from_device": "Remover deste dispositivo",
"remove_message": "Os contatos e calendários da conta são removidos deste dispositivo. As alterações feitas aqui que não chegaram ao servidor são perdidas.",
"remove_title": "Remover deste dispositivo?",
"review_deletions": "Revisar exclusões",
"shared_by": "Compartilhado por {name}",
"sign_in_again": "Fazer login novamente",
"status_auth": "O servidor não aceita mais o login. Faça login novamente para continuar sincronizando.",
"status_cancelled": "A última sincronização parou antes do fim. Ela continua na próxima vez.",
"status_failed": "Falha na última sincronização: {message}",
"status_failed_plain": "Falha na última sincronização.",
"status_io": "Não foi possível acessar o servidor {when}. O Android vai tentar de novo.",
"status_item_errors": "{count, plural, one {Não foi possível sincronizar # item.} other {Não foi possível sincronizar # itens.}}",
"status_off": "Desativada",
"status_paused": "Pausada nas configurações do Android",
"status_permission_calendar": "O acesso aos calendários foi desativado, então nada é sincronizado.",
"status_permission_contacts": "O acesso aos contatos foi desativado, então nada é sincronizado.",
"status_removed": "Conta removida nas configurações do Android. Ative a sincronização para adicioná-la de novo.",
"status_safety_abort": "Interrompida: o servidor não retornou nada, mas este dispositivo ainda tem itens. Verifique o servidor e sincronize de novo.",
"status_synced": "Sincronizado {when}",
"status_syncing": "Sincronizando…",
"status_too_many_deletions": "Muitos itens foram excluídos neste dispositivo. Eles só serão excluídos no servidor quando você confirmar.",
"status_unsupported_calendar": "O servidor não oferece calendários para esta conta.",
"status_unsupported_contacts": "O servidor não oferece catálogos de endereços para esta conta.",
"status_waiting": "Aguardando a primeira sincronização",
"status_waiting_next": "Aguardando a próxima sincronização",
"suspended_desc": "Sessão encerrada. Os contatos e calendários da conta continuam neste dispositivo, com as alterações feitas aqui, e voltam a sincronizar quando você fizer login.",
"switch_label": "Sincronizar {account} com este dispositivo",
"sync_now": "Sincronizar agora",
"turn_off_anyway": "Desativar",
"turn_off_failed": "Não foi possível remover os dados sincronizados deste dispositivo. A sincronização está pausada; tente novamente mais tarde.",
"turn_off_failed_title": "Não foi possível desativar a sincronização",
"turn_off_pending": "{count, plural, one {# alteração feita neste dispositivo ainda não chegou ao servidor. Ela será perdida se você desativar a sincronização agora.} other {# alterações feitas neste dispositivo ainda não chegaram ao servidor. Elas serão perdidas se você desativar a sincronização agora.}}",
"turn_off_title": "Desativar mesmo assim?",
"turn_off_unknown": "O Bulwark não conseguiu verificar se as alterações feitas neste dispositivo chegaram ao servidor. Elas serão perdidas se você desativar a sincronização agora.",
"turning_off": "Enviando alterações e depois removendo os dados deste dispositivo…",
"turning_on": "Configurando…"
},
"downloads": {
"attachment_template": {
"description_mobile": "Modelo usado ao salvar ou compartilhar um anexo."
+145 -1
View File
@@ -93,6 +93,8 @@
"until_date": "Până la {date}"
},
"settings": {
"device_sync_desc": "Afișați calendarele în aplicația Calendar și în alte aplicații de pe acest dispozitiv. Modificările se sincronizează în ambele sensuri.",
"device_sync_title": "Sincronizare cu acest dispozitiv",
"show_week_numbers_mobile_desc": "Afișați numerele săptămânilor în vizualizarea lunară.",
"time_zone": "Fus orar",
"time_zone_auto": "Fusul orar al dispozitivului",
@@ -249,6 +251,18 @@
"color_tag": "Etichetă",
"remove_color": "Eliminați eticheta"
},
"device_sync": {
"auth_problem_text": "Serverul nu mai acceptă autentificarea pentru {account}, așa că contactele și calendarele acestui cont de pe acest dispozitiv nu se mai sincronizează. Autentificați-vă din nou pentru a relua sincronizarea. Modificările făcute pe acest dispozitiv se păstrează.",
"auth_problem_title": "Autentificați-vă din nou pentru a continua sincronizarea",
"problem_channel": "Probleme de sincronizare",
"sign_out_anyway": "Deconectare",
"sign_out_pending_message": "{count, plural, one {# modificare făcută pe acest dispozitiv nu a ajuns pe server. Se va pierde dacă vă deconectați acum.} few {# modificări făcute pe acest dispozitiv nu au ajuns pe server. Se vor pierde dacă vă deconectați acum.} other {# de modificări făcute pe acest dispozitiv nu au ajuns pe server. Se vor pierde dacă vă deconectați acum.}}",
"sign_out_pending_title": "Vă deconectați totuși?",
"sign_out_unknown_message": "Este posibil ca modificările făcute pe acest dispozitiv să nu fi ajuns pe server. Se vor pierde dacă vă deconectați acum.",
"signed_out_text": "{account} a fost deconectat, așa că contactele și calendarele acestui cont de pe acest dispozitiv nu se mai sincronizează. Autentificați-vă din nou pentru a relua sincronizarea. Modificările făcute pe acest dispozitiv se păstrează.",
"signed_out_title": "Autentificați-vă pentru a continua sincronizarea",
"signing_out": "Se elimină de pe acest dispozitiv contactele și calendarele sincronizate…"
},
"email_composer": {
"attach_camera": "Cameră",
"attachment_reminder_body": "Mesajul dvs. menționează „{keyword}”, dar nu este atașat niciun fișier. Doriți să trimiteți oricum?",
@@ -460,12 +474,19 @@
"email_step_title": "Care este adresa dvs. de e-mail?",
"email_step_title_add": "Care este cealaltă adresă?",
"email_title": "Folosiți adresa mea de e-mail",
"err_account_limit_detail": "Eliminați un cont din Setări pentru a adăuga altul.",
"err_bad_detail": "Verificați adresa de e-mail și parola. Dacă contul dvs. folosește autentificarea în doi pași, creați o parolă pentru aplicații în webmail și folosiți-o aici.",
"err_bad_title": "Nu a funcționat",
"err_cert_detail": "Certificatul de securitate al serverului a fost respins. Dacă este serverul dvs., verificați dacă certificatul este valid și nu a expirat.",
"err_cert_title": "Nu s-a putut verifica {host}",
"err_code_expired_detail": "Codurile de autentificare sunt valabile câteva minute. Generați unul nou în webmail și scanați-l din nou.",
"err_code_expired_detail": "Codurile de autentificare sunt valabile două minute. Afișați unul nou în webmail și scanați-l din nou.",
"err_code_expired_or_used_detail": "Afișați unul nou în webmail și scanați-l din nou.",
"err_code_expired_or_used_title": "Acest cod a expirat sau a fost deja folosit",
"err_code_expired_title": "Acest cod a expirat",
"err_code_invalid_detail": "Afișați un cod nou în webmail (Setări → Securitate → Aplicație mobilă) și scanați-l.",
"err_code_invalid_title": "Acest cod nu este valid",
"err_code_used_detail": "Fiecare cod funcționează o singură dată. Afișați unul nou în webmail și scanați-l din nou.",
"err_code_used_title": "Acest cod a fost deja folosit",
"err_generic_detail": "Ceva nu a funcționat. Încercați din nou.",
"err_generic_title": "Autentificarea a eșuat",
"err_interrupted_detail": "Răspunsul nu corespunde cererii pe care am inițiat-o. Încercați să vă autentificați din nou.",
@@ -474,6 +495,17 @@
"err_no_server_title": "Niciun server de e-mail la {host}",
"err_no_webmail_detail": "Acest server nu are webmail Bulwark și nici autentificare OAuth. Folosiți în schimb o parolă (sau o parolă pentru aplicații).",
"err_no_webmail_title": "Nicio pagină de autentificare la {host}",
"err_pair_connect_detail": "Afișați un cod nou pe computer și scanați-l din nou.",
"err_pair_connect_title": "Autentificat, dar nu se poate conecta la {host}",
"err_pair_insecure_detail": "{host} vrea să folosească o conexiune necriptată.",
"err_pair_network_detail": "Verificați conexiunea și dacă telefonul poate accesa webmailul, apoi încercați din nou.",
"err_pair_rate_detail": "Așteptați un minut, apoi încercați din nou.",
"err_pair_server_detail": "Încercați din nou cu un cod nou. Dacă tot nu funcționează, contactați administratorul.",
"err_pair_server_title": "Webmailul nu a putut finaliza autentificarea",
"err_pair_unsupported_detail": "{host} nu acceptă coduri de autentificare. Poate are nevoie de o actualizare sau linkul duce la o adresă greșită.",
"err_pair_unsupported_title": "Acest webmail nu poate asocia dispozitive",
"err_pair_untrusted_detail": "{host} a trimis date de autentificare pentru un server pe care aplicația nu îl poate verifica.",
"err_pair_untrusted_title": "Această autentificare nu este de încredere",
"err_rate_detail": "Serverul ne-a cerut să așteptăm puțin. Încercați din nou în scurt timp.",
"err_rate_detail_seconds": "Serverul ne-a cerut să așteptăm. Încercați din nou în aproximativ {seconds, plural, one {# secundă} few {# secunde} other {# de secunde}}.",
"err_rate_title": "Prea multe încercări",
@@ -487,6 +519,12 @@
"know_server": "Cunosc adresa serverului meu",
"known_server_desc": "Cunoaștem deja acest server, deci nu este nimic de configurat",
"known_server_title": "Alt cont pe {host}",
"link_confirm_connect": "Un link cere autentificarea pe această pagină. Continuați doar dacă folosiți {host} pentru e-mail.",
"link_confirm_connect_add": "Un link cere adăugarea unui cont prin autentificare pe această pagină. Continuați doar dacă folosiți {host} pentru e-mail.",
"link_confirm_connect_title": "Deschideți pagina de autentificare a {host}?",
"link_confirm_pair": "Acest link vă autentifică într-un cont de la {host}. Continuați doar dacă tocmai ați afișat un cod de autentificare pe computer.",
"link_confirm_pair_add": "Acest link adaugă un cont de la {host} și comută aplicația pe el. Continuați doar dacă tocmai ați afișat un cod de autentificare pe computer.",
"link_confirm_title": "Vă autentificați cu un link?",
"looking_up": "Se caută serverul dvs.…",
"manual": "Introduceți manual detaliile serverului",
"notice_bad_qr": "Acesta nu este un cod de autentificare Bulwark",
@@ -505,6 +543,12 @@
"pairing_detail": "Se asociază acest dispozitiv cu {host}…",
"password_subtitle": "Parola dvs. este trimisă doar către acest server și este stocată în spațiul securizat al dispozitivului.",
"password_title": "Autentificare la {host}",
"paste_button": "Lipiți",
"paste_clipboard_empty": "Nu este nimic de lipit. Copiați mai întâi linkul din webmail.",
"paste_hint": "În webmail, deschideți Setări → Securitate → Aplicație mobilă, copiați linkul de autentificare și lipiți-l aici.",
"paste_invalid": "Acesta nu este un link de autentificare Bulwark",
"paste_label": "Link de autentificare",
"paste_title": "Lipiți linkul de autentificare",
"provider_detail": "O veți introduce pe pagina lor. Bulwark stochează doar un token de autentificare, pe care îl puteți revoca oricând.",
"provider_title": "Parola dvs. rămâne la furnizor",
"qr_hint": "Setări → Securitate → Aplicație mobilă afișează un cod. Îndreptați camera spre el.",
@@ -515,6 +559,7 @@
"server_hint": "Aceeași adresă pe care o introduceți în browser. Adăugăm noi https://.",
"server_label": "Adresa serverului",
"server_not_found": "Nu am găsit un server pentru {domain}. Dacă îl găzduiți chiar dvs., adresa este cea pe care o folosiți pentru webmail.",
"server_paste_hint": "Aveți în schimb un link de autentificare? Lipiți-l aici.",
"server_scan_hint": "Dacă nu sunteți sigur, scanați în schimb un cod de autentificare. Acesta conține adresa serverului.",
"server_subtitle": "Introduceți adresa pe care o folosiți pentru a accesa webmailul.",
"server_title": "Care este adresa serverului dvs.?",
@@ -598,11 +643,110 @@
"book_count": "{count, plural, one {# contact} few {# contacte} other {# de contacte}}",
"default_book": "Agendă implicită",
"description_mobile": "Preferințe de afișare și instrumente pentru agende.",
"device_sync_desc": "Afișați agendele de adrese în aplicația Contacte și în alte aplicații de pe acest dispozitiv. Modificările se sincronizează în ambele sensuri.",
"device_sync_title": "Sincronizare cu acest dispozitiv",
"export_description_count": "{count, plural, one {Exportă # contact ca un singur fișier vCard.} few {Exportă # contacte ca un singur fișier vCard.} other {Exportă # de contacte ca un singur fișier vCard.}}",
"export_empty": "Nu există contacte de exportat",
"import_description_mobile": "Importă contacte dintr-un fișier vCard (.vcf), cu detectarea duplicatelor.",
"manage_description_mobile": "Creați, redenumiți și eliminați agendele care vă organizează contactele."
},
"device_sync": {
"also_synced_by": "Se sincronizează și pentru {accounts}, așa că apare de două ori pe acest dispozitiv.",
"android_settings": "Setările contului Android",
"blocked_calendar": "Android nu mai solicită accesul la calendare. Permiteți-l din setările aplicației, apoi activați din nou sincronizarea.",
"blocked_contacts": "Android nu mai solicită accesul la contacte. Permiteți-l din setările aplicației, apoi activați din nou sincronizarea.",
"blocked_title": "Accesul este dezactivat",
"books_default": "Agendele dvs. de adrese se sincronizează; cele partajate doar dacă le alegeți.",
"books_hint": "Agendele dvs. de adrese se sincronizează dacă nu le dezactivați; cele partajate doar dacă le activați.",
"books_label": "Agende de adrese",
"calendars_default": "Calendarele dvs. se sincronizează; cele partajate doar dacă le alegeți.",
"calendars_hint": "Calendarele dvs. se sincronizează dacă nu le dezactivați; cele partajate doar dacă le activați. Listele de sarcini rămân în Bulwark.",
"calendars_label": "Calendare",
"choose": "Alegeți",
"choose_books_title": "Agende de adrese de sincronizat",
"choose_calendars_title": "Calendare de sincronizat",
"collections_count": "Sincronizate: {selected} din {total}",
"continue": "Continuați",
"deletions_delete": "Ștergeți de pe server",
"deletions_message": "Multe elemente au fost șterse deodată pe acest dispozitiv, așa că nu au fost șterse de pe server. Ștergeți-le și acolo sau readuceți-le pe acest dispozitiv.",
"deletions_restore": "Readuceți-le",
"deletions_title": "Le ștergeți și de pe server?",
"denied_calendar": "Fără acces la calendare, Bulwark nu poate aduce calendarele dvs. pe acest dispozitiv.",
"denied_contacts": "Fără acces la contacte, Bulwark nu poate aduce agendele dvs. de adrese pe acest dispozitiv.",
"denied_title": "Sincronizarea rămâne dezactivată",
"failed_title": "Sincronizarea nu a putut fi activată",
"grant_access": "Acordați acces",
"interval_15m": "La fiecare 15 minute",
"interval_1h": "La fiecare oră",
"interval_30m": "La fiecare 30 de minute",
"interval_6h": "La fiecare 6 ore",
"interval_desc": "Cât de des sincronizează Android de la sine. Modificările din Bulwark și cele anunțate prin push se sincronizează mai repede.",
"interval_label": "Interval de sincronizare",
"interval_manual": "Fără sincronizare periodică",
"keep_syncing": "Continuați sincronizarea",
"list_error_auth": "Serverul nu a acceptat autentificarea.",
"list_error_network": "Serverul nu a putut fi contactat.",
"list_error_server": "Serverul nu a putut furniza lista.",
"list_error_signed_out": "Acest cont nu este autentificat pe acest dispozitiv.",
"master_off": "Sincronizarea automată este dezactivată pe acest dispozitiv, așa că sincronizarea are loc doar când atingeți „Sincronizați acum”.",
"new_contacts_default": "Agendă implicită",
"new_contacts_desc": "Agenda de adrese pentru contactele create în alte aplicații de pe acest dispozitiv.",
"new_contacts_label": "Contactele noi se salvează în",
"no_books": "Acest cont nu are agende de adrese.",
"no_calendars": "Acest cont nu are calendare de sincronizat.",
"ok": "OK",
"open_app_settings": "Deschideți setările",
"own_collections": "Ale dvs.",
"rationale_calendar": "Pentru a afișa calendarele dvs. în aplicația Calendar, Bulwark are nevoie de acces la calendarele de pe acest dispozitiv. Modifică doar calendarele propriului cont.",
"rationale_contacts": "Pentru a afișa agendele dvs. de adrese în aplicația Contacte, Bulwark are nevoie de acces la contactele de pe acest dispozitiv. Modifică doar contactele propriului cont.",
"rationale_title_calendar": "Permiteți accesul la calendare",
"rationale_title_contacts": "Permiteți accesul la contacte",
"read_only": "Doar citire",
"reminder_owner_bulwark": "Bulwark",
"reminder_owner_device": "Aplicația Calendar",
"reminder_question_message": "Mementourile pentru evenimentele sincronizate pot veni din aplicația de calendar de pe acest dispozitiv sau din Bulwark. Alegeți una dintre ele ca să nu primiți mementouri de două ori. Puteți schimba ulterior.",
"reminder_question_title": "Cine să vă trimită mementouri?",
"reminders_desc": "Cine vă amintește de evenimentele sincronizate. Cealaltă aplicație rămâne silențioasă, ca să nu primiți mementouri de două ori.",
"reminders_label": "Mementouri",
"reminders_nobody": "Notificările de evenimente din Bulwark sunt dezactivate, așa că nimic nu vă amintește de evenimentele sincronizate.",
"remove": "Eliminați",
"remove_from_device": "Eliminați de pe acest dispozitiv",
"remove_message": "Contactele și calendarele contului vor fi eliminate de pe acest dispozitiv. Modificările făcute aici care nu au ajuns pe server se vor pierde.",
"remove_title": "Eliminați de pe acest dispozitiv?",
"review_deletions": "Verificați ștergerile",
"shared_by": "Distribuit de {name}",
"sign_in_again": "Autentificați-vă din nou",
"status_auth": "Serverul nu mai acceptă autentificarea. Autentificați-vă din nou pentru a continua sincronizarea.",
"status_cancelled": "Ultima sincronizare s-a oprit prea devreme. Va continua data viitoare.",
"status_failed": "Ultima sincronizare a eșuat: {message}",
"status_failed_plain": "Ultima sincronizare a eșuat.",
"status_io": "Serverul nu a putut fi contactat {when}. Android va încerca din nou.",
"status_item_errors": "{count, plural, one {# element nu a putut fi sincronizat.} few {# elemente nu au putut fi sincronizate.} other {# de elemente nu au putut fi sincronizate.}}",
"status_off": "Dezactivată",
"status_paused": "Întreruptă în setările Android",
"status_permission_calendar": "Accesul la calendare a fost dezactivat, așa că nu se sincronizează nimic.",
"status_permission_contacts": "Accesul la contacte a fost dezactivat, așa că nu se sincronizează nimic.",
"status_removed": "Eliminat în setările Android. Activați sincronizarea pentru a adăuga din nou contul.",
"status_safety_abort": "Oprită: serverul nu a returnat nimic, deși acest dispozitiv încă are elemente. Verificați serverul, apoi sincronizați din nou.",
"status_synced": "Sincronizat {when}",
"status_syncing": "Se sincronizează…",
"status_too_many_deletions": "Multe elemente au fost șterse pe acest dispozitiv. Nu vor fi șterse de pe server până nu confirmați.",
"status_unsupported_calendar": "Serverul nu oferă calendare pentru acest cont.",
"status_unsupported_contacts": "Serverul nu oferă agende de adrese pentru acest cont.",
"status_waiting": "Se așteaptă prima sincronizare",
"status_waiting_next": "Se așteaptă următoarea sincronizare",
"suspended_desc": "Deconectat. Contactele și calendarele contului rămân pe acest dispozitiv, împreună cu modificările făcute aici, și se vor sincroniza din nou după ce vă autentificați.",
"switch_label": "Sincronizați {account} cu acest dispozitiv",
"sync_now": "Sincronizați acum",
"turn_off_anyway": "Dezactivați",
"turn_off_failed": "Datele sincronizate nu au putut fi eliminate de pe acest dispozitiv. Sincronizarea este întreruptă; încercați din nou mai târziu.",
"turn_off_failed_title": "Sincronizarea nu a putut fi dezactivată",
"turn_off_pending": "{count, plural, one {# modificare făcută pe acest dispozitiv nu a ajuns încă pe server. Se va pierde dacă dezactivați acum sincronizarea.} few {# modificări făcute pe acest dispozitiv nu au ajuns încă pe server. Se vor pierde dacă dezactivați acum sincronizarea.} other {# de modificări făcute pe acest dispozitiv nu au ajuns încă pe server. Se vor pierde dacă dezactivați acum sincronizarea.}}",
"turn_off_title": "Dezactivați totuși?",
"turn_off_unknown": "Bulwark nu a putut verifica dacă modificările făcute pe acest dispozitiv au ajuns pe server. Se vor pierde dacă dezactivați acum sincronizarea.",
"turning_off": "Se încarcă modificările, apoi se elimină datele de pe acest dispozitiv…",
"turning_on": "Se configurează…"
},
"downloads": {
"attachment_template": {
"description_mobile": "Șablon utilizat la salvarea sau partajarea unui atașament."
+145 -1
View File
@@ -93,6 +93,8 @@
"until_date": "До {date}"
},
"settings": {
"device_sync_desc": "Ваши календари будут видны в приложении «Календарь» и других приложениях на этом устройстве. Изменения синхронизируются в обе стороны.",
"device_sync_title": "Синхронизация с этим устройством",
"show_week_numbers_mobile_desc": "Показывать номера недель в представлении «Месяц».",
"time_zone": "Часовой пояс",
"time_zone_auto": "Часовой пояс устройства",
@@ -249,6 +251,18 @@
"color_tag": "Тег",
"remove_color": "Убрать тег"
},
"device_sync": {
"auth_problem_text": "Сервер больше не принимает вход в аккаунт {account}, поэтому его контакты и календари на этом устройстве больше не синхронизируются. Войдите снова, чтобы возобновить синхронизацию. Изменения, сделанные на этом устройстве, сохранятся.",
"auth_problem_title": "Войдите снова, чтобы продолжить синхронизацию",
"problem_channel": "Проблемы синхронизации",
"sign_out_anyway": "Выйти",
"sign_out_pending_message": "{count, plural, one {# изменение, сделанное на этом устройстве, не дошло до сервера. Оно будет потеряно, если вы сейчас выйдете.} few {# изменения, сделанные на этом устройстве, не дошли до сервера. Они будут потеряны, если вы сейчас выйдете.} many {# изменений, сделанных на этом устройстве, не дошли до сервера. Они будут потеряны, если вы сейчас выйдете.} other {# изменения, сделанного на этом устройстве, не дошли до сервера. Они будут потеряны, если вы сейчас выйдете.}}",
"sign_out_pending_title": "Всё равно выйти?",
"sign_out_unknown_message": "Изменения, сделанные на этом устройстве, могли не дойти до сервера. Они будут потеряны, если вы сейчас выйдете.",
"signed_out_text": "Выполнен выход из аккаунта {account}, поэтому его контакты и календари на этом устройстве больше не синхронизируются. Войдите снова, чтобы возобновить синхронизацию. Изменения, сделанные на этом устройстве, сохранятся.",
"signed_out_title": "Войдите, чтобы продолжить синхронизацию",
"signing_out": "Удаление синхронизированных контактов и календарей с этого устройства…"
},
"email_composer": {
"attach_camera": "Камера",
"attachment_reminder_body": "В письме упоминается «{keyword}», но файл не прикреплён. Всё равно отправить?",
@@ -460,12 +474,19 @@
"email_step_title": "Какой у вас адрес электронной почты?",
"email_step_title_add": "Какой у вас другой адрес?",
"email_title": "Использовать мой адрес электронной почты",
"err_account_limit_detail": "Удалите аккаунт в настройках, чтобы добавить новый.",
"err_bad_detail": "Проверьте адрес электронной почты и пароль. Если в аккаунте включена двухфакторная аутентификация, создайте пароль приложения в веб-почте и используйте его здесь.",
"err_bad_title": "Не получилось",
"err_cert_detail": "Сертификат безопасности сервера отклонён. Если это ваш собственный сервер, проверьте, что сертификат действителен и не истёк.",
"err_cert_title": "Не удалось проверить {host}",
"err_code_expired_detail": "Коды входа действуют несколько минут. Создайте новый в веб-почте и отсканируйте его снова.",
"err_code_expired_detail": "Коды входа действуют две минуты. Покажите новый в веб-почте и отсканируйте его снова.",
"err_code_expired_or_used_detail": "Покажите новый в веб-почте и отсканируйте его снова.",
"err_code_expired_or_used_title": "Срок действия кода истёк, или он уже использован",
"err_code_expired_title": "Срок действия кода истёк",
"err_code_invalid_detail": "Покажите новый код в веб-почте (Настройки → Безопасность → Привязать мобильное приложение) и отсканируйте его.",
"err_code_invalid_title": "Этот код недействителен",
"err_code_used_detail": "Каждый код работает только один раз. Покажите новый в веб-почте и отсканируйте его снова.",
"err_code_used_title": "Этот код уже использован",
"err_generic_detail": "Что-то пошло не так. Попробуйте ещё раз.",
"err_generic_title": "Не удалось войти",
"err_interrupted_detail": "Ответ не соответствует начатому запросу. Попробуйте войти ещё раз.",
@@ -474,6 +495,17 @@
"err_no_server_title": "Почтовый сервер не найден: {host}",
"err_no_webmail_detail": "На этом сервере нет веб-почты Bulwark и входа через OAuth. Используйте пароль (или пароль приложения).",
"err_no_webmail_title": "Нет страницы входа: {host}",
"err_pair_connect_detail": "Покажите новый код на компьютере и отсканируйте его снова.",
"err_pair_connect_title": "Вход выполнен, но не удалось подключиться к {host}",
"err_pair_insecure_detail": "{host} хочет использовать незашифрованное соединение.",
"err_pair_network_detail": "Проверьте подключение и доступна ли веб-почта с телефона, затем повторите попытку.",
"err_pair_rate_detail": "Подождите минуту и повторите попытку.",
"err_pair_server_detail": "Попробуйте ещё раз с новым кодом. Если ошибка повторяется, обратитесь к администратору.",
"err_pair_server_title": "Веб-почте не удалось завершить вход",
"err_pair_unsupported_detail": "{host} не поддерживает коды входа. Возможно, нужно обновление, или ссылка ведёт на неверный адрес.",
"err_pair_unsupported_title": "Эта веб-почта не может привязывать устройства",
"err_pair_untrusted_detail": "{host} отправил данные для входа на сервер, который приложение не может проверить.",
"err_pair_untrusted_title": "Этому входу нельзя доверять",
"err_rate_detail": "Сервер попросил немного подождать. Повторите попытку чуть позже.",
"err_rate_detail_seconds": "Сервер попросил подождать. Повторите попытку примерно через {seconds} с.",
"err_rate_title": "Слишком много попыток",
@@ -487,6 +519,12 @@
"know_server": "Я знаю адрес своего сервера",
"known_server_desc": "Этот сервер уже известен, настройка не нужна",
"known_server_title": "Ещё один аккаунт на {host}",
"link_confirm_connect": "Ссылка предлагает войти на этой странице. Продолжайте, только если вы пользуетесь почтой на {host}.",
"link_confirm_connect_add": "Ссылка предлагает добавить аккаунт, войдя на этой странице. Продолжайте, только если вы пользуетесь почтой на {host}.",
"link_confirm_connect_title": "Открыть страницу входа {host}?",
"link_confirm_pair": "Эта ссылка выполняет вход в аккаунт на {host}. Продолжайте, только если вы только что показали код входа на своём компьютере.",
"link_confirm_pair_add": "Эта ссылка добавляет аккаунт с {host} и переключает на него приложение. Продолжайте, только если вы только что показали код входа на своём компьютере.",
"link_confirm_title": "Войти по ссылке?",
"looking_up": "Ищем ваш сервер…",
"manual": "Ввести данные сервера вручную",
"notice_bad_qr": "Это не код входа Bulwark",
@@ -505,6 +543,12 @@
"pairing_detail": "Привязка устройства: {host}…",
"password_subtitle": "Пароль отправляется только на этот сервер и хранится в защищённом хранилище устройства.",
"password_title": "Вход на {host}",
"paste_button": "Вставить",
"paste_clipboard_empty": "Нечего вставлять. Сначала скопируйте ссылку в веб-почте.",
"paste_hint": "В веб-почте откройте Настройки → Безопасность → Привязать мобильное приложение, скопируйте ссылку для входа и вставьте её сюда.",
"paste_invalid": "Это не ссылка для входа Bulwark",
"paste_label": "Ссылка для входа",
"paste_title": "Вставить ссылку для входа",
"provider_detail": "Вы введёте его на их странице. Bulwark хранит только токен входа, который можно отозвать в любой момент.",
"provider_title": "Ваш пароль остаётся у провайдера",
"qr_hint": "В разделе Настройки → Безопасность → Привязать мобильное приложение появится код. Наведите на него камеру.",
@@ -515,6 +559,7 @@
"server_hint": "Тот же адрес, что вы вводите в браузере. Мы сами добавим https://.",
"server_label": "Адрес сервера",
"server_not_found": "Не удалось найти сервер для {domain}. Если у вас свой сервер, укажите адрес, по которому вы открываете веб-почту.",
"server_paste_hint": "У вас есть ссылка для входа? Вставьте её сюда.",
"server_scan_hint": "Если не уверены, отсканируйте код входа — в нём есть адрес сервера.",
"server_subtitle": "Введите адрес, по которому вы открываете веб-почту.",
"server_title": "Какой адрес у вашего сервера?",
@@ -598,11 +643,110 @@
"book_count": "{count, plural, one {# контакт} few {# контакта} many {# контактов} other {# контакта}}",
"default_book": "Адресная книга по умолчанию",
"description_mobile": "Параметры отображения и инструменты адресных книг.",
"device_sync_desc": "Ваши адресные книги будут видны в приложении «Контакты» и других приложениях на этом устройстве. Изменения синхронизируются в обе стороны.",
"device_sync_title": "Синхронизация с этим устройством",
"export_description_count": "{count, plural, one {Экспортировать # контакт в один файл vCard.} few {Экспортировать # контакта в один файл vCard.} many {Экспортировать # контактов в один файл vCard.} other {Экспортировать # контакта в один файл vCard.}}",
"export_empty": "Нет контактов для экспорта",
"import_description_mobile": "Импорт контактов из файла vCard (.vcf) с поиском дубликатов.",
"manage_description_mobile": "Создавайте, переименовывайте и удаляйте адресные книги, в которых хранятся ваши контакты."
},
"device_sync": {
"also_synced_by": "Также синхронизируется для {accounts}, поэтому отображается на этом устройстве дважды.",
"android_settings": "Настройки аккаунта Android",
"blocked_calendar": "Android больше не запрашивает доступ к календарям. Разрешите его в настройках приложения, а затем снова включите синхронизацию.",
"blocked_contacts": "Android больше не запрашивает доступ к контактам. Разрешите его в настройках приложения, а затем снова включите синхронизацию.",
"blocked_title": "Доступ отключён",
"books_default": "Ваши собственные адресные книги синхронизируются, а общие — только если вы их выберете.",
"books_hint": "Ваши собственные адресные книги синхронизируются, если вы их не отключите, а общие — только если вы их включите.",
"books_label": "Адресные книги",
"calendars_default": "Ваши собственные календари синхронизируются, а общие — только если вы их выберете.",
"calendars_hint": "Ваши собственные календари синхронизируются, если вы их не отключите, а общие — только если вы их включите. Списки задач остаются в Bulwark.",
"calendars_label": "Календари",
"choose": "Выбрать",
"choose_books_title": "Адресные книги для синхронизации",
"choose_calendars_title": "Календари для синхронизации",
"collections_count": "Синхронизируется: {selected} из {total}",
"continue": "Продолжить",
"deletions_delete": "Удалить на сервере",
"deletions_message": "На этом устройстве сразу было удалено много элементов, поэтому на сервере они не удалены. Удалите их и там или верните их на это устройство.",
"deletions_restore": "Вернуть",
"deletions_title": "Удалить их и на сервере?",
"denied_calendar": "Без доступа к календарям Bulwark не сможет перенести ваши календари на это устройство.",
"denied_contacts": "Без доступа к контактам Bulwark не сможет перенести ваши адресные книги на это устройство.",
"denied_title": "Синхронизация остаётся выключенной",
"failed_title": "Не удалось включить синхронизацию",
"grant_access": "Предоставить доступ",
"interval_15m": "Каждые 15 минут",
"interval_1h": "Каждый час",
"interval_30m": "Каждые 30 минут",
"interval_6h": "Каждые 6 часов",
"interval_desc": "Как часто Android синхронизирует данные самостоятельно. Изменения в Bulwark и изменения, о которых сообщает push, синхронизируются раньше.",
"interval_label": "Интервал синхронизации",
"interval_manual": "Без регулярной синхронизации",
"keep_syncing": "Продолжить синхронизацию",
"list_error_auth": "Сервер не принял вход.",
"list_error_network": "Не удалось связаться с сервером.",
"list_error_server": "Сервер не смог вернуть список.",
"list_error_signed_out": "На этом устройстве не выполнен вход в этот аккаунт.",
"master_off": "Автосинхронизация на этом устройстве выключена, поэтому синхронизация выполняется только при нажатии «Синхронизировать».",
"new_contacts_default": "Адресная книга по умолчанию",
"new_contacts_desc": "Адресная книга для контактов, созданных в других приложениях на этом устройстве.",
"new_contacts_label": "Сохранять новые контакты в",
"no_books": "В этом аккаунте нет адресных книг.",
"no_calendars": "В этом аккаунте нет календарей для синхронизации.",
"ok": "ОК",
"open_app_settings": "Открыть настройки",
"own_collections": "Ваши",
"rationale_calendar": "Чтобы показывать ваши календари в приложении «Календарь», Bulwark нужен доступ к календарям на этом устройстве. Он изменяет только календари своего аккаунта.",
"rationale_contacts": "Чтобы показывать ваши адресные книги в приложении «Контакты», Bulwark нужен доступ к контактам на этом устройстве. Он изменяет только контакты своего аккаунта.",
"rationale_title_calendar": "Разрешить доступ к календарям",
"rationale_title_contacts": "Разрешить доступ к контактам",
"read_only": "Только для чтения",
"reminder_owner_bulwark": "Bulwark",
"reminder_owner_device": "Приложение «Календарь»",
"reminder_question_message": "Напоминания о синхронизированных событиях может показывать приложение календаря на этом устройстве или Bulwark. Выберите что-то одно, чтобы не получать напоминания дважды. Это можно изменить позже.",
"reminder_question_title": "Кто будет напоминать о событиях?",
"reminders_desc": "Кто напоминает о синхронизированных событиях. Второе приложение молчит, чтобы напоминания не приходили дважды.",
"reminders_label": "Напоминания",
"reminders_nobody": "Уведомления о событиях в Bulwark выключены, поэтому о синхронизированных событиях ничто не напомнит.",
"remove": "Удалить",
"remove_from_device": "Удалить с этого устройства",
"remove_message": "Контакты и календари аккаунта будут удалены с этого устройства. Сделанные здесь изменения, которые не дошли до сервера, будут потеряны.",
"remove_title": "Удалить с этого устройства?",
"review_deletions": "Проверить удаления",
"shared_by": "Владелец: {name}",
"sign_in_again": "Войти снова",
"status_auth": "Сервер больше не принимает вход. Войдите снова, чтобы продолжить синхронизацию.",
"status_cancelled": "Последняя синхронизация прервалась. Она продолжится в следующий раз.",
"status_failed": "Ошибка последней синхронизации: {message}",
"status_failed_plain": "Последняя синхронизация не удалась.",
"status_io": "Не удалось связаться с сервером {when}. Android повторит попытку.",
"status_item_errors": "{count, plural, one {Не удалось синхронизировать # элемент.} few {Не удалось синхронизировать # элемента.} many {Не удалось синхронизировать # элементов.} other {Не удалось синхронизировать # элемента.}}",
"status_off": "Выкл.",
"status_paused": "Приостановлено в настройках Android",
"status_permission_calendar": "Доступ к календарям отключён, поэтому ничего не синхронизируется.",
"status_permission_contacts": "Доступ к контактам отключён, поэтому ничего не синхронизируется.",
"status_removed": "Удалено в настройках Android. Включите синхронизацию, чтобы снова добавить аккаунт.",
"status_safety_abort": "Остановлено: сервер ничего не вернул, хотя на этом устройстве ещё есть элементы. Проверьте сервер и повторите синхронизацию.",
"status_synced": "Синхронизировано {when}",
"status_syncing": "Синхронизация…",
"status_too_many_deletions": "На этом устройстве удалено много элементов. На сервере они будут удалены только после вашего подтверждения.",
"status_unsupported_calendar": "Сервер не предоставляет календари для этого аккаунта.",
"status_unsupported_contacts": "Сервер не предоставляет адресные книги для этого аккаунта.",
"status_waiting": "Ожидание первой синхронизации",
"status_waiting_next": "Ожидание следующей синхронизации",
"suspended_desc": "Выполнен выход. Контакты и календари аккаунта остаются на этом устройстве вместе со сделанными здесь изменениями и снова синхронизируются после входа.",
"switch_label": "Синхронизировать {account} с этим устройством",
"sync_now": "Синхронизировать",
"turn_off_anyway": "Выключить",
"turn_off_failed": "Не удалось удалить синхронизированные данные с этого устройства. Синхронизация приостановлена; повторите попытку позже.",
"turn_off_failed_title": "Не удалось выключить синхронизацию",
"turn_off_pending": "{count, plural, one {# изменение, сделанное на этом устройстве, ещё не дошло до сервера. Оно будет потеряно, если сейчас выключить синхронизацию.} few {# изменения, сделанные на этом устройстве, ещё не дошли до сервера. Они будут потеряны, если сейчас выключить синхронизацию.} many {# изменений, сделанных на этом устройстве, ещё не дошли до сервера. Они будут потеряны, если сейчас выключить синхронизацию.} other {# изменения, сделанного на этом устройстве, ещё не дошли до сервера. Они будут потеряны, если сейчас выключить синхронизацию.}}",
"turn_off_title": "Всё равно выключить?",
"turn_off_unknown": "Bulwark не удалось проверить, дошли ли изменения, сделанные на этом устройстве, до сервера. Они будут потеряны, если сейчас выключить синхронизацию.",
"turning_off": "Отправка изменений, затем удаление данных с этого устройства…",
"turning_on": "Настройка…"
},
"downloads": {
"attachment_template": {
"description_mobile": "Шаблон имени при сохранении вложения или при отправке его в другое приложение."
+145 -1
View File
@@ -93,6 +93,8 @@
"until_date": "Do {date}"
},
"settings": {
"device_sync_desc": "Zobrazí vaše kalendáre v aplikácii Kalendár a ďalších aplikáciách v tomto zariadení. Zmeny sa synchronizujú oboma smermi.",
"device_sync_title": "Synchronizovať s týmto zariadením",
"show_week_numbers_mobile_desc": "Zobrazovať čísla týždňov v mesačnom zobrazení.",
"time_zone": "Časové pásmo",
"time_zone_auto": "Časové pásmo zariadenia",
@@ -249,6 +251,18 @@
"color_tag": "Štítok",
"remove_color": "Odstrániť štítok"
},
"device_sync": {
"auth_problem_text": "Server už neprijíma prihlásenie účtu {account}, preto sa jeho kontakty a kalendáre v tomto zariadení prestali synchronizovať. Ak chcete pokračovať, znova sa prihláste. Zmeny vykonané v tomto zariadení zostanú zachované.",
"auth_problem_title": "Ak chcete ďalej synchronizovať, znova sa prihláste",
"problem_channel": "Problémy so synchronizáciou",
"sign_out_anyway": "Odhlásiť sa",
"sign_out_pending_message": "{count, plural, one {# zmena vykonaná v tomto zariadení sa nedostala na server. Ak sa teraz odhlásite, stratí sa.} few {# zmeny vykonané v tomto zariadení sa nedostali na server. Ak sa teraz odhlásite, stratia sa.} many {# zmeny vykonanej v tomto zariadení sa nedostalo na server. Ak sa teraz odhlásite, stratia sa.} other {# zmien vykonaných v tomto zariadení sa nedostalo na server. Ak sa teraz odhlásite, stratia sa.}}",
"sign_out_pending_title": "Napriek tomu sa odhlásiť?",
"sign_out_unknown_message": "Zmeny vykonané v tomto zariadení sa možno nedostali na server. Ak sa teraz odhlásite, stratia sa.",
"signed_out_text": "Účet {account} bol odhlásený, preto sa jeho kontakty a kalendáre v tomto zariadení už nesynchronizujú. Ak chcete pokračovať, znova sa prihláste. Zmeny vykonané v tomto zariadení zostanú zachované.",
"signed_out_title": "Ak chcete ďalej synchronizovať, prihláste sa",
"signing_out": "Odstraňujú sa synchronizované kontakty a kalendáre z tohto zariadenia…"
},
"email_composer": {
"attach_camera": "Fotoaparát",
"attachment_reminder_body": "Vaša správa spomína „{keyword}“, ale nie je priložený žiadny súbor. Odoslať aj tak?",
@@ -460,12 +474,19 @@
"email_step_title": "Aká je vaša e-mailová adresa?",
"email_step_title_add": "Aká je tá druhá adresa?",
"email_title": "Použiť moju e-mailovú adresu",
"err_account_limit_detail": "Ak chcete pridať ďalší účet, odstráňte niektorý v Nastaveniach.",
"err_bad_detail": "Skontrolujte e-mail a heslo. Ak váš účet používa dvojfaktorové prihlásenie, vytvorte vo webmaile heslo aplikácie a použite ho tu.",
"err_bad_title": "To nevyšlo",
"err_cert_detail": "Bezpečnostný certifikát servera bol odmietnutý. Ak ide o váš vlastný server, skontrolujte, či je certifikát platný a nevypršal.",
"err_cert_title": "{host} sa nepodarilo overiť",
"err_code_expired_detail": "Prihlasovacie kódy platia niekoľko minút. Vygenerujte vo webmaile nový a naskenujte ho znova.",
"err_code_expired_detail": "Prihlasovacie kódy platia dve minúty. Zobrazte vo webmaile nový a naskenujte ho znova.",
"err_code_expired_or_used_detail": "Zobrazte vo webmaile nový a naskenujte ho znova.",
"err_code_expired_or_used_title": "Platnosť kódu vypršala alebo už bol použitý",
"err_code_expired_title": "Platnosť kódu vypršala",
"err_code_invalid_detail": "Zobrazte vo webmaile nový kód (Nastavenia → Zabezpečenie → Prepojiť mobilnú aplikáciu) a naskenujte ho.",
"err_code_invalid_title": "Tento kód nie je platný",
"err_code_used_detail": "Každý kód funguje len raz. Zobrazte vo webmaile nový a naskenujte ho znova.",
"err_code_used_title": "Tento kód už bol použitý",
"err_generic_detail": "Niečo sa pokazilo. Skúste to znova.",
"err_generic_title": "Prihlásenie zlyhalo",
"err_interrupted_detail": "Odpoveď nezodpovedala začatej požiadavke. Skúste sa prihlásiť znova.",
@@ -474,6 +495,17 @@
"err_no_server_title": "Poštový server sa nenašiel: {host}",
"err_no_webmail_detail": "Tento server nemá webmail Bulwark ani prihlásenie cez OAuth. Použite heslo (alebo heslo aplikácie).",
"err_no_webmail_title": "Prihlasovacia stránka sa nenašla: {host}",
"err_pair_connect_detail": "Zobrazte na počítači nový kód a naskenujte ho znova.",
"err_pair_connect_title": "Prihlásené, ale nedá sa pripojiť k {host}",
"err_pair_insecure_detail": "{host} chce použiť nešifrované pripojenie.",
"err_pair_network_detail": "Skontrolujte pripojenie a či sa telefón dostane k webmailu, a skúste to znova.",
"err_pair_rate_detail": "Počkajte minútu a skúste to znova.",
"err_pair_server_detail": "Skúste to znova s novým kódom. Ak to stále zlyháva, obráťte sa na správcu.",
"err_pair_server_title": "Webmail nedokázal dokončiť prihlásenie",
"err_pair_unsupported_detail": "{host} nepodporuje prihlasovacie kódy. Možno potrebuje aktualizáciu, alebo odkaz vedie na nesprávnu adresu.",
"err_pair_unsupported_title": "Tento webmail nedokáže prepájať zariadenia",
"err_pair_untrusted_detail": "{host} poslal prihlasovacie údaje pre server, ktorý aplikácia nedokáže overiť.",
"err_pair_untrusted_title": "Tomuto prihláseniu nemožno dôverovať",
"err_rate_detail": "Server nás požiadal o chvíľu strpenia. Skúste to o chvíľu znova.",
"err_rate_detail_seconds": "Server nás požiadal o strpenie. Skúste to znova približne o {seconds} s.",
"err_rate_title": "Príliš veľa pokusov",
@@ -487,6 +519,12 @@
"know_server": "Poznám adresu svojho servera",
"known_server_desc": "Tento server už poznáme, takže nie je potrebné nič nastavovať",
"known_server_title": "Ďalší účet na {host}",
"link_confirm_connect": "Odkaz žiada o prihlásenie na tejto stránke. Pokračujte, iba ak {host} používate na svoj e-mail.",
"link_confirm_connect_add": "Odkaz žiada o pridanie účtu prihlásením na tejto stránke. Pokračujte, iba ak {host} používate na svoj e-mail.",
"link_confirm_connect_title": "Otvoriť prihlasovaciu stránku {host}?",
"link_confirm_pair": "Tento odkaz vás prihlási do účtu z {host}. Pokračujte, iba ak ste práve na počítači zobrazili prihlasovací kód.",
"link_confirm_pair_add": "Tento odkaz pridá účet z {host} a prepne naň aplikáciu. Pokračujte, iba ak ste práve na počítači zobrazili prihlasovací kód.",
"link_confirm_title": "Prihlásiť sa pomocou odkazu?",
"looking_up": "Hľadá sa váš server…",
"manual": "Zadať údaje servera ručne",
"notice_bad_qr": "Toto nie je prihlasovací kód Bulwark",
@@ -505,6 +543,12 @@
"pairing_detail": "Párovanie tohto zariadenia: {host}…",
"password_subtitle": "Heslo sa odošle iba tomuto serveru a uloží sa do úložiska kľúčov v zariadení.",
"password_title": "Prihlásiť sa do {host}",
"paste_button": "Vložiť",
"paste_clipboard_empty": "Nie je čo vložiť. Najprv skopírujte odkaz vo webmaile.",
"paste_hint": "Vo webmaile otvorte Nastavenia → Zabezpečenie → Prepojiť mobilnú aplikáciu, skopírujte prihlasovací odkaz a vložte ho sem.",
"paste_invalid": "Toto nie je prihlasovací odkaz Bulwark",
"paste_label": "Prihlasovací odkaz",
"paste_title": "Vložiť prihlasovací odkaz",
"provider_detail": "Zadáte ho na jeho stránke. Bulwark ukladá iba prihlasovací token, ktorý môžete kedykoľvek odvolať.",
"provider_title": "Vaše heslo zostáva u poskytovateľa",
"qr_hint": "V Nastavenia → Zabezpečenie → Prepojiť mobilnú aplikáciu sa zobrazí kód. Namierte naň fotoaparát.",
@@ -515,6 +559,7 @@
"server_hint": "Rovnaká adresa, akú zadávate v prehliadači. https:// doplníme za vás.",
"server_label": "Adresa servera",
"server_not_found": "Pre {domain} sme nenašli žiadny server. Ak prevádzkujete vlastný server, zadajte adresu, ktorú používate pre webmail.",
"server_paste_hint": "Máte namiesto toho prihlasovací odkaz? Vložte ho sem.",
"server_scan_hint": "Ak si nie ste istí, naskenujte radšej prihlasovací kód. Obsahuje adresu servera.",
"server_subtitle": "Zadajte adresu, cez ktorú otvárate webmail.",
"server_title": "Aká je adresa vášho servera?",
@@ -598,11 +643,110 @@
"book_count": "{count, plural, one {# kontakt} few {# kontakty} many {# kontaktu} other {# kontaktov}}",
"default_book": "Predvolený adresár",
"description_mobile": "Predvoľby zobrazenia a nástroje pre adresáre.",
"device_sync_desc": "Zobrazí vaše adresáre v aplikácii Kontakty a ďalších aplikáciách v tomto zariadení. Zmeny sa synchronizujú oboma smermi.",
"device_sync_title": "Synchronizovať s týmto zariadením",
"export_description_count": "{count, plural, one {Exportovať # kontakt do jedného súboru vCard.} few {Exportovať # kontakty do jedného súboru vCard.} many {Exportovať # kontaktu do jedného súboru vCard.} other {Exportovať # kontaktov do jedného súboru vCard.}}",
"export_empty": "Žiadne kontakty na export",
"import_description_mobile": "Importovať kontakty zo súboru vCard (.vcf) s rozpoznaním duplicít.",
"manage_description_mobile": "Vytvárajte, premenúvajte a odstraňujte adresáre, v ktorých máte kontakty usporiadané."
},
"device_sync": {
"also_synced_by": "Synchronizuje sa aj pre {accounts}, preto sa v tomto zariadení zobrazuje dvakrát.",
"android_settings": "Nastavenia účtu v Androide",
"blocked_calendar": "Android už o prístup ku kalendárom nežiada. Povoľte ho v nastaveniach aplikácie a potom synchronizáciu znova zapnite.",
"blocked_contacts": "Android už o prístup ku kontaktom nežiada. Povoľte ho v nastaveniach aplikácie a potom synchronizáciu znova zapnite.",
"blocked_title": "Prístup je vypnutý",
"books_default": "Vaše vlastné adresáre sa synchronizujú, zdieľané iba vtedy, keď ich vyberiete.",
"books_hint": "Vaše vlastné adresáre sa synchronizujú, ak ich nevypnete; zdieľané iba vtedy, keď ich zapnete.",
"books_label": "Adresáre",
"calendars_default": "Vaše vlastné kalendáre sa synchronizujú, zdieľané iba vtedy, keď ich vyberiete.",
"calendars_hint": "Vaše vlastné kalendáre sa synchronizujú, ak ich nevypnete; zdieľané iba vtedy, keď ich zapnete. Zoznamy úloh zostávajú v Bulwarku.",
"calendars_label": "Kalendáre",
"choose": "Vybrať",
"choose_books_title": "Adresáre na synchronizáciu",
"choose_calendars_title": "Kalendáre na synchronizáciu",
"collections_count": "Synchronizované: {selected} z {total}",
"continue": "Pokračovať",
"deletions_delete": "Odstrániť na serveri",
"deletions_message": "V tomto zariadení sa naraz odstránilo veľa položiek, preto sa neodstránili na serveri. Odstráňte ich aj tam, alebo ich v tomto zariadení obnovte.",
"deletions_restore": "Obnoviť",
"deletions_title": "Odstrániť ich aj na serveri?",
"denied_calendar": "Bez prístupu ku kalendárom nemôže Bulwark preniesť vaše kalendáre do tohto zariadenia.",
"denied_contacts": "Bez prístupu ku kontaktom nemôže Bulwark preniesť vaše adresáre do tohto zariadenia.",
"denied_title": "Synchronizácia zostáva vypnutá",
"failed_title": "Synchronizáciu sa nepodarilo zapnúť",
"grant_access": "Udeliť prístup",
"interval_15m": "Každých 15 minút",
"interval_1h": "Každú hodinu",
"interval_30m": "Každých 30 minút",
"interval_6h": "Každých 6 hodín",
"interval_desc": "Ako často Android synchronizuje sám. Úpravy v Bulwarku a zmeny oznámené cez push sa synchronizujú skôr.",
"interval_label": "Interval synchronizácie",
"interval_manual": "Bez pravidelnej synchronizácie",
"keep_syncing": "Ďalej synchronizovať",
"list_error_auth": "Server neprijal prihlásenie.",
"list_error_network": "Nepodarilo sa spojiť so serverom.",
"list_error_server": "Server nedokázal poskytnúť zoznam.",
"list_error_signed_out": "Tento účet nie je v tomto zariadení prihlásený.",
"master_off": "Automatická synchronizácia je v tomto zariadení vypnutá, preto sa synchronizuje iba po klepnutí na „Synchronizovať teraz“.",
"new_contacts_default": "Predvolený adresár",
"new_contacts_desc": "Adresár pre kontakty vytvorené v iných aplikáciách v tomto zariadení.",
"new_contacts_label": "Nové kontakty ukladať do",
"no_books": "Tento účet nemá žiadne adresáre.",
"no_calendars": "Tento účet nemá žiadne kalendáre na synchronizáciu.",
"ok": "OK",
"open_app_settings": "Otvoriť nastavenia",
"own_collections": "Vlastné",
"rationale_calendar": "Aby mohol Bulwark zobraziť vaše kalendáre v aplikácii Kalendár, potrebuje prístup ku kalendárom v tomto zariadení. Mení iba kalendáre svojho vlastného účtu.",
"rationale_contacts": "Aby mohol Bulwark zobraziť vaše adresáre v aplikácii Kontakty, potrebuje prístup ku kontaktom v tomto zariadení. Mení iba kontakty svojho vlastného účtu.",
"rationale_title_calendar": "Povoliť prístup ku kalendárom",
"rationale_title_contacts": "Povoliť prístup ku kontaktom",
"read_only": "Iba na čítanie",
"reminder_owner_bulwark": "Bulwark",
"reminder_owner_device": "Aplikácia Kalendár",
"reminder_question_message": "Pripomenutia synchronizovaných udalostí môže zobrazovať aplikácia kalendára v tomto zariadení alebo Bulwark. Vyberte jednu možnosť, aby ste nedostávali pripomenutia dvakrát. Neskôr to môžete zmeniť.",
"reminder_question_title": "Kto vám má pripomínať udalosti?",
"reminders_desc": "Kto vám pripomína synchronizované udalosti. Druhá možnosť mlčí, aby ste nedostávali pripomenutia dvakrát.",
"reminders_label": "Pripomenutia",
"reminders_nobody": "Oznámenia udalostí v Bulwarku sú vypnuté, takže vám synchronizované udalosti nič nepripomenie.",
"remove": "Odstrániť",
"remove_from_device": "Odstrániť z tohto zariadenia",
"remove_message": "Kontakty a kalendáre účtu sa z tohto zariadenia odstránia. Zmeny vykonané tu, ktoré sa nedostali na server, sa stratia.",
"remove_title": "Odstrániť z tohto zariadenia?",
"review_deletions": "Skontrolovať odstránenia",
"shared_by": "Zdieľané od {name}",
"sign_in_again": "Znova sa prihlásiť",
"status_auth": "Server už neprijíma prihlásenie. Ak chcete ďalej synchronizovať, znova sa prihláste.",
"status_cancelled": "Posledná synchronizácia sa skončila predčasne. Nabudúce bude pokračovať.",
"status_failed": "Posledná synchronizácia zlyhala: {message}",
"status_failed_plain": "Posledná synchronizácia zlyhala.",
"status_io": "Server bol {when} nedostupný. Android to skúsi znova.",
"status_item_errors": "{count, plural, one {# položku sa nepodarilo synchronizovať.} few {# položky sa nepodarilo synchronizovať.} many {# položky sa nepodarilo synchronizovať.} other {# položiek sa nepodarilo synchronizovať.}}",
"status_off": "Vypnuté",
"status_paused": "Pozastavené v nastaveniach Androidu",
"status_permission_calendar": "Prístup ku kalendárom bol vypnutý, preto sa nič nesynchronizuje.",
"status_permission_contacts": "Prístup ku kontaktom bol vypnutý, preto sa nič nesynchronizuje.",
"status_removed": "Odstránené v nastaveniach Androidu. Ak chcete účet znova pridať, zapnite synchronizáciu.",
"status_safety_abort": "Zastavené: server nič nevrátil, hoci toto zariadenie stále obsahuje položky. Skontrolujte server a potom synchronizujte znova.",
"status_synced": "Synchronizované {when}",
"status_syncing": "Synchronizuje sa…",
"status_too_many_deletions": "V tomto zariadení sa odstránilo veľa položiek. Na serveri sa odstránia až po vašom potvrdení.",
"status_unsupported_calendar": "Server pre tento účet neponúka žiadne kalendáre.",
"status_unsupported_contacts": "Server pre tento účet neponúka žiadne adresáre.",
"status_waiting": "Čaká sa na prvú synchronizáciu",
"status_waiting_next": "Čaká sa na ďalšiu synchronizáciu",
"suspended_desc": "Odhlásené. Kontakty a kalendáre účtu zostanú v tomto zariadení aj so zmenami vykonanými tu a po prihlásení sa znova synchronizujú.",
"switch_label": "Synchronizovať {account} s týmto zariadením",
"sync_now": "Synchronizovať teraz",
"turn_off_anyway": "Vypnúť",
"turn_off_failed": "Synchronizované údaje sa nepodarilo z tohto zariadenia odstrániť. Synchronizácia je pozastavená; skúste to neskôr.",
"turn_off_failed_title": "Synchronizáciu sa nepodarilo vypnúť",
"turn_off_pending": "{count, plural, one {# zmena vykonaná v tomto zariadení sa ešte nedostala na server. Ak teraz synchronizáciu vypnete, stratí sa.} few {# zmeny vykonané v tomto zariadení sa ešte nedostali na server. Ak teraz synchronizáciu vypnete, stratia sa.} many {# zmeny vykonanej v tomto zariadení sa ešte nedostalo na server. Ak teraz synchronizáciu vypnete, stratia sa.} other {# zmien vykonaných v tomto zariadení sa ešte nedostalo na server. Ak teraz synchronizáciu vypnete, stratia sa.}}",
"turn_off_title": "Napriek tomu vypnúť?",
"turn_off_unknown": "Bulwark nemohol overiť, či sa zmeny vykonané v tomto zariadení dostali na server. Ak teraz synchronizáciu vypnete, stratia sa.",
"turning_off": "Nahrávajú sa zmeny a potom sa z tohto zariadenia odstránia údaje…",
"turning_on": "Nastavuje sa…"
},
"downloads": {
"attachment_template": {
"description_mobile": "Šablóna použitá pri ukladaní alebo zdieľaní prílohy."
+145 -1
View File
@@ -93,6 +93,8 @@
"until_date": "{date} tarihine kadar"
},
"settings": {
"device_sync_desc": "Takvimlerinizi bu cihazdaki Takvim uygulamasında ve diğer uygulamalarda gösterin. Değişiklikler iki yönlü senkronize edilir.",
"device_sync_title": "Bu cihazla senkronize et",
"show_week_numbers_mobile_desc": "Ay görünümünde hafta numaralarını göster.",
"time_zone": "Saat dilimi",
"time_zone_auto": "Cihaz saat dilimi",
@@ -249,6 +251,18 @@
"color_tag": "Etiket",
"remove_color": "Etiketi kaldır"
},
"device_sync": {
"auth_problem_text": "Sunucu artık {account} hesabının girişini kabul etmiyor, bu nedenle hesabın bu cihazdaki kişileri ve takvimleri artık senkronize edilmiyor. Devam etmek için tekrar giriş yapın. Bu cihazda yapılan değişiklikler korunur.",
"auth_problem_title": "Senkronizasyona devam etmek için tekrar giriş yapın",
"problem_channel": "Senkronizasyon sorunları",
"sign_out_anyway": "Çıkış yap",
"sign_out_pending_message": "{count, plural, one {Bu cihazda yapılan # değişiklik sunucuya ulaşmadı. Şimdi çıkış yaparsanız kaybolur.} other {Bu cihazda yapılan # değişiklik sunucuya ulaşmadı. Şimdi çıkış yaparsanız kaybolur.}}",
"sign_out_pending_title": "Yine de çıkış yapılsın mı?",
"sign_out_unknown_message": "Bu cihazda yapılan değişiklikler sunucuya ulaşmamış olabilir. Şimdi çıkış yaparsanız kaybolur.",
"signed_out_text": "{account} hesabından çıkış yapıldı, bu nedenle hesabın bu cihazdaki kişileri ve takvimleri artık senkronize edilmiyor. Devam etmek için tekrar giriş yapın. Bu cihazda yapılan değişiklikler korunur.",
"signed_out_title": "Senkronizasyona devam etmek için giriş yapın",
"signing_out": "Senkronize edilen kişiler ve takvimler bu cihazdan kaldırılıyor…"
},
"email_composer": {
"attach_camera": "Kamera",
"attachment_reminder_body": "İletinizde \"{keyword}\" geçiyor ancak hiçbir dosya eklenmemiş. Yine de gönderilsin mi?",
@@ -460,12 +474,19 @@
"email_step_title": "E-posta adresiniz nedir?",
"email_step_title_add": "Diğer adres nedir?",
"email_title": "E-posta adresimi kullan",
"err_account_limit_detail": "Başka bir hesap eklemek için Ayarlar'dan bir hesabı kaldırın.",
"err_bad_detail": "E-posta adresinizi ve parolanızı kontrol edin. Hesabınız iki aşamalı giriş kullanıyorsa webmail'de bir uygulama parolası oluşturun ve burada onu kullanın.",
"err_bad_title": "Bu işe yaramadı",
"err_cert_detail": "Sunucunun güvenlik sertifikası reddedildi. Bu sizin sunucunuzsa sertifikanın geçerli olduğunu ve süresinin dolmadığını kontrol edin.",
"err_cert_title": "{host} doğrulanamadı",
"err_code_expired_detail": "Giriş kodları birkaç dakika geçerlidir. Webmail'de yeni bir kod oluşturup tekrar tarayın.",
"err_code_expired_detail": "Giriş kodları iki dakika geçerlidir. Webmail'de yeni bir kod gösterip tekrar tarayın.",
"err_code_expired_or_used_detail": "Webmail'de yeni bir kod gösterip tekrar tarayın.",
"err_code_expired_or_used_title": "Bu kodun süresi doldu veya kod zaten kullanıldı",
"err_code_expired_title": "Bu kodun süresi doldu",
"err_code_invalid_detail": "Webmail'de yeni bir kod gösterin (Ayarlar → Güvenlik → Mobil uygulamayı bağla) ve tarayın.",
"err_code_invalid_title": "Bu kod geçerli değil",
"err_code_used_detail": "Her kod yalnızca bir kez çalışır. Webmail'de yeni bir kod gösterip tekrar tarayın.",
"err_code_used_title": "Bu kod zaten kullanıldı",
"err_generic_detail": "Bir şeyler ters gitti. Tekrar deneyin.",
"err_generic_title": "Giriş başarısız",
"err_interrupted_detail": "Yanıt, başlattığımız istekle eşleşmedi. Tekrar giriş yapmayı deneyin.",
@@ -474,6 +495,17 @@
"err_no_server_title": "Posta sunucusu bulunamadı: {host}",
"err_no_webmail_detail": "Bu sunucuda Bulwark webmail ve OAuth girişi yok. Bunun yerine parola (veya uygulama parolası) kullanın.",
"err_no_webmail_title": "Giriş sayfası bulunamadı: {host}",
"err_pair_connect_detail": "Bilgisayarınızda yeni bir kod gösterip tekrar tarayın.",
"err_pair_connect_title": "Giriş yapıldı ancak {host} ile bağlantı kurulamadı",
"err_pair_insecure_detail": "{host} şifrelenmemiş bir bağlantı kullanmak istiyor.",
"err_pair_network_detail": "Bağlantınızı ve telefonunuzun webmail'e erişip erişemediğini kontrol edin, ardından tekrar deneyin.",
"err_pair_rate_detail": "Bir dakika bekleyip tekrar deneyin.",
"err_pair_server_detail": "Yeni bir kodla tekrar deneyin. Sorun devam ederse yöneticinize başvurun.",
"err_pair_server_title": "Webmail girişi tamamlayamadı",
"err_pair_unsupported_detail": "{host} giriş kodlarını desteklemiyor. Güncellenmesi gerekiyor olabilir ya da bağlantı yanlış adrese işaret ediyor.",
"err_pair_unsupported_title": "Bu webmail cihaz bağlayamıyor",
"err_pair_untrusted_detail": "{host}, uygulamanın doğrulayamadığı bir sunucu için giriş bilgileri gönderdi.",
"err_pair_untrusted_title": "Bu girişe güvenilemez",
"err_rate_detail": "Sunucu biraz beklememizi istedi. Kısa süre sonra tekrar deneyin.",
"err_rate_detail_seconds": "Sunucu beklememizi istedi. Yaklaşık {seconds} saniye sonra tekrar deneyin.",
"err_rate_title": "Çok fazla deneme",
@@ -487,6 +519,12 @@
"know_server": "Sunucu adresimi biliyorum",
"known_server_desc": "Bu sunucuyu zaten tanıyoruz, kurulum gerekmiyor",
"known_server_title": "{host} üzerinde başka bir hesap",
"link_confirm_connect": "Bir bağlantı bu sayfada giriş yapmanızı istiyor. Yalnızca e-postanız için {host} kullanıyorsanız devam edin.",
"link_confirm_connect_add": "Bir bağlantı bu sayfada giriş yaparak hesap eklemenizi istiyor. Yalnızca e-postanız için {host} kullanıyorsanız devam edin.",
"link_confirm_connect_title": "{host} giriş sayfası açılsın mı?",
"link_confirm_pair": "Bu bağlantı {host} üzerindeki bir hesapta oturum açar. Yalnızca bilgisayarınızda az önce bir giriş kodu gösterdiyseniz devam edin.",
"link_confirm_pair_add": "Bu bağlantı {host} üzerindeki bir hesabı ekler ve uygulamayı bu hesaba geçirir. Yalnızca bilgisayarınızda az önce bir giriş kodu gösterdiyseniz devam edin.",
"link_confirm_title": "Bağlantıyla giriş yapılsın mı?",
"looking_up": "Sunucunuz aranıyor…",
"manual": "Sunucu bilgilerini elle girin",
"notice_bad_qr": "Bu bir Bulwark giriş kodu değil",
@@ -505,6 +543,12 @@
"pairing_detail": "Bu cihaz {host} ile eşleştiriliyor…",
"password_subtitle": "Parolanız yalnızca bu sunucuya gönderilir ve cihazın anahtar deposunda saklanır.",
"password_title": "Giriş yap: {host}",
"paste_button": "Yapıştır",
"paste_clipboard_empty": "Yapıştırılacak bir şey yok. Önce bağlantıyı webmail'de kopyalayın.",
"paste_hint": "Webmail'de Ayarlar → Güvenlik → Mobil uygulamayı bağla bölümünü açın, giriş bağlantısını kopyalayıp buraya yapıştırın.",
"paste_invalid": "Bu bir Bulwark giriş bağlantısı değil",
"paste_label": "Giriş bağlantısı",
"paste_title": "Giriş bağlantısını yapıştır",
"provider_detail": "Parolanızı sağlayıcının sayfasında yazacaksınız. Bulwark yalnızca istediğiniz zaman iptal edebileceğiniz bir giriş belirteci saklar.",
"provider_title": "Parolanız sağlayıcınızda kalır",
"qr_hint": "Ayarlar → Güvenlik → Mobil uygulamayı bağla bir kod gösterir. Kamerayı ona doğrultun.",
@@ -515,6 +559,7 @@
"server_hint": "Tarayıcıya yazdığınız adresin aynısı. https:// kısmını biz ekleriz.",
"server_label": "Sunucu adresi",
"server_not_found": "{domain} için bir sunucu bulamadık. Kendi sunucunuzu barındırıyorsanız webmail için kullandığınız adresi girin.",
"server_paste_hint": "Bunun yerine bir giriş bağlantınız mı var? Buraya yapıştırın.",
"server_scan_hint": "Emin değilseniz bunun yerine bir giriş kodu tarayın. Kod, sunucu adresini içerir.",
"server_subtitle": "Webmail'inize ulaşmak için kullandığınız adresi girin.",
"server_title": "Sunucu adresiniz nedir?",
@@ -598,11 +643,110 @@
"book_count": "{count, plural, one {# kişi} other {# kişi}}",
"default_book": "Varsayılan adres defteri",
"description_mobile": "Görüntüleme tercihleri ve adres defteri araçları.",
"device_sync_desc": "Adres defterlerinizi bu cihazdaki Kişiler uygulamasında ve diğer uygulamalarda gösterin. Değişiklikler iki yönlü senkronize edilir.",
"device_sync_title": "Bu cihazla senkronize et",
"export_description_count": "{count, plural, one {# kişiyi tek bir vCard dosyası olarak dışa aktarın.} other {# kişiyi tek bir vCard dosyası olarak dışa aktarın.}}",
"export_empty": "Dışa aktarılacak kişi yok",
"import_description_mobile": "Kişileri, yinelenenleri algılayarak bir vCard (.vcf) dosyasından içe aktarın.",
"manage_description_mobile": "Kişilerinizi düzenleyen adres defterlerini oluşturun, yeniden adlandırın ve kaldırın."
},
"device_sync": {
"also_synced_by": "{accounts} için de senkronize ediliyor, bu nedenle bu cihazda iki kez görünüyor.",
"android_settings": "Android hesap ayarları",
"blocked_calendar": "Android artık takvimlere erişim istemiyor. Uygulama ayarlarından erişime izin verin, ardından senkronizasyonu tekrar açın.",
"blocked_contacts": "Android artık kişilere erişim istemiyor. Uygulama ayarlarından erişime izin verin, ardından senkronizasyonu tekrar açın.",
"blocked_title": "Erişim kapalı",
"books_default": "Kendi adres defterleriniz senkronize edilir; paylaşılanlar yalnızca siz seçtiğinizde.",
"books_hint": "Kendi adres defterleriniz siz kapatmadığınız sürece senkronize edilir; paylaşılanlar yalnızca siz açtığınızda.",
"books_label": "Adres defterleri",
"calendars_default": "Kendi takvimleriniz senkronize edilir; paylaşılanlar yalnızca siz seçtiğinizde.",
"calendars_hint": "Kendi takvimleriniz siz kapatmadığınız sürece senkronize edilir; paylaşılanlar yalnızca siz açtığınızda. Görev listeleri Bulwark'ta kalır.",
"calendars_label": "Takvimler",
"choose": "Seç",
"choose_books_title": "Senkronize edilecek adres defterleri",
"choose_calendars_title": "Senkronize edilecek takvimler",
"collections_count": "Senkronize edilen: {selected}/{total}",
"continue": "Devam",
"deletions_delete": "Sunucuda sil",
"deletions_message": "Bu cihazda aynı anda çok sayıda öğe silindi, bu nedenle sunucuda silinmediler. Bunları sunucuda da silin veya bu cihaza geri getirin.",
"deletions_restore": "Geri getir",
"deletions_title": "Sunucuda da silinsin mi?",
"denied_calendar": "Takvimlere erişim olmadan Bulwark takvimlerinizi bu cihaza getiremez.",
"denied_contacts": "Kişilere erişim olmadan Bulwark adres defterlerinizi bu cihaza getiremez.",
"denied_title": "Senkronizasyon kapalı kalıyor",
"failed_title": "Senkronizasyon açılamadı",
"grant_access": "Erişim izni ver",
"interval_15m": "Her 15 dakikada bir",
"interval_1h": "Her saat",
"interval_30m": "Her 30 dakikada bir",
"interval_6h": "Her 6 saatte bir",
"interval_desc": "Android'in kendi kendine ne sıklıkla senkronize edeceği. Bulwark'taki düzenlemeler ve push ile bildirilen değişiklikler daha erken senkronize edilir.",
"interval_label": "Senkronizasyon aralığı",
"interval_manual": "Düzenli senkronizasyon yok",
"keep_syncing": "Senkronizasyona devam et",
"list_error_auth": "Sunucu girişi kabul etmedi.",
"list_error_network": "Sunucuya ulaşılamadı.",
"list_error_server": "Sunucu listeyi sağlayamadı.",
"list_error_signed_out": "Bu cihazda bu hesapla giriş yapılmamış.",
"master_off": "Bu cihazda otomatik senkronizasyon kapalı, bu nedenle senkronizasyon yalnızca \"Şimdi senkronize et\" düğmesine dokunduğunuzda yapılır.",
"new_contacts_default": "Varsayılan adres defteri",
"new_contacts_desc": "Bu cihazdaki diğer uygulamalarda oluşturulan kişilerin kaydedileceği adres defteri.",
"new_contacts_label": "Yeni kişilerin kaydedileceği yer",
"no_books": "Bu hesabın adres defteri yok.",
"no_calendars": "Bu hesabın senkronize edilecek takvimi yok.",
"ok": "Tamam",
"open_app_settings": "Uygulama ayarlarını aç",
"own_collections": "Size ait",
"rationale_calendar": "Takvimlerinizi Takvim uygulamasında göstermek için Bulwark'ın bu cihazdaki takvimlere erişmesi gerekir. Yalnızca kendi hesabının takvimlerini değiştirir.",
"rationale_contacts": "Adres defterlerinizi Kişiler uygulamasında göstermek için Bulwark'ın bu cihazdaki kişilere erişmesi gerekir. Yalnızca kendi hesabının kişilerini değiştirir.",
"rationale_title_calendar": "Takvimlere erişim izni verin",
"rationale_title_contacts": "Kişilere erişim izni verin",
"read_only": "Salt okunur",
"reminder_owner_bulwark": "Bulwark",
"reminder_owner_device": "Takvim uygulaması",
"reminder_question_message": "Senkronize edilen etkinlikler için hatırlatmalar bu cihazdaki takvim uygulamasından veya Bulwark'tan gelebilir. İki kez hatırlatılmamak için birini seçin. Bunu daha sonra değiştirebilirsiniz.",
"reminder_question_title": "Size kim hatırlatsın?",
"reminders_desc": "Senkronize edilen etkinlikleri size kimin hatırlatacağı. Diğeri sessiz kalır, böylece iki kez hatırlatılmazsınız.",
"reminders_label": "Hatırlatıcılar",
"reminders_nobody": "Bulwark'ın etkinlik bildirimleri kapalı, bu nedenle senkronize edilen etkinlikleri size hiçbir şey hatırlatmaz.",
"remove": "Kaldır",
"remove_from_device": "Bu cihazdan kaldır",
"remove_message": "Hesabın kişileri ve takvimleri bu cihazdan kaldırılır. Burada yapılan ve sunucuya ulaşmamış değişiklikler kaybolur.",
"remove_title": "Bu cihazdan kaldırılsın mı?",
"review_deletions": "Silmeleri incele",
"shared_by": "Paylaşan: {name}",
"sign_in_again": "Tekrar giriş yap",
"status_auth": "Sunucu artık girişi kabul etmiyor. Senkronizasyona devam etmek için tekrar giriş yapın.",
"status_cancelled": "Son senkronizasyon erken durdu. Bir dahaki sefere devam edecek.",
"status_failed": "Son senkronizasyon başarısız: {message}",
"status_failed_plain": "Son senkronizasyon başarısız oldu.",
"status_io": "Sunucuya {when} ulaşılamadı. Android tekrar deneyecek.",
"status_item_errors": "{count, plural, one {# öğe senkronize edilemedi.} other {# öğe senkronize edilemedi.}}",
"status_off": "Kapalı",
"status_paused": "Android ayarlarında duraklatıldı",
"status_permission_calendar": "Takvimlere erişim kapatıldı, bu nedenle hiçbir şey senkronize edilmiyor.",
"status_permission_contacts": "Kişilere erişim kapatıldı, bu nedenle hiçbir şey senkronize edilmiyor.",
"status_removed": "Android ayarlarında kaldırıldı. Hesabı yeniden eklemek için senkronizasyonu açın.",
"status_safety_abort": "Durduruldu: bu cihazda hâlâ öğeler varken sunucu hiçbir şey döndürmedi. Sunucuyu kontrol edin, ardından yeniden senkronize edin.",
"status_synced": "Son senkronizasyon: {when}",
"status_syncing": "Senkronize ediliyor…",
"status_too_many_deletions": "Bu cihazda çok sayıda öğe silindi. Siz onaylayana kadar sunucuda silinmezler.",
"status_unsupported_calendar": "Sunucu bu hesap için takvim sunmuyor.",
"status_unsupported_contacts": "Sunucu bu hesap için adres defteri sunmuyor.",
"status_waiting": "İlk senkronizasyon bekleniyor",
"status_waiting_next": "Sonraki senkronizasyon bekleniyor",
"suspended_desc": "Çıkış yapıldı. Hesabın kişileri ve takvimleri, burada yapılan değişikliklerle birlikte bu cihazda kalır ve giriş yaptığınızda yeniden senkronize edilir.",
"switch_label": "{account} hesabını bu cihazla senkronize et",
"sync_now": "Şimdi senkronize et",
"turn_off_anyway": "Kapat",
"turn_off_failed": "Senkronize edilen veriler bu cihazdan kaldırılamadı. Senkronizasyon duraklatıldı; daha sonra tekrar deneyin.",
"turn_off_failed_title": "Senkronizasyon kapatılamadı",
"turn_off_pending": "{count, plural, one {Bu cihazda yapılan # değişiklik henüz sunucuya ulaşmadı. Senkronizasyonu şimdi kapatırsanız kaybolur.} other {Bu cihazda yapılan # değişiklik henüz sunucuya ulaşmadı. Senkronizasyonu şimdi kapatırsanız kaybolur.}}",
"turn_off_title": "Yine de kapatılsın mı?",
"turn_off_unknown": "Bulwark, bu cihazda yapılan değişikliklerin sunucuya ulaşıp ulaşmadığını kontrol edemedi. Senkronizasyonu şimdi kapatırsanız kaybolur.",
"turning_off": "Değişiklikler yükleniyor, ardından veriler bu cihazdan kaldırılıyor…",
"turning_on": "Ayarlanıyor…"
},
"downloads": {
"attachment_template": {
"description_mobile": "Bir eki kaydederken veya paylaşırken kullanılan şablon."
+145 -1
View File
@@ -93,6 +93,8 @@
"until_date": "До {date}"
},
"settings": {
"device_sync_desc": "Ваші календарі відображатимуться в застосунку «Календар» та інших застосунках на цьому пристрої. Зміни синхронізуються в обидва боки.",
"device_sync_title": "Синхронізація з цим пристроєм",
"show_week_numbers_mobile_desc": "Показувати номери тижнів у поданні «Місяць».",
"time_zone": "Часовий пояс",
"time_zone_auto": "Часовий пояс пристрою",
@@ -249,6 +251,18 @@
"color_tag": "Тег",
"remove_color": "Прибрати тег"
},
"device_sync": {
"auth_problem_text": "Сервер більше не приймає вхід в обліковий запис {account}, тому його контакти й календарі на цьому пристрої більше не синхронізуються. Увійдіть знову, щоб відновити синхронізацію. Зміни, внесені на цьому пристрої, збережуться.",
"auth_problem_title": "Увійдіть знову, щоб продовжити синхронізацію",
"problem_channel": "Проблеми із синхронізацією",
"sign_out_anyway": "Вийти",
"sign_out_pending_message": "{count, plural, one {# зміна, внесена на цьому пристрої, не дійшла до сервера. Її буде втрачено, якщо ви зараз вийдете.} few {# зміни, внесені на цьому пристрої, не дійшли до сервера. Їх буде втрачено, якщо ви зараз вийдете.} many {# змін, внесених на цьому пристрої, не дійшли до сервера. Їх буде втрачено, якщо ви зараз вийдете.} other {# зміни, внесеної на цьому пристрої, не дійшли до сервера. Їх буде втрачено, якщо ви зараз вийдете.}}",
"sign_out_pending_title": "Усе одно вийти?",
"sign_out_unknown_message": "Зміни, внесені на цьому пристрої, могли не дійти до сервера. Їх буде втрачено, якщо ви зараз вийдете.",
"signed_out_text": "Виконано вихід з облікового запису {account}, тому його контакти й календарі на цьому пристрої більше не синхронізуються. Увійдіть знову, щоб відновити синхронізацію. Зміни, внесені на цьому пристрої, збережуться.",
"signed_out_title": "Увійдіть, щоб продовжити синхронізацію",
"signing_out": "Видалення синхронізованих контактів і календарів із цього пристрою…"
},
"email_composer": {
"attach_camera": "Камера",
"attachment_reminder_body": "У листі згадано «{keyword}», але файл не вкладено. Усе одно надіслати?",
@@ -460,12 +474,19 @@
"email_step_title": "Яка ваша адреса електронної пошти?",
"email_step_title_add": "Яка ваша інша адреса?",
"email_title": "Використати мою адресу електронної пошти",
"err_account_limit_detail": "Видаліть обліковий запис у налаштуваннях, щоб додати новий.",
"err_bad_detail": "Перевірте адресу електронної пошти та пароль. Якщо у вашому обліковому записі ввімкнено двофакторну автентифікацію, створіть пароль програми у веб-пошті й використайте його тут.",
"err_bad_title": "Не вдалося",
"err_cert_detail": "Сертифікат безпеки сервера відхилено. Якщо це ваш власний сервер, перевірте, що сертифікат дійсний і не прострочений.",
"err_cert_title": "Не вдалося перевірити {host}",
"err_code_expired_detail": "Коди входу діють кілька хвилин. Створіть новий у веб-пошті та відскануйте його знову.",
"err_code_expired_detail": "Коди входу діють дві хвилини. Покажіть новий у веб-пошті та відскануйте його знову.",
"err_code_expired_or_used_detail": "Покажіть новий у веб-пошті та відскануйте його знову.",
"err_code_expired_or_used_title": "Термін дії коду минув, або його вже використано",
"err_code_expired_title": "Термін дії коду минув",
"err_code_invalid_detail": "Покажіть новий код у веб-пошті (Налаштування → Безпека → Прив'язати мобільний застосунок) і відскануйте його.",
"err_code_invalid_title": "Цей код недійсний",
"err_code_used_detail": "Кожен код працює лише один раз. Покажіть новий у веб-пошті та відскануйте його знову.",
"err_code_used_title": "Цей код уже використано",
"err_generic_detail": "Щось пішло не так. Спробуйте ще раз.",
"err_generic_title": "Не вдалося ввійти",
"err_interrupted_detail": "Відповідь не збігається з розпочатим запитом. Спробуйте ввійти ще раз.",
@@ -474,6 +495,17 @@
"err_no_server_title": "Поштовий сервер не знайдено: {host}",
"err_no_webmail_detail": "На цьому сервері немає веб-пошти Bulwark і входу через OAuth. Використайте пароль (або пароль програми).",
"err_no_webmail_title": "Немає сторінки входу: {host}",
"err_pair_connect_detail": "Покажіть новий код на комп'ютері та відскануйте його знову.",
"err_pair_connect_title": "Вхід виконано, але не вдалося під'єднатися до {host}",
"err_pair_insecure_detail": "{host} хоче використати незашифроване з'єднання.",
"err_pair_network_detail": "Перевірте підключення та чи доступна веб-пошта з телефона, потім спробуйте ще раз.",
"err_pair_rate_detail": "Зачекайте хвилину, потім спробуйте ще раз.",
"err_pair_server_detail": "Спробуйте ще раз із новим кодом. Якщо помилка повторюється, зверніться до адміністратора.",
"err_pair_server_title": "Веб-пошті не вдалося завершити вхід",
"err_pair_unsupported_detail": "{host} не підтримує коди входу. Можливо, потрібне оновлення, або посилання веде на неправильну адресу.",
"err_pair_unsupported_title": "Ця веб-пошта не може прив'язувати пристрої",
"err_pair_untrusted_detail": "{host} надіслав дані для входу на сервер, який застосунок не може перевірити.",
"err_pair_untrusted_title": "Цьому входу не можна довіряти",
"err_rate_detail": "Сервер попросив трохи зачекати. Спробуйте ще раз згодом.",
"err_rate_detail_seconds": "Сервер попросив зачекати. Спробуйте ще раз приблизно через {seconds} с.",
"err_rate_title": "Забагато спроб",
@@ -487,6 +519,12 @@
"know_server": "Я знаю адресу свого сервера",
"known_server_desc": "Цей сервер уже відомий, налаштування не потрібне",
"known_server_title": "Ще один обліковий запис на {host}",
"link_confirm_connect": "Посилання пропонує увійти на цій сторінці. Продовжуйте, лише якщо ви користуєтеся поштою на {host}.",
"link_confirm_connect_add": "Посилання пропонує додати обліковий запис, увійшовши на цій сторінці. Продовжуйте, лише якщо ви користуєтеся поштою на {host}.",
"link_confirm_connect_title": "Відкрити сторінку входу {host}?",
"link_confirm_pair": "Це посилання виконує вхід в обліковий запис на {host}. Продовжуйте, лише якщо ви щойно показали код входу на своєму комп'ютері.",
"link_confirm_pair_add": "Це посилання додає обліковий запис з {host} і перемикає на нього застосунок. Продовжуйте, лише якщо ви щойно показали код входу на своєму комп'ютері.",
"link_confirm_title": "Увійти за посиланням?",
"looking_up": "Шукаємо ваш сервер…",
"manual": "Ввести дані сервера вручну",
"notice_bad_qr": "Це не код входу Bulwark",
@@ -505,6 +543,12 @@
"pairing_detail": "Прив'язка пристрою: {host}…",
"password_subtitle": "Пароль надсилається лише на цей сервер і зберігається в захищеному сховищі пристрою.",
"password_title": "Вхід на {host}",
"paste_button": "Вставити",
"paste_clipboard_empty": "Нічого вставляти. Спочатку скопіюйте посилання у веб-пошті.",
"paste_hint": "У веб-пошті відкрийте Налаштування → Безпека → Прив'язати мобільний застосунок, скопіюйте посилання для входу та вставте його сюди.",
"paste_invalid": "Це не посилання для входу Bulwark",
"paste_label": "Посилання для входу",
"paste_title": "Вставити посилання для входу",
"provider_detail": "Ви введете його на їхній сторінці. Bulwark зберігає лише токен входу, який можна будь-коли відкликати.",
"provider_title": "Ваш пароль залишається у провайдера",
"qr_hint": "У розділі Налаштування → Безпека → Прив'язати мобільний застосунок з'явиться код. Наведіть на нього камеру.",
@@ -515,6 +559,7 @@
"server_hint": "Та сама адреса, яку ви вводите в браузері. Ми самі додамо https://.",
"server_label": "Адреса сервера",
"server_not_found": "Не вдалося знайти сервер для {domain}. Якщо у вас власний сервер, вкажіть адресу, за якою ви відкриваєте веб-пошту.",
"server_paste_hint": "Маєте посилання для входу? Вставте його сюди.",
"server_scan_hint": "Якщо не впевнені, відскануйте код входу — він містить адресу сервера.",
"server_subtitle": "Введіть адресу, за якою ви відкриваєте веб-пошту.",
"server_title": "Яка адреса вашого сервера?",
@@ -598,11 +643,110 @@
"book_count": "{count, plural, one {# контакт} few {# контакти} many {# контактів} other {# контакту}}",
"default_book": "Адресна книга за замовчуванням",
"description_mobile": "Параметри відображення та інструменти адресних книг.",
"device_sync_desc": "Ваші адресні книги відображатимуться в застосунку «Контакти» та інших застосунках на цьому пристрої. Зміни синхронізуються в обидва боки.",
"device_sync_title": "Синхронізація з цим пристроєм",
"export_description_count": "{count, plural, one {Експортувати # контакт в один файл vCard.} few {Експортувати # контакти в один файл vCard.} many {Експортувати # контактів в один файл vCard.} other {Експортувати # контакту в один файл vCard.}}",
"export_empty": "Немає контактів для експорту",
"import_description_mobile": "Імпорт контактів із файлу vCard (.vcf) з виявленням дублікатів.",
"manage_description_mobile": "Створюйте, перейменовуйте та видаляйте адресні книги, у яких зберігаються ваші контакти."
},
"device_sync": {
"also_synced_by": "Також синхронізується для {accounts}, тому відображається на цьому пристрої двічі.",
"android_settings": "Налаштування облікового запису Android",
"blocked_calendar": "Android більше не запитує доступ до календарів. Дозвольте його в налаштуваннях застосунку, а потім знову ввімкніть синхронізацію.",
"blocked_contacts": "Android більше не запитує доступ до контактів. Дозвольте його в налаштуваннях застосунку, а потім знову ввімкніть синхронізацію.",
"blocked_title": "Доступ вимкнено",
"books_default": "Ваші власні адресні книги синхронізуються, а спільні — лише якщо ви їх виберете.",
"books_hint": "Ваші власні адресні книги синхронізуються, якщо ви їх не вимкнете, а спільні — лише якщо ви їх увімкнете.",
"books_label": "Адресні книги",
"calendars_default": "Ваші власні календарі синхронізуються, а спільні — лише якщо ви їх виберете.",
"calendars_hint": "Ваші власні календарі синхронізуються, якщо ви їх не вимкнете, а спільні — лише якщо ви їх увімкнете. Списки завдань залишаються в Bulwark.",
"calendars_label": "Календарі",
"choose": "Вибрати",
"choose_books_title": "Адресні книги для синхронізації",
"choose_calendars_title": "Календарі для синхронізації",
"collections_count": "Синхронізується: {selected} з {total}",
"continue": "Продовжити",
"deletions_delete": "Видалити на сервері",
"deletions_message": "На цьому пристрої одночасно видалено багато елементів, тому на сервері їх не видалено. Видаліть їх і там або поверніть їх на цей пристрій.",
"deletions_restore": "Повернути",
"deletions_title": "Видалити їх і на сервері?",
"denied_calendar": "Без доступу до календарів Bulwark не зможе перенести ваші календарі на цей пристрій.",
"denied_contacts": "Без доступу до контактів Bulwark не зможе перенести ваші адресні книги на цей пристрій.",
"denied_title": "Синхронізація залишається вимкненою",
"failed_title": "Не вдалося ввімкнути синхронізацію",
"grant_access": "Надати доступ",
"interval_15m": "Кожні 15 хвилин",
"interval_1h": "Щогодини",
"interval_30m": "Кожні 30 хвилин",
"interval_6h": "Кожні 6 годин",
"interval_desc": "Як часто Android синхронізує дані самостійно. Зміни в Bulwark і зміни, про які повідомляє push, синхронізуються швидше.",
"interval_label": "Інтервал синхронізації",
"interval_manual": "Без регулярної синхронізації",
"keep_syncing": "Продовжити синхронізацію",
"list_error_auth": "Сервер не прийняв вхід.",
"list_error_network": "Не вдалося зв'язатися із сервером.",
"list_error_server": "Сервер не зміг повернути список.",
"list_error_signed_out": "На цьому пристрої не виконано вхід у цей обліковий запис.",
"master_off": "Автосинхронізацію на цьому пристрої вимкнено, тому синхронізація виконується лише після натискання «Синхронізувати».",
"new_contacts_default": "Адресна книга за замовчуванням",
"new_contacts_desc": "Адресна книга для контактів, створених в інших застосунках на цьому пристрої.",
"new_contacts_label": "Зберігати нові контакти в",
"no_books": "У цьому обліковому записі немає адресних книг.",
"no_calendars": "У цьому обліковому записі немає календарів для синхронізації.",
"ok": "OK",
"open_app_settings": "Відкрити налаштування",
"own_collections": "Ваші",
"rationale_calendar": "Щоб показувати ваші календарі в застосунку «Календар», Bulwark потрібен доступ до календарів на цьому пристрої. Він змінює лише календарі свого облікового запису.",
"rationale_contacts": "Щоб показувати ваші адресні книги в застосунку «Контакти», Bulwark потрібен доступ до контактів на цьому пристрої. Він змінює лише контакти свого облікового запису.",
"rationale_title_calendar": "Дозволити доступ до календарів",
"rationale_title_contacts": "Дозволити доступ до контактів",
"read_only": "Лише для читання",
"reminder_owner_bulwark": "Bulwark",
"reminder_owner_device": "Застосунок «Календар»",
"reminder_question_message": "Нагадування про синхронізовані події може показувати застосунок календаря на цьому пристрої або Bulwark. Виберіть щось одне, щоб не отримувати нагадування двічі. Це можна змінити пізніше.",
"reminder_question_title": "Хто нагадуватиме про події?",
"reminders_desc": "Хто нагадує про синхронізовані події. Інший застосунок мовчить, щоб нагадування не надходили двічі.",
"reminders_label": "Нагадування",
"reminders_nobody": "Сповіщення про події в Bulwark вимкнено, тому про синхронізовані події ніщо не нагадає.",
"remove": "Видалити",
"remove_from_device": "Видалити з цього пристрою",
"remove_message": "Контакти й календарі облікового запису буде видалено з цього пристрою. Внесені тут зміни, які не дійшли до сервера, буде втрачено.",
"remove_title": "Видалити з цього пристрою?",
"review_deletions": "Переглянути видалення",
"shared_by": "Власник: {name}",
"sign_in_again": "Увійти знову",
"status_auth": "Сервер більше не приймає вхід. Увійдіть знову, щоб продовжити синхронізацію.",
"status_cancelled": "Остання синхронізація перервалася. Вона продовжиться наступного разу.",
"status_failed": "Помилка останньої синхронізації: {message}",
"status_failed_plain": "Остання синхронізація не вдалася.",
"status_io": "Не вдалося зв'язатися із сервером {when}. Android повторить спробу.",
"status_item_errors": "{count, plural, one {Не вдалося синхронізувати # елемент.} few {Не вдалося синхронізувати # елементи.} many {Не вдалося синхронізувати # елементів.} other {Не вдалося синхронізувати # елемента.}}",
"status_off": "Вимкнено",
"status_paused": "Призупинено в налаштуваннях Android",
"status_permission_calendar": "Доступ до календарів вимкнено, тому нічого не синхронізується.",
"status_permission_contacts": "Доступ до контактів вимкнено, тому нічого не синхронізується.",
"status_removed": "Видалено в налаштуваннях Android. Увімкніть синхронізацію, щоб знову додати обліковий запис.",
"status_safety_abort": "Зупинено: сервер нічого не повернув, хоча на цьому пристрої ще є елементи. Перевірте сервер і повторіть синхронізацію.",
"status_synced": "Синхронізовано {when}",
"status_syncing": "Синхронізація…",
"status_too_many_deletions": "На цьому пристрої видалено багато елементів. На сервері їх буде видалено лише після вашого підтвердження.",
"status_unsupported_calendar": "Сервер не надає календарів для цього облікового запису.",
"status_unsupported_contacts": "Сервер не надає адресних книг для цього облікового запису.",
"status_waiting": "Очікування першої синхронізації",
"status_waiting_next": "Очікування наступної синхронізації",
"suspended_desc": "Виконано вихід. Контакти й календарі облікового запису залишаються на цьому пристрої разом із внесеними тут змінами й знову синхронізуються після входу.",
"switch_label": "Синхронізувати {account} з цим пристроєм",
"sync_now": "Синхронізувати",
"turn_off_anyway": "Вимкнути",
"turn_off_failed": "Не вдалося видалити синхронізовані дані з цього пристрою. Синхронізацію призупинено; спробуйте пізніше.",
"turn_off_failed_title": "Не вдалося вимкнути синхронізацію",
"turn_off_pending": "{count, plural, one {# зміна, внесена на цьому пристрої, ще не дійшла до сервера. Її буде втрачено, якщо зараз вимкнути синхронізацію.} few {# зміни, внесені на цьому пристрої, ще не дійшли до сервера. Їх буде втрачено, якщо зараз вимкнути синхронізацію.} many {# змін, внесених на цьому пристрої, ще не дійшли до сервера. Їх буде втрачено, якщо зараз вимкнути синхронізацію.} other {# зміни, внесеної на цьому пристрої, ще не дійшли до сервера. Їх буде втрачено, якщо зараз вимкнути синхронізацію.}}",
"turn_off_title": "Усе одно вимкнути?",
"turn_off_unknown": "Bulwark не вдалося перевірити, чи дійшли зміни, внесені на цьому пристрої, до сервера. Їх буде втрачено, якщо зараз вимкнути синхронізацію.",
"turning_off": "Надсилання змін, потім видалення даних із цього пристрою…",
"turning_on": "Налаштовування…"
},
"downloads": {
"attachment_template": {
"description_mobile": "Шаблон назви під час збереження вкладення або передавання його в інший застосунок."
+145 -1
View File
@@ -93,6 +93,8 @@
"until_date": "直到 {date}"
},
"settings": {
"device_sync_desc": "在此裝置上的日曆應用程式和其他應用程式中顯示您的行事曆。變更會雙向同步。",
"device_sync_title": "同步到此裝置",
"show_week_numbers_mobile_desc": "在月檢視中顯示週數",
"time_zone": "時區",
"time_zone_auto": "裝置時區",
@@ -249,6 +251,18 @@
"color_tag": "標籤",
"remove_color": "移除標籤"
},
"device_sync": {
"auth_problem_text": "伺服器不再接受 {account} 的登入,因此此帳號在這部裝置上的聯絡人和行事曆已停止同步。請重新登入以繼續同步。在此裝置上所做的變更會保留。",
"auth_problem_title": "請重新登入以繼續同步",
"problem_channel": "同步問題",
"sign_out_anyway": "登出",
"sign_out_pending_message": "{count, plural, other {在此裝置上所做的 # 項變更尚未傳送到伺服器。如果現在登出,這些變更將會遺失。}}",
"sign_out_pending_title": "仍要登出嗎?",
"sign_out_unknown_message": "在此裝置上所做的變更可能尚未傳送到伺服器。如果現在登出,這些變更將會遺失。",
"signed_out_text": "{account} 已登出,因此此帳號在這部裝置上的聯絡人和行事曆不再同步。請重新登入以繼續同步。在此裝置上所做的變更會保留。",
"signed_out_title": "請登入以繼續同步",
"signing_out": "正在從此裝置移除已同步的聯絡人和行事曆…"
},
"email_composer": {
"attach_camera": "相機",
"attachment_reminder_body": "您的郵件提到「{keyword}」,但沒有附加檔案。仍要傳送嗎?",
@@ -460,12 +474,19 @@
"email_step_title": "您的電子郵件地址是什麼?",
"email_step_title_add": "另一個電子郵件地址是什麼?",
"email_title": "使用我的電子郵件地址",
"err_account_limit_detail": "請先在設定中移除一個帳號,再新增其他帳號。",
"err_bad_detail": "請檢查您的電子郵件地址與密碼。如果您的帳號使用雙因素驗證登入,請在網頁郵件中建立應用程式密碼,並在此使用。",
"err_bad_title": "無法登入",
"err_cert_detail": "伺服器的安全性憑證遭到拒絕。如果這是您自己的伺服器,請確認憑證有效且未過期。",
"err_cert_title": "無法驗證 {host}",
"err_code_expired_detail": "登入碼只在幾分鐘內有效。請在網頁郵件中產生新的登入碼,再重新掃描。",
"err_code_expired_detail": "登入碼的有效期限為兩分鐘。請在網頁郵件中顯示新的登入碼,再重新掃描。",
"err_code_expired_or_used_detail": "請在網頁郵件中顯示新的登入碼,再重新掃描。",
"err_code_expired_or_used_title": "此登入碼已過期或已被使用",
"err_code_expired_title": "此登入碼已過期",
"err_code_invalid_detail": "請在網頁郵件中顯示新的登入碼(「設定 → 安全 → 連結行動應用程式」),再進行掃描。",
"err_code_invalid_title": "此登入碼無效",
"err_code_used_detail": "每個登入碼只能使用一次。請在網頁郵件中顯示新的登入碼,再重新掃描。",
"err_code_used_title": "此登入碼已被使用",
"err_generic_detail": "發生錯誤。請再試一次。",
"err_generic_title": "登入失敗",
"err_interrupted_detail": "回應與我們發出的請求不符。請重新登入。",
@@ -474,6 +495,17 @@
"err_no_server_title": "{host} 上沒有郵件伺服器",
"err_no_webmail_detail": "此伺服器沒有 Bulwark 網頁郵件,也不支援 OAuth 登入。請改用密碼(或應用程式密碼)。",
"err_no_webmail_title": "{host} 上沒有登入頁面",
"err_pair_connect_detail": "請在電腦上顯示新的登入碼,再重新掃描。",
"err_pair_connect_title": "已登入,但無法連線至 {host}",
"err_pair_insecure_detail": "{host} 想要使用未加密的連線。",
"err_pair_network_detail": "請檢查網路連線,並確認手機可以連上網頁郵件,然後再試一次。",
"err_pair_rate_detail": "請等候一分鐘後再試一次。",
"err_pair_server_detail": "請使用新的登入碼再試一次。如果仍然失敗,請洽詢管理員。",
"err_pair_server_title": "網頁郵件無法完成登入",
"err_pair_unsupported_detail": "{host} 不支援登入碼。可能需要更新,或連結指向了錯誤的地址。",
"err_pair_unsupported_title": "此網頁郵件無法連結裝置",
"err_pair_untrusted_detail": "{host} 傳送了應用程式無法驗證的伺服器登入資訊。",
"err_pair_untrusted_title": "無法信任此次登入",
"err_rate_detail": "伺服器要求我們稍候。請稍後再試。",
"err_rate_detail_seconds": "伺服器要求我們等待。請在約 {seconds} 秒後再試。",
"err_rate_title": "嘗試次數過多",
@@ -487,6 +519,12 @@
"know_server": "我知道伺服器地址",
"known_server_desc": "我們已知道此伺服器,不需要設定",
"known_server_title": "{host} 上的其他帳號",
"link_confirm_connect": "有連結要求在此頁面登入。只有在您的郵件使用 {host} 時才繼續。",
"link_confirm_connect_add": "有連結要求透過在此頁面登入來新增帳號。只有在您的郵件使用 {host} 時才繼續。",
"link_confirm_connect_title": "要開啟 {host} 的登入頁面嗎?",
"link_confirm_pair": "此連結會登入 {host} 上的帳號。只有在您剛在電腦上顯示登入碼時才繼續。",
"link_confirm_pair_add": "此連結會新增 {host} 上的帳號,並將應用程式切換到該帳號。只有在您剛在電腦上顯示登入碼時才繼續。",
"link_confirm_title": "要使用連結登入嗎?",
"looking_up": "正在尋找您的伺服器…",
"manual": "手動輸入伺服器資訊",
"notice_bad_qr": "此代碼不是 Bulwark 登入碼",
@@ -505,6 +543,12 @@
"pairing_detail": "正在將此裝置與 {host} 配對…",
"password_subtitle": "您的密碼只會傳送到此伺服器,並儲存在裝置的鑰匙圈中。",
"password_title": "登入 {host}",
"paste_button": "貼上",
"paste_clipboard_empty": "沒有可貼上的內容。請先在網頁郵件中複製連結。",
"paste_hint": "在網頁郵件中開啟「設定 → 安全 → 連結行動應用程式」,複製登入連結並貼到這裡。",
"paste_invalid": "這不是 Bulwark 登入連結",
"paste_label": "登入連結",
"paste_title": "貼上登入連結",
"provider_detail": "您會在服務供應商的頁面上輸入密碼。Bulwark 只會儲存登入權杖,您可以隨時撤銷。",
"provider_title": "您的密碼只會留在服務供應商端",
"qr_hint": "「設定 → 安全 → 連結行動應用程式」會顯示代碼。請將相機對準代碼。",
@@ -515,6 +559,7 @@
"server_hint": "與您在瀏覽器中輸入的地址相同。我們會自動加上 https://。",
"server_label": "伺服器地址",
"server_not_found": "找不到 {domain} 的伺服器。如果您自行架設,請使用開啟網頁郵件時的地址。",
"server_paste_hint": "有登入連結嗎?請貼到這裡。",
"server_scan_hint": "如果不確定,請改為掃描登入碼。登入碼中包含伺服器地址。",
"server_subtitle": "請輸入您開啟網頁郵件時使用的地址。",
"server_title": "您的伺服器地址是什麼?",
@@ -598,11 +643,110 @@
"book_count": "{count, plural, other {# 位聯絡人}}",
"default_book": "預設通訊錄",
"description_mobile": "顯示偏好設定與通訊錄工具。",
"device_sync_desc": "在此裝置上的聯絡人應用程式和其他應用程式中顯示您的通訊錄。變更會雙向同步。",
"device_sync_title": "同步到此裝置",
"export_description_count": "{count, plural, other {將 # 位聯絡人匯出為單一 vCard 檔案。}}",
"export_empty": "沒有可匯出的聯絡人",
"import_description_mobile": "從 vCard(.vcf)檔案匯入聯絡人,並偵測重複項目。",
"manage_description_mobile": "建立、重新命名及移除用來整理聯絡人的通訊錄。"
},
"device_sync": {
"also_synced_by": "也為 {accounts} 同步,因此會在此裝置上顯示兩次。",
"android_settings": "Android 帳號設定",
"blocked_calendar": "Android 不會再要求行事曆存取權。請在應用程式設定中允許,然後重新開啟同步。",
"blocked_contacts": "Android 不會再要求聯絡人存取權。請在應用程式設定中允許,然後重新開啟同步。",
"blocked_title": "存取權已關閉",
"books_default": "您自己的通訊錄會同步;共用的通訊錄只有在您選擇後才會同步。",
"books_hint": "您自己的通訊錄會同步,除非您將其關閉;共用的通訊錄只有在您開啟後才會同步。",
"books_label": "通訊錄",
"calendars_default": "您自己的行事曆會同步;共用的行事曆只有在您選擇後才會同步。",
"calendars_hint": "您自己的行事曆會同步,除非您將其關閉;共用的行事曆只有在您開啟後才會同步。任務清單會保留在 Bulwark 中。",
"calendars_label": "行事曆",
"choose": "選擇",
"choose_books_title": "要同步的通訊錄",
"choose_calendars_title": "要同步的行事曆",
"collections_count": "同步 {selected} 個,共 {total} 個",
"continue": "繼續",
"deletions_delete": "在伺服器上刪除",
"deletions_message": "此裝置上一次刪除了許多項目,因此未在伺服器上刪除。請同時在伺服器上刪除,或在此裝置上還原這些項目。",
"deletions_restore": "還原",
"deletions_title": "也要在伺服器上刪除嗎?",
"denied_calendar": "沒有行事曆存取權,Bulwark 就無法將您的行事曆放到此裝置上。",
"denied_contacts": "沒有聯絡人存取權,Bulwark 就無法將您的通訊錄放到此裝置上。",
"denied_title": "同步維持關閉",
"failed_title": "無法開啟同步",
"grant_access": "授予存取權",
"interval_15m": "每 15 分鐘",
"interval_1h": "每小時",
"interval_30m": "每 30 分鐘",
"interval_6h": "每 6 小時",
"interval_desc": "Android 自動同步的頻率。在 Bulwark 中的編輯和透過推送通知的變更會更快同步。",
"interval_label": "同步間隔",
"interval_manual": "不進行定期同步",
"keep_syncing": "繼續同步",
"list_error_auth": "伺服器未接受登入。",
"list_error_network": "無法連線到伺服器。",
"list_error_server": "伺服器無法提供清單。",
"list_error_signed_out": "此帳號未在此裝置上登入。",
"master_off": "此裝置的自動同步已關閉,因此只有在您輕觸「立即同步」時才會同步。",
"new_contacts_default": "預設通訊錄",
"new_contacts_desc": "用來儲存在此裝置上其他應用程式中建立的聯絡人的通訊錄。",
"new_contacts_label": "新聯絡人儲存位置",
"no_books": "此帳號沒有通訊錄。",
"no_calendars": "此帳號沒有可同步的行事曆。",
"ok": "確定",
"open_app_settings": "開啟應用程式設定",
"own_collections": "您自己的",
"rationale_calendar": "如要在日曆應用程式中顯示您的行事曆,Bulwark 需要存取此裝置上的行事曆。它只會變更自己帳號的行事曆。",
"rationale_contacts": "如要在聯絡人應用程式中顯示您的通訊錄,Bulwark 需要存取此裝置上的聯絡人。它只會變更自己帳號的聯絡人。",
"rationale_title_calendar": "允許存取行事曆",
"rationale_title_contacts": "允許存取聯絡人",
"read_only": "唯讀",
"reminder_owner_bulwark": "Bulwark",
"reminder_owner_device": "日曆應用程式",
"reminder_question_message": "已同步活動的提醒可以來自此裝置上的日曆應用程式或 Bulwark。請擇一使用,以免收到兩次提醒。您之後可以變更。",
"reminder_question_title": "要由誰提醒您?",
"reminders_desc": "由誰提醒您已同步的活動。另一方會保持靜音,您就不會收到兩次提醒。",
"reminders_label": "提醒",
"reminders_nobody": "Bulwark 的活動通知已關閉,因此已同步的活動不會有任何提醒。",
"remove": "移除",
"remove_from_device": "從此裝置移除",
"remove_message": "此帳號的聯絡人和行事曆將從此裝置移除。在此處所做但尚未傳送到伺服器的變更將會遺失。",
"remove_title": "要從此裝置移除嗎?",
"review_deletions": "檢查刪除項目",
"shared_by": "由 {name} 分享",
"sign_in_again": "重新登入",
"status_auth": "伺服器不再接受登入。請重新登入以繼續同步。",
"status_cancelled": "上次同步提前停止。下次會繼續。",
"status_failed": "上次同步失敗:{message}",
"status_failed_plain": "上次同步失敗。",
"status_io": "無法連線到伺服器({when})。Android 會重試。",
"status_item_errors": "{count, plural, other {有 # 個項目無法同步。}}",
"status_off": "關閉",
"status_paused": "已在 Android 設定中暫停",
"status_permission_calendar": "行事曆存取權已關閉,因此不會同步任何內容。",
"status_permission_contacts": "聯絡人存取權已關閉,因此不會同步任何內容。",
"status_removed": "已在 Android 設定中移除。開啟同步即可重新新增此帳號。",
"status_safety_abort": "已停止:此裝置上仍有項目,但伺服器未傳回任何內容。請檢查伺服器,然後重新同步。",
"status_synced": "上次同步:{when}",
"status_syncing": "正在同步…",
"status_too_many_deletions": "此裝置上刪除了許多項目。在您確認之前,這些項目不會在伺服器上刪除。",
"status_unsupported_calendar": "伺服器未為此帳號提供行事曆。",
"status_unsupported_contacts": "伺服器未為此帳號提供通訊錄。",
"status_waiting": "正在等待首次同步",
"status_waiting_next": "正在等待下次同步",
"suspended_desc": "已登出。此帳號的聯絡人和行事曆會連同在此處所做的變更一起保留在此裝置上,並在您登入後重新同步。",
"switch_label": "將 {account} 同步到此裝置",
"sync_now": "立即同步",
"turn_off_anyway": "關閉",
"turn_off_failed": "無法從此裝置移除已同步的資料。同步已暫停;請稍後再試。",
"turn_off_failed_title": "無法關閉同步",
"turn_off_pending": "{count, plural, other {在此裝置上所做的 # 項變更尚未傳送到伺服器。如果現在關閉同步,這些變更將會遺失。}}",
"turn_off_title": "仍要關閉嗎?",
"turn_off_unknown": "Bulwark 無法確認在此裝置上所做的變更是否已傳送到伺服器。如果現在關閉同步,這些變更將會遺失。",
"turning_off": "正在上傳變更,然後從此裝置移除資料…",
"turning_on": "正在設定…"
},
"downloads": {
"attachment_template": {
"description_mobile": "儲存或分享附件時使用的範本。"
+145 -1
View File
@@ -93,6 +93,8 @@
"until_date": "直到 {date}"
},
"settings": {
"device_sync_desc": "在此设备上的日历应用和其他应用中显示您的日历。更改会双向同步。",
"device_sync_title": "同步到此设备",
"show_week_numbers_mobile_desc": "在月视图中显示周数",
"time_zone": "时区",
"time_zone_auto": "设备时区",
@@ -249,6 +251,18 @@
"color_tag": "标签",
"remove_color": "删除标签"
},
"device_sync": {
"auth_problem_text": "服务器不再接受 {account} 的登录,因此该账户在此设备上的联系人和日历已停止同步。请重新登录以恢复同步。在此设备上所做的更改会保留。",
"auth_problem_title": "请重新登录以继续同步",
"problem_channel": "同步问题",
"sign_out_anyway": "退出登录",
"sign_out_pending_message": "{count, plural, other {在此设备上所做的 # 项更改尚未到达服务器。如果现在退出登录,这些更改将丢失。}}",
"sign_out_pending_title": "仍要退出登录?",
"sign_out_unknown_message": "在此设备上所做的更改可能尚未到达服务器。如果现在退出登录,这些更改将丢失。",
"signed_out_text": "{account} 已退出登录,因此该账户在此设备上的联系人和日历不再同步。请重新登录以恢复同步。在此设备上所做的更改会保留。",
"signed_out_title": "请登录以继续同步",
"signing_out": "正在从此设备移除已同步的联系人和日历…"
},
"email_composer": {
"attach_camera": "相机",
"attachment_reminder_body": "您的邮件中提到了“{keyword}”,但未附加任何文件。仍然发送吗?",
@@ -460,12 +474,19 @@
"email_step_title": "您的邮箱地址是什么?",
"email_step_title_add": "另一个邮箱地址是什么?",
"email_title": "使用我的邮箱地址",
"err_account_limit_detail": "请在设置中移除一个账户后再添加新账户。",
"err_bad_detail": "请检查您的邮箱地址和密码。如果您的账户使用双因素身份验证登录,请在网页邮箱中创建应用密码并在此使用。",
"err_bad_title": "无法登录",
"err_cert_detail": "服务器的安全证书被拒绝。如果这是您自己的服务器,请检查证书是否有效且未过期。",
"err_cert_title": "无法验证 {host}",
"err_code_expired_detail": "登录码仅在几分钟内有效。请在网页邮箱中生成新的登录码,然后重新扫描。",
"err_code_expired_detail": "登录码的有效期为两分钟。请在网页邮箱中显示新的登录码,然后重新扫描。",
"err_code_expired_or_used_detail": "请在网页邮箱中显示新的登录码,然后重新扫描。",
"err_code_expired_or_used_title": "该登录码已过期或已被使用",
"err_code_expired_title": "该登录码已过期",
"err_code_invalid_detail": "请在网页邮箱中显示新的登录码(“设置 → 安全 → 关联移动应用”),然后扫描。",
"err_code_invalid_title": "该登录码无效",
"err_code_used_detail": "每个登录码只能使用一次。请在网页邮箱中显示新的登录码,然后重新扫描。",
"err_code_used_title": "该登录码已被使用",
"err_generic_detail": "出现问题。请重试。",
"err_generic_title": "登录失败",
"err_interrupted_detail": "响应与我们发起的请求不匹配。请重新登录。",
@@ -474,6 +495,17 @@
"err_no_server_title": "{host} 上没有邮件服务器",
"err_no_webmail_detail": "此服务器没有 Bulwark 网页邮箱,也不支持 OAuth 登录。请改用密码(或应用密码)。",
"err_no_webmail_title": "{host} 上没有登录页面",
"err_pair_connect_detail": "请在电脑上显示新的登录码,然后重新扫描。",
"err_pair_connect_title": "已登录,但无法连接到 {host}",
"err_pair_insecure_detail": "{host} 想要使用未加密的连接。",
"err_pair_network_detail": "请检查网络连接,并确认手机可以访问网页邮箱,然后重试。",
"err_pair_rate_detail": "请等待一分钟后重试。",
"err_pair_server_detail": "请使用新的登录码重试。如果仍然失败,请联系管理员。",
"err_pair_server_title": "网页邮箱无法完成登录",
"err_pair_unsupported_detail": "{host} 不支持登录码。它可能需要更新,或者链接指向了错误的地址。",
"err_pair_unsupported_title": "该网页邮箱无法关联设备",
"err_pair_untrusted_detail": "{host} 发送了应用无法验证的服务器的登录信息。",
"err_pair_untrusted_title": "无法信任此次登录",
"err_rate_detail": "服务器要求我们稍候。请稍后重试。",
"err_rate_detail_seconds": "服务器要求我们等待。请在约 {seconds} 秒后重试。",
"err_rate_title": "尝试次数过多",
@@ -487,6 +519,12 @@
"know_server": "我知道服务器地址",
"known_server_desc": "我们已经知道此服务器,无需设置",
"known_server_title": "{host} 上的其他账户",
"link_confirm_connect": "有链接请求在此页面登录。仅当您的邮箱使用 {host} 时才继续。",
"link_confirm_connect_add": "有链接请求通过在此页面登录来添加账户。仅当您的邮箱使用 {host} 时才继续。",
"link_confirm_connect_title": "打开 {host} 的登录页面?",
"link_confirm_pair": "此链接将登录 {host} 上的账户。仅当您刚刚在电脑上显示了登录码时才继续。",
"link_confirm_pair_add": "此链接将添加 {host} 上的账户,并将应用切换到该账户。仅当您刚刚在电脑上显示了登录码时才继续。",
"link_confirm_title": "使用链接登录?",
"looking_up": "正在查找您的服务器…",
"manual": "手动输入服务器信息",
"notice_bad_qr": "该代码不是 Bulwark 登录码",
@@ -505,6 +543,12 @@
"pairing_detail": "正在将此设备与 {host} 配对…",
"password_subtitle": "您的密码只会发送到此服务器,并存储在设备的钥匙串中。",
"password_title": "登录 {host}",
"paste_button": "粘贴",
"paste_clipboard_empty": "没有可粘贴的内容。请先在网页邮箱中复制链接。",
"paste_hint": "在网页邮箱中打开“设置 → 安全 → 关联移动应用”,复制登录链接并粘贴到这里。",
"paste_invalid": "这不是 Bulwark 登录链接",
"paste_label": "登录链接",
"paste_title": "粘贴登录链接",
"provider_detail": "您将在服务提供商的页面上输入密码。Bulwark 只存储登录令牌,您可以随时撤销。",
"provider_title": "您的密码只保留在服务提供商处",
"qr_hint": "“设置 → 安全 → 关联移动应用”中会显示一个二维码。请将相机对准它。",
@@ -515,6 +559,7 @@
"server_hint": "即您在浏览器中输入的地址。我们会自动为您添加 https://。",
"server_label": "服务器地址",
"server_not_found": "找不到 {domain} 的服务器。如果您自行托管,请使用访问网页邮箱时的地址。",
"server_paste_hint": "有登录链接?请粘贴到这里。",
"server_scan_hint": "如果不确定,请改为扫描登录码。登录码中包含服务器地址。",
"server_subtitle": "请输入您访问网页邮箱时使用的地址。",
"server_title": "您的服务器地址是什么?",
@@ -598,11 +643,110 @@
"book_count": "{count, plural, other {# 位联系人}}",
"default_book": "默认通讯录",
"description_mobile": "显示偏好设置和通讯录工具。",
"device_sync_desc": "在此设备上的联系人应用和其他应用中显示您的通讯录。更改会双向同步。",
"device_sync_title": "同步到此设备",
"export_description_count": "{count, plural, other {将 # 位联系人导出为单个 vCard 文件。}}",
"export_empty": "没有可导出的联系人",
"import_description_mobile": "从 vCard (.vcf) 文件导入联系人,并检测重复项。",
"manage_description_mobile": "创建、重命名和删除用于整理联系人的通讯录。"
},
"device_sync": {
"also_synced_by": "也为 {accounts} 同步,因此会在此设备上显示两次。",
"android_settings": "Android 账户设置",
"blocked_calendar": "Android 不再请求日历访问权限。请在应用设置中允许,然后重新开启同步。",
"blocked_contacts": "Android 不再请求联系人访问权限。请在应用设置中允许,然后重新开启同步。",
"blocked_title": "访问权限已关闭",
"books_default": "您自己的通讯录会同步;共享的通讯录仅在您选择后同步。",
"books_hint": "您自己的通讯录会同步,除非您将其关闭;共享的通讯录仅在您开启后同步。",
"books_label": "通讯录",
"calendars_default": "您自己的日历会同步;共享的日历仅在您选择后同步。",
"calendars_hint": "您自己的日历会同步,除非您将其关闭;共享的日历仅在您开启后同步。任务列表保留在 Bulwark 中。",
"calendars_label": "日历",
"choose": "选择",
"choose_books_title": "要同步的通讯录",
"choose_calendars_title": "要同步的日历",
"collections_count": "同步 {selected} 个,共 {total} 个",
"continue": "继续",
"deletions_delete": "在服务器上删除",
"deletions_message": "此设备上一次删除了许多项目,因此未在服务器上删除。请同时在服务器上删除它们,或在此设备上恢复它们。",
"deletions_restore": "恢复",
"deletions_title": "也在服务器上删除?",
"denied_calendar": "没有日历访问权限,Bulwark 无法将您的日历放到此设备上。",
"denied_contacts": "没有联系人访问权限,Bulwark 无法将您的通讯录放到此设备上。",
"denied_title": "同步保持关闭",
"failed_title": "无法开启同步",
"grant_access": "授予访问权限",
"interval_15m": "每 15 分钟",
"interval_1h": "每小时",
"interval_30m": "每 30 分钟",
"interval_6h": "每 6 小时",
"interval_desc": "Android 自动同步的频率。在 Bulwark 中的编辑和通过推送通知的更改会更快同步。",
"interval_label": "同步间隔",
"interval_manual": "不进行定期同步",
"keep_syncing": "继续同步",
"list_error_auth": "服务器未接受登录。",
"list_error_network": "无法连接到服务器。",
"list_error_server": "服务器无法提供列表。",
"list_error_signed_out": "此账户未在此设备上登录。",
"master_off": "此设备的自动同步已关闭,因此只有在您点按“立即同步”时才会同步。",
"new_contacts_default": "默认通讯录",
"new_contacts_desc": "用于保存在此设备上其他应用中创建的联系人的通讯录。",
"new_contacts_label": "新联系人保存到",
"no_books": "此账户没有通讯录。",
"no_calendars": "此账户没有可同步的日历。",
"ok": "确定",
"open_app_settings": "打开应用设置",
"own_collections": "您自己的",
"rationale_calendar": "要在日历应用中显示您的日历,Bulwark 需要访问此设备上的日历。它只会更改自己账户的日历。",
"rationale_contacts": "要在联系人应用中显示您的通讯录,Bulwark 需要访问此设备上的联系人。它只会更改自己账户的联系人。",
"rationale_title_calendar": "允许访问日历",
"rationale_title_contacts": "允许访问联系人",
"read_only": "只读",
"reminder_owner_bulwark": "Bulwark",
"reminder_owner_device": "日历应用",
"reminder_question_message": "已同步活动的提醒可以来自此设备上的日历应用或 Bulwark。请选择其一,以免收到两次提醒。您之后可以更改。",
"reminder_question_title": "由谁来提醒您?",
"reminders_desc": "由谁提醒您已同步的活动。另一方保持静默,这样您就不会收到两次提醒。",
"reminders_label": "提醒",
"reminders_nobody": "Bulwark 的活动通知已关闭,因此已同步的活动不会有任何提醒。",
"remove": "移除",
"remove_from_device": "从此设备移除",
"remove_message": "该账户的联系人和日历将从此设备移除。在此处所做但尚未到达服务器的更改将丢失。",
"remove_title": "从此设备移除?",
"review_deletions": "查看删除项",
"shared_by": "由 {name} 共享",
"sign_in_again": "重新登录",
"status_auth": "服务器不再接受登录。请重新登录以继续同步。",
"status_cancelled": "上次同步提前停止。下次会继续。",
"status_failed": "上次同步失败:{message}",
"status_failed_plain": "上次同步失败。",
"status_io": "无法连接到服务器({when})。Android 会重试。",
"status_item_errors": "{count, plural, other {有 # 个项目无法同步。}}",
"status_off": "关闭",
"status_paused": "已在 Android 设置中暂停",
"status_permission_calendar": "日历访问权限已关闭,因此不会同步任何内容。",
"status_permission_contacts": "联系人访问权限已关闭,因此不会同步任何内容。",
"status_removed": "已在 Android 设置中移除。开启同步即可重新添加该账户。",
"status_safety_abort": "已停止:此设备上仍有项目,但服务器未返回任何内容。请检查服务器,然后重新同步。",
"status_synced": "上次同步:{when}",
"status_syncing": "正在同步…",
"status_too_many_deletions": "此设备上删除了许多项目。在您确认之前,它们不会在服务器上被删除。",
"status_unsupported_calendar": "服务器没有为此账户提供日历。",
"status_unsupported_contacts": "服务器没有为此账户提供通讯录。",
"status_waiting": "正在等待首次同步",
"status_waiting_next": "正在等待下次同步",
"suspended_desc": "已退出登录。该账户的联系人和日历会连同在此处所做的更改一起保留在此设备上,并在您登录后重新同步。",
"switch_label": "将 {account} 同步到此设备",
"sync_now": "立即同步",
"turn_off_anyway": "关闭",
"turn_off_failed": "无法从此设备移除已同步的数据。同步已暂停;请稍后重试。",
"turn_off_failed_title": "无法关闭同步",
"turn_off_pending": "{count, plural, other {在此设备上所做的 # 项更改尚未到达服务器。如果现在关闭同步,这些更改将丢失。}}",
"turn_off_title": "仍要关闭?",
"turn_off_unknown": "Bulwark 无法确认在此设备上所做的更改是否已到达服务器。如果现在关闭同步,这些更改将丢失。",
"turning_off": "正在上传更改,然后从此设备移除数据…",
"turning_on": "正在设置…"
},
"downloads": {
"attachment_template": {
"description_mobile": "保存或分享附件时使用的模板。"
+2 -2
View File
@@ -1,12 +1,12 @@
{
"name": "bulwark-mobile",
"version": "0.1.65",
"version": "0.1.68",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "bulwark-mobile",
"version": "0.1.65",
"version": "0.1.68",
"license": "AGPL-3.0-only",
"dependencies": {
"@react-native-async-storage/async-storage": "2.2.0",
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "bulwark-mobile",
"version": "0.1.65",
"version": "0.1.68",
"license": "AGPL-3.0-only",
"main": "index.ts",
"scripts": {
+183
View File
@@ -0,0 +1,183 @@
import React from 'react';
import {
View,
Text,
TextInput,
Pressable,
StyleSheet,
Modal,
Platform,
KeyboardAvoidingView,
ScrollView,
} from 'react-native';
import { SafeAreaView } from 'react-native-safe-area-context';
import * as Clipboard from 'expo-clipboard';
import { ClipboardPaste, X } from 'lucide-react-native';
import { spacing, radius, typography, type ThemePalette } from '../theme/tokens';
import { useColors } from '../theme/colors';
import Button from './Button';
import { useLocaleStore } from '../stores/locale-store';
import { insecurePairingLinkError, parsePastedSignInLink, type QrLoginPayload } from '../lib/oauth';
import { describeLoginError } from '../lib/login-errors';
interface PasteSignInLinkModalProps {
visible: boolean;
onClose: () => void;
// Fires with a link that parsed; the parent closes the modal and signs in
// with it exactly as with a scanned code.
onSubmit: (payload: QrLoginPayload) => void;
}
/**
* For when the code can't be scanned (a phone showing the webmail itself, a
* broken camera): the same `bulwarkmail://` link, pasted as text.
*/
export function PasteSignInLinkModal({ visible, onClose, onSubmit }: PasteSignInLinkModalProps) {
const c = useColors();
const styles = React.useMemo(() => makeStyles(c), [c]);
const t = useLocaleStore((st) => st.t);
const [text, setText] = React.useState('');
const [error, setError] = React.useState<string | null>(null);
const [focused, setFocused] = React.useState(false);
React.useEffect(() => {
if (!visible) return;
setText('');
setError(null);
}, [visible]);
const paste = React.useCallback(async () => {
let value = '';
try {
value = await Clipboard.getStringAsync();
} catch {
value = '';
}
if (!value.trim()) {
setError(t('login.mobile.paste_clipboard_empty', 'Nothing to paste. Copy the link in the webmail first.'));
return;
}
setText(value.trim());
setError(null);
}, [t]);
const submit = React.useCallback(() => {
const payload = parsePastedSignInLink(text);
if (!payload) {
// A pairing link for a plain-http webmail: say why it won't be used.
const insecure = insecurePairingLinkError(text);
if (insecure) {
const copy = describeLoginError(insecure, { t });
setError(copy.detail ?? copy.title);
return;
}
setError(t('login.mobile.paste_invalid', "That isn't a Bulwark sign-in link"));
return;
}
onSubmit(payload);
}, [onSubmit, t, text]);
const title = t('login.mobile.paste_title', 'Paste sign-in link');
return (
<Modal visible={visible} animationType="slide" onRequestClose={onClose} statusBarTranslucent>
<SafeAreaView style={styles.container}>
<KeyboardAvoidingView behavior={Platform.OS === 'ios' ? 'padding' : undefined} style={styles.flex}>
<View style={styles.header}>
<Pressable
onPress={onClose}
hitSlop={10}
style={styles.closeButton}
accessibilityRole="button"
accessibilityLabel={t('common.close', 'Close')}
>
<X size={24} color={c.text} />
</Pressable>
<Text style={styles.title} accessibilityRole="header">{title}</Text>
<View style={styles.closeButton} />
</View>
<ScrollView
style={styles.flex}
contentContainerStyle={styles.content}
keyboardShouldPersistTaps="handled"
>
<Text style={styles.hint}>
{t('login.mobile.paste_hint', 'In the webmail, open Settings → Security → Link Mobile App, copy the sign-in link and paste it here.')}
</Text>
<TextInput
value={text}
onChangeText={(value) => {
setText(value);
setError(null);
}}
placeholder="bulwarkmail://pair?server=…&code=…"
placeholderTextColor={c.textMuted}
accessibilityLabel={t('login.mobile.paste_label', 'Sign-in link')}
multiline
autoCapitalize="none"
autoCorrect={false}
spellCheck={false}
textAlignVertical="top"
onFocus={() => setFocused(true)}
onBlur={() => setFocused(false)}
style={[styles.input, focused && styles.inputFocused, error ? styles.inputError : null]}
/>
{error ? (
<Text style={styles.error} accessibilityLiveRegion="polite">{error}</Text>
) : null}
<Button
variant="outline"
size="md"
onPress={() => void paste()}
icon={<ClipboardPaste size={16} color={c.text} />}
>
{t('login.mobile.paste_button', 'Paste')}
</Button>
<Button variant="default" size="md" onPress={submit} disabled={!text.trim()}>
{t('login.sign_in', 'Sign in')}
</Button>
</ScrollView>
</KeyboardAvoidingView>
</SafeAreaView>
</Modal>
);
}
function makeStyles(c: ThemePalette) {
return StyleSheet.create({
container: { flex: 1, backgroundColor: c.background },
flex: { flex: 1 },
header: {
flexDirection: 'row',
alignItems: 'center',
justifyContent: 'space-between',
paddingHorizontal: spacing.lg,
paddingTop: Platform.OS === 'android' ? spacing.xl : spacing.sm,
paddingBottom: spacing.md,
},
closeButton: { width: 32, height: 32, alignItems: 'center', justifyContent: 'center' },
title: { ...typography.h3, color: c.text },
content: { paddingHorizontal: spacing.lg, paddingBottom: spacing.xxxl, gap: spacing.lg },
hint: { ...typography.body, color: c.textSecondary },
input: {
...typography.body,
color: c.text,
minHeight: 96,
borderWidth: 1,
borderColor: c.border,
borderRadius: radius.sm,
backgroundColor: c.background,
paddingHorizontal: spacing.md,
paddingTop: spacing.sm,
paddingBottom: spacing.sm,
},
inputFocused: { borderColor: c.borderFocus, borderWidth: 2 },
inputError: { borderColor: c.error },
error: { ...typography.caption, color: c.error, marginTop: -spacing.sm },
});
}
+227 -66
View File
@@ -1,12 +1,16 @@
import React from 'react';
import { View, Text, StyleSheet, Pressable, Animated, Easing } from 'react-native';
import {
View, Text, StyleSheet, Pressable, Animated, Easing, PanResponder, useWindowDimensions,
type AccessibilityActionEvent, type LayoutChangeEvent,
} from 'react-native';
import { useSafeAreaInsets } from 'react-native-safe-area-context';
import { AlertTriangle, CheckCircle2, Info, X, XCircle } from 'lucide-react-native';
import { spacing, radius, typography, type ThemePalette } from '../theme/tokens';
import { useColors } from '../theme/colors';
import { useAnimDuration } from '../theme/dynamic';
import { AlertCircle, AlertTriangle, CheckCircle2, Info } from 'lucide-react-native';
import { spacing, radius, type ThemePalette } from '../theme/tokens';
import { useColors, useResolvedTheme } from '../theme/colors';
import { useShouldAnimate } from '../theme/dynamic';
import { useToastStore, type Toast } from '../stores/toast-store';
import { useLocaleStore } from '../stores/locale-store';
import { shouldClaimToastSwipe, toastSwipeRelease } from './toast-swipe';
/**
* Renders the toast queue above the tab bar. App.tsx gives every stack screen
@@ -25,70 +29,196 @@ export function ToastHost(): React.ReactElement | null {
);
}
const ENTER_MS = 200;
const EXIT_MS = 160;
// Icons and text in a status colour (repos/branding/APP.md): the palette's
// error and warning fills are too light for an icon on a light ground.
const STATUS_ICON = {
light: { error: '#dc2626', warning: '#d97706' },
dark: { error: '#f87171', warning: '#fbbf24' },
} as const;
/**
* The toast card from repos/branding/APP.md: a plain floating card whose icon
* and countdown line carry the status. No close button on the phone; a
* sideways swipe dismisses it.
*/
function ToastCard({ toast }: { toast: Toast }) {
const c = useColors();
const cardStyles = React.useMemo(() => makeStyles(c), [c]);
const scheme = useResolvedTheme();
const cardStyles = React.useMemo(() => makeStyles(c, scheme), [c, scheme]);
const t = useLocaleStore((s) => s.t);
const removeToast = useToastStore((s) => s.removeToast);
const duration = useAnimDuration(200);
const animate = useShouldAnimate();
const { width: screenWidth } = useWindowDimensions();
const opacity = React.useRef(new Animated.Value(0)).current;
const translateY = React.useRef(new Animated.Value(24)).current;
const translateX = React.useRef(new Animated.Value(0)).current;
// Share of the countdown line still filled, 1 → 0.
const remainingShare = React.useRef(new Animated.Value(1)).current;
const cardWidth = React.useRef(0);
React.useEffect(() => {
Animated.parallel([
const duration = animate ? ENTER_MS : 0;
const enter = Animated.parallel([
Animated.timing(opacity, { toValue: 1, duration, useNativeDriver: true }),
Animated.timing(translateY, { toValue: 0, duration, easing: Easing.out(Easing.cubic), useNativeDriver: true }),
]).start();
]);
enter.start();
return () => enter.stop();
}, [animate, opacity, translateY]);
// Leave after the toast's duration, counted from when it was queued (a
// screen change remounts the card). The countdown line runs out with it;
// with animations off it stays full instead of moving.
React.useEffect(() => {
const remaining = Math.max(0, toast.duration - (Date.now() - toast.createdAt));
const timer = setTimeout(() => removeToast(toast.id), remaining);
return () => clearTimeout(timer);
}, [toast, opacity, translateY, duration, removeToast]);
if (!animate) {
remainingShare.setValue(1);
return () => clearTimeout(timer);
}
remainingShare.setValue(toast.duration > 0 ? remaining / toast.duration : 0);
const countdown = Animated.timing(remainingShare, {
toValue: 0,
duration: remaining,
easing: Easing.linear,
useNativeDriver: true,
});
countdown.start();
return () => {
clearTimeout(timer);
countdown.stop();
};
}, [toast, animate, remainingShare, removeToast]);
const accent = toast.type === 'success'
? c.success
: toast.type === 'error'
? c.error
: toast.type === 'warning'
? c.warning
: c.info;
// The PanResponder is built once; its handlers read these through a ref.
const latest = React.useRef({ animate, screenWidth, id: toast.id, removeToast });
latest.current = { animate, screenWidth, id: toast.id, removeToast };
const responder = React.useMemo(
() => {
const springBack = () => {
if (!latest.current.animate) {
translateX.setValue(0);
return;
}
Animated.spring(translateX, { toValue: 0, useNativeDriver: true, speed: 24, bounciness: 4 }).start();
};
return PanResponder.create({
onStartShouldSetPanResponder: () => false,
onMoveShouldSetPanResponder: (_, g) => shouldClaimToastSwipe(g),
onPanResponderGrant: () => translateX.stopAnimation(),
onPanResponderMove: (_, g) => translateX.setValue(g.dx),
onPanResponderRelease: (_, g) => {
const direction = toastSwipeRelease(g, cardWidth.current);
if (direction === 0) {
springBack();
return;
}
const { animate: animated, screenWidth: width, id, removeToast: remove } = latest.current;
Animated.timing(translateX, {
toValue: direction * width,
duration: animated ? EXIT_MS : 0,
useNativeDriver: true,
}).start(() => remove(id));
},
onPanResponderTerminate: springBack,
onPanResponderTerminationRequest: () => false,
});
},
[translateX],
);
// Fades as it is dragged away.
const cardOpacity = React.useMemo(
() => Animated.multiply(
opacity,
translateX.interpolate({
inputRange: [-screenWidth, 0, screenWidth],
outputRange: [0, 1, 0],
extrapolate: 'clamp',
}),
),
[opacity, translateX, screenWidth],
);
const onLayout = (e: LayoutChangeEvent) => {
cardWidth.current = e.nativeEvent.layout.width;
};
const statusIcon = STATUS_ICON[scheme];
const iconColor = toast.type === 'error'
? statusIcon.error
: toast.type === 'warning'
? statusIcon.warning
: c.mutedForeground;
const countdownColor = toast.type === 'error'
? c.error
: toast.type === 'warning'
? c.warning
: c.mutedForeground;
const Icon = toast.type === 'success'
? CheckCircle2
: toast.type === 'error'
? XCircle
? AlertCircle
: toast.type === 'warning'
? AlertTriangle
: Info;
// Without a close button, screen readers dismiss through an action.
const dismissActions = React.useMemo(
() => [{ name: 'dismiss', label: t('common.dismiss', 'Dismiss') }, { name: 'escape' }],
[t],
);
const onAccessibilityAction = (e: AccessibilityActionEvent) => {
if (e.nativeEvent.actionName === 'dismiss' || e.nativeEvent.actionName === 'escape') {
removeToast(toast.id);
}
};
return (
<Animated.View
style={[cardStyles.card, { borderLeftColor: accent, opacity, transform: [{ translateY }] }]}
accessibilityRole="alert"
accessibilityLiveRegion="polite"
style={[cardStyles.shadow, { opacity: cardOpacity, transform: [{ translateY }, { translateX }] }]}
onLayout={onLayout}
{...responder.panHandlers}
>
<Icon size={18} color={accent} />
<View style={{ flex: 1 }}>
<Text style={cardStyles.title} numberOfLines={2}>{toast.title}</Text>
{toast.message ? <Text style={cardStyles.message} numberOfLines={3}>{toast.message}</Text> : null}
</View>
{toast.action ? (
<Pressable
onPress={() => { toast.action?.onPress(); removeToast(toast.id); }}
hitSlop={8}
accessibilityRole="button"
style={({ pressed }) => [cardStyles.actionBtn, pressed && cardStyles.actionBtnPressed]}
<View style={cardStyles.card} accessibilityRole="alert" accessibilityLiveRegion="polite">
<Icon size={18} color={iconColor} style={cardStyles.icon} />
<View
style={cardStyles.body}
accessible
accessibilityActions={dismissActions}
onAccessibilityAction={onAccessibilityAction}
>
<Text style={[cardStyles.actionText, { color: accent }]}>{toast.action.label}</Text>
</Pressable>
) : null}
<Pressable
onPress={() => removeToast(toast.id)}
hitSlop={8}
accessibilityRole="button"
accessibilityLabel={t('common.dismiss', 'Dismiss')}
style={cardStyles.close}
>
<X size={14} color={c.mutedForeground} />
</Pressable>
<Text style={cardStyles.title} numberOfLines={2}>{toast.title}</Text>
{toast.message ? <Text style={cardStyles.message} numberOfLines={3}>{toast.message}</Text> : null}
</View>
{toast.action ? (
<Pressable
onPress={() => { toast.action?.onPress(); removeToast(toast.id); }}
hitSlop={8}
accessibilityRole="button"
style={({ pressed }) => [cardStyles.action, pressed && cardStyles.actionPressed]}
>
{/* The underline is a border so it can sit 3px under the
baseline; textDecorationLine has no offset in RN. */}
<View style={cardStyles.actionUnderline}>
<Text style={cardStyles.actionText} numberOfLines={1}>{toast.action.label}</Text>
</View>
</Pressable>
) : null}
<View pointerEvents="none" style={cardStyles.countdownTrack} />
<Animated.View
pointerEvents="none"
style={[
cardStyles.countdownFill,
{ backgroundColor: countdownColor, transform: [{ scaleX: remainingShare }] },
]}
/>
</View>
</Animated.View>
);
}
@@ -103,31 +233,62 @@ const styles = StyleSheet.create({
},
});
function makeStyles(c: ThemePalette) {
const COUNTDOWN_HEIGHT = 2;
function makeStyles(c: ThemePalette, scheme: 'light' | 'dark') {
return StyleSheet.create({
card: {
flexDirection: 'row',
alignItems: 'center',
gap: spacing.sm,
paddingVertical: spacing.sm + 2,
paddingLeft: spacing.md,
paddingRight: spacing.sm,
borderRadius: radius.md,
borderLeftWidth: 3,
// Carries the shadow; the card inside clips the countdown line to the
// rounded corners, which would clip an iOS shadow on the same view.
shadow: {
borderRadius: radius.sm,
backgroundColor: c.popover,
borderWidth: 1,
borderColor: c.border,
shadowColor: '#000',
shadowOpacity: 0.25,
shadowRadius: 10,
shadowOffset: { width: 0, height: 4 },
shadowOpacity: scheme === 'dark' ? 0.4 : 0.1,
shadowRadius: 16,
shadowOffset: { width: 0, height: 6 },
elevation: 6,
},
title: { ...typography.bodyMedium, color: c.text },
message: { ...typography.caption, color: c.mutedForeground, marginTop: 2 },
actionBtn: { paddingHorizontal: spacing.sm, paddingVertical: 6, borderRadius: radius.sm },
actionBtnPressed: { backgroundColor: c.muted },
actionText: { ...typography.captionMedium },
close: { padding: 4 },
card: {
flexDirection: 'row',
alignItems: 'flex-start',
gap: spacing.sm,
paddingTop: 12,
paddingLeft: 14,
paddingRight: 14,
// Room for the countdown line.
paddingBottom: 14,
borderRadius: radius.sm,
borderWidth: 1,
borderColor: c.border,
backgroundColor: c.popover,
overflow: 'hidden',
},
// Centred on the title's first line.
icon: { marginTop: 1 },
body: { flex: 1 },
title: { fontSize: 14.5, lineHeight: 20, fontWeight: '500', color: c.text },
message: { fontSize: 13, lineHeight: 18, color: c.mutedForeground, marginTop: 2 },
action: { alignSelf: 'center' },
actionPressed: { opacity: 0.6 },
actionUnderline: { borderBottomWidth: 1, borderBottomColor: c.text },
actionText: { fontSize: 13, lineHeight: 16, fontWeight: '600', color: c.text },
countdownTrack: {
position: 'absolute',
left: 0,
right: 0,
bottom: 0,
height: COUNTDOWN_HEIGHT,
backgroundColor: c.text,
opacity: 0.06,
},
countdownFill: {
position: 'absolute',
left: 0,
right: 0,
bottom: 0,
height: COUNTDOWN_HEIGHT,
opacity: 0.6,
transformOrigin: 'left',
},
});
}
@@ -11,6 +11,7 @@ const SRC = join(__dirname, '..', '..');
const TRANSLATED_FILES: Record<string, string[]> = {
'screens/CalendarScreen.tsx': [],
'components/calendar/AgendaView.tsx': [],
'components/calendar/EventBlock.tsx': [],
'components/calendar/EventCard.tsx': [],
'components/calendar/MonthScrollView.tsx': [],
'components/calendar/MonthView.tsx': [],
@@ -41,6 +41,8 @@ const TRANSLATED_FILES: Record<string, string[]> = {
'components/TemplateSheet.tsx': [],
'components/IdentitySheet.tsx': [],
'components/QrScanModal.tsx': [],
// The input's placeholder is the link's own format.
'components/PasteSignInLinkModal.tsx': ['bulwarkmail://pair?server=…&code=…'],
'components/email/ActionSheet.tsx': [],
'components/email/AddressActionSheet.tsx': [],
'components/email/CalendarInvitationBanner.tsx': [],
@@ -40,6 +40,11 @@ const TRANSLATED_PANES: Record<string, string[]> = {
'settings/UpdatesSettings.tsx': [],
'settings/VacationSettings.tsx': ['YYYY-MM-DD HH:MM'],
'settings/settings-section.tsx': [],
// Device sync (Android, #34).
'settings/device-sync/DeviceSyncSection.tsx': [],
'settings/device-sync/DeviceSyncAccountRow.tsx': [],
'settings/device-sync/DeviceSyncCollectionsSheet.tsx': [],
'settings/device-sync/status.ts': [],
'filters/FilterRuleModal.tsx': [],
'filters/SieveEditorSheet.tsx': [],
};
@@ -0,0 +1,43 @@
import { describe, it, expect } from 'vitest';
import { shouldClaimToastSwipe, toastSwipeRelease } from '../toast-swipe';
const g = (dx: number, dy = 0, vx = 0) => ({ dx, dy, vx });
describe('shouldClaimToastSwipe', () => {
it('takes sideways drags in either direction', () => {
expect(shouldClaimToastSwipe(g(10))).toBe(true);
expect(shouldClaimToastSwipe(g(-10, 4))).toBe(true);
});
it('leaves taps, jitter and vertical moves alone', () => {
expect(shouldClaimToastSwipe(g(3))).toBe(false);
expect(shouldClaimToastSwipe(g(10, 10))).toBe(false);
expect(shouldClaimToastSwipe(g(0, 30))).toBe(false);
});
});
describe('toastSwipeRelease', () => {
it('dismisses past 35% of the card, towards the drag', () => {
expect(toastSwipeRelease(g(120), 300)).toBe(1);
expect(toastSwipeRelease(g(-110), 300)).toBe(-1);
expect(toastSwipeRelease(g(100), 300)).toBe(0);
});
it('caps the distance on wide cards', () => {
expect(toastSwipeRelease(g(125), 800)).toBe(1);
expect(toastSwipeRelease(g(115), 800)).toBe(0);
});
it('dismisses a short flick', () => {
expect(toastSwipeRelease(g(40, 0, 0.8), 300)).toBe(1);
expect(toastSwipeRelease(g(-40, 0, -0.8), 300)).toBe(-1);
// A flick against the drag does not count.
expect(toastSwipeRelease(g(40, 0, -0.8), 300)).toBe(0);
expect(toastSwipeRelease(g(20, 0, 2), 300)).toBe(0);
});
it('does not dismiss a small drag before the card has a width', () => {
expect(toastSwipeRelease(g(20), 0)).toBe(0);
expect(toastSwipeRelease(g(130), 0)).toBe(1);
});
});
+10 -1
View File
@@ -47,6 +47,8 @@ interface AgendaViewProps {
/** Reports the first day in view as the user scrolls. */
onVisibleDateChange?: (date: Date) => void;
timeFormat?: TimeFormat;
/** The user's addresses, to draw events they declined as inactive. */
currentUserEmails?: string[];
onSelectEvent?: (event: CalendarEvent) => void;
}
@@ -90,6 +92,7 @@ export function AgendaView({
isLoading = false,
onVisibleDateChange,
timeFormat,
currentUserEmails,
onSelectEvent,
}: AgendaViewProps) {
const c = useColors();
@@ -324,7 +327,13 @@ export function AgendaView({
}}
renderItem={({ item }) => (
<View style={styles.itemWrap}>
<EventCard event={item} calendars={calendars} timeFormat={timeFormat} onPress={onSelectEvent} />
<EventCard
event={item}
calendars={calendars}
timeFormat={timeFormat}
currentUserEmails={currentUserEmails}
onPress={onSelectEvent}
/>
</View>
)}
renderSectionFooter={({ section }) =>
+169
View File
@@ -0,0 +1,169 @@
import React from 'react';
import { Pressable, StyleSheet, Text, View, type StyleProp, type ViewStyle } from 'react-native';
import type { EventBlockColors } from '../../lib/event-colors';
// Events in the week and day grids, shared by the paged WeekView and the
// scrolling TimeGridScrollView. Every event is a solid block of its calendar
// colour with a label colour computed from it; declined and cancelled ones
// are outlined on the page ground with a struck-through title
// (repos/branding/APP.md, "Calendar events"). Callers get the colours from
// eventBlockColors().
/** Corner radius of event blocks and bars. */
export const EVENT_RADIUS = 2;
/** Timed blocks this long or longer show their start time under the title. */
export const TIME_LINE_MIN_MINUTES = 45;
// Corners on a side the event continues past (the day before or after, the
// week before or after) stay square.
function corners(
axis: 'vertical' | 'horizontal',
continuesBefore: boolean,
continuesAfter: boolean,
r: number,
): ViewStyle {
const before = continuesBefore ? 0 : r;
const after = continuesAfter ? 0 : r;
return axis === 'vertical'
? {
borderTopLeftRadius: before,
borderTopRightRadius: before,
borderBottomLeftRadius: after,
borderBottomRightRadius: after,
}
: {
borderTopLeftRadius: before,
borderBottomLeftRadius: before,
borderTopRightRadius: after,
borderBottomRightRadius: after,
};
}
interface TimedEventBlockProps {
title: string;
/** Start time for the second line; null leaves it out. */
timeLabel: string | null;
colors: EventBlockColors;
/** Page ground: a 1px ring in it keeps overlapping blocks apart. */
ringColor: string;
/** The event started on an earlier day (square top corners). */
continuesBefore: boolean;
/** The event runs into the next day (square bottom corners). */
continuesAfter: boolean;
/** Position and size in the day column. */
style: StyleProp<ViewStyle>;
onPress?: () => void;
}
/** A timed event in a day column. */
export function TimedEventBlock({
title,
timeLabel,
colors,
ringColor,
continuesBefore,
continuesAfter,
style,
onPress,
}: TimedEventBlockProps) {
const inactive = colors.border !== null;
return (
<Pressable
onPress={onPress}
style={[
styles.block,
corners('vertical', continuesBefore, continuesAfter, EVENT_RADIUS),
{ backgroundColor: colors.fill, borderColor: ringColor },
style,
]}
>
{inactive && (
// The calendar-coloured outline sits inside the ring.
<View
pointerEvents="none"
style={[
styles.outline,
corners('vertical', continuesBefore, continuesAfter, EVENT_RADIUS - 1),
{ borderColor: colors.border ?? undefined },
]}
/>
)}
<Text
style={[styles.blockTitle, { color: colors.text }, inactive && styles.struck]}
numberOfLines={1}
>
{title}
</Text>
{timeLabel !== null && (
<Text style={[styles.blockTime, { color: colors.text }]} numberOfLines={1}>
{timeLabel}
</Text>
)}
</Pressable>
);
}
interface AllDayEventBarProps {
title: string;
colors: EventBlockColors;
/** The event runs in from the week before (square left corners). */
continuesBefore: boolean;
/** The event runs on into the week after (square right corners). */
continuesAfter: boolean;
/** Position and size in the all-day strip. */
style: StyleProp<ViewStyle>;
onPress?: () => void;
}
/** An all-day or multi-day event in the strip above the grid. */
export function AllDayEventBar({
title,
colors,
continuesBefore,
continuesAfter,
style,
onPress,
}: AllDayEventBarProps) {
const inactive = colors.border !== null;
return (
<Pressable
onPress={onPress}
style={[
styles.bar,
corners('horizontal', continuesBefore, continuesAfter, EVENT_RADIUS),
{ backgroundColor: colors.fill },
inactive && [styles.barInactive, { borderColor: colors.border ?? undefined }],
style,
]}
>
<Text style={[styles.barTitle, { color: colors.text }]} numberOfLines={1}>
{continuesBefore ? '… ' : ''}
<Text style={inactive && styles.struck}>{title}</Text>
</Text>
</Pressable>
);
}
const styles = StyleSheet.create({
block: {
position: 'absolute',
borderWidth: 1,
paddingHorizontal: 3,
paddingVertical: 1,
overflow: 'hidden',
},
outline: { ...StyleSheet.absoluteFillObject, borderWidth: 1 },
blockTitle: { fontSize: 12, lineHeight: 15, fontWeight: '500' },
blockTime: { fontSize: 10.5, lineHeight: 13, fontWeight: '400', opacity: 0.85 },
struck: { textDecorationLine: 'line-through' },
bar: {
position: 'absolute',
paddingHorizontal: 4,
justifyContent: 'center',
overflow: 'hidden',
},
// The outline takes the place of a pixel of padding.
barInactive: { borderWidth: 1, paddingHorizontal: 3 },
barTitle: { fontSize: 12, lineHeight: 15, fontWeight: '500' },
});
+35 -17
View File
@@ -12,11 +12,14 @@ import {
type TimeFormat,
} from '../../lib/calendar-utils';
import { useCalendarLocale } from '../../lib/calendar-locale';
import { isInactiveEvent } from '../../lib/calendar-participants';
interface EventCardProps {
event: CalendarEvent;
calendars: Calendar[];
timeFormat?: TimeFormat;
/** The user's addresses, to draw events they declined as inactive. */
currentUserEmails?: string[];
onPress?: (event: CalendarEvent) => void;
onLongPress?: (event: CalendarEvent) => void;
}
@@ -25,7 +28,12 @@ function participantCount(event: CalendarEvent): number {
return event.participants ? Object.keys(event.participants).length : 0;
}
export function EventCard({ event, calendars, timeFormat, onPress, onLongPress }: EventCardProps) {
/**
* An event as an agenda row (repos/branding/APP.md): a dot in the calendar
* colour before the title, no card and no bar. Declined and cancelled events
* get a hollow dot and a struck-through, muted title.
*/
export function EventCard({ event, calendars, timeFormat, currentUserEmails, onPress, onLongPress }: EventCardProps) {
const c = useColors();
const styles = React.useMemo(() => makeStyles(c), [c]);
const { locale, t } = useCalendarLocale();
@@ -37,18 +45,18 @@ export function EventCard({ event, calendars, timeFormat, onPress, onLongPress }
: `${format(start, fmt, { locale })} – ${format(end, fmt, { locale })}`;
const count = participantCount(event);
const location = event.locations ? Object.values(event.locations)[0]?.name : undefined;
const cancelled = event.status === 'cancelled';
const inactive = isInactiveEvent(event, currentUserEmails);
return (
<Pressable
style={({ pressed }) => [styles.card, pressed && styles.cardPressed]}
style={({ pressed }) => [styles.row, pressed && styles.rowPressed]}
onPress={() => onPress?.(event)}
onLongPress={() => onLongPress?.(event)}
>
<View style={[styles.colorBar, { backgroundColor: color }]} />
<View style={[styles.dot, inactive ? [styles.dotHollow, { borderColor: color }] : { backgroundColor: color }]} />
<View style={styles.body}>
<View style={styles.headerRow}>
<Text style={[styles.title, cancelled && styles.titleCancelled]} numberOfLines={1}>
<Text style={[styles.title, inactive && styles.titleInactive]} numberOfLines={1}>
{event.title || t('calendar.events.no_title', '(No title)')}
</Text>
{event.showWithoutTime && (
@@ -89,21 +97,31 @@ export function EventCard({ event, calendars, timeFormat, onPress, onLongPress }
);
}
const EVENT_DOT = 9;
function makeStyles(c: ThemePalette) {
return StyleSheet.create({
card: {
// Bleeds into the list's side padding so the dot lines up with the day
// headers while the pressed highlight keeps some room around the text.
row: {
flexDirection: 'row',
backgroundColor: c.card,
borderTopRightRadius: radius.lg,
borderBottomRightRadius: radius.lg,
marginBottom: spacing.sm,
overflow: 'hidden',
borderWidth: 1,
borderColor: c.border,
alignItems: 'flex-start',
gap: spacing.sm,
paddingVertical: spacing.sm,
paddingHorizontal: spacing.sm,
marginHorizontal: -spacing.sm,
borderRadius: radius.sm,
},
cardPressed: { backgroundColor: c.surfaceHover },
colorBar: { width: 3 },
body: { flex: 1, padding: spacing.md, gap: 4 },
rowPressed: { backgroundColor: c.surfaceHover },
// Centred on the title's line (bodyMedium, 20px).
dot: {
width: EVENT_DOT,
height: EVENT_DOT,
borderRadius: EVENT_DOT / 2,
marginTop: (typography.bodyMedium.lineHeight - EVENT_DOT) / 2,
},
dotHollow: { borderWidth: 1.5 },
body: { flex: 1, gap: 4 },
headerRow: {
flexDirection: 'row',
justifyContent: 'space-between',
@@ -111,7 +129,7 @@ function makeStyles(c: ThemePalette) {
gap: spacing.sm,
},
title: { ...typography.bodyMedium, color: c.text, flex: 1 },
titleCancelled: { textDecorationLine: 'line-through', color: c.textMuted },
titleInactive: { textDecorationLine: 'line-through', color: c.mutedForeground },
allDayBadge: {
backgroundColor: c.primaryBg,
paddingHorizontal: 8,
@@ -53,6 +53,8 @@ interface MonthScrollViewProps {
showWeekNumbers?: boolean;
showTimeInMonthView?: boolean;
timeFormat?: TimeFormat;
/** The user's addresses, to draw events they declined as inactive. */
currentUserEmails?: string[];
/** Widen the window at the top; omitted once the limit is reached. */
onExtendStart?: () => void;
/** Widen the window at the bottom; omitted once the limit is reached. */
@@ -83,6 +85,7 @@ function MonthScrollViewInner({
showWeekNumbers = false,
showTimeInMonthView = false,
timeFormat,
currentUserEmails,
onExtendStart,
onExtendEnd,
onVisibleDateChange,
@@ -191,6 +194,7 @@ function MonthScrollViewInner({
showWeekNumbers={showWeekNumbers}
showTimeInMonthView={showTimeInMonthView}
timeFormat={timeFormat}
currentUserEmails={currentUserEmails}
labelMonths
height={rowHeight}
locale={locale}
@@ -209,6 +213,7 @@ function MonthScrollViewInner({
showWeekNumbers,
showTimeInMonthView,
timeFormat,
currentUserEmails,
rowHeight,
locale,
styles,
+37 -13
View File
@@ -12,7 +12,7 @@ import {
type Locale,
} from 'date-fns';
import type { Calendar, CalendarEvent } from '../../api/types';
import { componentSizes, radius, spacing, typography, type ThemePalette } from '../../theme/tokens';
import { componentSizes, spacing, typography, type ThemePalette } from '../../theme/tokens';
import { useColors } from '../../theme/colors';
import {
buildEventDayIndex,
@@ -24,6 +24,8 @@ import {
type TimeFormat,
} from '../../lib/calendar-utils';
import { dayIndexIn, monthKeyOf, monthMask } from '../../lib/calendar-month-scroll';
import { isInactiveEvent } from '../../lib/calendar-participants';
import { eventBlockColors } from '../../lib/event-colors';
import { useCalendarLocale } from '../../lib/calendar-locale';
import { displayNow } from '../../lib/calendar-timezone';
@@ -33,6 +35,8 @@ type WeekStart = 0 | 1 | 6;
// scrolling month uses them as fixed row heights.
export const MONTH_ROW_HEIGHT = 54;
export const MONTH_ROW_HEIGHT_CHIPS = 74;
// Corner radius of event bars (repos/branding/APP.md).
const EVENT_RADIUS = 2;
interface MonthViewProps {
currentDate: Date;
@@ -45,6 +49,8 @@ interface MonthViewProps {
// Render compact event chips (title + start time) instead of dots (#666).
showTimeInMonthView?: boolean;
timeFormat?: TimeFormat;
/** The user's addresses, to draw events they declined as inactive. */
currentUserEmails?: string[];
onSelectDate: (date: Date) => void;
onLongPressDate?: (date: Date) => void;
}
@@ -101,6 +107,8 @@ export interface MonthWeekRowProps {
showWeekNumbers: boolean;
showTimeInMonthView: boolean;
timeFormat?: TimeFormat;
/** The user's addresses, to draw events they declined as inactive. */
currentUserEmails?: string[];
/** Mark the first day of a month with the month's name (continuous scrolling). */
labelMonths?: boolean;
/** Fixed row height (continuous scrolling); natural height otherwise. */
@@ -122,6 +130,7 @@ function MonthWeekRowInner({
showWeekNumbers,
showTimeInMonthView,
timeFormat,
currentUserEmails,
labelMonths = false,
height,
locale,
@@ -129,6 +138,7 @@ function MonthWeekRowInner({
onSelectDate,
onLongPressDate,
}: MonthWeekRowProps) {
const c = useColors();
return (
<View style={[styles.weekRow, height !== undefined && { height, overflow: 'hidden' }]}>
{showWeekNumbers && (
@@ -197,17 +207,24 @@ function MonthWeekRowInner({
{dayEvents.length > 0 && showTimeInMonthView && (
<View style={styles.chipsCol}>
{visible.map((event, idx) => {
const color = getEventColor(event, calendars);
const cancelled = event.status === 'cancelled';
// Solid bars in the calendar colour; declined and
// cancelled events outlined (repos/branding/APP.md).
const inactive = isInactiveEvent(event, currentUserEmails);
const colors = eventBlockColors(getEventColor(event, calendars), inactive, c);
return (
<View key={`${event.id}-${idx}`} style={[styles.chip, { backgroundColor: color }]}>
<Text
style={[styles.chipText, cancelled && styles.chipTextCancelled]}
numberOfLines={1}
>
<View
key={`${event.id}-${idx}`}
style={[
styles.chip,
{ backgroundColor: colors.fill },
colors.border !== null && [styles.chipInactive, { borderColor: colors.border }],
]}
>
<Text style={[styles.chipText, { color: colors.text }]} numberOfLines={1}>
{event.showWithoutTime
? (event.title || '')
: `${format(getEventStartDate(event), timePattern(timeFormat), { locale })} ${event.title || ''}`}
? null
: `${format(getEventStartDate(event), timePattern(timeFormat), { locale })} `}
<Text style={inactive && styles.chipTextInactive}>{event.title || ''}</Text>
</Text>
</View>
);
@@ -236,6 +253,7 @@ function MonthViewInner({
showWeekNumbers = false,
showTimeInMonthView = false,
timeFormat,
currentUserEmails,
onSelectDate,
onLongPressDate,
}: MonthViewProps) {
@@ -278,6 +296,7 @@ function MonthViewInner({
showWeekNumbers={showWeekNumbers}
showTimeInMonthView={showTimeInMonthView}
timeFormat={timeFormat}
currentUserEmails={currentUserEmails}
locale={locale}
styles={styles}
onSelectDate={onSelectDate}
@@ -349,12 +368,17 @@ function makeStyles(c: ThemePalette) {
},
chipsCol: { width: '100%', gap: 1, marginTop: 2, alignItems: 'stretch' },
chip: {
borderRadius: radius.xs,
borderRadius: EVENT_RADIUS,
paddingHorizontal: 2,
paddingVertical: 1,
},
chipText: { color: c.textInverse, fontSize: 9, lineHeight: 11 },
chipTextCancelled: { textDecorationLine: 'line-through' },
// The 1px outline takes the place of a pixel of padding, so outlined and
// solid bars are the same size.
chipInactive: { borderWidth: 1, paddingHorizontal: 1, paddingVertical: 0 },
// Colour comes from eventBlockColors(): computed from the calendar colour,
// never a theme colour.
chipText: { fontSize: 9, lineHeight: 11, fontWeight: '500' },
chipTextInactive: { textDecorationLine: 'line-through' },
overflowText: {
color: c.textMuted,
fontSize: 9,
+53 -72
View File
@@ -17,7 +17,7 @@ import {
} from 'react-native';
import { differenceInCalendarDays, format, type Locale } from 'date-fns';
import type { Calendar, CalendarEvent } from '../../api/types';
import { radius, spacing, typography, type ThemePalette } from '../../theme/tokens';
import { spacing, typography, type ThemePalette } from '../../theme/tokens';
import { useColors } from '../../theme/colors';
import { useCalendarLocale } from '../../lib/calendar-locale';
import {
@@ -33,6 +33,8 @@ import {
} from '../../lib/calendar-utils';
import type { CalendarFocus, DayRange } from '../../lib/calendar-scroll-window';
import { displayNow, displayNowMinutes } from '../../lib/calendar-timezone';
import { isInactiveEvent } from '../../lib/calendar-participants';
import { eventBlockColors } from '../../lib/event-colors';
import {
buildAllDaySegments,
headerColumnRange,
@@ -41,6 +43,7 @@ import {
windowDays,
type TimeGridMode,
} from '../../lib/calendar-time-grid';
import { AllDayEventBar, TIME_LINE_MIN_MINUTES, TimedEventBlock } from './EventBlock';
const HOUR_HEIGHT = 48;
const GRID_HEIGHT = 24 * HOUR_HEIGHT;
@@ -67,6 +70,8 @@ interface TimeGridScrollViewProps {
eventsByDay?: EventDayIndex;
weekStartsOn?: WeekStart;
timeFormat?: TimeFormat;
/** The user's addresses, to draw events they declined as inactive. */
currentUserEmails?: string[];
/** Widen the window at the start; omitted once the limit is reached. */
onExtendStart?: () => void;
/** Widen the window at the end; omitted once the limit is reached. */
@@ -98,6 +103,7 @@ function TimeGridScrollViewInner({
eventsByDay,
weekStartsOn = 0,
timeFormat = '24h',
currentUserEmails,
onExtendStart,
onExtendEnd,
onVisibleDateChange,
@@ -301,12 +307,17 @@ function TimeGridScrollViewInner({
nowMinutes={dayKey(day) === todayKey ? nowMinutes : -1}
calendars={calendars}
timeFormat={timeFormat}
currentUserEmails={currentUserEmails}
colors={c}
styles={styles}
onSelectEvent={onSelectEvent}
onLongPressAt={onCreateAtTime ? handleLongPressAt : undefined}
/>
),
[layoutsFor, colWidth, todayKey, nowMinutes, calendars, timeFormat, styles, onSelectEvent, onCreateAtTime, handleLongPressAt],
[
layoutsFor, colWidth, todayKey, nowMinutes, calendars, timeFormat, currentUserEmails, c, styles,
onSelectEvent, onCreateAtTime, handleLongPressAt,
],
);
const getItemLayout = React.useCallback(
@@ -379,34 +390,26 @@ function TimeGridScrollViewInner({
]}
>
{headerCells}
{visibleSegments.map((segment) => {
const color = getEventColor(segment.event, calendars);
return (
<Pressable
key={`${segment.event.id}:${segment.startIndex}:${segment.row}`}
onPress={() => onSelectEvent?.(segment.event)}
style={[
styles.allDayChip,
{
left: segment.startIndex * colWidth + 1,
width: segment.span * colWidth - 2,
top: HEADER_HEIGHT + 2 + segment.row * (ALL_DAY_CHIP_HEIGHT + ALL_DAY_GAP),
backgroundColor: color + '33',
borderLeftColor: color,
borderTopLeftRadius: segment.continuesBefore ? 0 : radius.xs,
borderBottomLeftRadius: segment.continuesBefore ? 0 : radius.xs,
borderTopRightRadius: segment.continuesAfter ? 0 : radius.xs,
borderBottomRightRadius: segment.continuesAfter ? 0 : radius.xs,
},
]}
>
<Text style={styles.allDayChipText} numberOfLines={1}>
{segment.continuesBefore ? '… ' : ''}
{segment.event.title || t('calendar.events.no_title', '(No title)')}
</Text>
</Pressable>
);
})}
{visibleSegments.map((segment) => (
<AllDayEventBar
key={`${segment.event.id}:${segment.startIndex}:${segment.row}`}
title={segment.event.title || t('calendar.events.no_title', '(No title)')}
colors={eventBlockColors(
getEventColor(segment.event, calendars),
isInactiveEvent(segment.event, currentUserEmails),
c,
)}
continuesBefore={segment.continuesBefore}
continuesAfter={segment.continuesAfter}
onPress={() => onSelectEvent?.(segment.event)}
style={{
left: segment.startIndex * colWidth + 1,
width: segment.span * colWidth - 2,
top: HEADER_HEIGHT + 2 + segment.row * (ALL_DAY_CHIP_HEIGHT + ALL_DAY_GAP),
height: ALL_DAY_CHIP_HEIGHT,
}}
/>
))}
</Animated.View>
</View>
</View>
@@ -526,6 +529,8 @@ const DayColumn = React.memo(function DayColumn({
nowMinutes,
calendars,
timeFormat,
currentUserEmails,
colors,
styles,
onSelectEvent,
onLongPressAt,
@@ -537,6 +542,8 @@ const DayColumn = React.memo(function DayColumn({
nowMinutes: number;
calendars: Calendar[];
timeFormat: TimeFormat;
currentUserEmails?: string[];
colors: ThemePalette;
styles: GridStyles;
onSelectEvent?: (event: CalendarEvent) => void;
onLongPressAt?: (day: Date, hour: number) => void;
@@ -553,36 +560,28 @@ const DayColumn = React.memo(function DayColumn({
style={[styles.dayCol, { width }]}
onLongPress={onLongPressAt ? handleLongPress : undefined}
>
{layouts.map(({ event, column, totalColumns, startMinutes, endMinutes }) => {
{layouts.map(({ event, column, totalColumns, startMinutes, endMinutes, continuesBefore, continuesAfter }) => {
const top = (startMinutes / 60) * HOUR_HEIGHT;
const height = Math.max(20, ((endMinutes - startMinutes) / 60) * HOUR_HEIGHT - 1);
const widthPct = 100 / totalColumns;
const color = getEventColor(event, calendars);
return (
<Pressable
<TimedEventBlock
key={event.id}
onPress={() => onSelectEvent?.(event)}
style={[
styles.eventBlock,
{
top,
height,
left: `${column * widthPct}%`,
width: `${widthPct}%`,
backgroundColor: color + '33',
borderLeftColor: color,
},
]}
>
<Text style={styles.eventBlockTitle} numberOfLines={1}>
{event.title || t('calendar.events.no_title', '(No title)')}
</Text>
{height > 32 && (
<Text style={styles.eventBlockTime} numberOfLines={1}>
{minutesToTimeLabel(startMinutes, timeFormat)}
</Text>
title={event.title || t('calendar.events.no_title', '(No title)')}
timeLabel={endMinutes - startMinutes >= TIME_LINE_MIN_MINUTES
? minutesToTimeLabel(startMinutes, timeFormat)
: null}
colors={eventBlockColors(
getEventColor(event, calendars),
isInactiveEvent(event, currentUserEmails),
colors,
)}
</Pressable>
ringColor={colors.background}
continuesBefore={continuesBefore}
continuesAfter={continuesAfter}
onPress={() => onSelectEvent?.(event)}
style={{ top, height, left: `${column * widthPct}%`, width: `${widthPct}%` }}
/>
);
})}
{nowMinutes >= 0 && (
@@ -649,14 +648,6 @@ function makeStyles(c: ThemePalette) {
allDayLabelWrap: { alignItems: 'flex-end', justifyContent: 'flex-start', paddingRight: 4, paddingTop: 2 },
allDayLabel: { ...typography.small, color: c.textMuted, textAlign: 'right' },
allDayChip: {
position: 'absolute',
height: ALL_DAY_CHIP_HEIGHT,
borderLeftWidth: 2,
paddingHorizontal: 4,
justifyContent: 'center',
},
allDayChipText: { fontSize: 10, color: c.text, fontWeight: '500' },
vScroll: { flex: 1 },
gridRow: { flexDirection: 'row', height: GRID_HEIGHT },
@@ -678,16 +669,6 @@ function makeStyles(c: ThemePalette) {
borderLeftWidth: 1,
borderLeftColor: c.border,
},
eventBlock: {
position: 'absolute',
borderRadius: radius.xs,
borderLeftWidth: 2,
paddingHorizontal: 3,
paddingVertical: 2,
overflow: 'hidden',
},
eventBlockTitle: { fontSize: 10, color: c.text, fontWeight: '600' },
eventBlockTime: { fontSize: 9, color: c.textMuted, marginTop: 1 },
nowLine: {
position: 'absolute',
left: -3,
+40 -67
View File
@@ -9,7 +9,7 @@ import {
import { addDays, format, isSameDay, startOfWeek } from 'date-fns';
import { displayNow, displayNowMinutes, isDisplayToday } from '../../lib/calendar-timezone';
import type { Calendar, CalendarEvent } from '../../api/types';
import { radius, spacing, typography, type ThemePalette } from '../../theme/tokens';
import { spacing, typography, type ThemePalette } from '../../theme/tokens';
import { useColors } from '../../theme/colors';
import { useCalendarLocale } from '../../lib/calendar-locale';
import {
@@ -24,6 +24,9 @@ import {
type CalendarWeekSegment,
type EventDayIndex,
} from '../../lib/calendar-utils';
import { isInactiveEvent } from '../../lib/calendar-participants';
import { eventBlockColors } from '../../lib/event-colors';
import { AllDayEventBar, TIME_LINE_MIN_MINUTES, TimedEventBlock } from './EventBlock';
const HOUR_HEIGHT = 48;
const GUTTER_WIDTH = 44;
@@ -43,6 +46,8 @@ interface WeekViewProps {
onCreateAtTime?: (date: Date) => void;
weekStartsOn?: 0 | 1 | 6;
timeFormat?: '12h' | '24h';
/** The user's addresses, to draw events they declined as inactive. */
currentUserEmails?: string[];
}
function WeekViewInner({
@@ -56,6 +61,7 @@ function WeekViewInner({
onCreateAtTime,
weekStartsOn = 0,
timeFormat = '24h',
currentUserEmails,
}: WeekViewProps) {
const c = useColors();
const styles = React.useMemo(() => makeStyles(c), [c]);
@@ -183,35 +189,28 @@ function WeekViewInner({
{/* Segments overlay - multi-day events span their date range */}
<View style={styles.allDayOverlay} pointerEvents="box-none">
{allDaySegments.map((segment) => {
const color = getEventColor(segment.event, calendars);
const leftPct = (segment.startIndex / weekDays.length) * 100;
const widthPct = (segment.span / weekDays.length) * 100;
return (
<Pressable
<AllDayEventBar
key={`${segment.event.id}:${segment.startIndex}:${segment.row}`}
title={segment.event.title || t('calendar.events.no_title', '(No title)')}
colors={eventBlockColors(
getEventColor(segment.event, calendars),
isInactiveEvent(segment.event, currentUserEmails),
c,
)}
continuesBefore={segment.continuesBefore}
continuesAfter={segment.continuesAfter}
onPress={() => onSelectEvent?.(segment.event)}
style={[
styles.allDayChip,
{
position: 'absolute',
left: `${leftPct}%`,
width: `${widthPct}%`,
top: segment.row * (ALL_DAY_CHIP_HEIGHT + ALL_DAY_GAP),
backgroundColor: color + '33',
borderLeftColor: color,
borderTopLeftRadius: segment.continuesBefore ? 0 : radius.xs,
borderBottomLeftRadius: segment.continuesBefore ? 0 : radius.xs,
borderTopRightRadius: segment.continuesAfter ? 0 : radius.xs,
borderBottomRightRadius: segment.continuesAfter ? 0 : radius.xs,
marginHorizontal: 1,
},
]}
>
<Text style={styles.allDayChipText} numberOfLines={1}>
{segment.continuesBefore ? '… ' : ''}
{segment.event.title || t('calendar.events.no_title', '(No title)')}
</Text>
</Pressable>
style={{
left: `${leftPct}%`,
width: `${widthPct}%`,
top: segment.row * (ALL_DAY_CHIP_HEIGHT + ALL_DAY_GAP),
height: ALL_DAY_CHIP_HEIGHT,
marginHorizontal: 1,
}}
/>
);
})}
</View>
@@ -255,7 +254,7 @@ function WeekViewInner({
))}
{layouted.map(
({ event, column, totalColumns, startMinutes, endMinutes }) => {
({ event, column, totalColumns, startMinutes, endMinutes, continuesBefore, continuesAfter }) => {
const top = (startMinutes / 60) * HOUR_HEIGHT;
const height = Math.max(
20,
@@ -263,32 +262,24 @@ function WeekViewInner({
);
const widthPct = 100 / totalColumns;
const leftPct = column * widthPct;
const color = getEventColor(event, calendars);
return (
<Pressable
<TimedEventBlock
key={event.id}
onPress={() => onSelectEvent?.(event)}
style={[
styles.eventBlock,
{
top,
height,
left: `${leftPct}%`,
width: `${widthPct}%`,
backgroundColor: color + '33',
borderLeftColor: color,
},
]}
>
<Text style={styles.eventBlockTitle} numberOfLines={1}>
{event.title || t('calendar.events.no_title', '(No title)')}
</Text>
{height > 32 && (
<Text style={styles.eventBlockTime} numberOfLines={1}>
{minutesToTimeLabel(startMinutes, timeFormat)}
</Text>
title={event.title || t('calendar.events.no_title', '(No title)')}
timeLabel={endMinutes - startMinutes >= TIME_LINE_MIN_MINUTES
? minutesToTimeLabel(startMinutes, timeFormat)
: null}
colors={eventBlockColors(
getEventColor(event, calendars),
isInactiveEvent(event, currentUserEmails),
c,
)}
</Pressable>
ringColor={c.background}
continuesBefore={continuesBefore}
continuesAfter={continuesAfter}
onPress={() => onSelectEvent?.(event)}
style={{ top, height, left: `${leftPct}%`, width: `${widthPct}%` }}
/>
);
},
)}
@@ -389,14 +380,6 @@ function makeStyles(c: ThemePalette) {
top: 0,
bottom: 0,
},
allDayChip: {
height: ALL_DAY_CHIP_HEIGHT,
borderRadius: radius.xs,
borderLeftWidth: 2,
paddingHorizontal: 4,
justifyContent: 'center',
},
allDayChipText: { fontSize: 10, color: c.text, fontWeight: '500' },
scroll: { flex: 1 },
scrollContent: {},
@@ -419,16 +402,6 @@ function makeStyles(c: ThemePalette) {
borderBottomWidth: 1,
borderBottomColor: c.borderLight,
},
eventBlock: {
position: 'absolute',
borderRadius: radius.xs,
borderLeftWidth: 2,
paddingHorizontal: 3,
paddingVertical: 2,
overflow: 'hidden',
},
eventBlockTitle: { fontSize: 10, color: c.text, fontWeight: '600' },
eventBlockTime: { fontSize: 9, color: c.textMuted, marginTop: 1 },
nowLine: {
position: 'absolute',
+133 -114
View File
@@ -8,6 +8,9 @@ import {
} from '../../stores/settings-store';
import { useLocaleStore } from '../../stores/locale-store';
import { AUTO_TIME_ZONE, getDeviceTimeZone, isValidTimeZone } from '../../lib/calendar-timezone';
import { deviceSyncAvailable } from '../../device-sync/app/available';
import { CALENDAR_AUTHORITY } from '../../device-sync/types';
import { DeviceSyncSection } from './device-sync/DeviceSyncSection';
// A compact list of IANA zones for the picker (#755). The device zone and
// any previously stored value are always offered too.
@@ -46,6 +49,9 @@ export function CalendarSettings() {
const tasksEnabled = useSettingsStore((s) => s.enableCalendarTasks);
const showTasksOnCal = useSettingsStore((s) => s.showTasksOnCalendar);
// Android with the native module only (#34).
const deviceSync = React.useMemo(() => deviceSyncAvailable(), []);
useEffect(() => {
if (!hydrated) void hydrate();
}, [hydrated, hydrate]);
@@ -64,130 +70,143 @@ export function CalendarSettings() {
}, [deviceZone, timeZone, t]);
return (
<SettingsSection title={t('calendar.settings.title', 'Calendar')}>
<SettingItem label={t('calendar.settings.default_view', 'Default view')}>
<Select
value={viewMode}
onChange={(v) => update('calendarDefaultView', v as CalendarView)}
options={[
{ value: 'month', label: t('calendar.views.month', 'Month') },
{ value: 'week', label: t('calendar.views.week', 'Week') },
{ value: 'day', label: t('calendar.views.day', 'Day') },
{ value: 'agenda', label: t('calendar.views.agenda', 'Agenda') },
]}
/>
</SettingItem>
<>
<SettingsSection title={t('calendar.settings.title', 'Calendar')}>
<SettingItem label={t('calendar.settings.default_view', 'Default view')}>
<Select
value={viewMode}
onChange={(v) => update('calendarDefaultView', v as CalendarView)}
options={[
{ value: 'month', label: t('calendar.views.month', 'Month') },
{ value: 'week', label: t('calendar.views.week', 'Week') },
{ value: 'day', label: t('calendar.views.day', 'Day') },
{ value: 'agenda', label: t('calendar.views.agenda', 'Agenda') },
]}
/>
</SettingItem>
<SettingItem label={t('calendar.settings.week_starts_on', 'Week starts on')}>
<Select
value={String(firstDay)}
onChange={(v) => update('calendarFirstDayOfWeek', Number(v) as FirstDayOfWeek)}
options={[
{ value: '1', label: t('calendar.days.monday', 'Monday') },
{ value: '6', label: t('calendar.days.saturday', 'Saturday') },
{ value: '0', label: t('calendar.days.sunday', 'Sunday') },
]}
/>
</SettingItem>
<SettingItem label={t('calendar.settings.week_starts_on', 'Week starts on')}>
<Select
value={String(firstDay)}
onChange={(v) => update('calendarFirstDayOfWeek', Number(v) as FirstDayOfWeek)}
options={[
{ value: '1', label: t('calendar.days.monday', 'Monday') },
{ value: '6', label: t('calendar.days.saturday', 'Saturday') },
{ value: '0', label: t('calendar.days.sunday', 'Sunday') },
]}
/>
</SettingItem>
<SettingItem label={t('calendar.settings.time_format', 'Time format')}>
<RadioGroup
value={timeFormat}
onChange={(v) => update('calendarTimeFormat', v as TimeFormat)}
options={[
{ value: '12h', label: t('calendar.settings.time_format_12h', '12-hour') },
{ value: '24h', label: t('calendar.settings.time_format_24h', '24-hour') },
]}
/>
</SettingItem>
<SettingItem label={t('calendar.settings.time_format', 'Time format')}>
<RadioGroup
value={timeFormat}
onChange={(v) => update('calendarTimeFormat', v as TimeFormat)}
options={[
{ value: '12h', label: t('calendar.settings.time_format_12h', '12-hour') },
{ value: '24h', label: t('calendar.settings.time_format_24h', '24-hour') },
]}
/>
</SettingItem>
<SettingItem
label={t('calendar.settings.time_zone', 'Time zone')}
description={t(
'calendar.settings.time_zone_desc',
'Zone used for new events and for interpreting the calendar. "Device" follows the phone.',
)}
>
<Select
value={timeZone || AUTO_TIME_ZONE}
onChange={(v) => update('calendarTimeZone', v)}
options={timeZoneOptions}
/>
</SettingItem>
<SettingItem
label={t('calendar.settings.show_time_in_month_view', 'Show time in month view')}
description={t(
'calendar.settings.show_time_in_month_view_desc',
'Display event times in the month calendar view. On small screens this shows full event entries instead of dots.',
)}
>
<ToggleSwitch
checked={showTimeInMonth}
onChange={(v) => update('calendarShowTimeInMonth', v)}
/>
</SettingItem>
<SettingItem
label={t('calendar.settings.show_week_numbers', 'Show week numbers')}
description={t('calendar.settings.show_week_numbers_mobile_desc', 'Display week numbers in the month view.')}
>
<ToggleSwitch
checked={showWeekNumbers}
onChange={(v) => update('calendarShowWeekNumbers', v)}
/>
</SettingItem>
<SettingItem
label={t('calendar.settings.calendar_free_scroll', 'Free scrolling')}
description={t(
'calendar.settings.calendar_free_scroll_desc',
'Scroll continuously through months, weeks and days instead of one period at a time',
)}
>
<ToggleSwitch
checked={freeScroll}
onChange={(v) => update('calendarFreeScroll', v)}
/>
</SettingItem>
<SettingItem
label={t('calendar.settings.show_birthday_calendar', 'Contact birthday calendar')}
description={t(
'calendar.settings.show_birthday_calendar_desc',
'Show a virtual calendar with birthdays from your contacts',
)}
>
<ToggleSwitch
checked={birthdayCal}
onChange={(v) => update('showBirthdayCalendar', v)}
/>
</SettingItem>
<SettingItem
label={t('calendar.settings.enable_tasks', 'Enable tasks')}
description={t('calendar.settings.enable_tasks_desc', 'Show a tasks view in the calendar for managing to-dos')}
>
<ToggleSwitch
checked={tasksEnabled}
onChange={(v) => update('enableCalendarTasks', v)}
/>
</SettingItem>
{tasksEnabled && (
<SettingItem
label={t('calendar.settings.show_tasks_on_calendar', 'Show tasks on calendar')}
label={t('calendar.settings.time_zone', 'Time zone')}
description={t(
'calendar.settings.show_tasks_on_calendar_desc',
'Display task chips on the day and week calendar views',
'calendar.settings.time_zone_desc',
'Zone used for new events and for interpreting the calendar. "Device" follows the phone.',
)}
>
<Select
value={timeZone || AUTO_TIME_ZONE}
onChange={(v) => update('calendarTimeZone', v)}
options={timeZoneOptions}
/>
</SettingItem>
<SettingItem
label={t('calendar.settings.show_time_in_month_view', 'Show time in month view')}
description={t(
'calendar.settings.show_time_in_month_view_desc',
'Display event times in the month calendar view. On small screens this shows full event entries instead of dots.',
)}
>
<ToggleSwitch
checked={showTasksOnCal}
onChange={(v) => update('showTasksOnCalendar', v)}
checked={showTimeInMonth}
onChange={(v) => update('calendarShowTimeInMonth', v)}
/>
</SettingItem>
<SettingItem
label={t('calendar.settings.show_week_numbers', 'Show week numbers')}
description={t('calendar.settings.show_week_numbers_mobile_desc', 'Display week numbers in the month view.')}
>
<ToggleSwitch
checked={showWeekNumbers}
onChange={(v) => update('calendarShowWeekNumbers', v)}
/>
</SettingItem>
<SettingItem
label={t('calendar.settings.calendar_free_scroll', 'Free scrolling')}
description={t(
'calendar.settings.calendar_free_scroll_desc',
'Scroll continuously through months, weeks and days instead of one period at a time',
)}
>
<ToggleSwitch
checked={freeScroll}
onChange={(v) => update('calendarFreeScroll', v)}
/>
</SettingItem>
<SettingItem
label={t('calendar.settings.show_birthday_calendar', 'Contact birthday calendar')}
description={t(
'calendar.settings.show_birthday_calendar_desc',
'Show a virtual calendar with birthdays from your contacts',
)}
>
<ToggleSwitch
checked={birthdayCal}
onChange={(v) => update('showBirthdayCalendar', v)}
/>
</SettingItem>
<SettingItem
label={t('calendar.settings.enable_tasks', 'Enable tasks')}
description={t('calendar.settings.enable_tasks_desc', 'Show a tasks view in the calendar for managing to-dos')}
>
<ToggleSwitch
checked={tasksEnabled}
onChange={(v) => update('enableCalendarTasks', v)}
/>
</SettingItem>
{tasksEnabled && (
<SettingItem
label={t('calendar.settings.show_tasks_on_calendar', 'Show tasks on calendar')}
description={t(
'calendar.settings.show_tasks_on_calendar_desc',
'Display task chips on the day and week calendar views',
)}
>
<ToggleSwitch
checked={showTasksOnCal}
onChange={(v) => update('showTasksOnCalendar', v)}
/>
</SettingItem>
)}
</SettingsSection>
{deviceSync && (
<DeviceSyncSection
authority={CALENDAR_AUTHORITY}
title={t('calendar.settings.device_sync_title', 'Sync to this device')}
description={t(
'calendar.settings.device_sync_desc',
'Show your calendars in the Calendar app and other apps on this device. Changes sync both ways.',
)}
/>
)}
</SettingsSection>
</>
);
}
@@ -9,11 +9,14 @@ import { SettingsSection, SettingItem, ToggleSwitch } from './settings-section';
import Button from '../Button';
import Dialog from '../Dialog';
import { ContactImportSheet, AddressBookPickerSheet } from '../contacts';
import { DeviceSyncSection } from './device-sync/DeviceSyncSection';
import { useSettingsStore } from '../../stores/settings-store';
import { useLocaleStore } from '../../stores/locale-store';
import { useContactsStore, selectAddressBooksWithCount } from '../../stores/contacts-store';
import { contactsToVCard } from '../../lib/vcard';
import { isGroup } from '../../lib/contact-utils';
import { deviceSyncAvailable } from '../../device-sync/app/available';
import { CONTACTS_AUTHORITY } from '../../device-sync/types';
import { spacing, radius, typography, componentSizes, type ThemePalette } from '../../theme/tokens';
import { useColors } from '../../theme/colors';
@@ -53,6 +56,8 @@ export function ContactsSettings() {
const [newName, setNewName] = React.useState('');
const [busy, setBusy] = React.useState(false);
const [deleteTarget, setDeleteTarget] = React.useState<{ id: string; name: string; count: number } | null>(null);
// Android with the native module only (#34).
const deviceSync = React.useMemo(() => deviceSyncAvailable(), []);
const exportable = React.useMemo(() => contacts.filter((cc) => !isGroup(cc)), [contacts]);
const exportLabel =
@@ -356,6 +361,17 @@ export function ContactsSettings() {
</View>
</SettingsSection>
{deviceSync && (
<DeviceSyncSection
authority={CONTACTS_AUTHORITY}
title={t('settings.contacts.device_sync_title', 'Sync to this device')}
description={t(
'settings.contacts.device_sync_desc',
'Show your address books in the Contacts app and other apps on this device. Changes sync both ways.',
)}
/>
)}
<ContactImportSheet
visible={importOpen}
onClose={() => setImportOpen(false)}
@@ -0,0 +1,532 @@
// One signed-in account in "Sync to this device" (docs/device-sync.md,
// "Settings sections"): the switch (Android's automatic sync for the
// authority), the status or the error with what to do about it, and, while
// sync is on, which collections sync, where new contacts go or who reminds of
// events, the interval, "Sync now" and Android's account settings.
import React from 'react';
import { Alert, StyleSheet, Text, View, ActivityIndicator } from 'react-native';
import { useNavigation } from '@react-navigation/native';
import type { NativeStackNavigationProp } from '@react-navigation/native-stack';
import { AlertTriangle, RefreshCw, Settings as SettingsIcon, XCircle } from 'lucide-react-native';
import { SettingItem, Select, RadioGroup, ToggleSwitch } from '../settings-section';
import Button from '../../Button';
import Dialog from '../../Dialog';
import { spacing, typography, type ThemePalette } from '../../../theme/tokens';
import { useColors } from '../../../theme/colors';
import { useLocaleStore, type TranslateFn } from '../../../stores/locale-store';
import { useSettingsStore } from '../../../stores/settings-store';
import type { AccountEntry } from '../../../stores/account-store';
import {
effectiveSelection,
emptyAccountDeviceSync,
intervalFor,
syncOnInApp,
useDeviceSyncStore,
} from '../../../stores/device-sync-store';
import {
changeReminderOwner,
changeSyncInterval,
disableDeviceSync,
enableDeviceSync,
openAndroidAccountSettings,
resolveDeletions,
resumeDeviceSync,
syncNow,
} from '../../../device-sync/app/lifecycle';
import { hasSyncPermissions, openAppSystemSettings, requestSyncPermissions } from '../../../device-sync/app/permissions';
import { CALENDAR_AUTHORITY, CONTACTS_AUTHORITY, type Authority, type ReminderOwner } from '../../../device-sync/types';
import type { RootStackParamList } from '../../../navigation/types';
import { DeviceSyncCollectionsSheet } from './DeviceSyncCollectionsSheet';
import { describeSyncStatus, type StatusAction } from './status';
import { useAndroidSync } from './use-android-sync';
import { useSyncCollections } from './use-sync-collections';
interface Props {
account: AccountEntry;
authority: Authority;
}
type Busy = 'on' | 'off' | 'sync' | null;
type Prompt =
| { kind: 'rationale' }
| { kind: 'blocked' }
| { kind: 'pending'; pending: number };
/** Asks who reminds of synced events; null when the user backed out. */
function askReminderOwner(t: TranslateFn): Promise<ReminderOwner | null> {
return new Promise((resolve) => {
let settled = false;
const answer = (owner: ReminderOwner | null) => {
if (settled) return;
settled = true;
resolve(owner);
};
Alert.alert(
t('settings.device_sync.reminder_question_title', 'Who should remind you?'),
t(
'settings.device_sync.reminder_question_message',
'Synced events can remind you from the calendar app on this device or from Bulwark. Pick one so you are not reminded twice. You can change it later.',
),
[
{ text: t('common.cancel', 'Cancel'), style: 'cancel', onPress: () => answer(null) },
{ text: t('settings.device_sync.reminder_owner_bulwark', 'Bulwark'), onPress: () => answer('bulwark') },
{ text: t('settings.device_sync.reminder_owner_device', 'Calendar app'), onPress: () => answer('device') },
],
{ cancelable: true, onDismiss: () => answer(null) },
);
});
}
/** How often the status line's "… ago" is brought up to date. */
const RELATIVE_TIME_REFRESH_MS = 30_000;
export function DeviceSyncAccountRow({ account, authority }: Props) {
const c = useColors();
const styles = React.useMemo(() => makeStyles(c), [c]);
const t = useLocaleStore((s) => s.t);
const navigation = useNavigation<NativeStackNavigationProp<RootStackParamList>>();
const storedEntry = useDeviceSyncStore((s) => s.accounts[account.id]);
const entry = React.useMemo(() => storedEntry ?? emptyAccountDeviceSync(), [storedEntry]);
const calendarReminders = useSettingsStore((s) => s.calendarNotificationsEnabled);
const isContacts = authority === CONTACTS_AUTHORITY;
const onInApp = syncOnInApp(entry, authority);
const { view, permitted, refresh } = useAndroidSync(entry.androidAccountName, authority);
const [busy, setBusy] = React.useState<Busy>(null);
// "Synced 2 min ago" keeps counting while the settings stay open.
const [now, setNow] = React.useState(() => Date.now());
React.useEffect(() => {
const timer = setInterval(() => setNow(Date.now()), RELATIVE_TIME_REFRESH_MS);
return () => clearInterval(timer);
}, []);
const [prompt, setPrompt] = React.useState<Prompt | null>(null);
const [chooserOpen, setChooserOpen] = React.useState(false);
// The switch follows Android; until Android answered, what the app knows.
const androidOn = view ? view.exists && view.automatic : onInApp;
const checked = busy === 'on' ? true : busy === 'off' ? false : androidOn;
const paused = onInApp && !!view?.exists && !view.automatic;
const showDetails = (checked || paused) && busy !== 'off';
const { state: collectionsState } = useSyncCollections(account.id, authority, showDetails);
const collections = collectionsState.kind === 'loaded' ? collectionsState.collections : null;
const selectedKeys = React.useMemo(
() => (collections ? effectiveSelection(entry, authority, collections) : null),
[collections, entry, authority],
);
const accountLabel = account.email || account.username;
const status = describeSyncStatus(
{
authority,
on: checked,
paused,
removed: !!entry.removedInAndroidSettings,
permitted,
syncing: !!view?.active,
lastRun: entry.lastRun[authority],
now,
},
t,
);
const alertFailed = (message: string) => {
Alert.alert(
t('settings.device_sync.failed_title', 'Sync could not be turned on'),
message,
[{ text: t('settings.device_sync.ok', 'OK') }],
);
};
const alertDenied = () => {
Alert.alert(
t('settings.device_sync.denied_title', 'Sync stays off'),
isContacts
? t('settings.device_sync.denied_contacts', 'Without access to contacts, Bulwark cannot put your address books on this device.')
: t('settings.device_sync.denied_calendar', 'Without access to calendars, Bulwark cannot put your calendars on this device.'),
[{ text: t('settings.device_sync.ok', 'OK') }],
);
};
const turnOn = async () => {
setPrompt(null);
setBusy('on');
try {
const permission = await requestSyncPermissions(authority);
if (permission === 'blocked') {
setPrompt({ kind: 'blocked' });
return;
}
if (permission === 'denied') {
alertDenied();
return;
}
if (authority === CALENDAR_AUTHORITY && entry.reminderOwner == null) {
// Bulwark reminds nobody while its event notifications are off: the
// calendar app does, without asking.
const owner = calendarReminders ? await askReminderOwner(t) : 'device';
if (!owner) return;
await changeReminderOwner(account.id, owner);
}
const outcome = await enableDeviceSync(account.id, authority);
if (outcome.kind === 'permission') alertDenied();
else if (outcome.kind === 'failed') alertFailed(outcome.message);
} finally {
setBusy(null);
void refresh();
}
};
const startTurnOn = async () => {
// Explain first, unless access was granted before (another account).
if (await hasSyncPermissions(authority)) void turnOn();
else setPrompt({ kind: 'rationale' });
};
const turnOff = async (force: boolean) => {
setPrompt(null);
setBusy('off');
try {
const result = await disableDeviceSync(account.id, authority, { force });
if (result.done) return;
if (!force) {
setPrompt({ kind: 'pending', pending: result.pending });
return;
}
Alert.alert(
t('settings.device_sync.turn_off_failed_title', 'Sync could not be turned off'),
t(
'settings.device_sync.turn_off_failed',
'The synced data could not be removed from this device. Sync is paused; try again later.',
),
[{ text: t('settings.device_sync.ok', 'OK') }],
);
} finally {
setBusy(null);
void refresh();
}
};
const keepSyncing = async () => {
setPrompt(null);
await resumeDeviceSync(account.id, authority);
void refresh();
};
const handleSyncNow = async () => {
setBusy('sync');
try {
await syncNow(account.id, authority);
} catch (err) {
alertFailed(err instanceof Error ? err.message : String(err));
} finally {
setBusy(null);
void refresh();
}
};
const grantAccess = async () => {
const permission = await requestSyncPermissions(authority);
if (permission === 'blocked') setPrompt({ kind: 'blocked' });
else if (permission === 'denied') alertDenied();
else if (checked) await syncNow(account.id, authority).catch(() => false);
void refresh();
};
const reviewDeletions = () => {
const resolve = (choice: 'delete' | 'restore') => {
void resolveDeletions(account.id, authority, choice)
.catch((err: unknown) => alertFailed(err instanceof Error ? err.message : String(err)))
.finally(() => { void refresh(); });
};
Alert.alert(
t('settings.device_sync.deletions_title', 'Delete them on the server too?'),
t(
'settings.device_sync.deletions_message',
'Many items were deleted on this device at once, so they were not deleted on the server. Delete them there as well, or bring them back on this device.',
),
[
{ text: t('common.cancel', 'Cancel'), style: 'cancel' },
{ text: t('settings.device_sync.deletions_restore', 'Bring them back'), onPress: () => resolve('restore') },
{ text: t('settings.device_sync.deletions_delete', 'Delete on server'), style: 'destructive', onPress: () => resolve('delete') },
],
);
};
const runAction = (action: StatusAction) => {
if (action === 'signIn') navigation.navigate('AddAccount');
else if (action === 'grantAccess') void grantAccess();
else reviewDeletions();
};
const closeChooser = (changed: boolean) => {
setChooserOpen(false);
// A new selection is loaded (or dropped) by the next sync: run it now.
// (A sync Android paused would only report that it is off.)
if (changed && checked) void syncNow(account.id, authority).catch(() => false);
};
const intervalOptions = [
{ value: '900', label: t('settings.device_sync.interval_15m', 'Every 15 minutes') },
{ value: '1800', label: t('settings.device_sync.interval_30m', 'Every 30 minutes') },
{ value: '3600', label: t('settings.device_sync.interval_1h', 'Every hour') },
{ value: '21600', label: t('settings.device_sync.interval_6h', 'Every 6 hours') },
{ value: '0', label: t('settings.device_sync.interval_manual', 'No regular sync') },
];
const writableSelected = (collections ?? []).filter((col) => !col.readOnly && selectedKeys?.includes(col.key));
const newContactsOptions = [
{ value: '', label: t('settings.device_sync.new_contacts_default', 'Default address book') },
...writableSelected.map((col) => ({
value: col.key,
label: col.isPersonal ? col.name : `${col.name} (${col.accountName})`,
})),
];
const newContactsValue = entry.newContactsAddressBook && newContactsOptions.some((o) => o.value === entry.newContactsAddressBook)
? entry.newContactsAddressBook
: '';
const collectionsDescription = collections && selectedKeys
? t('settings.device_sync.collections_count', '{selected, plural, one {# of {total} syncs} other {# of {total} sync}}', {
selected: selectedKeys.length,
total: collections.length,
})
: isContacts
? t('settings.device_sync.books_default', 'Your own address books sync; shared ones only when you pick them.')
: t('settings.device_sync.calendars_default', 'Your own calendars sync; shared ones only when you pick them.');
const statusStyle = status.tone === 'error' ? styles.statusError : status.tone === 'warning' ? styles.statusWarning : styles.statusMuted;
const busyText = busy === 'on'
? t('settings.device_sync.turning_on', 'Setting up…')
: busy === 'off'
? t('settings.device_sync.turning_off', 'Uploading changes, then removing the data from this device…')
: null;
return (
<View style={styles.block}>
<SettingItem label={accountLabel} description={busyText ?? undefined} noBorder>
<View style={styles.row}>
{(busy === 'on' || busy === 'off') && <ActivityIndicator size="small" color={c.primary} />}
<ToggleSwitch
checked={checked}
onChange={(next) => {
if (next) void startTurnOn();
else void turnOff(false);
}}
disabled={busy !== null}
accessibilityLabel={t('settings.device_sync.switch_label', 'Sync {account} to this device', { account: accountLabel })}
/>
</View>
</SettingItem>
{!busyText && (
<View style={styles.statusRow} accessibilityRole={status.tone === 'error' ? 'alert' : undefined}>
{status.tone === 'error' && <XCircle size={14} color={c.error} />}
{status.tone === 'warning' && <AlertTriangle size={14} color={c.warning} />}
<Text style={[styles.statusText, statusStyle]}>{status.text}</Text>
</View>
)}
{!busyText && status.action && (
<View style={styles.actions}>
<Button variant="outline" size="sm" onPress={() => runAction(status.action!)}>
{status.action === 'signIn'
? t('settings.device_sync.sign_in_again', 'Sign in again')
: status.action === 'grantAccess'
? t('settings.device_sync.grant_access', 'Grant access')
: t('settings.device_sync.review_deletions', 'Review deletions')}
</Button>
</View>
)}
{showDetails && view && !view.masterAutomatic && (
<Text style={[styles.statusText, styles.statusWarning]}>
{t(
'settings.device_sync.master_off',
'Auto-sync is off on this device, so syncs only run when you tap Sync now.',
)}
</Text>
)}
{showDetails && (
<View style={styles.details}>
<SettingItem
label={isContacts
? t('settings.device_sync.books_label', 'Address books')
: t('settings.device_sync.calendars_label', 'Calendars')}
description={collectionsDescription}
>
<Button variant="outline" size="sm" onPress={() => setChooserOpen(true)}>
{t('settings.device_sync.choose', 'Choose')}
</Button>
</SettingItem>
{isContacts ? (
<SettingItem
label={t('settings.device_sync.new_contacts_label', 'New contacts go to')}
description={t(
'settings.device_sync.new_contacts_desc',
'The address book for contacts created in other apps on this device.',
)}
>
<Select
value={newContactsValue}
onChange={(v) => useDeviceSyncStore.getState().setNewContactsAddressBook(account.id, v || null)}
options={newContactsOptions}
/>
</SettingItem>
) : (
<SettingItem
label={t('settings.device_sync.reminders_label', 'Reminders')}
description={entry.reminderOwner === 'bulwark' && !calendarReminders
? t(
'settings.device_sync.reminders_nobody',
"Bulwark's event notifications are off, so nothing reminds you of synced events.",
)
: t(
'settings.device_sync.reminders_desc',
'Who reminds you of synced events. The other stays quiet, so you are not reminded twice.',
)}
>
<RadioGroup
value={entry.reminderOwner ?? 'device'}
onChange={(v) => { void changeReminderOwner(account.id, v === 'bulwark' ? 'bulwark' : 'device'); }}
options={[
{ value: 'device', label: t('settings.device_sync.reminder_owner_device', 'Calendar app') },
{ value: 'bulwark', label: t('settings.device_sync.reminder_owner_bulwark', 'Bulwark') },
]}
/>
</SettingItem>
)}
<SettingItem
label={t('settings.device_sync.interval_label', 'Sync interval')}
description={t(
'settings.device_sync.interval_desc',
'How often Android syncs on its own. Edits in Bulwark and pushed changes sync sooner.',
)}
noBorder
>
<Select
value={String(intervalFor(entry, authority))}
onChange={(v) => { void changeSyncInterval(account.id, authority, Number(v)); }}
options={intervalOptions}
/>
</SettingItem>
<View style={styles.actions}>
<Button
variant="outline"
size="sm"
onPress={() => { void handleSyncNow(); }}
disabled={busy !== null || !checked}
loading={busy === 'sync'}
icon={<RefreshCw size={14} color={c.text} />}
>
{t('settings.device_sync.sync_now', 'Sync now')}
</Button>
<Button
variant="outline"
size="sm"
onPress={() => { void openAndroidAccountSettings(account.id); }}
disabled={!view?.exists}
icon={<SettingsIcon size={14} color={c.text} />}
>
{t('settings.device_sync.android_settings', 'Android account settings')}
</Button>
</View>
</View>
)}
<DeviceSyncCollectionsSheet
visible={chooserOpen}
onClose={closeChooser}
registryId={account.id}
authority={authority}
accountLabel={accountLabel}
/>
<Dialog
visible={prompt?.kind === 'rationale'}
title={isContacts
? t('settings.device_sync.rationale_title_contacts', 'Allow access to contacts')
: t('settings.device_sync.rationale_title_calendar', 'Allow access to calendars')}
message={isContacts
? t(
'settings.device_sync.rationale_contacts',
'To show your address books in the Contacts app, Bulwark needs access to the contacts on this device. It only changes the contacts of its own account.',
)
: t(
'settings.device_sync.rationale_calendar',
'To show your calendars in the Calendar app, Bulwark needs access to the calendars on this device. It only changes the calendars of its own account.',
)}
confirmText={t('settings.device_sync.continue', 'Continue')}
onConfirm={() => { void turnOn(); }}
onCancel={() => setPrompt(null)}
/>
<Dialog
visible={prompt?.kind === 'blocked'}
title={t('settings.device_sync.blocked_title', 'Access is turned off')}
message={isContacts
? t(
'settings.device_sync.blocked_contacts',
"Android no longer asks for access to contacts. Allow it in the app's settings, then turn sync on again.",
)
: t(
'settings.device_sync.blocked_calendar',
"Android no longer asks for access to calendars. Allow it in the app's settings, then turn sync on again.",
)}
confirmText={t('settings.device_sync.open_app_settings', 'Open app settings')}
onConfirm={() => {
setPrompt(null);
void openAppSystemSettings();
}}
onCancel={() => setPrompt(null)}
/>
<Dialog
visible={prompt?.kind === 'pending'}
variant="destructive"
title={t('settings.device_sync.turn_off_title', 'Turn off anyway?')}
message={prompt?.kind === 'pending' && prompt.pending > 0
? t(
'settings.device_sync.turn_off_pending',
"{count, plural, one {# change made on this device hasn't reached the server yet. It is lost if you turn sync off now.} other {# changes made on this device haven't reached the server yet. They are lost if you turn sync off now.}}",
{ count: prompt.pending },
)
: t(
'settings.device_sync.turn_off_unknown',
'Bulwark could not check whether changes made on this device reached the server. They are lost if you turn sync off now.',
)}
confirmText={t('settings.device_sync.turn_off_anyway', 'Turn off')}
cancelText={t('settings.device_sync.keep_syncing', 'Keep syncing')}
onConfirm={() => { void turnOff(true); }}
onCancel={() => { void keepSyncing(); }}
/>
</View>
);
}
function makeStyles(c: ThemePalette) {
return StyleSheet.create({
block: {
borderBottomWidth: 1,
borderBottomColor: c.border,
paddingBottom: spacing.md,
},
row: { flexDirection: 'row', alignItems: 'center', gap: spacing.sm },
statusRow: { flexDirection: 'row', alignItems: 'flex-start', gap: 6 },
statusText: { ...typography.caption, flexShrink: 1 },
statusMuted: { color: c.mutedForeground },
statusWarning: { color: c.warning },
statusError: { color: c.error },
details: {
marginTop: spacing.sm,
marginStart: spacing.sm,
paddingStart: spacing.md,
borderStartWidth: 2,
borderStartColor: c.muted,
},
actions: { flexDirection: 'row', flexWrap: 'wrap', gap: spacing.sm, marginTop: spacing.sm },
});
}
@@ -0,0 +1,310 @@
// Which address books or calendars of one account sync to this device
// (docs/device-sync.md, "Settings sections"). The account's own collections
// are on unless turned off, shared ones off unless turned on; read-only ones
// are marked, and a collection another signed-in account already syncs gets
// a warning (it would show twice on the phone).
import React from 'react';
import {
ActivityIndicator, Animated, Easing, Modal, Pressable, ScrollView, StyleSheet, Text, View,
} from 'react-native';
import { useSafeAreaInsets } from 'react-native-safe-area-context';
import { AlertTriangle, Check, X } from 'lucide-react-native';
import Button from '../../Button';
import { spacing, radius, typography, type ThemePalette } from '../../../theme/tokens';
import { useColors } from '../../../theme/colors';
import { useSheetDrag } from '../../../lib/use-sheet-drag';
import { useLocaleStore } from '../../../stores/locale-store';
import { useAccountStore } from '../../../stores/account-store';
import {
isCollectionSelected,
selectionFor,
useDeviceSyncStore,
emptyAccountDeviceSync,
} from '../../../stores/device-sync-store';
import { otherAccountsSyncing, type SyncCollection } from '../../../device-sync/app/collections';
import { CONTACTS_AUTHORITY, type Authority } from '../../../device-sync/types';
import { useSyncCollections } from './use-sync-collections';
interface Props {
visible: boolean;
/** `changed`: the selection was edited while the sheet was open. */
onClose: (changed: boolean) => void;
registryId: string;
authority: Authority;
/** The account's address, under the title. */
accountLabel: string;
}
export function DeviceSyncCollectionsSheet({ visible, onClose, registryId, authority, accountLabel }: Props) {
const c = useColors();
const styles = React.useMemo(() => makeStyles(c), [c]);
const t = useLocaleStore((s) => s.t);
const insets = useSafeAreaInsets();
const { state, reload } = useSyncCollections(registryId, authority, visible);
const entry = useDeviceSyncStore((s) => s.accounts[registryId]);
const allEntries = useDeviceSyncStore((s) => s.accounts);
const setCollectionSelected = useDeviceSyncStore((s) => s.setCollectionSelected);
const registry = useAccountStore((s) => s.accounts);
const changed = React.useRef(false);
const slideY = React.useRef(new Animated.Value(600)).current;
const overlayOpacity = React.useRef(new Animated.Value(0)).current;
const close = React.useCallback(() => {
const wasChanged = changed.current;
changed.current = false;
onClose(wasChanged);
}, [onClose]);
const dragHandlers = useSheetDrag({ slideY, closedY: 600, onClose: close });
React.useEffect(() => {
if (visible) {
changed.current = false;
Animated.parallel([
Animated.timing(slideY, { toValue: 0, duration: 220, easing: Easing.out(Easing.cubic), useNativeDriver: true }),
Animated.timing(overlayOpacity, { toValue: 1, duration: 220, useNativeDriver: true }),
]).start();
} else {
Animated.parallel([
Animated.timing(slideY, { toValue: 600, duration: 180, easing: Easing.in(Easing.cubic), useNativeDriver: true }),
Animated.timing(overlayOpacity, { toValue: 0, duration: 180, useNativeDriver: true }),
]).start();
}
}, [visible, slideY, overlayOpacity]);
const selection = selectionFor(entry ?? emptyAccountDeviceSync(), authority);
const collections = state.kind === 'loaded' || state.kind === 'loading' ? state.collections ?? [] : [];
const groups = React.useMemo(() => {
const out: Array<{ jmapAccountId: string; isPersonal: boolean; accountName: string; items: SyncCollection[] }> = [];
for (const collection of collections) {
let group = out.find((g) => g.jmapAccountId === collection.jmapAccountId);
if (!group) {
group = {
jmapAccountId: collection.jmapAccountId,
isPersonal: collection.isPersonal,
accountName: collection.accountName,
items: [],
};
out.push(group);
}
group.items.push(collection);
}
return out;
}, [collections]);
const toggle = (collection: SyncCollection) => {
const on = isCollectionSelected(selection, authority, collection);
setCollectionSelected(registryId, authority, collection.key, !on);
changed.current = true;
};
const errorText = state.kind !== 'error'
? ''
: state.error === 'signedOut'
? t('settings.device_sync.list_error_signed_out', 'This account is not signed in on this device.')
: state.error === 'auth'
? t('settings.device_sync.list_error_auth', 'The server did not accept the sign-in.')
: state.error === 'network'
? t('settings.device_sync.list_error_network', 'Could not reach the server.')
: t('settings.device_sync.list_error_server', 'The server could not list them.');
return (
<Modal visible={visible} transparent animationType="none" onRequestClose={close} statusBarTranslucent>
<Animated.View style={[styles.overlay, { opacity: overlayOpacity }]}>
<Pressable style={{ flex: 1 }} onPress={close} />
</Animated.View>
<Animated.View
style={[
styles.sheet,
{ paddingBottom: Math.max(insets.bottom, spacing.md), transform: [{ translateY: slideY }] },
]}
>
<View {...dragHandlers}>
<View style={styles.handleHit}>
<View style={styles.handle} />
</View>
<View style={styles.header}>
<View style={{ flex: 1, minWidth: 0 }}>
<Text style={styles.title}>
{authority === CONTACTS_AUTHORITY
? t('settings.device_sync.choose_books_title', 'Address books to sync')
: t('settings.device_sync.choose_calendars_title', 'Calendars to sync')}
</Text>
<Text style={styles.subtitle} numberOfLines={1}>{accountLabel}</Text>
</View>
<Pressable
onPress={close}
hitSlop={8}
style={styles.close}
accessibilityRole="button"
accessibilityLabel={t('common.close', 'Close')}
>
<X size={18} color={c.textSecondary} />
</Pressable>
</View>
</View>
<ScrollView contentContainerStyle={styles.body}>
{state.kind === 'error' && (
<View style={styles.message} accessibilityRole="alert">
<Text style={styles.errorText}>{errorText}</Text>
<Button variant="outline" size="sm" onPress={reload}>
{t('common.retry', 'Retry')}
</Button>
</View>
)}
{(state.kind === 'loading' || state.kind === 'idle') && collections.length === 0 && (
<View style={styles.message}>
<ActivityIndicator size="small" color={c.primary} />
</View>
)}
{state.kind === 'loaded' && collections.length === 0 && (
<View style={styles.message}>
<Text style={styles.muted}>
{authority === CONTACTS_AUTHORITY
? t('settings.device_sync.no_books', 'This account has no address books.')
: t('settings.device_sync.no_calendars', 'This account has no calendars to sync.')}
</Text>
</View>
)}
{groups.map((group) => (
<View key={group.jmapAccountId} style={styles.group}>
<Text style={styles.groupTitle}>
{group.isPersonal
? t('settings.device_sync.own_collections', 'Your own')
: t('settings.device_sync.shared_by', 'Shared by {name}', { name: group.accountName })}
</Text>
{group.items.map((collection) => {
const on = isCollectionSelected(selection, authority, collection);
const others = on ? otherAccountsSyncing(registryId, authority, collection, registry, allEntries) : [];
const tint = collection.color ?? c.primary;
return (
<Pressable
key={collection.key}
onPress={() => toggle(collection)}
style={({ pressed }) => [styles.row, pressed && styles.rowPressed]}
accessibilityRole="checkbox"
accessibilityState={{ checked: on }}
accessibilityLabel={collection.name}
>
<View style={[styles.box, { borderColor: tint, backgroundColor: on ? tint : 'transparent' }]}>
{on && <Check size={12} color={c.textInverse} />}
</View>
<View style={{ flex: 1, minWidth: 0 }}>
<Text style={[styles.rowName, !on && styles.rowNameOff]} numberOfLines={1}>
{collection.name}
</Text>
{(collection.readOnly || collection.isDefault) && (
<Text style={styles.muted}>
{[
collection.isDefault ? t('contacts.address_books.default', 'Default') : null,
collection.readOnly ? t('settings.device_sync.read_only', 'Read-only') : null,
].filter(Boolean).join(' · ')}
</Text>
)}
{others.length > 0 && (
<View style={styles.warningRow}>
<AlertTriangle size={12} color={c.warning} />
<Text style={styles.warningText}>
{t(
'settings.device_sync.also_synced_by',
'Also synced for {accounts}, so it shows twice on this device.',
{ accounts: others.join(', ') },
)}
</Text>
</View>
)}
</View>
</Pressable>
);
})}
</View>
))}
<Text style={styles.hint}>
{authority === CONTACTS_AUTHORITY
? t(
'settings.device_sync.books_hint',
'Your own address books sync unless you turn them off; shared ones only when you turn them on.',
)
: t(
'settings.device_sync.calendars_hint',
'Your own calendars sync unless you turn them off; shared ones only when you turn them on. Task lists stay in Bulwark.',
)}
</Text>
</ScrollView>
</Animated.View>
</Modal>
);
}
function makeStyles(c: ThemePalette) {
return StyleSheet.create({
overlay: { ...StyleSheet.absoluteFillObject, backgroundColor: 'rgba(0,0,0,0.5)' },
sheet: {
position: 'absolute',
left: 0,
right: 0,
bottom: 0,
maxHeight: '80%',
backgroundColor: c.popover,
borderTopLeftRadius: radius.lg,
borderTopRightRadius: radius.lg,
borderTopWidth: 1,
borderColor: c.border,
paddingTop: spacing.sm,
},
handleHit: { alignItems: 'center', paddingTop: spacing.xs, paddingBottom: spacing.sm },
handle: { width: 36, height: 4, borderRadius: 2, backgroundColor: c.border },
header: {
flexDirection: 'row',
alignItems: 'center',
gap: spacing.sm,
paddingHorizontal: spacing.lg,
paddingBottom: spacing.sm,
borderBottomWidth: 1,
borderBottomColor: c.border,
},
title: { ...typography.bodySemibold, color: c.text },
subtitle: { ...typography.caption, color: c.mutedForeground },
close: { width: 28, height: 28, alignItems: 'center', justifyContent: 'center', borderRadius: radius.xs },
body: { paddingBottom: spacing.md },
message: { alignItems: 'center', gap: spacing.sm, padding: spacing.lg },
errorText: { ...typography.caption, color: c.error, textAlign: 'center' },
muted: { ...typography.caption, color: c.mutedForeground },
group: { paddingTop: spacing.sm },
groupTitle: {
...typography.captionMedium,
color: c.mutedForeground,
paddingHorizontal: spacing.lg,
paddingVertical: spacing.xs,
},
row: {
flexDirection: 'row',
alignItems: 'center',
gap: spacing.md,
paddingHorizontal: spacing.lg,
paddingVertical: spacing.sm + 2,
minHeight: 44,
},
rowPressed: { backgroundColor: c.surfaceHover },
box: {
width: 18,
height: 18,
borderRadius: radius.xs,
borderWidth: 2,
alignItems: 'center',
justifyContent: 'center',
},
rowName: { ...typography.body, color: c.text },
rowNameOff: { color: c.textSecondary },
warningRow: { flexDirection: 'row', alignItems: 'flex-start', gap: 4, marginTop: 2 },
warningText: { ...typography.caption, color: c.warning, flex: 1 },
hint: {
...typography.caption,
color: c.mutedForeground,
paddingHorizontal: spacing.lg,
paddingTop: spacing.md,
},
});
}
@@ -0,0 +1,118 @@
// "Sync to this device" in Settings → Contacts and Settings → Calendar
// (Android only, #34; docs/device-sync.md "Settings sections"): one block per
// signed-in account, then the accounts the app signed out while they synced
// (their data stays until the user signs in again or removes it). The panes
// pass the title and description, so the settings search indexes them where
// they are rendered.
import React from 'react';
import { StyleSheet, View } from 'react-native';
import { useNavigation } from '@react-navigation/native';
import type { NativeStackNavigationProp } from '@react-navigation/native-stack';
import { SettingsSection, SettingItem } from '../settings-section';
import Button from '../../Button';
import Dialog from '../../Dialog';
import { spacing, type ThemePalette } from '../../../theme/tokens';
import { useColors } from '../../../theme/colors';
import { useAccountStore } from '../../../stores/account-store';
import { useDeviceSyncStore } from '../../../stores/device-sync-store';
import { useLocaleStore } from '../../../stores/locale-store';
import { removeSuspendedAccount } from '../../../device-sync/app/lifecycle';
import type { Authority } from '../../../device-sync/types';
import type { RootStackParamList } from '../../../navigation/types';
import { DeviceSyncAccountRow } from './DeviceSyncAccountRow';
interface Props {
authority: Authority;
title: string;
description: string;
}
export function DeviceSyncSection({ authority, title, description }: Props) {
const c = useColors();
const styles = React.useMemo(() => makeStyles(c), [c]);
const accounts = useAccountStore((s) => s.accounts);
const syncEntries = useDeviceSyncStore((s) => s.accounts);
const suspended = React.useMemo(
() => Object.keys(syncEntries)
.filter((id) => syncEntries[id].suspended && !accounts.some((a) => a.id === id))
.sort(),
[syncEntries, accounts],
);
if (accounts.length === 0 && suspended.length === 0) return null;
return (
<View style={styles.section}>
<SettingsSection title={title} description={description}>
{accounts.map((account) => (
<DeviceSyncAccountRow key={account.id} account={account} authority={authority} />
))}
{suspended.map((registryId) => (
<SuspendedAccountRow key={registryId} registryId={registryId} styles={styles} />
))}
</SettingsSection>
</View>
);
}
// An account the app signed out (its sign-in failed) while it synced: sync is
// off, the data stays. Signing in again resumes it; removing drops it.
function SuspendedAccountRow({ registryId, styles }: { registryId: string; styles: ReturnType<typeof makeStyles> }) {
const t = useLocaleStore((s) => s.t);
const navigation = useNavigation<NativeStackNavigationProp<RootStackParamList>>();
const [confirming, setConfirming] = React.useState(false);
const [removing, setRemoving] = React.useState(false);
const remove = async () => {
setConfirming(false);
setRemoving(true);
try {
await removeSuspendedAccount(registryId);
} finally {
setRemoving(false);
}
};
return (
<View style={styles.block}>
<SettingItem
label={registryId}
description={t(
'settings.device_sync.suspended_desc',
'Signed out. Its contacts and calendars stay on this device, with the changes made here, and sync again once you sign in.',
)}
noBorder
/>
<View style={styles.actions}>
<Button variant="outline" size="sm" onPress={() => navigation.navigate('AddAccount')}>
{t('settings.device_sync.sign_in_again', 'Sign in again')}
</Button>
<Button variant="outline" size="sm" onPress={() => setConfirming(true)} loading={removing} disabled={removing}>
{t('settings.device_sync.remove_from_device', 'Remove from this device')}
</Button>
</View>
<Dialog
visible={confirming}
variant="destructive"
title={t('settings.device_sync.remove_title', 'Remove from this device?')}
message={t(
'settings.device_sync.remove_message',
"The account's contacts and calendars are removed from this device. Changes made here that haven't reached the server are lost.",
)}
confirmText={t('settings.device_sync.remove', 'Remove')}
onConfirm={() => { void remove(); }}
onCancel={() => setConfirming(false)}
/>
</View>
);
}
function makeStyles(c: ThemePalette) {
return StyleSheet.create({
section: { marginTop: spacing.xxxl },
block: {
borderBottomWidth: 1,
borderBottomColor: c.border,
paddingBottom: spacing.md,
},
actions: { flexDirection: 'row', flexWrap: 'wrap', gap: spacing.sm },
});
}
@@ -0,0 +1,81 @@
import { describe, it, expect } from 'vitest';
import { translate, type MessageParams } from '../../../../i18n';
import { CALENDAR_AUTHORITY, CONTACTS_AUTHORITY, type RunStatus } from '../../../../device-sync/types';
import { describeSyncStatus, relativeTime, type StatusInput } from '../status';
const t = (key: string, fallback?: string, params?: MessageParams) => translate('en', key, fallback, params);
const NOW = Date.UTC(2026, 8, 27, 12, 0, 0);
const run = (outcome: RunStatus['outcome'], extra: Partial<RunStatus> = {}): RunStatus => ({
at: NOW - 5 * 60_000,
outcome,
durationMs: 100,
conflicts: 0,
itemErrors: 0,
stats: {
downloaded: { created: 0, updated: 0, deleted: 0 },
uploaded: { created: 0, updated: 0, deleted: 0 },
entries: 0,
skipped: 0,
},
...extra,
});
const base: StatusInput = {
authority: CONTACTS_AUTHORITY,
on: true,
paused: false,
removed: false,
permitted: true,
syncing: false,
now: NOW,
};
describe('describeSyncStatus', () => {
it('says off, or that the account was removed in Android settings', () => {
expect(describeSyncStatus({ ...base, on: false }, t)).toEqual({ text: 'Off', tone: 'muted' });
expect(describeSyncStatus({ ...base, on: false, removed: true }, t).tone).toBe('warning');
});
it('puts a revoked permission first, with a way to grant it again', () => {
const line = describeSyncStatus({ ...base, permitted: false, lastRun: run('ok') }, t);
expect(line).toMatchObject({ tone: 'error', action: 'grantAccess' });
expect(line.text).toContain('contacts');
expect(describeSyncStatus({ ...base, authority: CALENDAR_AUTHORITY, permitted: false }, t).text).toContain('calendars');
});
it('says when Android paused the account', () => {
expect(describeSyncStatus({ ...base, on: false, paused: true }, t))
.toEqual({ text: 'Paused in Android settings', tone: 'warning' });
});
it('shows a running sync, then when it last synced', () => {
expect(describeSyncStatus({ ...base, syncing: true, lastRun: run('ok') }, t).text).toBe('Syncing…');
expect(describeSyncStatus({ ...base, lastRun: run('ok') }, t)).toEqual({ text: 'Synced 5 min ago', tone: 'muted' });
expect(describeSyncStatus({ ...base, lastRun: run('ok', { itemErrors: 2 }) }, t)).toEqual({
text: 'Synced 5 min ago · 2 items could not be synced.',
tone: 'warning',
});
expect(describeSyncStatus(base, t).text).toBe('Waiting for the first sync');
});
it('offers what fixes a failed run', () => {
expect(describeSyncStatus({ ...base, lastRun: run('auth') }, t)).toMatchObject({ tone: 'error', action: 'signIn' });
expect(describeSyncStatus({ ...base, lastRun: run('tooManyDeletions') }, t)).toMatchObject({ action: 'reviewDeletions' });
expect(describeSyncStatus({ ...base, lastRun: run('permission') }, t)).toMatchObject({ action: 'grantAccess' });
expect(describeSyncStatus({ ...base, lastRun: run('io') }, t).text).toBe('Could not reach the server 5 min ago. Android tries again.');
expect(describeSyncStatus({ ...base, lastRun: run('internal', { message: 'Boom' }) }, t).text)
.toBe('The last sync failed: Boom');
// A run that found sync off says nothing new.
expect(describeSyncStatus({ ...base, lastRun: run('disabled') }, t).text).toBe('Waiting for the next sync');
});
});
describe('relativeTime', () => {
it('counts minutes, hours and days', () => {
expect(relativeTime(NOW - 10_000, NOW, t)).toBe('just now');
expect(relativeTime(NOW - 3 * 3600_000, NOW, t)).toBe('3 h ago');
expect(relativeTime(NOW - 2 * 86_400_000, NOW, t)).toBe('2 d ago');
});
});
@@ -0,0 +1,133 @@
// The status line of one account's device sync in Settings: off, paused in
// Android settings, syncing, when it last synced, or what went wrong and what
// the user can do about it (docs/device-sync.md, "Settings sections",
// "Failure matrix").
import { CONTACTS_AUTHORITY, type Authority, type RunStatus } from '../../../device-sync/types';
import type { TranslateFn } from '../../../stores/locale-store';
/** What the status line offers to do. */
export type StatusAction = 'signIn' | 'grantAccess' | 'reviewDeletions';
export interface StatusLine {
text: string;
tone: 'muted' | 'warning' | 'error';
action?: StatusAction;
}
export interface StatusInput {
authority: Authority;
/** The switch: Android syncs this authority automatically. */
on: boolean;
/** On in the app but off in Android's settings for the account. */
paused: boolean;
/** The Android account was removed in Android Settings. */
removed: boolean;
/** The runtime permissions; null while unknown. */
permitted: boolean | null;
syncing: boolean;
lastRun?: RunStatus;
now: number;
}
/** "just now", "5 min ago", … */
export function relativeTime(at: number, now: number, t: TranslateFn): string {
const diff = Math.max(0, now - at);
if (diff < 60_000) return t('settings.offline.just_now', 'just now');
if (diff < 60 * 60_000) return t('settings.offline.minutes_ago', '{count} min ago', { count: Math.round(diff / 60_000) });
if (diff < 24 * 60 * 60_000) {
return t('settings.offline.hours_ago', '{count} h ago', { count: Math.round(diff / (60 * 60_000)) });
}
return t('settings.offline.days_ago', '{count} d ago', { count: Math.round(diff / (24 * 60 * 60_000)) });
}
function permissionLine(authority: Authority, t: TranslateFn): StatusLine {
return {
text: authority === CONTACTS_AUTHORITY
? t('settings.device_sync.status_permission_contacts', 'Access to contacts was turned off, so nothing syncs.')
: t('settings.device_sync.status_permission_calendar', 'Access to calendars was turned off, so nothing syncs.'),
tone: 'error',
action: 'grantAccess',
};
}
function runLine(run: RunStatus, input: StatusInput, t: TranslateFn): StatusLine | null {
const when = relativeTime(run.at, input.now, t);
switch (run.outcome) {
case 'ok': {
const synced = t('settings.device_sync.status_synced', 'Synced {when}', { when });
if (run.itemErrors <= 0) return { text: synced, tone: 'muted' };
const skipped = t(
'settings.device_sync.status_item_errors',
'{count, plural, one {# item could not be synced.} other {# items could not be synced.}}',
{ count: run.itemErrors },
);
return { text: `${synced} · ${skipped}`, tone: 'warning' };
}
case 'auth':
return {
text: t('settings.device_sync.status_auth', 'The server no longer accepts the sign-in. Sign in again to keep syncing.'),
tone: 'error',
action: 'signIn',
};
case 'permission':
return permissionLine(input.authority, t);
case 'tooManyDeletions':
return {
text: t(
'settings.device_sync.status_too_many_deletions',
'Many items were deleted on this device. They are not deleted on the server until you confirm.',
),
tone: 'warning',
action: 'reviewDeletions',
};
case 'io':
return {
text: t('settings.device_sync.status_io', 'Could not reach the server {when}. Android tries again.', { when }),
tone: 'warning',
};
case 'unsupported':
return {
text: input.authority === CONTACTS_AUTHORITY
? t('settings.device_sync.status_unsupported_contacts', 'The server offers no address books for this account.')
: t('settings.device_sync.status_unsupported_calendar', 'The server offers no calendars for this account.'),
tone: 'error',
};
case 'safetyAbort':
return {
text: t(
'settings.device_sync.status_safety_abort',
'Stopped: the server returned nothing while this device still holds items. Check the server, then sync again.',
),
tone: 'error',
};
case 'cancelled':
return { text: t('settings.device_sync.status_cancelled', 'The last sync stopped early. It continues next time.'), tone: 'muted' };
case 'internal':
return {
text: run.message
? t('settings.device_sync.status_failed', 'The last sync failed: {message}', { message: run.message })
: t('settings.device_sync.status_failed_plain', 'The last sync failed.'),
tone: 'error',
};
case 'disabled':
default:
return null;
}
}
export function describeSyncStatus(input: StatusInput, t: TranslateFn): StatusLine {
if (!input.on && !input.paused) {
return input.removed
? {
text: t('settings.device_sync.status_removed', 'Removed in Android settings. Turn on to add the account again.'),
tone: 'warning',
}
: { text: t('settings.device_sync.status_off', 'Off'), tone: 'muted' };
}
if (input.permitted === false) return permissionLine(input.authority, t);
if (input.paused) return { text: t('settings.device_sync.status_paused', 'Paused in Android settings'), tone: 'warning' };
if (input.syncing) return { text: t('settings.device_sync.status_syncing', 'Syncing…'), tone: 'muted' };
if (!input.lastRun) return { text: t('settings.device_sync.status_waiting', 'Waiting for the first sync'), tone: 'muted' };
return runLine(input.lastRun, input, t)
?? { text: t('settings.device_sync.status_waiting_next', 'Waiting for the next sync'), tone: 'muted' };
}
@@ -0,0 +1,101 @@
// Android's side of one account's device sync for the settings: whether the
// Android account exists, its automatic sync for the authority (the switch),
// the device's master auto-sync, whether a sync runs or waits, and whether
// the runtime permissions are still granted. Re-read on mount, when the app
// returns to the foreground, when accounts of our type change, and every few
// seconds while a sync runs or waits.
import React from 'react';
import { AppState } from 'react-native';
import { getSyncSettings, listAndroidAccounts, onAccountsChanged } from '../../../device-sync/native';
import { hasSyncPermissions } from '../../../device-sync/app/permissions';
import type { Authority } from '../../../device-sync/types';
export interface AndroidSyncView {
/** The Android account exists. */
exists: boolean;
/** Automatic sync for the authority: the toggle in Settings → Accounts. */
automatic: boolean;
/** The device's "Auto-sync data". */
masterAutomatic: boolean;
active: boolean;
pending: boolean;
}
const POLL_MS = 3000;
export function useAndroidSync(accountName: string | undefined, authority: Authority): {
view: AndroidSyncView | null;
permitted: boolean | null;
refresh: () => Promise<void>;
} {
const [view, setView] = React.useState<AndroidSyncView | null>(null);
const [permitted, setPermitted] = React.useState<boolean | null>(null);
const alive = React.useRef(true);
React.useEffect(() => {
alive.current = true;
return () => { alive.current = false; };
}, []);
// Read at call time: turning sync on creates the account while the
// caller still holds the refresh of the render before.
const nameRef = React.useRef(accountName);
nameRef.current = accountName;
// Only the latest read may land; an older one resolving late is stale.
const reads = React.useRef(0);
const refresh = React.useCallback(async () => {
const read = ++reads.current;
const accountName = nameRef.current;
const granted = await hasSyncPermissions(authority);
let next: AndroidSyncView = { exists: false, automatic: false, masterAutomatic: true, active: false, pending: false };
if (accountName) {
try {
const accounts = await listAndroidAccounts();
if (accounts.some((a) => a.name === accountName)) {
const settings = await getSyncSettings(accountName);
const own = settings.authorities?.[authority];
next = {
exists: true,
automatic: !!own?.automatic,
masterAutomatic: settings.masterAutomatic !== false,
active: !!own?.active,
pending: !!own?.pending,
};
}
} catch {
// Shown as off until the next read.
}
}
if (!alive.current || read !== reads.current) return;
setPermitted(granted);
setView(next);
}, [authority]);
React.useEffect(() => {
void refresh();
}, [refresh, accountName]);
React.useEffect(() => {
const subscription = AppState.addEventListener('change', (state) => {
if (state === 'active') void refresh();
});
let unsubscribe: () => void = () => undefined;
try {
unsubscribe = onAccountsChanged(() => { void refresh(); });
} catch {
// Foreground reads still catch up.
}
return () => {
subscription.remove();
unsubscribe();
};
}, [refresh]);
const busy = !!view?.active || !!view?.pending;
React.useEffect(() => {
if (!busy) return undefined;
const timer = setInterval(() => { void refresh(); }, POLL_MS);
return () => clearInterval(timer);
}, [busy, refresh]);
return { view, permitted, refresh };
}
@@ -0,0 +1,70 @@
// The address books or calendars of one account for the device sync settings,
// listed through the account's own client (device-sync/app/collections) and
// cached for a little while, so the chooser, the counts and the "new contacts
// go to" picker share one request.
import React from 'react';
import {
cachedSyncCollections,
CollectionsError,
listSyncCollections,
onSyncCollectionsLoaded,
type CollectionsErrorKind,
type SyncCollection,
} from '../../../device-sync/app/collections';
import { CALENDAR_AUTHORITY, type Authority } from '../../../device-sync/types';
import { useAuthStore } from '../../../stores/auth-store';
import { useCalendarSubscriptionsStore } from '../../../stores/calendar-subscriptions-store';
export type CollectionsState =
| { kind: 'idle' }
| { kind: 'loading'; collections: SyncCollection[] | null }
| { kind: 'loaded'; collections: SyncCollection[] }
| { kind: 'error'; error: CollectionsErrorKind };
export function useSyncCollections(registryId: string, authority: Authority, active: boolean): {
state: CollectionsState;
reload: () => void;
} {
const [state, setState] = React.useState<CollectionsState>(() => {
const cached = cachedSyncCollections(registryId, authority);
return cached ? { kind: 'loaded', collections: cached } : { kind: 'idle' };
});
const [attempt, setAttempt] = React.useState(0);
// Calendars mirroring subscribed feeds are read-only on the device. Only
// the active account's subscriptions are known here.
const isActive = useAuthStore((s) => s.activeAccountId === registryId);
const subscriptions = useCalendarSubscriptionsStore((s) => s.subscriptions);
const feeds = React.useMemo(
() => (authority === CALENDAR_AUTHORITY && isActive
? subscriptions.map((sub) => ({ calendarId: sub.calendarId, accountId: sub.accountId }))
: []),
[authority, isActive, subscriptions],
);
React.useEffect(() => {
if (!active) return undefined;
let cancelled = false;
const force = attempt > 0;
setState((prev) => ({ kind: 'loading', collections: prev.kind === 'loaded' ? prev.collections : null }));
listSyncCollections(registryId, authority, { force, feeds })
.then((collections) => {
if (!cancelled) setState({ kind: 'loaded', collections });
})
.catch((err: unknown) => {
if (cancelled) return;
setState({ kind: 'error', error: err instanceof CollectionsError ? err.kind : 'server' });
});
return () => { cancelled = true; };
}, [registryId, authority, active, attempt, feeds]);
// The chooser loads its own, fresher list: the row's counts follow it.
React.useEffect(
() => onSyncCollectionsLoaded((id, auth, collections) => {
if (id === registryId && auth === authority) setState({ kind: 'loaded', collections });
}),
[registryId, authority],
);
const reload = React.useCallback(() => setAttempt((n) => n + 1), []);
return { state, reload };
}
+39
View File
@@ -0,0 +1,39 @@
// Pure decisions behind the toast's swipe-to-dismiss. On the phone a toast has
// no close button; swiping it sideways dismisses it (repos/branding/APP.md).
// Like swipe-gesture.ts for list rows, this sits outside the component
// because the PanResponder is built once: everything it decides on arrives as
// an argument, so nothing can go stale.
/** The subset of RN's PanResponder gesture state this logic needs. */
export interface ToastSwipeGesture {
dx: number;
dy: number;
vx: number;
}
const MIN_DX_TO_CLAIM = 6;
const DIRECTION_BIAS = 1.5; // dx must dominate dy by this factor
// A release past this share of the card's width dismisses it, capped so a
// wide screen does not ask for a long drag.
const DISMISS_FRACTION = 0.35;
const MAX_DISMISS_DISTANCE = 120;
// A short, fast flick dismisses too.
const FLING_DX = 30;
const FLING_VX = 0.5;
/** Whether a move is a sideways drag the toast should take over. */
export function shouldClaimToastSwipe(g: ToastSwipeGesture): boolean {
if (Math.abs(g.dx) < MIN_DX_TO_CLAIM) return false;
return Math.abs(g.dx) >= Math.abs(g.dy) * DIRECTION_BIAS;
}
/**
* What releasing the drag does: 1 or -1 dismisses the toast towards that
* side, 0 springs it back. `width` is the card's width (0 before layout).
*/
export function toastSwipeRelease(g: ToastSwipeGesture, width: number): 1 | -1 | 0 {
const distance = width > 0 ? Math.min(MAX_DISMISS_DISTANCE, width * DISMISS_FRACTION) : MAX_DISMISS_DISTANCE;
if (g.dx >= distance || (g.dx > FLING_DX && g.vx >= FLING_VX)) return 1;
if (g.dx <= -distance || (g.dx < -FLING_DX && g.vx <= -FLING_VX)) return -1;
return 0;
}
@@ -0,0 +1,244 @@
import { describe, it, expect, beforeEach } from 'vitest';
import {
CollectionsError,
forgetSyncCollections,
listSyncCollections,
onSyncCollectionsLoaded,
otherAccountsSyncing,
type CollectionsClient,
} from '../../app/collections';
import { CALENDAR_AUTHORITY, CONTACTS_AUTHORITY, JMAP_CALENDARS, JMAP_CONTACTS } from '../../types';
import { useDeviceSyncStore, waitForDeviceSyncHydration } from '../../../stores/device-sync-store';
import type { JMAPMethodCall } from '../../../api/types';
type Handler = (args: Record<string, any>, calls: JMAPMethodCall[]) => any;
// A client for one account with the personal JMAP account `c` and a shared
// account `team`, answering the calls the listing makes.
function fakeClient(handlers: Record<string, Handler>, options: { loaded?: boolean | Error; maxCalls?: number } = {}) {
const requests: JMAPMethodCall[][] = [];
const client: CollectionsClient = {
async loadAccount() {
if (options.loaded instanceof Error) throw options.loaded;
return options.loaded ?? true;
},
get currentSession() {
return {
primaryAccounts: { [JMAP_CONTACTS]: 'c', [JMAP_CALENDARS]: 'c' },
accounts: {
c: { name: 'alice@example.org', isPersonal: true, accountCapabilities: { [JMAP_CONTACTS]: {}, [JMAP_CALENDARS]: {} } },
team: { name: 'Team', isPersonal: false, accountCapabilities: { [JMAP_CONTACTS]: {}, [JMAP_CALENDARS]: {} } },
mailonly: { name: 'Archive', isPersonal: false, accountCapabilities: {} },
},
};
},
async request(calls) {
requests.push(calls);
const responses: Array<[string, any, string]> = [];
for (const [name, args, id] of calls) {
const handler = handlers[`${name} ${args.accountId}`] ?? handlers[name];
if (!handler) {
responses.push(['error', { type: 'unknownMethod' }, id]);
continue;
}
const body = handler(args, calls);
responses.push(body === null ? ['error', { type: 'forbidden' }, id] : [name, body, id]);
}
return { methodResponses: responses };
},
getMaxCallsInRequest: () => options.maxCalls ?? 16,
};
return { client, requests };
}
beforeEach(async () => {
await waitForDeviceSyncHydration();
useDeviceSyncStore.setState({ accounts: {} });
forgetSyncCollections();
});
describe('listSyncCollections', () => {
it('lists the personal address books first, then the shared ones, and marks read-only ones', async () => {
const { client, requests } = fakeClient({
'AddressBook/get c': () => ({ list: [
{ id: 'b2', name: 'Work', sortOrder: 2, myRights: { mayWrite: true } },
{ id: 'b1', name: 'Personal', isDefault: true, sortOrder: 1, myRights: { mayWrite: true } },
] }),
'AddressBook/get team': () => ({ list: [{ id: 'b1', name: 'Team contacts', myRights: { mayWrite: false } }] }),
});
const list = await listSyncCollections('alice@x', CONTACTS_AUTHORITY, { client });
expect(list.map((c) => [c.key, c.name, c.isPersonal, c.readOnly, c.isDefault])).toEqual([
['c/b1', 'Personal', true, false, true],
['c/b2', 'Work', true, false, false],
['team/b1', 'Team contacts', false, true, false],
]);
expect(list[2].accountName).toBe('Team');
// Explicit properties, the contacts capability, and never the mail-only account.
const [calls] = requests;
expect(calls.map(([name, args]) => `${name} ${args.accountId}`)).toEqual(['AddressBook/get c', 'AddressBook/get team']);
expect(calls[0][1].properties).toEqual(expect.arrayContaining(['id', 'name', 'myRights']));
});
it('tells every view of the account when a fresh list arrived', async () => {
const { client } = fakeClient({
'AddressBook/get c': () => ({ list: [{ id: 'b1', name: 'Personal' }] }),
'AddressBook/get team': () => ({ list: [] }),
});
const seen: string[][] = [];
const stop = onSyncCollectionsLoaded((id, authority, list) => seen.push([id, authority, ...list.map((c) => c.key)]));
await listSyncCollections('alice@x', CONTACTS_AUTHORITY, { client });
stop();
await listSyncCollections('alice@x', CONTACTS_AUTHORITY, { client, force: true });
expect(seen).toEqual([['alice@x', CONTACTS_AUTHORITY, 'c/b1']]);
});
it('remembers the personal JMAP account for the push routes', async () => {
const { client } = fakeClient({ 'AddressBook/get': () => ({ list: [] }) });
await listSyncCollections('alice@x', CONTACTS_AUTHORITY, { client });
expect(useDeviceSyncStore.getState().accounts['alice@x']?.primaryJmapAccounts).toEqual({ [CONTACTS_AUTHORITY]: 'c' });
});
it('keeps the list when a shared account refuses', async () => {
const { client } = fakeClient({
'AddressBook/get c': () => ({ list: [{ id: 'b1', name: 'Personal' }] }),
'AddressBook/get team': () => null,
});
const list = await listSyncCollections('alice@x', CONTACTS_AUTHORITY, { client });
expect(list.map((c) => c.key)).toEqual(['c/b1']);
});
it('leaves out calendars it may not read and calendars holding only tasks', async () => {
// What each calendar's scan finds: `todo` holds only tasks, `empty` nothing.
const scans: Record<string, any[]> = {
cal1: [{ id: 'e', '@type': 'Event' }],
todo: [{ id: 't', '@type': 'Task' }, { id: 'u', due: '2026-10-01T00:00:00' }],
empty: [],
};
const { client } = fakeClient({
'Calendar/get c': () => ({ list: [
{ id: 'cal1', name: 'Personal', color: '#ff0000', myRights: { mayReadItems: true, mayWriteAll: true } },
{ id: 'todo', name: 'Tasks', myRights: { mayReadItems: true, mayWriteAll: true } },
{ id: 'empty', name: 'New', myRights: { mayReadItems: true, mayWriteAll: true } },
{ id: 'hidden', name: 'Free/busy only', myRights: { mayReadItems: false } },
] }),
'Calendar/get team': () => ({ list: [
{ id: 'cal1', name: 'Team', myRights: { mayReadItems: true, mayWriteAll: false, mayWriteOwn: false } },
] }),
'CalendarEvent/query': (args) => ({ ids: (scans[args.filter.inCalendar] ?? []).map((o) => o.id) }),
'CalendarEvent/get': (args, calls) => {
// The get reads the ids of the query it references.
const query = calls.find(([, , id]) => id === args['#ids'].resultOf)!;
return { list: scans[(query[1].filter as { inCalendar: string }).inCalendar] ?? [] };
},
});
const list = await listSyncCollections('alice@x', CALENDAR_AUTHORITY, { client });
// By name within an account (no sort order given).
expect(list.map((c) => [c.key, c.readOnly])).toEqual([
['c/empty', false],
['c/cal1', false],
['team/cal1', true],
]);
expect(list.find((c) => c.key === 'c/cal1')?.color).toBe('#ff0000');
});
it('marks calendars mirroring a subscribed feed read-only', async () => {
const { client } = fakeClient({
'Calendar/get c': () => ({ list: [
{ id: 'feed', name: 'Holidays', myRights: { mayReadItems: true, mayWriteAll: true } },
] }),
'Calendar/get team': () => ({ list: [] }),
'CalendarEvent/query': () => ({ ids: [] }),
'CalendarEvent/get': () => ({ list: [] }),
});
const list = await listSyncCollections('alice@x', CALENDAR_AUTHORITY, { client, feeds: [{ calendarId: 'feed' }] });
expect(list.map((c) => [c.key, c.readOnly])).toEqual([['c/feed', true]]);
});
it('keeps a query and the get that reads it in one request', async () => {
const { client, requests } = fakeClient({
'Calendar/get': () => ({ list: [
{ id: 'a', name: 'A' }, { id: 'b', name: 'B' }, { id: 'c', name: 'C' },
] }),
'CalendarEvent/query': () => ({ ids: [] }),
'CalendarEvent/get': () => ({ list: [] }),
}, { maxCalls: 5 });
await listSyncCollections('alice@x', CALENDAR_AUTHORITY, { client });
const scanRequests = requests.filter((calls) => calls[0][0] === 'CalendarEvent/query');
for (const calls of scanRequests) {
expect(calls.length % 2).toBe(0);
expect(calls.length).toBeLessThanOrEqual(5);
}
});
it('says why the list could not be loaded', async () => {
const signedOut = fakeClient({}, { loaded: false }).client;
await expect(listSyncCollections('alice@x', CONTACTS_AUTHORITY, { client: signedOut }))
.rejects.toMatchObject({ kind: 'signedOut' });
const auth = Object.assign(new Error('Invalid credentials'), { name: 'AuthenticationError' });
await expect(listSyncCollections('alice@x', CONTACTS_AUTHORITY, { client: fakeClient({}, { loaded: auth }).client }))
.rejects.toBeInstanceOf(CollectionsError);
await expect(listSyncCollections('alice@x', CONTACTS_AUTHORITY, { client: fakeClient({}, { loaded: auth }).client }))
.rejects.toMatchObject({ kind: 'auth' });
const offline = Object.assign(new Error('Server unreachable'), { name: 'NetworkError' });
await expect(listSyncCollections('alice@x', CONTACTS_AUTHORITY, { client: fakeClient({}, { loaded: offline }).client }))
.rejects.toMatchObject({ kind: 'network' });
});
});
describe('otherAccountsSyncing', () => {
const registry = [
{ id: 'alice@mail.example.org', serverUrl: 'https://mail.example.org', email: 'alice@example.org', username: 'alice' },
{ id: 'bob@mail.example.org', serverUrl: 'https://mail.example.org/', email: 'bob@example.org', username: 'bob' },
{ id: 'bob@other.example.net', serverUrl: 'https://other.example.net', email: 'bob@example.net', username: 'bob' },
];
it('names the other accounts on the same server that sync the same collection', () => {
const accounts = {
'bob@mail.example.org': {
contactsSelection: { 'team/b1': true },
calendarSelection: {},
reminderOwner: null,
intervalSeconds: {},
lastRun: {},
enabled: { [CONTACTS_AUTHORITY]: true },
},
// Another server: the same JMAP ids mean other data.
'bob@other.example.net': {
contactsSelection: { 'team/b1': true },
calendarSelection: {},
reminderOwner: null,
intervalSeconds: {},
lastRun: {},
enabled: { [CONTACTS_AUTHORITY]: true },
},
};
const collection = { key: 'team/b1', jmapAccountId: 'team' };
expect(otherAccountsSyncing('alice@mail.example.org', CONTACTS_AUTHORITY, collection, registry, accounts))
.toEqual(['bob@example.org']);
// Not for another authority, nor once Bob's contacts sync is off.
expect(otherAccountsSyncing('alice@mail.example.org', CALENDAR_AUTHORITY, collection, registry, accounts)).toEqual([]);
accounts['bob@mail.example.org'].enabled = { [CONTACTS_AUTHORITY]: false };
expect(otherAccountsSyncing('alice@mail.example.org', CONTACTS_AUTHORITY, collection, registry, accounts)).toEqual([]);
});
it("counts the other account's own collections, which sync by default", () => {
const accounts = {
'bob@mail.example.org': {
contactsSelection: {},
calendarSelection: {},
reminderOwner: null,
intervalSeconds: {},
lastRun: {},
enabled: { [CALENDAR_AUTHORITY]: true },
primaryJmapAccounts: { [CALENDAR_AUTHORITY]: 'bobacct' },
},
};
expect(otherAccountsSyncing(
'alice@mail.example.org',
CALENDAR_AUTHORITY,
{ key: 'bobacct/cal1', jmapAccountId: 'bobacct' },
registry,
accounts,
)).toEqual(['bob@example.org']);
});
});
@@ -0,0 +1,591 @@
import { describe, it, expect, vi, beforeEach } from 'vitest';
import AsyncStorage from '@react-native-async-storage/async-storage';
import {
CALENDAR_AUTHORITY,
CONTACTS_AUTHORITY,
type Authority,
} from '../../types';
// A fake of the native module: Android's accounts of our type and their sync
// settings, with every call logged in order.
const h = vi.hoisted(() => {
type Settings = { automatic: boolean; periodicSeconds: number };
const state = {
available: true,
permitted: true,
master: true,
accounts: [] as Array<{ name: string; registryId: string | null; sync: Record<string, Settings> }>,
log: [] as string[],
failSetSyncEnabled: false,
};
const find = (name: string) => state.accounts.find((a) => a.name === name);
const settingsOf = (name: string, authority: string) => {
const account = find(name);
if (!account) return { automatic: false, periodicSeconds: 0 };
account.sync[authority] ??= { automatic: false, periodicSeconds: 0 };
return account.sync[authority];
};
const teardown = async (
_registryId: string,
name: string,
authority: string,
options?: { uploadFirst?: boolean; timeoutMs?: number; force?: boolean },
) => {
state.log.push(`teardown ${name} ${authority} ${JSON.stringify(options ?? {})}`);
return { pending: 0 };
};
return { state, find, settingsOf, teardown };
});
vi.mock('../../native', () => ({
isDeviceSyncAvailable: () => h.state.available,
listAndroidAccounts: vi.fn(async () => h.state.accounts.map((a) => ({ name: a.name, registryId: a.registryId }))),
ensureAndroidAccount: vi.fn(async (name: string, registryId: string) => {
h.state.log.push(`ensure ${name}`);
const existing = h.find(name);
// As the native module rejects (DeviceSyncAccounts.ensure → AccountConflictException).
if (existing && existing.registryId !== registryId) throw Object.assign(new Error(`${name} belongs to another app account`), { code: 'conflict' });
if (existing) return false;
h.state.accounts.push({ name, registryId, sync: {} });
return true;
}),
removeAndroidAccount: vi.fn(async (name: string) => {
h.state.log.push(`remove ${name}`);
h.state.accounts = h.state.accounts.filter((a) => a.name !== name);
return true;
}),
getSyncSettings: vi.fn(async (name: string) => ({
masterAutomatic: h.state.master,
authorities: {
'com.android.contacts': { syncable: 1, active: false, pending: false, ...h.settingsOf(name, 'com.android.contacts') },
'com.android.calendar': { syncable: 1, active: false, pending: false, ...h.settingsOf(name, 'com.android.calendar') },
},
})),
setSyncEnabled: vi.fn(async (name: string, authority: string, enabled: boolean) => {
if (h.state.failSetSyncEnabled) throw new Error('boom');
h.state.log.push(`auto ${name} ${authority} ${enabled}`);
h.settingsOf(name, authority).automatic = enabled;
}),
setPeriodicSync: vi.fn(async (name: string, authority: string, seconds: number) => {
h.state.log.push(`periodic ${name} ${authority} ${seconds}`);
h.settingsOf(name, authority).periodicSeconds = seconds;
}),
requestSync: vi.fn(async (name: string, authority: string, options?: Record<string, unknown>) => {
h.state.log.push(`sync ${name} ${authority} ${JSON.stringify(options ?? {})}`);
}),
openAccountSettings: vi.fn(async () => undefined),
setPushRoutes: vi.fn(async () => undefined),
showSyncProblem: vi.fn(async (name: string) => { h.state.log.push(`problem ${name}`); }),
clearSyncProblem: vi.fn(async (name: string) => { h.state.log.push(`clear ${name}`); }),
onAccountsChanged: vi.fn(() => () => undefined),
}));
vi.mock('../../task', () => ({ teardownAuthority: vi.fn(h.teardown) }));
vi.mock('../../app/permissions', () => ({
hasSyncPermissions: vi.fn(async () => h.state.permitted),
}));
vi.mock('../../../lib/push-notifications', () => ({
refreshPushSubscriptionTypes: vi.fn(async () => undefined),
}));
import * as native from '../../native';
import * as task from '../../task';
import { refreshPushSubscriptionTypes } from '../../../lib/push-notifications';
import { useAccountStore, type AccountEntry } from '../../../stores/account-store';
import {
accountDeviceSync,
useDeviceSyncStore,
waitForDeviceSyncHydration,
} from '../../../stores/device-sync-store';
import {
changeReminderOwner,
changeSyncInterval,
deviceSyncSignedIn,
disableDeviceSync,
enableDeviceSync,
preferredAndroidAccountName,
reconcileDeviceAccounts,
releaseDeviceSyncBeforeSignOut,
removeSuspendedAccount,
resolveDeletions,
resumeDeviceSync,
TEARDOWN_TIMEOUT_MS,
} from '../../app/lifecycle';
const ALICE = 'alice@mail.example.org';
const ALICE2 = 'alice@other.example.net';
const BOB = 'bob@mail.example.org';
function entry(id: string, username: string): AccountEntry {
return {
id,
serverUrl: `https://${id.split('@').pop()}`,
username,
displayName: username,
email: `${username}@example.org`,
avatarColor: '#000',
lastLoginAt: 0,
isConnected: true,
hasError: false,
isDefault: false,
};
}
async function ready(registry: AccountEntry[]): Promise<void> {
await waitForDeviceSyncHydration();
if (!useAccountStore.persist.hasHydrated()) {
await new Promise<void>((resolve) => {
const off = useAccountStore.persist.onFinishHydration(() => { off(); resolve(); });
});
}
useAccountStore.setState({ accounts: registry, activeAccountId: registry[0]?.id ?? null });
}
const teardown = vi.mocked(task.teardownAuthority);
const setSyncEnabled = vi.mocked(native.setSyncEnabled);
beforeEach(async () => {
vi.clearAllMocks();
h.state.available = true;
h.state.permitted = true;
h.state.master = true;
h.state.accounts = [];
h.state.log = [];
h.state.failSetSyncEnabled = false;
teardown.mockImplementation(h.teardown);
await AsyncStorage.clear();
useDeviceSyncStore.setState({ accounts: {} });
await ready([entry(ALICE, 'alice'), entry(BOB, 'bob')]);
});
describe('enable', () => {
it('creates the Android account under the login, turns automatic and periodic sync on and syncs', async () => {
useDeviceSyncStore.getState().setIntervalSeconds(ALICE, CONTACTS_AUTHORITY, 1800);
const outcome = await enableDeviceSync(ALICE, CONTACTS_AUTHORITY);
expect(outcome).toEqual({ kind: 'enabled', accountName: 'alice' });
expect(h.state.log).toEqual([
'ensure alice',
`auto alice ${CONTACTS_AUTHORITY} true`,
`periodic alice ${CONTACTS_AUTHORITY} 1800`,
`sync alice ${CONTACTS_AUTHORITY} {"manual":true}`,
]);
const stored = accountDeviceSync(ALICE);
expect(stored.androidAccountName).toBe('alice');
expect(stored.enabled).toEqual({ [CONTACTS_AUTHORITY]: true });
await vi.waitFor(() => expect(refreshPushSubscriptionTypes).toHaveBeenCalledWith(ALICE));
});
it('uses the default hourly interval', async () => {
await enableDeviceSync(ALICE, CALENDAR_AUTHORITY);
expect(h.state.log).toContain(`periodic alice ${CALENDAR_AUTHORITY} 3600`);
});
it('does nothing without the runtime permissions', async () => {
h.state.permitted = false;
expect(await enableDeviceSync(ALICE, CONTACTS_AUTHORITY)).toEqual({ kind: 'permission' });
expect(h.state.log).toEqual([]);
expect(accountDeviceSync(ALICE).enabled).toBeUndefined();
});
it('reuses the Android account of the app account', async () => {
h.state.accounts.push({ name: 'alice', registryId: ALICE, sync: {} });
await enableDeviceSync(ALICE, CALENDAR_AUTHORITY);
expect(h.state.log.filter((l) => l.startsWith('ensure'))).toEqual([]);
expect(accountDeviceSync(ALICE).androidAccountName).toBe('alice');
});
it('names the account after its registry id when another app account has the login', async () => {
await ready([entry(ALICE, 'alice'), entry(ALICE2, 'alice')]);
h.state.accounts.push({ name: 'alice', registryId: ALICE, sync: {} });
expect(preferredAndroidAccountName(ALICE2, await native.listAndroidAccounts())).toBe(ALICE2);
const outcome = await enableDeviceSync(ALICE2, CONTACTS_AUTHORITY);
expect(outcome).toEqual({ kind: 'enabled', accountName: ALICE2 });
});
it('falls back to the registry id when the login turns out to be taken', async () => {
const list = vi.mocked(native.listAndroidAccounts);
// A stale list: the clash only shows when the account is added.
list.mockResolvedValueOnce([]);
h.state.accounts.push({ name: 'alice', registryId: ALICE2, sync: {} });
const outcome = await enableDeviceSync(ALICE, CONTACTS_AUTHORITY);
expect(outcome).toEqual({ kind: 'enabled', accountName: ALICE });
});
it('adds no second account named after the registry id when adding the account fails for another reason', async () => {
for (const code of ['failed', 'permission']) {
vi.mocked(native.ensureAndroidAccount).mockClear();
vi.mocked(native.ensureAndroidAccount).mockRejectedValueOnce(Object.assign(new Error(`AccountManager said no (${code})`), { code }));
const outcome = await enableDeviceSync(ALICE, CONTACTS_AUTHORITY);
expect(outcome).toEqual({ kind: 'failed', message: `AccountManager said no (${code})` });
expect(native.ensureAndroidAccount).toHaveBeenCalledTimes(1);
expect(h.state.accounts).toEqual([]);
expect(accountDeviceSync(ALICE).androidAccountName).toBeUndefined();
}
});
it('leaves no account behind when turning sync on fails', async () => {
h.state.failSetSyncEnabled = true;
const outcome = await enableDeviceSync(ALICE, CONTACTS_AUTHORITY);
expect(outcome.kind).toBe('failed');
expect(h.state.accounts).toEqual([]);
expect(accountDeviceSync(ALICE).enabled).toBeUndefined();
});
it('keeps the account of the other authority when turning one on fails', async () => {
await enableDeviceSync(ALICE, CONTACTS_AUTHORITY);
vi.mocked(native.setPeriodicSync).mockRejectedValueOnce(new Error('boom'));
expect((await enableDeviceSync(ALICE, CALENDAR_AUTHORITY)).kind).toBe('failed');
expect(h.find('alice')?.sync[CALENDAR_AUTHORITY].automatic).toBe(false);
expect(h.find('alice')?.sync[CONTACTS_AUTHORITY].automatic).toBe(true);
expect(accountDeviceSync(ALICE)).toMatchObject({
androidAccountName: 'alice',
enabled: { [CONTACTS_AUTHORITY]: true },
});
});
it('is a no-op where device sync is not available', async () => {
h.state.available = false;
expect((await enableDeviceSync(ALICE, CONTACTS_AUTHORITY)).kind).toBe('failed');
expect(h.state.log).toEqual([]);
});
});
describe('disable', () => {
beforeEach(async () => {
await enableDeviceSync(ALICE, CONTACTS_AUTHORITY);
await enableDeviceSync(ALICE, CALENDAR_AUTHORITY);
await changeReminderOwner(ALICE, 'bulwark');
h.state.log = [];
});
it('turns automatic sync off before the teardown uploads and deletes', async () => {
const result = await disableDeviceSync(ALICE, CALENDAR_AUTHORITY);
expect(result).toEqual({ done: true, pending: 0 });
expect(h.state.log).toEqual([
`auto alice ${CALENDAR_AUTHORITY} false`,
`teardown alice ${CALENDAR_AUTHORITY} {"uploadFirst":true,"timeoutMs":${TEARDOWN_TIMEOUT_MS}}`,
]);
const stored = accountDeviceSync(ALICE);
expect(stored.enabled).toEqual({ [CONTACTS_AUTHORITY]: true, [CALENDAR_AUTHORITY]: false });
// Contacts still sync: the account stays; the reminder question comes again next time.
expect(h.find('alice')).toBeDefined();
expect(stored.reminderOwner).toBeNull();
});
it('lets a turn-on wait for a turn-off that is still tearing down, instead of being undone by it', async () => {
await disableDeviceSync(ALICE, CALENDAR_AUTHORITY);
let finishTeardown: () => void = () => undefined;
teardown.mockImplementationOnce(async (_registryId, name, authority, options) => {
h.state.log.push(`teardown ${name} ${authority} ${JSON.stringify(options ?? {})}`);
await new Promise<void>((resolve) => { finishTeardown = resolve; });
return { pending: 0 };
});
const turningOff = disableDeviceSync(ALICE, CONTACTS_AUTHORITY);
await vi.waitFor(() => expect(h.state.log).toContain(`teardown alice ${CONTACTS_AUTHORITY} {"uploadFirst":true,"timeoutMs":${TEARDOWN_TIMEOUT_MS}}`));
// The user opens the settings again and turns contacts sync back on.
const turningOn = enableDeviceSync(ALICE, CONTACTS_AUTHORITY);
finishTeardown();
expect(await turningOff).toEqual({ done: true, pending: 0 });
expect(await turningOn).toMatchObject({ kind: 'enabled' });
expect(h.find('alice')?.sync[CONTACTS_AUTHORITY]?.automatic).toBe(true);
expect(accountDeviceSync(ALICE).enabled?.[CONTACTS_AUTHORITY]).toBe(true);
expect(accountDeviceSync(ALICE).androidAccountName).toBe('alice');
});
it('removes the Android account once both authorities are off', async () => {
await disableDeviceSync(ALICE, CALENDAR_AUTHORITY);
await disableDeviceSync(ALICE, CONTACTS_AUTHORITY);
expect(h.state.accounts).toEqual([]);
expect(h.state.log).toContain('remove alice');
expect(accountDeviceSync(ALICE).androidAccountName).toBeUndefined();
});
it('deletes nothing and reports the waiting changes when they could not be uploaded', async () => {
teardown.mockResolvedValueOnce({ pending: 3 });
const result = await disableDeviceSync(ALICE, CONTACTS_AUTHORITY);
expect(result).toEqual({ done: false, pending: 3 });
expect(accountDeviceSync(ALICE).enabled?.[CONTACTS_AUTHORITY]).toBe(true);
// The user keeps syncing: automatic sync comes back.
h.state.log = [];
await resumeDeviceSync(ALICE, CONTACTS_AUTHORITY);
expect(h.state.log).toEqual([
`auto alice ${CONTACTS_AUTHORITY} true`,
`sync alice ${CONTACTS_AUTHORITY} {"manual":true}`,
]);
});
it('deletes on the user\'s word with force', async () => {
teardown.mockResolvedValueOnce({ pending: 2 });
await disableDeviceSync(ALICE, CONTACTS_AUTHORITY);
h.state.log = [];
const result = await disableDeviceSync(ALICE, CONTACTS_AUTHORITY, { force: true });
expect(result.done).toBe(true);
expect(h.state.log).toContain(`teardown alice ${CONTACTS_AUTHORITY} {"force":true,"timeoutMs":5000}`);
expect(accountDeviceSync(ALICE).enabled?.[CONTACTS_AUTHORITY]).toBe(false);
});
it('reports a failed teardown as unknown changes', async () => {
const warn = vi.spyOn(console, 'warn').mockImplementation(() => undefined);
teardown.mockRejectedValueOnce(new Error('provider gone'));
expect(await disableDeviceSync(ALICE, CONTACTS_AUTHORITY)).toEqual({ done: false, pending: 0, failed: true });
warn.mockRestore();
});
});
describe('sign-out', () => {
it('lets an account without device sync go at once', async () => {
const confirm = vi.fn(async () => true);
expect(await releaseDeviceSyncBeforeSignOut([BOB], confirm)).toBe(true);
expect(teardown).not.toHaveBeenCalled();
expect(confirm).not.toHaveBeenCalled();
});
it('uploads, deletes and removes the Android account before the credentials go', async () => {
await enableDeviceSync(ALICE, CONTACTS_AUTHORITY);
h.state.log = [];
const confirm = vi.fn(async () => true);
expect(await releaseDeviceSyncBeforeSignOut([ALICE], confirm)).toBe(true);
expect(confirm).not.toHaveBeenCalled();
expect(teardown).toHaveBeenCalledWith(ALICE, 'alice', CONTACTS_AUTHORITY, { uploadFirst: true, timeoutMs: TEARDOWN_TIMEOUT_MS });
expect(teardown).toHaveBeenCalledWith(ALICE, 'alice', CALENDAR_AUTHORITY, { uploadFirst: true, timeoutMs: TEARDOWN_TIMEOUT_MS });
expect(h.state.accounts).toEqual([]);
expect(useDeviceSyncStore.getState().accounts[ALICE]).toBeUndefined();
// Automatic sync went off before the first teardown.
expect(h.state.log.indexOf(`auto alice ${CONTACTS_AUTHORITY} false`))
.toBeLessThan(h.state.log.findIndex((l) => l.startsWith('teardown')));
});
it('asks before losing changes, and keeps syncing when the user stays', async () => {
await enableDeviceSync(ALICE, CONTACTS_AUTHORITY);
teardown.mockImplementation(async (_r: string, _n: string, authority: string) => ({ pending: authority === CONTACTS_AUTHORITY ? 4 : 0 }));
const confirm = vi.fn(async () => false);
expect(await releaseDeviceSyncBeforeSignOut([ALICE], confirm)).toBe(false);
expect(confirm).toHaveBeenCalledWith(4);
expect(h.find('alice')?.sync[CONTACTS_AUTHORITY].automatic).toBe(true);
expect(accountDeviceSync(ALICE).androidAccountName).toBe('alice');
});
it('deletes what is left once the user agrees', async () => {
await enableDeviceSync(ALICE, CONTACTS_AUTHORITY);
teardown.mockImplementation(async (_r: string, _n: string, authority: string, options?: { force?: boolean }) =>
({ pending: authority === CONTACTS_AUTHORITY && !options?.force ? 4 : 0 }));
const confirm = vi.fn(async () => true);
expect(await releaseDeviceSyncBeforeSignOut([ALICE], confirm)).toBe(true);
expect(teardown).toHaveBeenCalledWith(ALICE, 'alice', CONTACTS_AUTHORITY, { force: true, timeoutMs: 5_000 });
expect(h.state.accounts).toEqual([]);
});
it('asks once for several accounts', async () => {
await enableDeviceSync(ALICE, CONTACTS_AUTHORITY);
await enableDeviceSync(BOB, CALENDAR_AUTHORITY);
teardown.mockImplementation(async (_r: string, _n: string, _a: string, options?: { force?: boolean }) => ({ pending: options?.force ? 0 : 1 }));
const confirm = vi.fn(async () => true);
expect(await releaseDeviceSyncBeforeSignOut([ALICE, BOB], confirm)).toBe(true);
expect(confirm).toHaveBeenCalledTimes(1);
expect(confirm).toHaveBeenCalledWith(4);
expect(h.state.accounts).toEqual([]);
});
it('waits for a turn-on in progress, then releases what it set up', async () => {
let finishEnsure: () => void = () => undefined;
vi.mocked(native.ensureAndroidAccount).mockImplementationOnce(async (name: string, registryId: string) => {
h.state.log.push(`ensure ${name}`);
await new Promise<void>((resolve) => { finishEnsure = resolve; });
h.state.accounts.push({ name, registryId, sync: {} });
return true;
});
const turningOn = enableDeviceSync(ALICE, CONTACTS_AUTHORITY);
await vi.waitFor(() => expect(h.state.log).toContain('ensure alice'));
const signingOut = releaseDeviceSyncBeforeSignOut([ALICE], vi.fn(async () => true));
finishEnsure();
expect(await signingOut).toBe(true);
await turningOn;
expect(teardown).toHaveBeenCalledWith(ALICE, 'alice', CONTACTS_AUTHORITY, { uploadFirst: true, timeoutMs: TEARDOWN_TIMEOUT_MS });
expect(h.state.accounts).toEqual([]);
expect(useDeviceSyncStore.getState().accounts[ALICE]).toBeUndefined();
});
it('lets a turn-on or turn-off asked for during the sign-out set nothing up for the account', async () => {
await enableDeviceSync(ALICE, CONTACTS_AUTHORITY);
let finishTeardown: () => void = () => undefined;
teardown.mockImplementationOnce(async () => {
await new Promise<void>((resolve) => { finishTeardown = resolve; });
return { pending: 0 };
});
const signingOut = releaseDeviceSyncBeforeSignOut([ALICE], vi.fn(async () => true));
await vi.waitFor(() => expect(teardown).toHaveBeenCalled());
const turningOn = enableDeviceSync(ALICE, CALENDAR_AUTHORITY);
const turningOff = disableDeviceSync(ALICE, CONTACTS_AUTHORITY);
finishTeardown();
expect(await signingOut).toBe(true);
expect((await turningOn).kind).toBe('failed');
expect(await turningOff).toEqual({ done: true, pending: 0 });
expect(h.state.accounts).toEqual([]);
expect(h.state.log.filter((l) => l.startsWith('ensure') || l.startsWith('sync'))).toEqual(['ensure alice', `sync alice ${CONTACTS_AUTHORITY} {"manual":true}`]);
expect(useDeviceSyncStore.getState().accounts[ALICE]).toBeUndefined();
});
it('lets a turn-on asked for during the sign-out go ahead once the user chose to stay signed in', async () => {
await enableDeviceSync(ALICE, CONTACTS_AUTHORITY);
teardown.mockImplementation(async (_r: string, _n: string, authority: string) => ({ pending: authority === CONTACTS_AUTHORITY ? 1 : 0 }));
let answer: (signOut: boolean) => void = () => undefined;
const confirm = vi.fn(() => new Promise<boolean>((resolve) => { answer = resolve; }));
const signingOut = releaseDeviceSyncBeforeSignOut([ALICE], confirm);
await vi.waitFor(() => expect(confirm).toHaveBeenCalled());
const turningOn = enableDeviceSync(ALICE, CALENDAR_AUTHORITY);
answer(false);
expect(await signingOut).toBe(false);
expect(await turningOn).toEqual({ kind: 'enabled', accountName: 'alice' });
expect(h.find('alice')?.sync[CALENDAR_AUTHORITY].automatic).toBe(true);
});
});
describe('reconcile', () => {
it('suspends an Android account whose app account the registry dropped, once', async () => {
h.state.accounts.push({
name: 'carol',
registryId: 'carol@mail.example.org',
sync: { [CONTACTS_AUTHORITY]: { automatic: true, periodicSeconds: 3600 } },
});
await reconcileDeviceAccounts();
expect(h.find('carol')?.sync[CONTACTS_AUTHORITY].automatic).toBe(false);
expect(h.find('carol')).toBeDefined();
expect(native.showSyncProblem).toHaveBeenCalledTimes(1);
expect(vi.mocked(native.showSyncProblem).mock.calls[0][3]).toBe('bulwarkmobile://settings/account');
const carol = accountDeviceSync('carol@mail.example.org');
expect(carol.suspended).toBe(true);
expect(carol.enabled).toEqual({ [CONTACTS_AUTHORITY]: true });
await reconcileDeviceAccounts();
expect(native.showSyncProblem).toHaveBeenCalledTimes(1);
});
it('drops a suspended account and its data when the user removes it', async () => {
h.state.accounts.push({ name: 'carol', registryId: 'carol@mail.example.org', sync: {} });
await reconcileDeviceAccounts();
h.state.log = [];
await removeSuspendedAccount('carol@mail.example.org');
expect(h.state.log).toEqual(['remove carol', 'clear carol']);
expect(useDeviceSyncStore.getState().accounts['carol@mail.example.org']).toBeUndefined();
});
it('never acts on an empty registry', async () => {
await ready([]);
h.state.accounts.push({ name: 'carol', registryId: 'carol@mail.example.org', sync: {} });
await reconcileDeviceAccounts();
expect(native.showSyncProblem).not.toHaveBeenCalled();
expect(setSyncEnabled).not.toHaveBeenCalled();
});
it('shows sync off for an account removed in Android Settings and never recreates it', async () => {
await enableDeviceSync(ALICE, CONTACTS_AUTHORITY);
h.state.accounts = [];
vi.mocked(native.ensureAndroidAccount).mockClear();
await reconcileDeviceAccounts();
const alice = accountDeviceSync(ALICE);
expect(alice.removedInAndroidSettings).toBe(true);
expect(alice.androidAccountName).toBeUndefined();
expect(alice.enabled).toEqual({});
await reconcileDeviceAccounts();
expect(native.ensureAndroidAccount).not.toHaveBeenCalled();
expect(h.state.accounts).toEqual([]);
});
it('forgets an account that is neither signed in nor on the device', async () => {
useDeviceSyncStore.getState().update('gone@mail.example.org', { androidAccountName: 'gone', enabled: { [CONTACTS_AUTHORITY]: true } });
await reconcileDeviceAccounts();
expect(useDeviceSyncStore.getState().accounts['gone@mail.example.org']).toBeUndefined();
});
it('takes an authority turned on in Android Settings as on', async () => {
h.state.accounts.push({
name: 'alice',
registryId: ALICE,
sync: { [CALENDAR_AUTHORITY]: { automatic: true, periodicSeconds: 3600 } },
});
await reconcileDeviceAccounts();
const alice = accountDeviceSync(ALICE);
expect(alice.androidAccountName).toBe('alice');
expect(alice.enabled).toEqual({ [CALENDAR_AUTHORITY]: true });
});
it('hands the push router the accounts that feed each Android account', async () => {
await enableDeviceSync(ALICE, CONTACTS_AUTHORITY);
useDeviceSyncStore.getState().rememberPrimaryJmapAccount(ALICE, CONTACTS_AUTHORITY, 'c');
await reconcileDeviceAccounts();
expect(native.setPushRoutes).toHaveBeenLastCalledWith({
c: [{ accountName: 'alice', authorities: [CONTACTS_AUTHORITY] }],
});
});
});
describe('sign-in', () => {
it('clears the sign-in notice and resumes a suspended account where it synced', async () => {
h.state.accounts.push({
name: 'alice',
registryId: ALICE,
sync: { [CONTACTS_AUTHORITY]: { automatic: false, periodicSeconds: 3600 } },
});
useDeviceSyncStore.getState().update(ALICE, {
androidAccountName: 'alice',
suspended: true,
enabled: { [CONTACTS_AUTHORITY]: true },
});
await deviceSyncSignedIn(ALICE);
expect(h.state.log).toEqual([
'clear alice',
`auto alice ${CONTACTS_AUTHORITY} true`,
`sync alice ${CONTACTS_AUTHORITY} {"manual":true}`,
]);
expect(accountDeviceSync(ALICE).suspended).toBeUndefined();
});
it('does nothing for an account without an Android account', async () => {
await deviceSyncSignedIn(BOB);
expect(h.state.log).toEqual([]);
});
});
describe('settings actions', () => {
it('deletes held-back deletions on the server, or brings the items back, with a sync', async () => {
await enableDeviceSync(ALICE, CONTACTS_AUTHORITY);
h.state.log = [];
expect(await resolveDeletions(ALICE, CONTACTS_AUTHORITY, 'delete')).toBe(true);
expect(await resolveDeletions(ALICE, CONTACTS_AUTHORITY, 'restore')).toBe(true);
expect(h.state.log).toEqual([
`sync alice ${CONTACTS_AUTHORITY} {"manual":true,"overrideTooManyDeletions":true}`,
`sync alice ${CONTACTS_AUTHORITY} {"manual":true,"discardLocalDeletions":true}`,
]);
// Without an Android account there is nothing to resolve.
expect(await resolveDeletions(BOB, CONTACTS_AUTHORITY, 'delete')).toBe(false);
});
it('applies a new interval to Android while the authority syncs', async () => {
await enableDeviceSync(ALICE, CONTACTS_AUTHORITY);
h.state.log = [];
await changeSyncInterval(ALICE, CONTACTS_AUTHORITY, 0);
expect(h.state.log).toEqual([`periodic alice ${CONTACTS_AUTHORITY} 0`]);
await changeSyncInterval(ALICE, CALENDAR_AUTHORITY, 900);
expect(h.state.log).toEqual([`periodic alice ${CONTACTS_AUTHORITY} 0`]);
expect(accountDeviceSync(ALICE).intervalSeconds[CALENDAR_AUTHORITY as Authority]).toBe(900);
});
it('syncs the calendar when the reminder owner changes', async () => {
await enableDeviceSync(ALICE, CALENDAR_AUTHORITY);
h.state.log = [];
await changeReminderOwner(ALICE, 'device');
expect(h.state.log).toEqual([`sync alice ${CALENDAR_AUTHORITY} {"manual":true}`]);
h.state.log = [];
await changeReminderOwner(ALICE, 'device');
expect(h.state.log).toEqual([]);
});
});

Some files were not shown because too many files have changed in this diff Show More