Compare commits

...

96 Commits

Author SHA1 Message Date
Anders Kaseorg
15902e51f6 release: New release v5.12.0.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-03-13 14:06:16 -07:00
Anders Kaseorg
19705bc90b Update macOS notarization configuration.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-03-13 14:06:12 -07:00
Anders Kaseorg
a9313f4756 Update Azure Trusted Signing configuration.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-03-13 14:06:12 -07:00
Anders Kaseorg
13b4d2037a Upgrade dependencies, including Electron 35.0.1.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-03-13 13:36:26 -07:00
Anders Kaseorg
ab63ec2a4a translations: Update translations from Transifex.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-03-12 17:22:53 -07:00
Anders Kaseorg
1de4f88c6c webview: Address deprecation of WebContents.goBack et al.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-03-12 17:15:03 -07:00
Anders Kaseorg
ab4381a6bf xo: Fix unicorn/prefer-global-this.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-03-12 17:15:03 -07:00
Anders Kaseorg
d409a0bf33 menu: Check focusedWindow type.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-03-12 17:15:03 -07:00
Anders Kaseorg
c40e05646e Update macOS icon with a native appearance.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-03-12 16:59:49 -07:00
Anders Kaseorg
13f3818c77 supported-locales: Fix for removal of el_GR and zh-Hant.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-12-11 14:44:47 -05:00
Tim Abbott
4a0e590921 github: Use zulip/zulip pull request template style.
Hopefully this will help improve the quality of pull requests to this
repository.
2024-12-11 11:22:04 -08:00
Shubham Padia
eb19b20da2 preference: Rename show app unread badge setting.
The original wording was found to be confusing, see
https://chat.zulip.org/#narrow/channel/16-desktop/topic/.22app.20unread.20badge.22/near/1993426
for more details.
2024-12-11 11:18:19 -08:00
Alex Vandiver
69cb509fe5 translations: Remove control characters from zh_TW translation string. 2024-12-11 11:28:13 -05:00
Alex Vandiver
123263e5bb translations: Remove zh-Hant translation.
The `zh_TW` translation is much more complete.
2024-12-11 11:24:47 -05:00
Alex Vandiver
a26a10849d translations: Remove empty el_GR duplicate translation. 2024-12-11 11:20:20 -05:00
Anders Kaseorg
da7e026550 Mark dialog strings for translation.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-12-02 15:53:25 -08:00
Anders Kaseorg
c70f6df096 about: Remove inexplicable ‘cursor: pointer’.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-12-02 15:52:29 -08:00
Anders Kaseorg
ef0110f8e7 about: Mark strings for translation.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-12-02 15:52:29 -08:00
Anders Kaseorg
b7a7ca3e5c renderer: Mark strings for translation.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-12-02 15:52:29 -08:00
Anders Kaseorg
467e7b11c5 functional-tab: Split ‘name’ into ‘page’ and ‘label’.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-12-02 15:52:29 -08:00
Anders Kaseorg
105e7e93a1 translations: Add missing translatable strings with i18next-scanner.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-12-02 15:52:28 -08:00
Anders Kaseorg
a736f664c6 nav: Statically mark navigation items for translation.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-12-02 15:52:06 -08:00
Anders Kaseorg
38c7695a99 release: New release v5.11.1.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-08-23 16:31:21 -07:00
Anders Kaseorg
b268fe9478 Sign Windows binaries with Azure Trusted Signing.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-08-23 16:22:19 -07:00
Anders Kaseorg
981a262836 xo: Remove obsolete scripts/notarize.js options.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-08-22 16:18:05 -07:00
Anders Kaseorg
527bb5ab2f Upgrade dependencies, including Electron 32.0.1.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-08-22 16:13:32 -07:00
Anders Kaseorg
e2947a0ce6 translations: Update translations from Transifex.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-08-22 16:13:27 -07:00
Anders Kaseorg
3b2c758e09 translations: Sort supported-locales by display name.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-08-22 16:13:27 -07:00
Anders Kaseorg
4867fc672a preference: Sort spellchecker language names with localeCompare.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-08-22 16:13:27 -07:00
Anders Kaseorg
f85f05d66b preference: Show spellchecker language names from Intl.DisplayNames.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-08-22 16:13:27 -07:00
Anders Kaseorg
39fd0e9877 tsconfig: Work around @sentry/electron regression.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-08-07 14:58:13 -07:00
Anders Kaseorg
f6ff112f0e stylelint: Fix declaration-block-no-shorthand-property-overrides.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-08-07 14:53:08 -07:00
Anders Kaseorg
6fcd1ef0d5 Remove rimraf.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-08-06 22:55:40 -07:00
Misha Brukman
92260b0f97 ci: Replace Travis CI badge with GitHub Actions.
Travis CI was replaced with GitHub Actions in this project.
2024-07-02 15:41:59 -07:00
Anders Kaseorg
c45c9537d1 release: New release v5.11.0.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-03-22 16:19:52 -07:00
Anders Kaseorg
0eb4c9236e Upgrade dependencies, including Electron 29.1.5.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-03-22 16:12:34 -07:00
Anders Kaseorg
47366b7617 xo: Fix unicorn/prevent-abbreviations.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-03-22 16:07:32 -07:00
Anders Kaseorg
86e28f5b00 xo: Fix import/no-duplicates.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-03-22 15:33:00 -07:00
Anders Kaseorg
7072a41e01 Remove dialog for certificate errors on subresources.
Fixes #1119.  Closes #1277.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-03-22 14:56:23 -07:00
enesonus
79f6f13008 Allow hiding the window from full screen mode on macOS.
Fixes #1187.
2024-03-22 14:39:48 -07:00
Anders Kaseorg
70f0170f1d webview: Enable zooming with the mouse wheel.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-03-21 15:32:52 -07:00
Anders Kaseorg
bc75eba2bd webview: Use an exponential scale for zooming.
This matches the native Electron behavior.

Fixes part of #1360 by removing the separate zoomFactor state
variable.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-03-21 15:31:56 -07:00
Anders Kaseorg
af7272a439 release: New release v5.10.5.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-01-25 17:02:14 -08:00
Anders Kaseorg
9d08a13e64 Set a restrictive Content-Security-Policy for the app UI.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-01-25 15:39:05 -08:00
Anders Kaseorg
f98d6d7037 Upgrade dependencies, including Electron 28.2.0.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-01-25 14:05:37 -08:00
Anders Kaseorg
da1cad9dff autoupdater: Use a separate electron-log instance.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-01-23 16:09:20 -08:00
Anders Kaseorg
955a2eb6c7 Use process-specific electron-log modules.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-01-23 16:09:20 -08:00
Anders Kaseorg
1cf822a2b5 Use process-specific @sentry/electron modules.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-01-23 16:09:20 -08:00
Anders Kaseorg
b9baf140eb release: New release v5.10.4.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-01-08 17:12:08 -08:00
Anders Kaseorg
727c2335f6 electron-bridge: Fix unicorn/prefer-node-protocol.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-01-08 17:10:37 -08:00
Anders Kaseorg
e8173919f8 Upgrade dependencies, including Electron 28.1.1.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-01-08 17:10:37 -08:00
Anders Kaseorg
cf2f4fe9c9 Avoid deprecated ipcRenderer.sendTo.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-01-08 16:02:14 -08:00
Anders Kaseorg
47cdd5fa8b release: New release v5.10.3.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-09-29 23:38:26 -07:00
Anders Kaseorg
90e76fab6e Upgrade dependencies, including Electron 25.8.4.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-09-29 23:38:22 -07:00
Anders Kaseorg
193adb1901 Fix gatemaker TypeError with Electron 25.
This had been breaking our download notifications.  Fixes #1333.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-09-29 23:25:32 -07:00
Anders Kaseorg
b520e12492 release: New release v5.10.2.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-09-14 10:31:05 -07:00
Anders Kaseorg
ae642bc7ba Downgrade Electron from 26.2.1 to 25.8.1 to avoid renderer crash.
https://github.com/electron/electron/issues/39775

Fixes #1327.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-09-14 10:30:50 -07:00
Anders Kaseorg
e90f3732c5 release: New release v5.10.1.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-09-13 23:22:25 -07:00
Anders Kaseorg
6b31a8a0c4 workflows: Update actions/checkout to v4.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-09-13 23:22:25 -07:00
Anders Kaseorg
f8758fa303 Use electron fetch API.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-09-13 23:22:25 -07:00
Anders Kaseorg
d2de965106 translations: Update translations from Transifex.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-09-13 23:19:31 -07:00
Anders Kaseorg
a32119b55d Upgrade dependencies, including Electron 26.2.1.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-09-13 23:19:31 -07:00
Anders Kaseorg
58049a91c4 Upgrade xo and prettier.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-09-13 22:47:15 -07:00
Anders Kaseorg
9810d69c3b renderer: Compensate for Chrome’s removal of overflow: overlay.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-09-13 22:47:15 -07:00
Anders Kaseorg
d2f949d683 Use Electron Event type.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-09-13 19:15:08 -07:00
Anders Kaseorg
a8c283a50b renderer: Remove unused reloadView argument.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-09-13 19:15:08 -07:00
nooblag
dab29d4720 renderer: Improve GIF loading spinner with new SVG. 2023-09-13 19:15:08 -07:00
Anders Kaseorg
7fba8cfae9 release: New release v5.10.0.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-05-05 16:15:08 -07:00
Anders Kaseorg
32301656cc Upgrade dependencies, including Electron 24.2.0.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-05-05 16:15:04 -07:00
Anders Kaseorg
0e16283a37 stylelint: Fix declaration-block-no-redundant-longhand-properties.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-05-05 16:15:04 -07:00
Anders Kaseorg
d86482a804 stylelint: Fix media-feature-range-notation.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-05-05 16:15:04 -07:00
Anders Kaseorg
3af350e4dc translations: Update translations from Transifex.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-05-05 16:14:26 -07:00
Anders Kaseorg
39fc2053c5 translations: Update en.json.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-05-05 16:10:46 -07:00
Anders Kaseorg
044f1fd0f9 preference: Fix server icon display in connected organizations list.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-05-05 15:30:51 -07:00
Anders Kaseorg
10fb0a82f9 preload: Drop compatibility code for Zulip Server < 4.0.
The server was updated in bfd9999cf874e506592fda254dfe0fe06b5b2738
(4.0-rc1~2192) to expose a proper API for this functionality, so we
don’t need to trigger fake click events to access it.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-05-05 14:41:25 -07:00
Anders Kaseorg
123bd5b2c0 preload: Drop compatibility injected JS for Zulip Server < 3.0.
The server was updated in a6fee2f18ef9d2ef6ac248e9ed82d580daff1a07
(3.0-dev~1674) and e701f208619b8b9b28a85f84ee16cf8d8df82b72
(3.0-dev~1667) to avoid relying on this wrapper.  We no longer support
servers older than 3.0, so we can delete it.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-05-05 14:39:41 -07:00
Anders Kaseorg
ad771c3da8 Display a banner for unsupported Zulip Server versions.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-05-05 14:37:32 -07:00
Anders Kaseorg
4c58bc3aa3 webview: Add a wrapper pane around the real <webview>.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-05-05 14:35:14 -07:00
Anders Kaseorg
9a8680d209 webview: Use private methods.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-05-05 14:35:14 -07:00
Anders Kaseorg
1569890f4d webview: Use private members.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-05-05 14:35:14 -07:00
Anders Kaseorg
2ed400c23c webview: Add destroy method.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-05-05 14:35:14 -07:00
Anders Kaseorg
70621431dc translations: Update translations from Transifex.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-05-05 14:32:11 -07:00
Anders Kaseorg
55b7e09796 tx: Migrate configuration to current Transifex CLI.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-05-05 14:28:06 -07:00
Anders Kaseorg
de2829a968 translations: Update en.json.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-05-05 14:23:21 -07:00
Anders Kaseorg
296de41779 translation-util: Expose the full functionality of __.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-05-05 14:23:21 -07:00
Anders Kaseorg
8b9ebeee25 Fix more typos.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-05-05 14:23:21 -07:00
Anders Kaseorg
76e81ca337 Fix updating of server names and icons at startup.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-05-04 15:12:18 -07:00
Anders Kaseorg
2e7a9bb4ed server-tab: Encapsulate setName and setIcon.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-05-04 15:12:18 -07:00
Anders Kaseorg
77638f6287 Fix handling of server icon updates and errors.
Fixes #1283.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-04-21 15:37:28 -07:00
Anders Kaseorg
6e8fe36876 Fix typos.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-04-19 13:50:40 -07:00
Anders Kaseorg
2eea4a32a5 preference: Fix CSS in Vite dev mode.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-04-18 14:21:06 -07:00
Anders Kaseorg
677dfe425c xo: Remove redundant exclusion of unicorn/prefer-json-parse-buffer.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-04-18 14:03:45 -07:00
Anders Kaseorg
1da3ec545a Don’t show visual notifications when they’re turned off.
Fixes #1299.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-04-18 13:13:12 -07:00
Anders Kaseorg
3cb6ea4694 Handle exceptions when reading server icons.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-04-18 12:49:09 -07:00
Anders Kaseorg
0cb7297017 preference: Fix spellchecker languages dropdown positioning.
Apparently the Tagify defaults don’t work inside a shadow root.

Fixes #1286.  Closes #1290.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-04-04 15:24:22 -07:00
Anders Kaseorg
b8d7003446 Use Zod 3 style for importing Zod.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-03-04 00:23:00 -08:00
141 changed files with 15586 additions and 7257 deletions

View File

@@ -1,18 +1,49 @@
---
<!-- Describe your pull request here.-->
<!--
Remove the fields that are not appropriate
Please include:
Fixes: <!-- Issue link, or clear description.-->
<!-- If the PR makes UI changes, always include one or more still screenshots to demonstrate your changes. If it seems helpful, add a screen capture of the new functionality as well.
Tooling tips: https://zulip.readthedocs.io/en/latest/tutorials/screenshot-and-gif-software.html
-->
**What's this PR do?**
**Screenshots and screen captures:**
**Any background context you want to provide?**
**Screenshots?**
**You have tested this PR on:**
**Platforms this PR was tested on:**
- [ ] Windows
- [ ] Linux/Ubuntu
- [ ] macOS
- [ ] Linux (specify distro)
<details>
<summary>Self-review checklist</summary>
<!-- Prior to submitting a PR, follow our step-by-step guide to review your own code:
https://zulip.readthedocs.io/en/latest/contributing/code-reviewing.html#how-to-review-code -->
<!-- Once you create the PR, check off all the steps below that you have completed.
If any of these steps are not relevant or you have not completed, leave them unchecked.-->
- [ ] [Self-reviewed](https://zulip.readthedocs.io/en/latest/contributing/code-reviewing.html#how-to-review-code) the changes for clarity and maintainability
(variable names, code reuse, readability, etc.).
Communicate decisions, questions, and potential concerns.
- [ ] Explains differences from previous plans (e.g., issue description).
- [ ] Highlights technical choices and bugs encountered.
- [ ] Calls out remaining decisions and concerns.
- [ ] Automated tests verify logic where appropriate.
Individual commits are ready for review (see [commit discipline](https://zulip.readthedocs.io/en/latest/contributing/commit-discipline.html)).
- [ ] Each commit is a coherent idea.
- [ ] Commit message(s) explain reasoning and motivation for changes.
Completed manual review and testing of the following:
- [ ] Visual appearance of the changes.
- [ ] Responsiveness and internationalization.
- [ ] Strings and tooltips.
- [ ] End-to-end functionality of buttons, interactions and flows.
- [ ] Corner cases, error conditions, and easily imagined bugs.
</details>

View File

@@ -10,6 +10,6 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- run: npm ci
- run: npm test

View File

@@ -1,5 +1,5 @@
{
"extends": ["stylelint-config-standard", "stylelint-config-prettier"],
"extends": ["stylelint-config-standard"],
"rules": {
"color-named": "never",
"color-no-hex": true,

View File

@@ -1,7 +1,7 @@
[main]
host = https://www.transifex.com
[zulip.desktopjson]
[o:zulip:p:zulip:r:desktopjson]
file_filter = public/translations/<lang>.json
minimum_perc = 0
source_file = public/translations/en.json

View File

@@ -10,7 +10,7 @@ Zulip-Desktop app is built on top of [Electron](http://electron.atom.io/). If yo
## Community
- The whole Zulip documentation, such as setting up a development environment, setting up with the Zulip webapp project, and testing, can be read [here](https://zulip.readthedocs.io).
- The whole Zulip documentation, such as setting up a development environment, setting up with the Zulip web app project, and testing, can be read [here](https://zulip.readthedocs.io).
- If you have any questions regarding zulip-desktop, open an [issue](https://github.com/zulip/zulip-desktop/issues/new/) or ask it on [chat.zulip.org](https://chat.zulip.org/#narrow/stream/16-desktop).

View File

@@ -1,6 +1,6 @@
# Zulip Desktop Client
[![Build Status](https://travis-ci.com/zulip/zulip-desktop.svg?branch=main)](https://travis-ci.com/github/zulip/zulip-desktop)
[![Build Status](https://github.com/zulip/zulip-desktop/actions/workflows/node.js.yml/badge.svg)](https://github.com/zulip/zulip-desktop/actions/workflows/node.js.yml?query=branch%3Amain)
[![Windows Build Status](https://ci.appveyor.com/api/projects/status/github/zulip/zulip-desktop?branch=main&svg=true)](https://ci.appveyor.com/project/zulip/zulip-desktop/branch/main)
[![XO code style](https://img.shields.io/badge/code_style-XO-5ed9c7.svg)](https://github.com/sindresorhus/xo)
[![project chat](https://img.shields.io/badge/zulip-join_chat-brightgreen.svg)](https://chat.zulip.org)
@@ -24,9 +24,9 @@ Please see the [installation guide](https://zulip.com/help/desktop-app-install-g
# Reporting issues
This desktop client shares most of its code with the Zulip webapp.
This desktop client shares most of its code with the Zulip web app.
Issues in an individual organization's Zulip window should be reported
in the [Zulip server and webapp
in the [Zulip server and web app
project](https://github.com/zulip/zulip/issues/new). Other
issues in the desktop app and its settings should be reported [in this
project](https://github.com/zulip/zulip-desktop/issues/new).

View File

@@ -1,4 +1,4 @@
import * as z from "zod";
import {z} from "zod";
export const dndSettingsSchemata = {
showNotification: z.boolean(),

View File

@@ -1,10 +1,10 @@
import fs from "node:fs";
import path from "node:path";
import * as Sentry from "@sentry/electron";
import * as Sentry from "@sentry/core";
import {JsonDB} from "node-json-db";
import {DataError} from "node-json-db/dist/lib/Errors";
import type * as z from "zod";
import type {z} from "zod";
import {app, dialog} from "zulip:remote";
import {configSchemata} from "./config-schemata.js";
@@ -19,23 +19,23 @@ const logger = new Logger({
file: "config-util.log",
});
let db: JsonDB;
let database: JsonDB;
reloadDb();
reloadDatabase();
export function getConfigItem<Key extends keyof Config>(
key: Key,
defaultValue: Config[Key],
): z.output<(typeof configSchemata)[Key]> {
try {
db.reload();
database.reload();
} catch (error: unknown) {
logger.error("Error while reloading settings.json: ");
logger.error(error);
}
try {
return configSchemata[key].parse(db.getObject<unknown>(`/${key}`));
return configSchemata[key].parse(database.getObject<unknown>(`/${key}`));
} catch (error: unknown) {
if (!(error instanceof DataError)) throw error;
setConfigItem(key, defaultValue);
@@ -46,13 +46,13 @@ export function getConfigItem<Key extends keyof Config>(
// This function returns whether a key exists in the configuration file (settings.json)
export function isConfigItemExists(key: string): boolean {
try {
db.reload();
database.reload();
} catch (error: unknown) {
logger.error("Error while reloading settings.json: ");
logger.error(error);
}
return db.exists(`/${key}`);
return database.exists(`/${key}`);
}
export function setConfigItem<Key extends keyof Config>(
@@ -66,16 +66,16 @@ export function setConfigItem<Key extends keyof Config>(
}
configSchemata[key].parse(value);
db.push(`/${key}`, value, true);
db.save();
database.push(`/${key}`, value, true);
database.save();
}
export function removeConfigItem(key: string): void {
db.delete(`/${key}`);
db.save();
database.delete(`/${key}`);
database.save();
}
function reloadDb(): void {
function reloadDatabase(): void {
const settingsJsonPath = path.join(
app.getPath("userData"),
"/config/settings.json",
@@ -96,5 +96,5 @@ function reloadDb(): void {
}
}
db = new JsonDB(settingsJsonPath, true, true);
database = new JsonDB(settingsJsonPath, true, true);
}

View File

@@ -4,30 +4,30 @@ import {app} from "zulip:remote";
let setupCompleted = false;
const zulipDir = app.getPath("userData");
const logDir = `${zulipDir}/Logs/`;
const configDir = `${zulipDir}/config/`;
const zulipDirectory = app.getPath("userData");
const logDirectory = `${zulipDirectory}/Logs/`;
const configDirectory = `${zulipDirectory}/config/`;
export const initSetUp = (): void => {
// If it is the first time the app is running
// create zulip dir in userData folder to
// avoid errors
if (!setupCompleted) {
if (!fs.existsSync(zulipDir)) {
fs.mkdirSync(zulipDir);
if (!fs.existsSync(zulipDirectory)) {
fs.mkdirSync(zulipDirectory);
}
if (!fs.existsSync(logDir)) {
fs.mkdirSync(logDir);
if (!fs.existsSync(logDirectory)) {
fs.mkdirSync(logDirectory);
}
// Migrate config files from app data folder to config folder inside app
// data folder. This will be done once when a user updates to the new version.
if (!fs.existsSync(configDir)) {
fs.mkdirSync(configDir);
const domainJson = `${zulipDir}/domain.json`;
const settingsJson = `${zulipDir}/settings.json`;
const updatesJson = `${zulipDir}/updates.json`;
const windowStateJson = `${zulipDir}/window-state.json`;
if (!fs.existsSync(configDirectory)) {
fs.mkdirSync(configDirectory);
const domainJson = `${zulipDirectory}/domain.json`;
const settingsJson = `${zulipDirectory}/settings.json`;
const updatesJson = `${zulipDirectory}/updates.json`;
const windowStateJson = `${zulipDirectory}/window-state.json`;
const configData = [
{
path: domainJson,
@@ -44,7 +44,7 @@ export const initSetUp = (): void => {
];
for (const data of configData) {
if (fs.existsSync(data.path)) {
fs.copyFileSync(data.path, configDir + data.fileName);
fs.copyFileSync(data.path, configDirectory + data.fileName);
fs.unlinkSync(data.path);
}
}

View File

@@ -1,6 +1,6 @@
import process from "node:process";
import type * as z from "zod";
import type {z} from "zod";
import type {dndSettingsSchemata} from "./config-schemata.js";
import * as ConfigUtil from "./config-util.js";

View File

@@ -2,7 +2,7 @@ import fs from "node:fs";
import path from "node:path";
import process from "node:process";
import * as z from "zod";
import {z} from "zod";
import {enterpriseConfigSchemata} from "./config-schemata.js";
import Logger from "./logger-util.js";
@@ -20,9 +20,9 @@ const logger = new Logger({
let enterpriseSettings: Partial<EnterpriseConfig>;
let configFile: boolean;
reloadDb();
reloadDatabase();
function reloadDb(): void {
function reloadDatabase(): void {
let enterpriseFile = "/etc/zulip-desktop-config/global_config.json";
if (process.platform === "win32") {
enterpriseFile =
@@ -56,7 +56,7 @@ export function getConfigItem<Key extends keyof EnterpriseConfig>(
key: Key,
defaultValue: EnterpriseConfig[Key],
): EnterpriseConfig[Key] {
reloadDb();
reloadDatabase();
if (!configFile) {
return defaultValue;
}
@@ -66,7 +66,7 @@ export function getConfigItem<Key extends keyof EnterpriseConfig>(
}
export function configItemExists(key: keyof EnterpriseConfig): boolean {
reloadDb();
reloadDatabase();
if (!configFile) {
return false;
}

View File

@@ -11,12 +11,12 @@ export async function openBrowser(url: URL): Promise<void> {
} else {
// For security, indirect links to non-whitelisted protocols
// through a real web browser via a local HTML file.
const dir = fs.mkdtempSync(path.join(os.tmpdir(), "zulip-redirect-"));
const file = path.join(dir, "redirect.html");
const directory = fs.mkdtempSync(path.join(os.tmpdir(), "zulip-redirect-"));
const file = path.join(directory, "redirect.html");
fs.writeFileSync(
file,
html`
<!DOCTYPE html>
<!doctype html>
<html>
<head>
<meta charset="UTF-8" />
@@ -37,7 +37,7 @@ export async function openBrowser(url: URL): Promise<void> {
await shell.openPath(file);
setTimeout(() => {
fs.unlinkSync(file);
fs.rmdirSync(dir);
fs.rmdirSync(directory);
}, 15_000);
}
}

View File

@@ -13,7 +13,7 @@ type LoggerOptions = {
initSetUp();
const logDir = `${app.getPath("userData")}/Logs`;
const logDirectory = `${app.getPath("userData")}/Logs`;
type Level = "log" | "debug" | "info" | "warn" | "error";
@@ -23,7 +23,7 @@ export default class Logger {
constructor(options: LoggerOptions = {}) {
let {file = "console.log"} = options;
file = `${logDir}/${file}`;
file = `${logDirectory}/${file}`;
// Trim log according to type of process
if (process.type === "renderer") {
@@ -38,31 +38,31 @@ export default class Logger {
this.nodeConsole = nodeConsole;
}
_log(type: Level, ...args: unknown[]): void {
args.unshift(this.getTimestamp() + " |\t");
args.unshift(type.toUpperCase() + " |");
this.nodeConsole[type](...args);
console[type](...args);
_log(type: Level, ...arguments_: unknown[]): void {
arguments_.unshift(this.getTimestamp() + " |\t");
arguments_.unshift(type.toUpperCase() + " |");
this.nodeConsole[type](...arguments_);
console[type](...arguments_);
}
log(...args: unknown[]): void {
this._log("log", ...args);
log(...arguments_: unknown[]): void {
this._log("log", ...arguments_);
}
debug(...args: unknown[]): void {
this._log("debug", ...args);
debug(...arguments_: unknown[]): void {
this._log("debug", ...arguments_);
}
info(...args: unknown[]): void {
this._log("info", ...args);
info(...arguments_: unknown[]): void {
this._log("info", ...arguments_);
}
warn(...args: unknown[]): void {
this._log("warn", ...args);
warn(...arguments_: unknown[]): void {
this._log("warn", ...arguments_);
}
error(...args: unknown[]): void {
this._log("error", ...args);
error(...arguments_: unknown[]): void {
this._log("error", ...arguments_);
}
getTimestamp(): string {

View File

@@ -11,9 +11,6 @@ i18n.configure({
});
/* Fetches the current appLocale from settings.json */
const appLocale = ConfigUtil.getConfigItem("appLanguage", "en");
i18n.setLocale(ConfigUtil.getConfigItem("appLanguage", "en") ?? "en");
/* If no locale present in the json, en is set default */
export function __(phrase: string): string {
return i18n.__({phrase, locale: appLocale ?? "en"});
}
export {__} from "i18n";

View File

@@ -1,5 +1,5 @@
import type {DndSettings} from "./dnd-util.js";
import type {MenuProps, ServerConf} from "./types.js";
import type {MenuProperties, ServerConfig} from "./types.js";
export type MainMessage = {
"clear-app-settings": () => void;
@@ -7,7 +7,6 @@ export type MainMessage = {
"fetch-user-agent": () => string;
"focus-app": () => void;
"focus-this-webview": () => void;
"get-injected-js": () => string;
"new-clipboard-key": () => {key: Uint8Array; sig: Uint8Array};
"permission-callback": (permissionCallbackId: number, grant: boolean) => void;
"quit-app": () => void;
@@ -22,15 +21,15 @@ export type MainMessage = {
toggleAutoLauncher: (AutoLaunchValue: boolean) => void;
"unread-count": (unreadCount: number) => void;
"update-badge": (messageCount: number) => void;
"update-menu": (props: MenuProps) => void;
"update-menu": (properties: MenuProperties) => void;
"update-taskbar-icon": (data: string, text: string) => void;
};
export type MainCall = {
"get-server-settings": (domain: string) => ServerConf;
"get-server-settings": (domain: string) => ServerConfig;
"is-online": (url: string) => boolean;
"poll-clipboard": (key: Uint8Array, sig: Uint8Array) => string | undefined;
"save-server-icon": (iconURL: string) => string;
"save-server-icon": (iconURL: string) => string | null;
};
export type RendererMessage = {
@@ -75,9 +74,9 @@ export type RendererMessage = {
"toggle-silent": (state: boolean) => void;
"toggle-tray": (state: boolean) => void;
toggletray: () => void;
tray: (arg: number) => void;
tray: (argument: number) => void;
"update-realm-icon": (serverURL: string, iconURL: string) => void;
"update-realm-name": (serveRURL: string, realmName: string) => void;
"update-realm-name": (serverURL: string, realmName: string) => void;
"webview-reload": () => void;
zoomActualSize: () => void;
zoomIn: () => void;

View File

@@ -1,26 +1,30 @@
export type MenuProps = {
export type MenuProperties = {
tabs: TabData[];
activeTabIndex?: number;
enableMenu?: boolean;
};
export type NavItem =
export type NavigationItem =
| "General"
| "Network"
| "AddServer"
| "Organizations"
| "Shortcuts";
export type ServerConf = {
export type ServerConfig = {
url: string;
alias: string;
icon: string;
zulipVersion: string;
zulipFeatureLevel: number;
};
export type TabRole = "server" | "function";
export type TabPage = "Settings" | "About";
export type TabData = {
role: TabRole;
name: string;
page?: TabPage;
label: string;
index: number;
};

View File

@@ -2,11 +2,15 @@ import {shell} from "electron/common";
import {app, dialog, session} from "electron/main";
import process from "node:process";
import log from "electron-log";
import type {UpdateDownloadedEvent, UpdateInfo} from "electron-updater";
import {autoUpdater} from "electron-updater";
import log from "electron-log/main";
import {
type UpdateDownloadedEvent,
type UpdateInfo,
autoUpdater,
} from "electron-updater";
import * as ConfigUtil from "../common/config-util.js";
import * as t from "../common/translation-util.js";
import {linuxUpdateNotification} from "./linuxupdater.js"; // Required only in case of linux
@@ -30,10 +34,11 @@ export async function appUpdater(updateFromMenu = false): Promise<void> {
let updateAvailable = false;
// Log whats happening
log.transports.file.fileName = "updates.log";
log.transports.file.level = "info";
autoUpdater.logger = log;
// Log what's happening
const updateLogger = log.create({logId: "updates"});
updateLogger.transports.file.fileName = "updates.log";
updateLogger.transports.file.level = "info";
autoUpdater.logger = updateLogger;
// Handle auto updates for beta/pre releases
const isBetaUpdate = ConfigUtil.getConfigItem("betaUpdate", false);
@@ -54,9 +59,13 @@ export async function appUpdater(updateFromMenu = false): Promise<void> {
}
await dialog.showMessageBox({
message: `A new version ${info.version}, of Zulip Desktop is available`,
detail:
message: t.__(
"A new version {{{version}}} of Zulip Desktop is available.",
{version: info.version},
),
detail: t.__(
"The update will be downloaded in the background. You will be notified when it is ready to be installed.",
),
});
}
});
@@ -68,8 +77,11 @@ export async function appUpdater(updateFromMenu = false): Promise<void> {
autoUpdater.removeAllListeners();
await dialog.showMessageBox({
message: "No updates available",
detail: `You are running the latest version of Zulip Desktop.\nVersion: ${app.getVersion()}`,
message: t.__("No updates available."),
detail: t.__(
"You are running the latest version of Zulip Desktop.\nVersion: {{{version}}}",
{version: app.getVersion()},
),
});
}
});
@@ -81,20 +93,20 @@ export async function appUpdater(updateFromMenu = false): Promise<void> {
autoUpdater.removeAllListeners();
const messageText = updateAvailable
? "Unable to download the updates"
: "Unable to check for updates";
? t.__("Unable to download the update.")
: t.__("Unable to check for updates.");
const link = "https://zulip.com/apps/";
const {response} = await dialog.showMessageBox({
type: "error",
buttons: ["Manual Download", "Cancel"],
buttons: [t.__("Manual Download"), t.__("Cancel")],
message: messageText,
detail: `Error: ${error.message}
The latest version of Zulip Desktop is available at -
https://zulip.com/apps/.
Current Version: ${app.getVersion()}`,
detail: t.__(
"Error: {{{error}}}\n\nThe latest version of Zulip Desktop is available at:\n{{{link}}}\nCurrent version: {{{version}}}",
{error: error.message, link, version: app.getVersion()},
),
});
if (response === 0) {
await shell.openExternal("https://zulip.com/apps/");
await shell.openExternal(link);
}
}
});
@@ -104,10 +116,14 @@ Current Version: ${app.getVersion()}`,
// Ask user to update the app
const {response} = await dialog.showMessageBox({
type: "question",
buttons: ["Install and Relaunch", "Install Later"],
buttons: [t.__("Install and Relaunch"), t.__("Install Later")],
defaultId: 0,
message: `A new update ${event.version} has been downloaded`,
detail: "It will be installed the next time you restart the application",
message: t.__("A new update {{{version}}} has been downloaded.", {
version: event.version,
}),
detail: t.__(
"It will be installed the next time you restart the application.",
),
});
if (response === 0) {
quitting = true;

View File

@@ -1,6 +1,5 @@
import {nativeImage} from "electron/common";
import type {BrowserWindow} from "electron/main";
import {app} from "electron/main";
import {type BrowserWindow, app} from "electron/main";
import process from "node:process";
import * as ConfigUtil from "../common/config-util.js";

View File

@@ -1,10 +1,11 @@
import {shell} from "electron/common";
import type {
HandlerDetails,
SaveDialogOptions,
WebContents,
import {type Event, shell} from "electron/common";
import {
type HandlerDetails,
Notification,
type SaveDialogOptions,
type WebContents,
app,
} from "electron/main";
import {Notification, app} from "electron/main";
import fs from "node:fs";
import path from "node:path";
@@ -31,7 +32,7 @@ function downloadFile({
failed(state: string): void;
}) {
contents.downloadURL(url);
contents.session.once("will-download", async (_event: Event, item) => {
contents.session.once("will-download", async (_event, item) => {
if (ConfigUtil.getConfigItem("promptDownload", false)) {
const showDialogOptions: SaveDialogOptions = {
defaultPath: path.join(downloadPath, item.getFilename()),
@@ -86,7 +87,7 @@ function downloadFile({
};
item.on("updated", updatedListener);
item.once("done", async (_event: Event, state) => {
item.once("done", async (_event, state) => {
if (state === "completed") {
await completed(item.getSavePath(), path.basename(item.getSavePath()));
} else {

View File

@@ -1,9 +1,16 @@
import {clipboard} from "electron/common";
import type {IpcMainEvent, WebContents} from "electron/main";
import {BrowserWindow, app, dialog, powerMonitor, session} from "electron/main";
import {
BrowserWindow,
type IpcMainEvent,
type WebContents,
app,
dialog,
powerMonitor,
session,
webContents,
} from "electron/main";
import {Buffer} from "node:buffer";
import crypto from "node:crypto";
import fs from "node:fs";
import path from "node:path";
import process from "node:process";
@@ -12,8 +19,9 @@ import windowStateKeeper from "electron-window-state";
import * as ConfigUtil from "../common/config-util.js";
import {bundlePath, bundleUrl, publicPath} from "../common/paths.js";
import * as t from "../common/translation-util.js";
import type {RendererMessage} from "../common/typed-ipc.js";
import type {MenuProps} from "../common/types.js";
import type {MenuProperties} from "../common/types.js";
import {appUpdater, shouldQuitForUpdate} from "./autoupdater.js";
import * as BadgeSettings from "./badge-settings.js";
@@ -103,7 +111,14 @@ function createMainWindow(): BrowserWindow {
event.preventDefault();
if (process.platform === "darwin") {
if (win.isFullScreen()) {
win.setFullScreen(false);
win.once("leave-full-screen", () => {
app.hide();
});
} else {
app.hide();
}
} else {
win.hide();
}
@@ -171,7 +186,7 @@ function createMainWindow(): BrowserWindow {
ipcMain.on(
"permission-callback",
(event: Event, permissionCallbackId: number, grant: boolean) => {
(event, permissionCallbackId: number, grant: boolean) => {
permissionCallbacks.get(permissionCallbackId)?.(grant);
permissionCallbacks.delete(permissionCallbackId);
},
@@ -182,7 +197,7 @@ function createMainWindow(): BrowserWindow {
mainWindow.show();
});
app.on("web-contents-created", (_event: Event, contents: WebContents) => {
app.on("web-contents-created", (_event, contents: WebContents) => {
contents.setWindowOpenHandler((details) => {
handleExternalLink(contents, details, page);
return {action: "deny"};
@@ -206,13 +221,6 @@ function createMainWindow(): BrowserWindow {
configureSpellChecker();
ipcMain.on("configure-spell-checker", configureSpellChecker);
ipcMain.on("get-injected-js", (event) => {
event.returnValue = fs.readFileSync(
path.join(bundlePath, "injected.js"),
"utf8",
);
});
const clipboardSigKey = crypto.randomBytes(32);
ipcMain.on("new-clipboard-key", (event) => {
@@ -299,18 +307,25 @@ function createMainWindow(): BrowserWindow {
app.on(
"certificate-error",
(
event: Event,
webContents: WebContents,
urlString: string,
error: string,
event,
webContents,
urlString,
error,
certificate,
callback,
isMainFrame,
// eslint-disable-next-line max-params
) => {
if (isMainFrame) {
const url = new URL(urlString);
dialog.showErrorBox(
"Certificate error",
`The server presented an invalid certificate for ${url.origin}:
${error}`,
t.__("Certificate error"),
t.__(
"The server presented an invalid certificate for {{{origin}}}:\n\n{{{error}}}",
{origin: url.origin, error},
),
);
}
},
);
@@ -369,24 +384,21 @@ ${error}`,
BadgeSettings.updateBadge(badgeCount, mainWindow);
});
ipcMain.on("toggle-menubar", (_event: IpcMainEvent, showMenubar: boolean) => {
ipcMain.on("toggle-menubar", (_event, showMenubar: boolean) => {
mainWindow.autoHideMenuBar = showMenubar;
mainWindow.setMenuBarVisibility(!showMenubar);
send(page, "toggle-autohide-menubar", showMenubar, true);
});
ipcMain.on("update-badge", (_event: IpcMainEvent, messageCount: number) => {
ipcMain.on("update-badge", (_event, messageCount: number) => {
badgeCount = messageCount;
BadgeSettings.updateBadge(badgeCount, mainWindow);
send(page, "tray", messageCount);
});
ipcMain.on(
"update-taskbar-icon",
(_event: IpcMainEvent, data: string, text: string) => {
ipcMain.on("update-taskbar-icon", (_event, data: string, text: string) => {
BadgeSettings.updateTaskbarIcon(data, text, mainWindow);
},
);
});
ipcMain.on(
"forward-message",
@@ -399,40 +411,52 @@ ${error}`,
},
);
ipcMain.on("update-menu", (_event: IpcMainEvent, props: MenuProps) => {
AppMenu.setMenu(props);
if (props.activeTabIndex !== undefined) {
const activeTab = props.tabs[props.activeTabIndex];
mainWindow.setTitle(`Zulip - ${activeTab.name}`);
}
});
ipcMain.on(
"toggleAutoLauncher",
async (_event: IpcMainEvent, AutoLaunchValue: boolean) => {
await setAutoLaunch(AutoLaunchValue);
"forward-to",
<Channel extends keyof RendererMessage>(
_event: IpcMainEvent,
webContentsId: number,
listener: Channel,
...parameters: Parameters<RendererMessage[Channel]>
) => {
const contents = webContents.fromId(webContentsId);
if (contents !== undefined) {
send(contents, listener, ...parameters);
}
},
);
ipcMain.on("update-menu", (_event, properties: MenuProperties) => {
AppMenu.setMenu(properties);
if (properties.activeTabIndex !== undefined) {
const activeTab = properties.tabs[properties.activeTabIndex];
mainWindow.setTitle(`Zulip - ${activeTab.label}`);
}
});
ipcMain.on("toggleAutoLauncher", async (_event, AutoLaunchValue: boolean) => {
await setAutoLaunch(AutoLaunchValue);
});
ipcMain.on(
"realm-name-changed",
(_event: IpcMainEvent, serverURL: string, realmName: string) => {
(_event, serverURL: string, realmName: string) => {
send(page, "update-realm-name", serverURL, realmName);
},
);
ipcMain.on(
"realm-icon-changed",
(_event: IpcMainEvent, serverURL: string, iconURL: string) => {
(_event, serverURL: string, iconURL: string) => {
send(page, "update-realm-icon", serverURL, iconURL);
},
);
ipcMain.on("save-last-tab", (_event: IpcMainEvent, index: number) => {
ipcMain.on("save-last-tab", (_event, index: number) => {
ConfigUtil.setConfigItem("lastActiveTab", index);
});
ipcMain.on("focus-this-webview", (event: IpcMainEvent) => {
ipcMain.on("focus-this-webview", (event) => {
send(page, "focus-webview-with-id", event.sender.id);
mainWindow.show();
});

View File

@@ -6,23 +6,24 @@ import {JsonDB} from "node-json-db";
import {DataError} from "node-json-db/dist/lib/Errors";
import Logger from "../common/logger-util.js";
import * as t from "../common/translation-util.js";
const logger = new Logger({
file: "linux-update-util.log",
});
let db: JsonDB;
let database: JsonDB;
reloadDb();
reloadDatabase();
export function getUpdateItem(
key: string,
defaultValue: true | null = null,
): true | null {
reloadDb();
reloadDatabase();
let value: unknown;
try {
value = db.getObject<unknown>(`/${key}`);
value = database.getObject<unknown>(`/${key}`);
} catch (error: unknown) {
if (!(error instanceof DataError)) throw error;
}
@@ -36,16 +37,16 @@ export function getUpdateItem(
}
export function setUpdateItem(key: string, value: true | null): void {
db.push(`/${key}`, value, true);
reloadDb();
database.push(`/${key}`, value, true);
reloadDatabase();
}
export function removeUpdateItem(key: string): void {
db.delete(`/${key}`);
reloadDb();
database.delete(`/${key}`);
reloadDatabase();
}
function reloadDb(): void {
function reloadDatabase(): void {
const linuxUpdateJsonPath = path.join(
app.getPath("userData"),
"/config/updates.json",
@@ -57,13 +58,13 @@ function reloadDb(): void {
if (fs.existsSync(linuxUpdateJsonPath)) {
fs.unlinkSync(linuxUpdateJsonPath);
dialog.showErrorBox(
"Error saving update notifications.",
"We encountered an error while saving the update notifications.",
t.__("Error saving update notifications"),
t.__("We encountered an error while saving the update notifications."),
);
logger.error("Error while JSON parsing updates.json: ");
logger.error(error);
}
}
db = new JsonDB(linuxUpdateJsonPath, true, true);
database = new JsonDB(linuxUpdateJsonPath, true, true);
}

View File

@@ -1,15 +1,12 @@
import type {Session} from "electron/main";
import {Notification, app, net} from "electron/main";
import {Notification, type Session, app} from "electron/main";
import getStream from "get-stream";
import * as semver from "semver";
import * as z from "zod";
import {z} from "zod";
import * as ConfigUtil from "../common/config-util.js";
import Logger from "../common/logger-util.js";
import * as LinuxUpdateUtil from "./linux-update-util.js";
import {fetchResponse} from "./request.js";
const logger = new Logger({
file: "linux-update-util.log",
@@ -20,13 +17,13 @@ export async function linuxUpdateNotification(session: Session): Promise<void> {
url = ConfigUtil.getConfigItem("betaUpdate", false) ? url : url + "/latest";
try {
const response = await fetchResponse(net.request({url, session}));
if (response.statusCode !== 200) {
logger.log("Linux update response status: ", response.statusCode);
const response = await session.fetch(url);
if (!response.ok) {
logger.log("Linux update response status: ", response.status);
return;
}
const data: unknown = JSON.parse(await getStream(response));
const data: unknown = await response.json();
/* eslint-disable @typescript-eslint/naming-convention */
const latestVersion = ConfigUtil.getConfigItem("betaUpdate", false)
? z.array(z.object({tag_name: z.string()})).parse(data)[0].tag_name

View File

@@ -1,6 +1,10 @@
import {shell} from "electron/common";
import type {MenuItemConstructorOptions} from "electron/main";
import {BrowserWindow, Menu, app} from "electron/main";
import {
BrowserWindow,
Menu,
type MenuItemConstructorOptions,
app,
} from "electron/main";
import process from "node:process";
import AdmZip from "adm-zip";
@@ -9,7 +13,7 @@ import * as ConfigUtil from "../common/config-util.js";
import * as DNDUtil from "../common/dnd-util.js";
import * as t from "../common/translation-util.js";
import type {RendererMessage} from "../common/typed-ipc.js";
import type {MenuProps, TabData} from "../common/types.js";
import type {MenuProperties, TabData} from "../common/types.js";
import {appUpdater} from "./autoupdater.js";
import {send} from "./typed-ipc-main.js";
@@ -66,7 +70,7 @@ function getToolsSubmenu(): MenuItemConstructorOptions[] {
click() {
const zip = new AdmZip();
const date = new Date();
const dateString = date.toLocaleDateString().replace(/\//g, "-");
const dateString = date.toLocaleDateString().replaceAll("/", "-");
// Create a zip file of all the logs and config data
zip.addLocalFolder(`${app.getPath("appData")}/${appName}/Logs`);
@@ -90,7 +94,7 @@ function getToolsSubmenu(): MenuItemConstructorOptions[] {
accelerator:
process.platform === "darwin" ? "Alt+Command+I" : "Ctrl+Shift+I",
click(_item, focusedWindow) {
if (focusedWindow) {
if (focusedWindow instanceof BrowserWindow) {
focusedWindow.webContents.openDevTools({mode: "undocked"});
}
},
@@ -218,7 +222,7 @@ function getViewSubmenu(): MenuItemConstructorOptions[] {
{
label: t.__("Toggle Tray Icon"),
click(_item, focusedWindow) {
if (focusedWindow) {
if (focusedWindow instanceof BrowserWindow) {
send(focusedWindow.webContents, "toggletray");
}
},
@@ -227,7 +231,7 @@ function getViewSubmenu(): MenuItemConstructorOptions[] {
label: t.__("Toggle Sidebar"),
accelerator: "CommandOrControl+Shift+S",
click(_item, focusedWindow) {
if (focusedWindow) {
if (focusedWindow instanceof BrowserWindow) {
const newValue = !ConfigUtil.getConfigItem("showSidebar", true);
send(focusedWindow.webContents, "toggle-sidebar", newValue);
ConfigUtil.setConfigItem("showSidebar", newValue);
@@ -239,7 +243,7 @@ function getViewSubmenu(): MenuItemConstructorOptions[] {
checked: ConfigUtil.getConfigItem("autoHideMenubar", false),
visible: process.platform !== "darwin",
click(_item, focusedWindow) {
if (focusedWindow) {
if (focusedWindow instanceof BrowserWindow) {
const newValue = !ConfigUtil.getConfigItem("autoHideMenubar", false);
focusedWindow.autoHideMenuBar = newValue;
focusedWindow.setMenuBarVisibility(!newValue);
@@ -314,12 +318,12 @@ function getWindowSubmenu(
if (tab === undefined) continue;
// Do not add functional tab settings to list of windows in menu bar
if (tab.role === "function" && tab.name === "Settings") {
if (tab.role === "function" && tab.page === "Settings") {
continue;
}
initialSubmenu.push({
label: tab.name,
label: tab.label,
accelerator:
tab.role === "function" ? "" : `${shortcutKey} + ${tab.index + 1}`,
checked: tab.index === activeTabIndex,
@@ -368,8 +372,10 @@ function getWindowSubmenu(
return initialSubmenu;
}
function getDarwinTpl(props: MenuProps): MenuItemConstructorOptions[] {
const {tabs, activeTabIndex, enableMenu = false} = props;
function getDarwinTpl(
properties: MenuProperties,
): MenuItemConstructorOptions[] {
const {tabs, activeTabIndex, enableMenu = false} = properties;
return [
{
@@ -533,8 +539,8 @@ function getDarwinTpl(props: MenuProps): MenuItemConstructorOptions[] {
];
}
function getOtherTpl(props: MenuProps): MenuItemConstructorOptions[] {
const {tabs, activeTabIndex, enableMenu = false} = props;
function getOtherTpl(properties: MenuProperties): MenuItemConstructorOptions[] {
const {tabs, activeTabIndex, enableMenu = false} = properties;
return [
{
label: t.__("File"),
@@ -683,7 +689,7 @@ function getOtherTpl(props: MenuProps): MenuItemConstructorOptions[] {
function sendAction<Channel extends keyof RendererMessage>(
channel: Channel,
...args: Parameters<RendererMessage[Channel]>
...arguments_: Parameters<RendererMessage[Channel]>
): void {
const win = BrowserWindow.getAllWindows()[0];
@@ -691,7 +697,7 @@ function sendAction<Channel extends keyof RendererMessage>(
win.restore();
}
send(win.webContents, channel, ...args);
send(win.webContents, channel, ...arguments_);
}
async function checkForUpdate(): Promise<void> {
@@ -714,9 +720,11 @@ function getPreviousServer(tabs: TabData[], activeTabIndex: number): number {
return activeTabIndex;
}
export function setMenu(props: MenuProps): void {
export function setMenu(properties: MenuProperties): void {
const tpl =
process.platform === "darwin" ? getDarwinTpl(props) : getOtherTpl(props);
process.platform === "darwin"
? getDarwinTpl(properties)
: getOtherTpl(properties);
const menu = Menu.buildFromTemplate(tpl);
Menu.setApplicationMenu(menu);
}

View File

@@ -1,43 +1,25 @@
import type {ClientRequest, IncomingMessage, Session} from "electron/main";
import {app, net} from "electron/main";
import {type Session, app} from "electron/main";
import fs from "node:fs";
import path from "node:path";
import stream from "node:stream";
import util from "node:util";
import {Readable} from "node:stream";
import {pipeline} from "node:stream/promises";
import type {ReadableStream} from "node:stream/web";
import * as Sentry from "@sentry/electron";
import getStream from "get-stream";
import * as z from "zod";
import * as Sentry from "@sentry/electron/main";
import {z} from "zod";
import Logger from "../common/logger-util.js";
import * as Messages from "../common/messages.js";
import type {ServerConf} from "../common/types.js";
export async function fetchResponse(
request: ClientRequest,
): Promise<IncomingMessage> {
return new Promise((resolve, reject) => {
request.on("response", resolve);
request.on("abort", () => {
reject(new Error("Request aborted"));
});
request.on("error", reject);
request.end();
});
}
const pipeline = util.promisify(stream.pipeline);
import type {ServerConfig} from "../common/types.js";
/* Request: domain-util */
const defaultIconUrl = "../renderer/img/icon.png";
const logger = new Logger({
file: "domain-util.log",
});
const generateFilePath = (url: string): string => {
const dir = `${app.getPath("userData")}/server-icons`;
const directory = `${app.getPath("userData")}/server-icons`;
const extension = path.extname(url).split("?")[0];
let hash = 5381;
@@ -49,35 +31,38 @@ const generateFilePath = (url: string): string => {
}
// Create 'server-icons' directory if not existed
if (!fs.existsSync(dir)) {
fs.mkdirSync(dir);
if (!fs.existsSync(directory)) {
fs.mkdirSync(directory);
}
// eslint-disable-next-line no-bitwise
return `${dir}/${hash >>> 0}${extension}`;
return `${directory}/${hash >>> 0}${extension}`;
};
export const _getServerSettings = async (
domain: string,
session: Session,
): Promise<ServerConf> => {
const response = await fetchResponse(
net.request({
url: domain + "/api/v1/server_settings",
session,
}),
);
if (response.statusCode !== 200) {
): Promise<ServerConfig> => {
const response = await session.fetch(domain + "/api/v1/server_settings");
if (!response.ok) {
throw new Error(Messages.invalidZulipServerError(domain));
}
const data: unknown = JSON.parse(await getStream(response));
const data: unknown = await response.json();
/* eslint-disable @typescript-eslint/naming-convention */
const {realm_name, realm_uri, realm_icon} = z
const {
realm_name,
realm_uri,
realm_icon,
zulip_version,
zulip_feature_level,
} = z
.object({
realm_name: z.string(),
realm_uri: z.string(),
realm_uri: z.string().url(),
realm_icon: z.string(),
zulip_version: z.string().default("unknown"),
zulip_feature_level: z.number().default(0),
})
.parse(data);
/* eslint-enable @typescript-eslint/naming-convention */
@@ -88,28 +73,33 @@ export const _getServerSettings = async (
icon: realm_icon.startsWith("/") ? realm_uri + realm_icon : realm_icon,
url: realm_uri,
alias: realm_name,
zulipVersion: zulip_version,
zulipFeatureLevel: zulip_feature_level,
};
};
export const _saveServerIcon = async (
url: string,
session: Session,
): Promise<string> => {
): Promise<string | null> => {
try {
const response = await fetchResponse(net.request({url, session}));
if (response.statusCode !== 200) {
const response = await session.fetch(url);
if (!response.ok) {
logger.log("Could not get server icon.");
return defaultIconUrl;
return null;
}
const filePath = generateFilePath(url);
await pipeline(response, fs.createWriteStream(filePath));
await pipeline(
Readable.fromWeb(response.body as ReadableStream<Uint8Array>),
fs.createWriteStream(filePath),
);
return filePath;
} catch (error: unknown) {
logger.log("Could not get server icon.");
logger.log(error);
Sentry.captureException(error);
return defaultIconUrl;
return null;
}
};
@@ -120,16 +110,10 @@ export const _isOnline = async (
session: Session,
): Promise<boolean> => {
try {
const response = await fetchResponse(
net.request({
const response = await session.fetch(`${url}/api/v1/server_settings`, {
method: "HEAD",
url: `${url}/api/v1/server_settings`,
session,
}),
);
const isValidResponse =
response.statusCode >= 200 && response.statusCode < 400;
return isValidResponse;
});
return response.ok;
} catch (error: unknown) {
logger.log(error);
return false;

View File

@@ -1,6 +1,6 @@
import {app} from "electron/main";
import * as Sentry from "@sentry/electron/main"; // eslint-disable-line n/file-extension-in-import
import * as Sentry from "@sentry/electron/main";
import {getConfigItem} from "../common/config-util.js";

View File

@@ -1,9 +1,7 @@
import type {
IpcMainEvent,
IpcMainInvokeEvent,
WebContents,
} from "electron/main";
import {
type IpcMainEvent,
type IpcMainInvokeEvent,
type WebContents,
ipcMain as untypedIpcMain, // eslint-disable-line no-restricted-imports
} from "electron/main";
@@ -14,14 +12,20 @@ import type {
} from "../common/typed-ipc.js";
type MainListener<Channel extends keyof MainMessage> =
MainMessage[Channel] extends (...args: infer Args) => infer Return
? (event: IpcMainEvent & {returnValue: Return}, ...args: Args) => void
MainMessage[Channel] extends (...arguments_: infer Arguments) => infer Return
? (
event: IpcMainEvent & {returnValue: Return},
...arguments_: Arguments
) => void
: never;
type MainHandler<Channel extends keyof MainCall> = MainCall[Channel] extends (
...args: infer Args
...arguments_: infer Arguments
) => infer Return
? (event: IpcMainInvokeEvent, ...args: Args) => Return | Promise<Return>
? (
event: IpcMainInvokeEvent,
...arguments_: Arguments
) => Return | Promise<Return>
: never;
export const ipcMain: {
@@ -30,7 +34,16 @@ export const ipcMain: {
listener: <Channel extends keyof RendererMessage>(
event: IpcMainEvent,
channel: Channel,
...args: Parameters<RendererMessage[Channel]>
...arguments_: Parameters<RendererMessage[Channel]>
) => void,
): void;
on(
channel: "forward-to",
listener: <Channel extends keyof RendererMessage>(
event: IpcMainEvent,
webContentsId: number,
channel: Channel,
...arguments_: Parameters<RendererMessage[Channel]>
) => void,
): void;
on<Channel extends keyof MainMessage>(
@@ -60,16 +73,16 @@ export const ipcMain: {
export function send<Channel extends keyof RendererMessage>(
contents: WebContents,
channel: Channel,
...args: Parameters<RendererMessage[Channel]>
...arguments_: Parameters<RendererMessage[Channel]>
): void {
contents.send(channel, ...args);
contents.send(channel, ...arguments_);
}
export function sendToFrame<Channel extends keyof RendererMessage>(
contents: WebContents,
frameId: number | [number, number],
channel: Channel,
...args: Parameters<RendererMessage[Channel]>
...arguments_: Parameters<RendererMessage[Channel]>
): void {
contents.sendToFrame(frameId, channel, ...args);
contents.sendToFrame(frameId, channel, ...arguments_);
}

View File

@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<meta charset="UTF-8" />
<link rel="stylesheet" href="css/about.css" />
@@ -6,21 +6,4 @@
<div class="about" hidden>
<img class="logo" src="../resources/zulip.png" />
<p class="detail" id="version"></p>
<div class="maintenance-info">
<p class="detail maintainer">
Maintained by
<a href="https://zulip.com" target="_blank" rel="noopener noreferrer"
>Zulip</a
>
</p>
<p class="detail license">
Available under the
<a
href="https://github.com/zulip/zulip-desktop/blob/main/LICENSE"
target="_blank"
rel="noopener noreferrer"
>Apache 2.0 License</a
>
</p>
</div>
</div>

View File

@@ -47,7 +47,6 @@
}
.maintenance-info {
cursor: pointer;
position: absolute;
width: 100%;
left: 0;

View File

@@ -2,7 +2,9 @@
font-family: "Material Icons";
font-style: normal;
font-weight: 400;
src: local("Material Icons"), local("MaterialIcons-Regular"),
src:
local("Material Icons"),
local("MaterialIcons-Regular"),
url("../fonts/MaterialIcons-Regular.ttf") format("truetype");
}

View File

@@ -44,6 +44,7 @@ body {
#view-controls-container {
height: calc(100% - 208px);
scrollbar-gutter: stable both-edges;
overflow-y: hidden;
}
@@ -52,16 +53,15 @@ body {
}
#view-controls-container::-webkit-scrollbar-track {
box-shadow: inset 0 0 6px rgb(0 0 0 / 30%);
background-color: rgb(0 0 0 / 30%);
}
#view-controls-container::-webkit-scrollbar-thumb {
background-color: rgb(169 169 169 / 100%);
outline: 1px solid rgb(169 169 169 / 100%);
}
#view-controls-container:hover {
overflow-y: overlay;
overflow-y: scroll;
}
/*******************
@@ -290,7 +290,9 @@ body {
content: "";
position: absolute;
z-index: 1;
background: rgb(255 255 255 / 100%) url("../img/ic_loading.gif") no-repeat;
/* Spinner is released under loading.io free License: https://loading.io/license/#free-license */
background: rgb(255 255 255 / 100%) url("../img/ic_loading.svg") no-repeat;
background-size: 60px 60px;
background-position: center;
width: 100%;
@@ -303,7 +305,7 @@ body {
visibility: hidden;
}
webview,
.webview-pane,
.functional-view {
position: absolute;
width: 100%;
@@ -312,7 +314,16 @@ webview,
visibility: hidden;
}
webview.active,
.webview-pane {
display: flex;
flex-direction: column;
}
.webview-pane > webview {
flex: 1;
}
.webview-pane.active,
.functional-view.active {
z-index: 1;
visibility: visible;
@@ -322,6 +333,30 @@ webview.focus {
outline: 0 solid transparent;
}
.webview-unsupported {
background: rgb(254 243 199);
border: 1px solid rgb(253 230 138);
color: rgb(69 26 3);
font-family: system-ui;
font-size: 14px;
display: flex;
}
.webview-unsupported[hidden] {
display: none;
}
.webview-unsupported-message {
padding: 0.3em;
flex: 1;
text-align: center;
}
.webview-unsupported-dismiss {
padding: 0.3em;
cursor: pointer;
}
/* Tooltip styling */
#loading-tooltip,

View File

@@ -1,3 +1,5 @@
@import url("@yaireo/tagify/dist/tagify.css");
:host {
contain: strict;
display: flow-root;
@@ -10,6 +12,11 @@
letter-spacing: -0.08px;
line-height: 18px;
color: rgb(139 142 143 / 100%);
/* Copied from https://github.com/yairEO/tagify/blob/v4.17.7/src/tagify.scss#L4-L8 */
--tagify-dd-color-primary: rgb(53 149 246);
--tagify-dd-bg-color: rgb(255 255 255);
--tagify-dd-item-pad: 0.3em 0.5em;
}
kbd {
@@ -300,7 +307,9 @@ img.server-info-icon {
}
.settings-card:hover {
box-shadow: 0 2px 5px 0 rgb(0 0 0 / 16%), 0 2px 0 0 rgb(0 0 0 / 12%);
box-shadow:
0 2px 5px 0 rgb(0 0 0 / 16%),
0 2px 0 0 rgb(0 0 0 / 12%);
}
.hidden {
@@ -475,10 +484,7 @@ input.toggle-round + label::after {
input.toggle-round + label::before {
background-color: rgb(241 241 241 / 100%);
border-radius: 25px;
top: 0;
right: 0;
left: 0;
bottom: 0;
inset: 0;
}
input.toggle-round + label::after {
@@ -490,10 +496,7 @@ input.toggle-round + label::after {
input.toggle-round:checked + label::before {
background-color: rgb(78 191 172 / 100%);
top: 0;
right: 0;
left: 0;
bottom: 0;
inset: 0;
}
input.toggle-round:checked + label::after {
@@ -575,7 +578,6 @@ input.toggle-round:checked + label::after {
text-align: center;
color: rgb(255 255 255 / 100%);
background: rgb(78 191 172 / 100%);
border-color: none;
border: none;
width: 98%;
height: 46px;
@@ -651,7 +653,7 @@ i.open-network-button {
}
/* responsive grid */
@media (min-width: 500px) and (max-width: 720px) {
@media (width >= 500px) and (width <= 720px) {
#new-server-container {
padding-left: 0;
width: 60vw;
@@ -663,7 +665,7 @@ i.open-network-button {
}
}
@media (max-width: 500px) {
@media (width <= 500px) {
#new-server-container {
padding-left: 0;
width: 54%;
@@ -674,7 +676,7 @@ i.open-network-button {
}
}
@media (max-width: 650px) {
@media (width <= 650px) {
.selected-css-path,
.download-folder-path {
margin-right: 15px;
@@ -689,7 +691,7 @@ i.open-network-button {
}
}
@media (max-width: 720px) {
@media (width <= 720px) {
.modal-container {
width: 60vw;
padding: 40px;
@@ -712,7 +714,7 @@ i.open-network-button {
}
}
@media (max-width: 600px) {
@media (width <= 600px) {
.divider {
margin-left: 4%;
}
@@ -724,7 +726,7 @@ i.open-network-button {
}
}
@media (max-width: 900px) {
@media (width <= 900px) {
.settings-card {
flex-direction: column;
align-items: center;
@@ -760,3 +762,9 @@ i.open-network-button {
top: 0;
bottom: 0;
}
.settings-tagify-dropdown {
position: relative;
z-index: 9999;
height: 0;
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

View File

@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" style="margin: auto; background: rgba(0, 0, 0, 0) none repeat scroll 0% 0%; display: block; shape-rendering: auto; animation-play-state: running; animation-delay: 0s;" width="150px" height="150px" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid">
<circle cx="50" cy="50" fill="none" stroke="#759ed4" stroke-width="10" r="42" stroke-dasharray="197.92033717615698 67.97344572538566" style="animation-play-state: running; animation-delay: 0s;">
<animateTransform attributeName="transform" type="rotate" repeatCount="indefinite" dur="1s" values="0 50 50;360 50 50" keyTimes="0;1" style="animation-play-state: running; animation-delay: 0s;"></animateTransform>
</circle>
<!-- Created with loading.io (https://loading.io/spinner/rolling/-bar-circle-curve-round-rotate) -->
<!-- "The Rolling spinner is released under loading.io free License." (https://loading.io/license/#free-license) -->
</svg>

After

Width:  |  Height:  |  Size: 1018 B

View File

@@ -20,7 +20,7 @@ export type ClipboardDecrypter = {
pasted: Promise<string>;
};
export class ClipboardDecrypterImpl implements ClipboardDecrypter {
export class ClipboardDecrypterImplementation implements ClipboardDecrypter {
version: number;
key: Uint8Array;
pasted: Promise<string>;

View File

@@ -1,4 +1,4 @@
import {clipboard} from "electron/common";
import {type Event, clipboard} from "electron/common";
import type {WebContents} from "electron/main";
import type {
ContextMenuParams,
@@ -13,11 +13,11 @@ import * as t from "../../../common/translation-util.js";
export const contextMenu = (
webContents: WebContents,
event: Event,
props: ContextMenuParams,
properties: ContextMenuParams,
) => {
const isText = props.selectionText !== "";
const isLink = props.linkURL !== "";
const linkUrl = isLink ? new URL(props.linkURL) : undefined;
const isText = properties.selectionText !== "";
const isLink = properties.linkURL !== "";
const linkUrl = isLink ? new URL(properties.linkURL) : undefined;
const makeSuggestion = (suggestion: string) => ({
label: suggestion,
@@ -30,19 +30,21 @@ export const contextMenu = (
let menuTemplate: MenuItemConstructorOptions[] = [
{
label: t.__("Add to Dictionary"),
visible: props.isEditable && isText && props.misspelledWord.length > 0,
visible:
properties.isEditable && isText && properties.misspelledWord.length > 0,
click(_item) {
webContents.session.addWordToSpellCheckerDictionary(
props.misspelledWord,
properties.misspelledWord,
);
},
},
{
type: "separator",
visible: props.isEditable && isText && props.misspelledWord.length > 0,
visible:
properties.isEditable && isText && properties.misspelledWord.length > 0,
},
{
label: `${t.__("Look Up")} "${props.selectionText}"`,
label: `${t.__("Look Up")} "${properties.selectionText}"`,
visible: process.platform === "darwin" && isText,
click(_item) {
webContents.showDefinitionForSelection();
@@ -55,7 +57,7 @@ export const contextMenu = (
{
label: t.__("Cut"),
visible: isText,
enabled: props.isEditable,
enabled: properties.isEditable,
accelerator: "CommandOrControl+X",
click(_item) {
webContents.cut();
@@ -64,7 +66,7 @@ export const contextMenu = (
{
label: t.__("Copy"),
accelerator: "CommandOrControl+C",
enabled: props.editFlags.canCopy,
enabled: properties.editFlags.canCopy,
click(_item) {
webContents.copy();
},
@@ -72,7 +74,7 @@ export const contextMenu = (
{
label: t.__("Paste"), // Bug: Paste replaces text
accelerator: "CommandOrControl+V",
enabled: props.isEditable,
enabled: properties.isEditable,
click() {
webContents.paste();
},
@@ -88,32 +90,34 @@ export const contextMenu = (
visible: isLink,
click(_item) {
clipboard.write({
bookmark: props.linkText,
bookmark: properties.linkText,
text:
linkUrl?.protocol === "mailto:" ? linkUrl.pathname : props.linkURL,
linkUrl?.protocol === "mailto:"
? linkUrl.pathname
: properties.linkURL,
});
},
},
{
label: t.__("Copy Image"),
visible: props.mediaType === "image",
visible: properties.mediaType === "image",
click(_item) {
webContents.copyImageAt(props.x, props.y);
webContents.copyImageAt(properties.x, properties.y);
},
},
{
label: t.__("Copy Image URL"),
visible: props.mediaType === "image",
visible: properties.mediaType === "image",
click(_item) {
clipboard.write({
bookmark: props.srcURL,
text: props.srcURL,
bookmark: properties.srcURL,
text: properties.srcURL,
});
},
},
{
type: "separator",
visible: isLink || props.mediaType === "image",
visible: isLink || properties.mediaType === "image",
},
{
label: t.__("Services"),
@@ -122,10 +126,10 @@ export const contextMenu = (
},
];
if (props.misspelledWord) {
if (props.dictionarySuggestions.length > 0) {
if (properties.misspelledWord) {
if (properties.dictionarySuggestions.length > 0) {
const suggestions: MenuItemConstructorOptions[] =
props.dictionarySuggestions.map((suggestion: string) =>
properties.dictionarySuggestions.map((suggestion: string) =>
makeSuggestion(suggestion),
);
menuTemplate = [...suggestions, ...menuTemplate];
@@ -137,7 +141,7 @@ export const contextMenu = (
}
}
// Hide the invisible separators on Linux and Windows
// Electron has a bug which ignores visible: false parameter for separator menuitems. So we remove them here.
// Electron has a bug which ignores visible: false parameter for separator menu items. So we remove them here.
// https://github.com/electron/electron/issues/5869
// https://github.com/electron/electron/issues/6906

View File

@@ -1,26 +1,26 @@
import type {Html} from "../../../common/html.js";
import {html} from "../../../common/html.js";
import {type Html, html} from "../../../common/html.js";
import type {TabPage} from "../../../common/types.js";
import {generateNodeFromHtml} from "./base.js";
import type {TabProps} from "./tab.js";
import Tab from "./tab.js";
import Tab, {type TabProperties} from "./tab.js";
export type FunctionalTabProps = {
export type FunctionalTabProperties = {
$view: Element;
} & TabProps;
page: TabPage;
} & TabProperties;
export default class FunctionalTab extends Tab {
$view: Element;
$el: Element;
$closeButton?: Element;
constructor({$view, ...props}: FunctionalTabProps) {
super(props);
constructor({$view, ...properties}: FunctionalTabProperties) {
super(properties);
this.$view = $view;
this.$el = generateNodeFromHtml(this.templateHtml());
if (this.props.name !== "Settings") {
this.props.$root.append(this.$el);
if (properties.page !== "Settings") {
this.properties.$root.append(this.$el);
this.$closeButton = this.$el.querySelector(".server-tab-badge")!;
this.registerListeners();
}
@@ -43,12 +43,12 @@ export default class FunctionalTab extends Tab {
templateHtml(): Html {
return html`
<div class="tab functional-tab" data-tab-id="${this.props.tabIndex}">
<div class="tab functional-tab" data-tab-id="${this.properties.tabIndex}">
<div class="server-tab-badge close-button">
<i class="material-icons">close</i>
</div>
<div class="server-tab">
<i class="material-icons">${this.props.materialIcon}</i>
<i class="material-icons">${this.properties.materialIcon}</i>
</div>
</div>
`;
@@ -65,8 +65,8 @@ export default class FunctionalTab extends Tab {
this.$closeButton?.classList.remove("active");
});
this.$closeButton?.addEventListener("click", (event: Event) => {
this.props.onDestroy?.();
this.$closeButton?.addEventListener("click", (event) => {
this.properties.onDestroy?.();
event.stopPropagation();
});
}

View File

@@ -1,30 +1,32 @@
import process from "node:process";
import type {Html} from "../../../common/html.js";
import {html} from "../../../common/html.js";
import {type Html, html} from "../../../common/html.js";
import {ipcRenderer} from "../typed-ipc-renderer.js";
import {generateNodeFromHtml} from "./base.js";
import type {TabProps} from "./tab.js";
import Tab from "./tab.js";
import Tab, {type TabProperties} from "./tab.js";
import type WebView from "./webview.js";
export type ServerTabProps = {
export type ServerTabProperties = {
webview: Promise<WebView>;
} & TabProps;
} & TabProperties;
export default class ServerTab extends Tab {
webview: Promise<WebView>;
$el: Element;
$name: Element;
$icon: HTMLImageElement;
$badge: Element;
constructor({webview, ...props}: ServerTabProps) {
super(props);
constructor({webview, ...properties}: ServerTabProperties) {
super(properties);
this.webview = webview;
this.$el = generateNodeFromHtml(this.templateHtml());
this.props.$root.append(this.$el);
this.properties.$root.append(this.$el);
this.registerListeners();
this.$name = this.$el.querySelector(".server-tooltip")!;
this.$icon = this.$el.querySelector(".server-icons")!;
this.$badge = this.$el.querySelector(".server-tab-badge")!;
}
@@ -40,24 +42,34 @@ export default class ServerTab extends Tab {
override async destroy(): Promise<void> {
await super.destroy();
(await this.webview).$el.remove();
(await this.webview).destroy();
}
templateHtml(): Html {
return html`
<div class="tab" data-tab-id="${this.props.tabIndex}">
<div class="tab" data-tab-id="${this.properties.tabIndex}">
<div class="server-tooltip" style="display:none">
${this.props.name}
${this.properties.label}
</div>
<div class="server-tab-badge"></div>
<div class="server-tab">
<img class="server-icons" src="${this.props.icon}" />
<img class="server-icons" src="${this.properties.icon}" />
</div>
<div class="server-tab-shortcut">${this.generateShortcutText()}</div>
</div>
`;
}
setLabel(label: string): void {
this.properties.label = label;
this.$name.textContent = label;
}
setIcon(icon: string): void {
this.properties.icon = icon;
this.$icon.src = icon;
}
updateBadge(count: number): void {
this.$badge.textContent = count > 999 ? "1K+" : count.toString();
this.$badge.classList.toggle("active", count > 0);
@@ -65,11 +77,11 @@ export default class ServerTab extends Tab {
generateShortcutText(): string {
// Only provide shortcuts for server [0..9]
if (this.props.index >= 9) {
if (this.properties.index >= 9) {
return "";
}
const shownIndex = this.props.index + 1;
const shownIndex = this.properties.index + 1;
// Array index == Shown index - 1
ipcRenderer.send("switch-server-tab", shownIndex - 1);

View File

@@ -1,9 +1,10 @@
import type {TabRole} from "../../../common/types.js";
import type {TabPage, TabRole} from "../../../common/types.js";
export type TabProps = {
export type TabProperties = {
role: TabRole;
page?: TabPage;
icon?: string;
name: string;
label: string;
$root: Element;
onClick: () => void;
index: number;
@@ -17,17 +18,17 @@ export type TabProps = {
export default abstract class Tab {
abstract $el: Element;
constructor(readonly props: TabProps) {}
constructor(readonly properties: TabProperties) {}
registerListeners(): void {
this.$el.addEventListener("click", this.props.onClick);
this.$el.addEventListener("click", this.properties.onClick);
if (this.props.onHover !== undefined) {
this.$el.addEventListener("mouseover", this.props.onHover);
if (this.properties.onHover !== undefined) {
this.$el.addEventListener("mouseover", this.properties.onHover);
}
if (this.props.onHoverOut !== undefined) {
this.$el.addEventListener("mouseout", this.props.onHoverOut);
if (this.properties.onHoverOut !== undefined) {
this.$el.addEventListener("mouseout", this.properties.onHoverOut);
}
}

View File

@@ -6,11 +6,11 @@ import * as remote from "@electron/remote";
import {app, dialog} from "@electron/remote";
import * as ConfigUtil from "../../../common/config-util.js";
import type {Html} from "../../../common/html.js";
import {html} from "../../../common/html.js";
import {type Html, html} from "../../../common/html.js";
import * as t from "../../../common/translation-util.js";
import type {RendererMessage} from "../../../common/typed-ipc.js";
import type {TabRole} from "../../../common/types.js";
import preloadCss from "../../css/preload.css?raw"; // eslint-disable-line n/file-extension-in-import
import preloadCss from "../../css/preload.css?raw";
import {ipcRenderer} from "../typed-ipc-renderer.js";
import * as SystemUtil from "../utils/system-util.js";
@@ -19,7 +19,7 @@ import {contextMenu} from "./context-menu.js";
const shouldSilentWebview = ConfigUtil.getConfigItem("silent", false);
type WebViewProps = {
type WebViewProperties = {
$root: Element;
rootWebContents: WebContents;
index: number;
@@ -32,32 +32,45 @@ type WebViewProps = {
preload?: string;
onTitleChange: () => void;
hasPermission?: (origin: string, permission: string) => boolean;
unsupportedMessage?: string;
};
export default class WebView {
static templateHtml(props: WebViewProps): Html {
static templateHtml(properties: WebViewProperties): Html {
return html`
<div class="webview-pane">
<div
class="webview-unsupported"
${properties.unsupportedMessage === undefined ? html`hidden` : html``}
>
<span class="webview-unsupported-message"
>${properties.unsupportedMessage ?? ""}</span
>
<span class="webview-unsupported-dismiss">×</span>
</div>
<webview
data-tab-id="${props.tabIndex}"
src="${props.url}"
${props.preload === undefined
data-tab-id="${properties.tabIndex}"
src="${properties.url}"
${properties.preload === undefined
? html``
: html`preload="${props.preload}"`}
: html`preload="${properties.preload}"`}
partition="persist:webviewsession"
allowpopups
>
</webview>
</div>
`;
}
static async create(props: WebViewProps): Promise<WebView> {
const $element = generateNodeFromHtml(
WebView.templateHtml(props),
static async create(properties: WebViewProperties): Promise<WebView> {
const $pane = generateNodeFromHtml(
WebView.templateHtml(properties),
) as HTMLElement;
props.$root.append($element);
properties.$root.append($pane);
const $webview: HTMLElement = $pane.querySelector(":scope > webview")!;
await new Promise<void>((resolve) => {
$element.addEventListener(
$webview.addEventListener(
"did-attach",
() => {
resolve();
@@ -77,50 +90,145 @@ export default class WebView {
}
const selector = `webview[data-tab-id="${CSS.escape(
`${props.tabIndex}`,
`${properties.tabIndex}`,
)}"]`;
const webContentsId: unknown =
await props.rootWebContents.executeJavaScript(
await properties.rootWebContents.executeJavaScript(
`(${getWebContentsIdFunction.toString()})(${JSON.stringify(selector)})`,
);
if (typeof webContentsId !== "number") {
throw new TypeError("Failed to get WebContents ID");
}
return new WebView(props, $element, webContentsId);
return new WebView(properties, $pane, $webview, webContentsId);
}
zoomFactor: number;
badgeCount: number;
loading: boolean;
customCss: string | false | null;
$webviewsContainer: DOMTokenList;
$el: HTMLElement;
webContentsId: number;
badgeCount = 0;
loading = true;
private customCss: string | false | null;
private readonly $webviewsContainer: DOMTokenList;
private readonly $unsupported: HTMLElement;
private readonly $unsupportedMessage: HTMLElement;
private readonly $unsupportedDismiss: HTMLElement;
private unsupportedDismissed = false;
private constructor(
readonly props: WebViewProps,
$element: HTMLElement,
webContentsId: number,
readonly properties: WebViewProperties,
private readonly $pane: HTMLElement,
private readonly $webview: HTMLElement,
readonly webContentsId: number,
) {
this.zoomFactor = 1;
this.loading = true;
this.badgeCount = 0;
this.customCss = ConfigUtil.getConfigItem("customCSS", null);
this.$webviewsContainer = document.querySelector(
"#webviews-container",
)!.classList;
this.$el = $element;
this.webContentsId = webContentsId;
this.$unsupported = $pane.querySelector(".webview-unsupported")!;
this.$unsupportedMessage = $pane.querySelector(
".webview-unsupported-message",
)!;
this.$unsupportedDismiss = $pane.querySelector(
".webview-unsupported-dismiss",
)!;
this.registerListeners();
}
getWebContents(): WebContents {
return remote.webContents.fromId(this.webContentsId);
destroy(): void {
this.$pane.remove();
}
registerListeners(): void {
getWebContents(): WebContents {
return remote.webContents.fromId(this.webContentsId)!;
}
showNotificationSettings(): void {
this.send("show-notification-settings");
}
focus(): void {
this.$webview.focus();
// Work around https://github.com/electron/electron/issues/31918
this.$webview.shadowRoot?.querySelector("iframe")?.focus();
}
hide(): void {
this.$pane.classList.remove("active");
}
load(): void {
this.show();
}
zoomIn(): void {
this.getWebContents().zoomLevel += 0.5;
}
zoomOut(): void {
this.getWebContents().zoomLevel -= 0.5;
}
zoomActualSize(): void {
this.getWebContents().zoomLevel = 0;
}
logOut(): void {
this.send("logout");
}
showKeyboardShortcuts(): void {
this.send("show-keyboard-shortcuts");
}
openDevTools(): void {
this.getWebContents().openDevTools();
}
back(): void {
if (this.getWebContents().navigationHistory.canGoBack()) {
this.getWebContents().navigationHistory.goBack();
this.focus();
}
}
canGoBackButton(): void {
const $backButton = document.querySelector(
"#actions-container #back-action",
)!;
$backButton.classList.toggle(
"disable",
!this.getWebContents().navigationHistory.canGoBack(),
);
}
forward(): void {
if (this.getWebContents().navigationHistory.canGoForward()) {
this.getWebContents().navigationHistory.goForward();
}
}
reload(): void {
this.hide();
// Shows the loading indicator till the webview is reloaded
this.$webviewsContainer.remove("loaded");
this.loading = true;
this.properties.switchLoading(true, this.properties.url);
this.getWebContents().reload();
}
setUnsupportedMessage(unsupportedMessage: string | undefined) {
this.$unsupported.hidden =
unsupportedMessage === undefined || this.unsupportedDismissed;
this.$unsupportedMessage.textContent = unsupportedMessage ?? "";
}
send<Channel extends keyof RendererMessage>(
channel: Channel,
...arguments_: Parameters<RendererMessage[Channel]>
): void {
ipcRenderer.send("forward-to", this.webContentsId, channel, ...arguments_);
}
private registerListeners(): void {
const webContents = this.getWebContents();
if (shouldSilentWebview) {
@@ -129,14 +237,14 @@ export default class WebView {
webContents.on("page-title-updated", (_event, title) => {
this.badgeCount = this.getBadgeCount(title);
this.props.onTitleChange();
this.properties.onTitleChange();
});
this.$el.addEventListener("did-navigate-in-page", () => {
this.$webview.addEventListener("did-navigate-in-page", () => {
this.canGoBackButton();
});
this.$el.addEventListener("did-navigate", () => {
this.$webview.addEventListener("did-navigate", () => {
this.canGoBackButton();
});
@@ -160,9 +268,9 @@ export default class WebView {
contextMenu(webContents, event, menuParameters);
});
this.$el.addEventListener("dom-ready", () => {
this.$webview.addEventListener("dom-ready", () => {
this.loading = false;
this.props.switchLoading(false, this.props.url);
this.properties.switchLoading(false, this.properties.url);
this.show();
});
@@ -171,42 +279,48 @@ export default class WebView {
SystemUtil.connectivityError.includes(errorDescription);
if (hasConnectivityError) {
console.error("error", errorDescription);
if (!this.props.url.includes("network.html")) {
this.props.onNetworkError(this.props.index);
if (!this.properties.url.includes("network.html")) {
this.properties.onNetworkError(this.properties.index);
}
}
});
this.$el.addEventListener("did-start-loading", () => {
this.props.switchLoading(true, this.props.url);
this.$webview.addEventListener("did-start-loading", () => {
this.properties.switchLoading(true, this.properties.url);
});
this.$el.addEventListener("did-stop-loading", () => {
this.props.switchLoading(false, this.props.url);
this.$webview.addEventListener("did-stop-loading", () => {
this.properties.switchLoading(false, this.properties.url);
});
this.$unsupportedDismiss.addEventListener("click", () => {
this.unsupportedDismissed = true;
this.$unsupported.hidden = true;
});
webContents.on("zoom-changed", (event, zoomDirection) => {
if (zoomDirection === "in") this.zoomIn();
else if (zoomDirection === "out") this.zoomOut();
});
}
getBadgeCount(title: string): number {
private getBadgeCount(title: string): number {
const messageCountInTitle = /^\((\d+)\)/.exec(title);
return messageCountInTitle ? Number(messageCountInTitle[1]) : 0;
}
showNotificationSettings(): void {
this.send("show-notification-settings");
}
show(): void {
private show(): void {
// Do not show WebView if another tab was selected and this tab should be in background.
if (!this.props.isActive()) {
if (!this.properties.isActive()) {
return;
}
// To show or hide the loading indicator in the the active tab
// To show or hide the loading indicator in the active tab
this.$webviewsContainer.toggle("loaded", !this.loading);
this.$el.classList.add("active");
this.$pane.classList.add("active");
this.focus();
this.props.onTitleChange();
this.properties.onTitleChange();
// Injecting preload css in webview to override some css rules
(async () => this.getWebContents().insertCSS(preloadCss))();
@@ -218,8 +332,8 @@ export default class WebView {
this.customCss = null;
ConfigUtil.setConfigItem("customCSS", null);
const errorMessage = "The custom css previously set is deleted!";
dialog.showErrorBox("custom css file deleted!", errorMessage);
const errorMessage = t.__("The custom CSS previously set is deleted.");
dialog.showErrorBox(t.__("Custom CSS file deleted"), errorMessage);
return;
}
@@ -227,81 +341,4 @@ export default class WebView {
this.getWebContents().insertCSS(fs.readFileSync(customCss, "utf8")))();
}
}
focus(): void {
this.$el.focus();
// Work around https://github.com/electron/electron/issues/31918
this.$el.shadowRoot?.querySelector("iframe")?.focus();
}
hide(): void {
this.$el.classList.remove("active");
}
load(): void {
this.show();
}
zoomIn(): void {
this.zoomFactor += 0.1;
this.getWebContents().setZoomFactor(this.zoomFactor);
}
zoomOut(): void {
this.zoomFactor -= 0.1;
this.getWebContents().setZoomFactor(this.zoomFactor);
}
zoomActualSize(): void {
this.zoomFactor = 1;
this.getWebContents().setZoomFactor(this.zoomFactor);
}
logOut(): void {
this.send("logout");
}
showKeyboardShortcuts(): void {
this.send("show-keyboard-shortcuts");
}
openDevTools(): void {
this.getWebContents().openDevTools();
}
back(): void {
if (this.getWebContents().canGoBack()) {
this.getWebContents().goBack();
this.focus();
}
}
canGoBackButton(): void {
const $backButton = document.querySelector(
"#actions-container #back-action",
)!;
$backButton.classList.toggle("disable", !this.getWebContents().canGoBack());
}
forward(): void {
if (this.getWebContents().canGoForward()) {
this.getWebContents().goForward();
}
}
reload(): void {
this.hide();
// Shows the loading indicator till the webview is reloaded
this.$webviewsContainer.remove("loaded");
this.loading = true;
this.props.switchLoading(true, this.props.url);
this.getWebContents().reload();
}
send<Channel extends keyof RendererMessage>(
channel: Channel,
...args: Parameters<RendererMessage[Channel]>
): void {
ipcRenderer.sendTo(this.webContentsId, channel, ...args);
}
}

View File

@@ -1,15 +1,17 @@
import {EventEmitter} from "events"; // eslint-disable-line unicorn/prefer-node-protocol
import {EventEmitter} from "node:events";
import type {ClipboardDecrypter} from "./clipboard-decrypter.js";
import {ClipboardDecrypterImpl} from "./clipboard-decrypter.js";
import type {NotificationData} from "./notification/index.js";
import {newNotification} from "./notification/index.js";
import {
type ClipboardDecrypter,
ClipboardDecrypterImplementation,
} from "./clipboard-decrypter.js";
import {type NotificationData, newNotification} from "./notification/index.js";
import {ipcRenderer} from "./typed-ipc-renderer.js";
type ListenerType = (...args: any[]) => void;
type ListenerType = (...arguments_: any[]) => void;
/* eslint-disable @typescript-eslint/naming-convention */
export type ElectronBridge = {
send_event: (eventName: string | symbol, ...args: unknown[]) => boolean;
send_event: (eventName: string | symbol, ...arguments_: unknown[]) => boolean;
on_event: (eventName: string, listener: ListenerType) => void;
new_notification: (
title: string,
@@ -22,6 +24,7 @@ export type ElectronBridge = {
set_send_notification_reply_message_supported: (value: boolean) => void;
decrypt_clipboard: (version: number) => ClipboardDecrypter;
};
/* eslint-enable @typescript-eslint/naming-convention */
let notificationReplySupported = false;
// Indicates if the user is idle or not
@@ -29,12 +32,12 @@ let idle = false;
// Indicates the time at which user was last active
let lastActive = Date.now();
export const bridgeEvents = new EventEmitter();
export const bridgeEvents = new EventEmitter(); // eslint-disable-line unicorn/prefer-event-target
/* eslint-disable @typescript-eslint/naming-convention */
const electron_bridge: ElectronBridge = {
send_event: (eventName: string | symbol, ...args: unknown[]): boolean =>
bridgeEvents.emit(eventName, ...args),
send_event: (eventName: string | symbol, ...arguments_: unknown[]): boolean =>
bridgeEvents.emit(eventName, ...arguments_),
on_event(eventName: string, listener: ListenerType): void {
bridgeEvents.on(eventName, listener);
@@ -58,7 +61,7 @@ const electron_bridge: ElectronBridge = {
},
decrypt_clipboard: (version: number): ClipboardDecrypter =>
new ClipboardDecrypterImpl(version),
new ClipboardDecrypterImplementation(version),
};
/* eslint-enable @typescript-eslint/naming-convention */
@@ -105,7 +108,7 @@ ipcRenderer.on("set-idle", () => {
// This follows node's idiomatic implementation of event
// emitters to make event handling more simpler instead of using
// functions zulip side will emit event using ElectronBrigde.send_event
// functions zulip side will emit event using ElectronBridge.send_event
// which is alias of .emit and on this side we can handle the data by adding
// a listener for the event.
export default electron_bridge;

View File

@@ -1,113 +0,0 @@
"use strict";
type ElectronBridge = import("./electron-bridge.js").ElectronBridge;
type CompatElectronBridge = {
readonly idle_on_system: boolean;
readonly last_active_on_system: number;
send_notification_reply_message_supported: boolean;
} & ElectronBridge;
(() => {
const zulipWindow = window as typeof window & {
electron_bridge: CompatElectronBridge;
raw_electron_bridge: ElectronBridge;
};
/* eslint-disable @typescript-eslint/naming-convention */
const electron_bridge: CompatElectronBridge = {
...zulipWindow.raw_electron_bridge,
get idle_on_system(): boolean {
return this.get_idle_on_system();
},
get last_active_on_system(): number {
return this.get_last_active_on_system();
},
get send_notification_reply_message_supported(): boolean {
return this.get_send_notification_reply_message_supported();
},
set send_notification_reply_message_supported(value: boolean) {
this.set_send_notification_reply_message_supported(value);
},
};
/* eslint-enable @typescript-eslint/naming-convention */
zulipWindow.electron_bridge = electron_bridge;
function attributeListener<T extends EventTarget>(
type: string,
): PropertyDescriptor {
const handlers = new WeakMap<T, (event: Event) => unknown>();
function listener(this: T, event: Event): void {
if (handlers.get(this)!.call(this, event) === false) {
event.preventDefault();
}
}
return {
configurable: true,
enumerable: true,
get(this: T) {
return handlers.get(this);
},
set(this: T, value: unknown) {
if (typeof value === "function") {
if (!handlers.has(this)) {
this.addEventListener(type, listener);
}
handlers.set(this, value as (event: Event) => unknown);
} else if (handlers.has(this)) {
this.removeEventListener(type, listener);
handlers.delete(this);
}
},
};
}
// eslint-disable-next-line @typescript-eslint/naming-convention
const NativeNotification = Notification;
class InjectedNotification extends EventTarget {
static get permission(): NotificationPermission {
return NativeNotification.permission;
}
static async requestPermission(
callback?: NotificationPermissionCallback,
): Promise<NotificationPermission> {
if (callback) {
callback(await Promise.resolve(NativeNotification.permission));
}
return NativeNotification.permission;
}
constructor(title: string, options: NotificationOptions = {}) {
super();
Object.assign(
this,
electron_bridge.new_notification(
title,
options,
(type: string, eventInit: EventInit) =>
this.dispatchEvent(new Event(type, eventInit)),
),
);
}
}
Object.defineProperties(InjectedNotification.prototype, {
onclick: attributeListener("click"),
onclose: attributeListener("close"),
onerror: attributeListener("error"),
onshow: attributeListener("show"),
});
window.Notification = InjectedNotification as unknown as typeof Notification;
})();

View File

@@ -1,23 +1,30 @@
import {clipboard} from "electron/common";
import fs from "node:fs";
import path from "node:path";
import process from "node:process";
import url from "node:url";
import {Menu, app, dialog, session} from "@electron/remote";
import * as remote from "@electron/remote";
import * as Sentry from "@sentry/electron";
import * as Sentry from "@sentry/electron/renderer";
import type {Config} from "../../common/config-util.js";
import * as ConfigUtil from "../../common/config-util.js";
import * as DNDUtil from "../../common/dnd-util.js";
import type {DndSettings} from "../../common/dnd-util.js";
import * as EnterpriseUtil from "../../common/enterprise-util.js";
import {html} from "../../common/html.js";
import * as LinkUtil from "../../common/link-util.js";
import Logger from "../../common/logger-util.js";
import * as Messages from "../../common/messages.js";
import {bundlePath, bundleUrl} from "../../common/paths.js";
import type {NavItem, ServerConf, TabData} from "../../common/types.js";
import * as t from "../../common/translation-util.js";
import type {
NavigationItem,
ServerConfig,
TabData,
TabPage,
} from "../../common/types.js";
import defaultIcon from "../img/icon.png";
import FunctionalTab from "./components/functional-tab.js";
import ServerTab from "./components/server-tab.js";
@@ -77,7 +84,7 @@ export class ServerManagerView {
loading: Set<string>;
activeTabIndex: number;
tabs: ServerOrFunctionalTab[];
functionalTabs: Map<string, number>;
functionalTabs: Map<TabPage, number>;
tabIndex: number;
presetOrgs: string[];
preferenceView?: PreferenceView;
@@ -248,8 +255,8 @@ export class ServerManagerView {
// promise of addition resolves in both cases, but we consider it rejected
// if the resolved value is false
try {
const serverConf = await DomainUtil.checkDomain(domain);
await DomainUtil.addDomain(serverConf);
const serverConfig = await DomainUtil.checkDomain(domain);
await DomainUtil.addDomain(serverConfig);
return true;
} catch (error: unknown) {
logger.error(error);
@@ -283,12 +290,9 @@ export class ServerManagerView {
// ask them before reloading the app
const {response} = await dialog.showMessageBox({
type: "question",
buttons: ["Yes", "Later"],
buttons: [t.__("Yes"), t.__("Later")],
defaultId: 0,
message:
"New server" +
(domainsAdded.length > 1 ? "s" : "") +
" added. Reload app now?",
message: t.__("New servers added. Reload app now?"),
});
if (response === 0) {
ipcRenderer.send("reload-full-app");
@@ -323,7 +327,18 @@ export class ServerManagerView {
const servers = DomainUtil.getDomains();
if (servers.length > 0) {
for (const [i, server] of servers.entries()) {
this.initServer(server, i);
const tab = this.initServer(server, i);
(async () => {
const serverConfig = await DomainUtil.updateSavedServer(
server.url,
i,
);
tab.setLabel(serverConfig.alias);
tab.setIcon(DomainUtil.iconAsUrl(serverConfig.icon));
(await tab.webview).setUnsupportedMessage(
DomainUtil.getUnsupportedMessage(serverConfig),
);
})();
}
// Open last active tab
@@ -332,11 +347,7 @@ export class ServerManagerView {
lastActiveTab = 0;
}
// `checkDomain()` and `webview.load()` for lastActiveTab before the others
await DomainUtil.updateSavedServer(
servers[lastActiveTab].url,
lastActiveTab,
);
// `webview.load()` for lastActiveTab before the others
await this.activateTab(lastActiveTab);
await Promise.all(
servers.map(async (server, i) => {
@@ -346,7 +357,6 @@ export class ServerManagerView {
return;
}
await DomainUtil.updateSavedServer(server.url, i);
const tab = this.tabs[i];
if (tab instanceof ServerTab) (await tab.webview).load();
}),
@@ -361,16 +371,12 @@ export class ServerManagerView {
}
}
initServer(server: ServerConf, index: number): void {
initServer(server: ServerConfig, index: number): ServerTab {
const tabIndex = this.getTabIndex();
this.tabs.push(
new ServerTab({
const tab = new ServerTab({
role: "server",
icon: `data:application/octet-stream;base64,${fs.readFileSync(
server.icon,
"base64",
)}`,
name: server.alias,
icon: DomainUtil.iconAsUrl(server.icon),
label: server.alias,
$root: this.$tabsContainer,
onClick: this.activateLastTab.bind(this, index),
index,
@@ -385,7 +391,9 @@ export class ServerManagerView {
url: server.url,
role: "server",
hasPermission: (origin: string, permission: string) =>
origin === server.url && permission === "notifications",
origin === server.url &&
permission === "notifications" &&
ConfigUtil.getConfigItem("showNotification", true),
isActive: () => index === this.activeTabIndex,
switchLoading: async (loading: boolean, url: string) => {
if (loading) {
@@ -397,7 +405,7 @@ export class ServerManagerView {
const tab = this.tabs[this.activeTabIndex];
this.showLoading(
tab instanceof ServerTab &&
this.loading.has((await tab.webview).props.url),
this.loading.has((await tab.webview).properties.url),
);
},
onNetworkError: async (index: number) => {
@@ -405,10 +413,12 @@ export class ServerManagerView {
},
onTitleChange: this.updateBadge.bind(this),
preload: url.pathToFileURL(path.join(bundlePath, "preload.js")).href,
unsupportedMessage: DomainUtil.getUnsupportedMessage(server),
}),
}),
);
});
this.tabs.push(tab);
this.loading.add(server.url);
return tab;
}
initActions(): void {
@@ -422,7 +432,7 @@ export class ServerManagerView {
document.querySelectorAll(".server-icons");
for (const [index, $serverImg] of $serverImgs.entries()) {
this.addContextMenu($serverImg, index);
if ($serverImg.src.includes("img/icon.png")) {
if ($serverImg.src === defaultIcon) {
this.displayInitialCharLogo($serverImg, index);
}
@@ -478,7 +488,7 @@ export class ServerManagerView {
async getCurrentActiveServer(): Promise<string> {
const tab = this.tabs[this.activeTabIndex];
return tab instanceof ServerTab ? (await tab.webview).props.url : "";
return tab instanceof ServerTab ? (await tab.webview).properties.url : "";
}
displayInitialCharLogo($img: HTMLImageElement, index: number): void {
@@ -496,7 +506,7 @@ export class ServerManagerView {
const realmName = $webview.getAttribute("name");
if (realmName === null) {
$img.src = "/img/icon.png";
$img.src = defaultIcon;
return;
}
@@ -547,36 +557,38 @@ export class ServerManagerView {
this.$serverIconTooltip[index].style.display = "none";
}
async openFunctionalTab(tabProps: {
name: string;
async openFunctionalTab(tabProperties: {
label: string;
page: TabPage;
materialIcon: string;
makeView: () => Promise<Element>;
destroyView: () => void;
}): Promise<void> {
if (this.functionalTabs.has(tabProps.name)) {
await this.activateTab(this.functionalTabs.get(tabProps.name)!);
if (this.functionalTabs.has(tabProperties.page)) {
await this.activateTab(this.functionalTabs.get(tabProperties.page)!);
return;
}
const index = this.tabs.length;
this.functionalTabs.set(tabProps.name, index);
this.functionalTabs.set(tabProperties.page, index);
const tabIndex = this.getTabIndex();
const $view = await tabProps.makeView();
const $view = await tabProperties.makeView();
this.$webviewsContainer.append($view);
this.tabs.push(
new FunctionalTab({
role: "function",
materialIcon: tabProps.materialIcon,
name: tabProps.name,
materialIcon: tabProperties.materialIcon,
label: tabProperties.label,
page: tabProperties.page,
$root: this.$tabsContainer,
index,
tabIndex,
onClick: this.activateTab.bind(this, index),
onDestroy: async () => {
await this.destroyTab(tabProps.name, index);
tabProps.destroyView();
await this.destroyFunctionalTab(tabProperties.page, index);
tabProperties.destroyView();
},
$view,
}),
@@ -586,12 +598,15 @@ export class ServerManagerView {
// closed when the functional tab DOM is ready, handled in webview.js
this.$webviewsContainer.classList.remove("loaded");
await this.activateTab(this.functionalTabs.get(tabProps.name)!);
await this.activateTab(this.functionalTabs.get(tabProperties.page)!);
}
async openSettings(nav: NavItem = "General"): Promise<void> {
async openSettings(
navigationItem: NavigationItem = "General",
): Promise<void> {
await this.openFunctionalTab({
name: "Settings",
page: "Settings",
label: t.__("Settings"),
materialIcon: "settings",
makeView: async () => {
this.preferenceView = await PreferenceView.create();
@@ -604,13 +619,14 @@ export class ServerManagerView {
},
});
this.$settingsButton.classList.add("active");
this.preferenceView!.handleNavigation(nav);
this.preferenceView!.handleNavigation(navigationItem);
}
async openAbout(): Promise<void> {
let aboutView: AboutView;
await this.openFunctionalTab({
name: "About",
page: "About",
label: t.__("About"),
materialIcon: "sentiment_very_satisfied",
async makeView() {
aboutView = await AboutView.create();
@@ -643,13 +659,14 @@ export class ServerManagerView {
// Returns this.tabs in an way that does
// not crash app when this.tabs is passed into
// ipcRenderer. Something about webview, and props.webview
// ipcRenderer. Something about webview, and properties.webview
// properties in ServerTab causes the app to crash.
get tabsForIpc(): TabData[] {
return this.tabs.map((tab) => ({
role: tab.props.role,
name: tab.props.name,
index: tab.props.index,
role: tab.properties.role,
page: tab.properties.page,
label: tab.properties.label,
index: tab.properties.index,
}));
}
@@ -667,8 +684,8 @@ export class ServerManagerView {
if (hideOldTab) {
// If old tab is functional tab Settings, remove focus from the settings icon at sidebar bottom
if (
this.tabs[this.activeTabIndex].props.role === "function" &&
this.tabs[this.activeTabIndex].props.name === "Settings"
this.tabs[this.activeTabIndex].properties.role === "function" &&
this.tabs[this.activeTabIndex].properties.page === "Settings"
) {
this.$settingsButton.classList.remove("active");
}
@@ -692,7 +709,7 @@ export class ServerManagerView {
this.showLoading(
tab instanceof ServerTab &&
this.loading.has((await tab.webview).props.url),
this.loading.has((await tab.webview).properties.url),
);
ipcRenderer.send("update-menu", {
@@ -701,7 +718,7 @@ export class ServerManagerView {
tabs: this.tabsForIpc,
activeTabIndex: this.activeTabIndex,
// Following flag controls whether a menu item should be enabled or not
enableMenu: tab.props.role === "server",
enableMenu: tab.properties.role === "server",
});
}
@@ -710,7 +727,7 @@ export class ServerManagerView {
this.$loadingIndicator.classList.toggle("hidden", !loading);
}
async destroyTab(name: string, index: number): Promise<void> {
async destroyFunctionalTab(page: TabPage, index: number): Promise<void> {
const tab = this.tabs[index];
if (tab instanceof ServerTab && (await tab.webview).loading) {
return;
@@ -718,8 +735,8 @@ export class ServerManagerView {
await tab.destroy();
delete this.tabs[index];
this.functionalTabs.delete(name);
delete this.tabs[index]; // eslint-disable-line @typescript-eslint/no-array-delete
this.functionalTabs.delete(page);
// Issue #188: If the functional tab was not focused, do not activate another tab.
if (this.activeTabIndex === index) {
@@ -743,7 +760,7 @@ export class ServerManagerView {
async reloadView(): Promise<void> {
// Save and remember the index of last active tab so that we can use it later
const lastActiveTab = this.tabs[this.activeTabIndex].props.index;
const lastActiveTab = this.tabs[this.activeTabIndex].properties.index;
ConfigUtil.setConfigItem("lastActiveTab", lastActiveTab);
// Destroy the current view and re-initiate it
@@ -799,13 +816,15 @@ export class ServerManagerView {
event.preventDefault();
const template = [
{
label: "Disconnect organization",
label: t.__("Disconnect organization"),
async click() {
const {response} = await dialog.showMessageBox({
type: "warning",
buttons: ["YES", "NO"],
buttons: [t.__("Yes"), t.__("No")],
defaultId: 0,
message: "Are you sure you want to disconnect this organization?",
message: t.__(
"Are you sure you want to disconnect this organization?",
),
});
if (response === 0) {
if (DomainUtil.removeDomain(index)) {
@@ -820,7 +839,7 @@ export class ServerManagerView {
},
},
{
label: "Notification settings",
label: t.__("Notification settings"),
enabled: await this.isLoggedIn(index),
click: async () => {
// Switch to tab whose icon was right-clicked
@@ -831,7 +850,7 @@ export class ServerManagerView {
},
},
{
label: "Copy Zulip URL",
label: t.__("Copy Zulip URL"),
click() {
clipboard.writeText(DomainUtil.getDomain(index).url);
},
@@ -921,7 +940,7 @@ export class ServerManagerView {
ipcRenderer.on(
"permission-request",
async (
event: Event,
event,
{
webContentsId,
origin,
@@ -943,7 +962,7 @@ export class ServerManagerView {
const webview = await tab.webview;
return (
webview.webContentsId === webContentsId &&
webview.props.hasPermission?.(origin, permission)
webview.properties.hasPermission?.(origin, permission)
);
}),
)
@@ -970,10 +989,7 @@ export class ServerManagerView {
await LinkUtil.openBrowser(new URL("https://zulip.com/help/"));
});
ipcRenderer.on(
"reload-viewer",
this.reloadView.bind(this, this.tabs[this.activeTabIndex].props.index),
);
ipcRenderer.on("reload-viewer", this.reloadView.bind(this));
ipcRenderer.on("reload-current-viewer", this.reloadCurrentView.bind(this));
@@ -981,7 +997,7 @@ export class ServerManagerView {
ipcRenderer.send("reload-full-app");
});
ipcRenderer.on("switch-server-tab", async (event: Event, index: number) => {
ipcRenderer.on("switch-server-tab", async (event, index: number) => {
await this.activateLastTab(index);
});
@@ -989,23 +1005,23 @@ export class ServerManagerView {
await this.openSettings("AddServer");
});
ipcRenderer.on("reload-proxy", async (event: Event, showAlert: boolean) => {
ipcRenderer.on("reload-proxy", async (event, showAlert: boolean) => {
await this.loadProxy();
if (showAlert) {
await dialog.showMessageBox({
message: "Proxy settings saved!",
buttons: ["OK"],
message: t.__("Proxy settings saved."),
buttons: [t.__("OK")],
});
ipcRenderer.send("reload-full-app");
}
});
ipcRenderer.on("toggle-sidebar", async (event: Event, show: boolean) => {
ipcRenderer.on("toggle-sidebar", async (event, show: boolean) => {
// Toggle the left sidebar
this.toggleSidebar(show);
});
ipcRenderer.on("toggle-silent", async (event: Event, state: boolean) =>
ipcRenderer.on("toggle-silent", async (event, state: boolean) =>
Promise.all(
this.tabs.map(async (tab) => {
if (tab instanceof ServerTab)
@@ -1016,7 +1032,7 @@ export class ServerManagerView {
ipcRenderer.on(
"toggle-autohide-menubar",
async (event: Event, autoHideMenubar: boolean, updateMenu: boolean) => {
async (event, autoHideMenubar: boolean, updateMenu: boolean) => {
if (updateMenu) {
ipcRenderer.send("update-menu", {
tabs: this.tabsForIpc,
@@ -1028,11 +1044,7 @@ export class ServerManagerView {
ipcRenderer.on(
"toggle-dnd",
async (
event: Event,
state: boolean,
newSettings: Partial<DndSettings>,
) => {
async (event, state: boolean, newSettings: Partial<DndSettings>) => {
this.toggleDndButton(state);
ipcRenderer.send(
"forward-message",
@@ -1044,16 +1056,11 @@ export class ServerManagerView {
ipcRenderer.on(
"update-realm-name",
(event: Event, serverURL: string, realmName: string) => {
(event, serverURL: string, realmName: string) => {
for (const [index, domain] of DomainUtil.getDomains().entries()) {
if (domain.url.includes(serverURL)) {
const serverTooltipSelector = ".tab .server-tooltip";
const serverTooltips = document.querySelectorAll(
serverTooltipSelector,
);
serverTooltips[index].textContent = realmName;
this.tabs[index].props.name = realmName;
if (domain.url === serverURL) {
const tab = this.tabs[index];
if (tab instanceof ServerTab) tab.setLabel(realmName);
domain.alias = realmName;
DomainUtil.updateDomain(index, domain);
// Update the realm name also on the Window menu
@@ -1068,18 +1075,15 @@ export class ServerManagerView {
ipcRenderer.on(
"update-realm-icon",
async (event: Event, serverURL: string, iconURL: string) => {
async (event, serverURL: string, iconURL: string) => {
await Promise.all(
DomainUtil.getDomains().map(async (domain, index) => {
if (domain.url.includes(serverURL)) {
const localIconUrl: string = await DomainUtil.saveServerIcon(
iconURL,
);
const serverImgsSelector = ".tab .server-icons";
const serverImgs: NodeListOf<HTMLImageElement> =
document.querySelectorAll(serverImgsSelector);
serverImgs[index].src = localIconUrl;
domain.icon = localIconUrl;
if (domain.url === serverURL) {
const localIconPath = await DomainUtil.saveServerIcon(iconURL);
const tab = this.tabs[index];
if (tab instanceof ServerTab)
tab.setIcon(DomainUtil.iconAsUrl(localIconPath));
domain.icon = localIconPath;
DomainUtil.updateDomain(index, domain);
}
}),
@@ -1096,9 +1100,7 @@ export class ServerManagerView {
this.$fullscreenPopup.classList.remove("show");
});
ipcRenderer.on(
"focus-webview-with-id",
async (event: Event, webviewId: number) =>
ipcRenderer.on("focus-webview-with-id", async (event, webviewId: number) =>
Promise.all(
this.tabs.map(async (tab) => {
if (
@@ -1106,7 +1108,7 @@ export class ServerManagerView {
(await tab.webview).webContentsId === webviewId
) {
const concurrentTab: HTMLButtonElement = document.querySelector(
`div[data-tab-id="${CSS.escape(`${tab.props.tabIndex}`)}"]`,
`div[data-tab-id="${CSS.escape(`${tab.properties.tabIndex}`)}"]`,
)!;
concurrentTab.click();
}
@@ -1114,31 +1116,29 @@ export class ServerManagerView {
),
);
ipcRenderer.on(
"render-taskbar-icon",
(event: Event, messageCount: number) => {
// Create a canvas from unread messagecounts
ipcRenderer.on("render-taskbar-icon", (event, messageCount: number) => {
// Create a canvas from unread message counts
function createOverlayIcon(messageCount: number): HTMLCanvasElement {
const canvas = document.createElement("canvas");
canvas.height = 128;
canvas.width = 128;
canvas.style.letterSpacing = "-5px";
const ctx = canvas.getContext("2d")!;
ctx.fillStyle = "#f42020";
ctx.beginPath();
ctx.ellipse(64, 64, 64, 64, 0, 0, 2 * Math.PI);
ctx.fill();
ctx.textAlign = "center";
ctx.fillStyle = "white";
const context = canvas.getContext("2d")!;
context.fillStyle = "#f42020";
context.beginPath();
context.ellipse(64, 64, 64, 64, 0, 0, 2 * Math.PI);
context.fill();
context.textAlign = "center";
context.fillStyle = "white";
if (messageCount > 99) {
ctx.font = "65px Helvetica";
ctx.fillText("99+", 64, 85);
context.font = "65px Helvetica";
context.fillText("99+", 64, 85);
} else if (messageCount < 10) {
ctx.font = "90px Helvetica";
ctx.fillText(String(Math.min(99, messageCount)), 64, 96);
context.font = "90px Helvetica";
context.fillText(String(Math.min(99, messageCount)), 64, 96);
} else {
ctx.font = "85px Helvetica";
ctx.fillText(String(Math.min(99, messageCount)), 64, 90);
context.font = "85px Helvetica";
context.fillText(String(Math.min(99, messageCount)), 64, 90);
}
return canvas;
@@ -1149,8 +1149,7 @@ export class ServerManagerView {
createOverlayIcon(messageCount).toDataURL(),
String(messageCount),
);
},
);
});
ipcRenderer.on("copy-zulip-url", async () => {
clipboard.writeText(await this.getCurrentActiveServer());
@@ -1187,6 +1186,62 @@ export class ServerManagerView {
}
window.addEventListener("load", async () => {
document.body.innerHTML = html`
<div id="content">
<div class="popup">
<span class="popuptext hidden" id="fullscreen-popup"></span>
</div>
<div id="sidebar" class="toggle-sidebar">
<div id="view-controls-container">
<div id="tabs-container"></div>
<div id="add-tab" class="tab functional-tab">
<div class="server-tab" id="add-action">
<i class="material-icons">add</i>
</div>
<span id="add-server-tooltip" style="display: none"
>${t.__("Add Organization")}</span
>
</div>
</div>
<div id="actions-container">
<div class="action-button" id="dnd-action">
<i class="material-icons md-48">notifications</i>
<span id="dnd-tooltip" style="display: none"
>${t.__("Do Not Disturb")}</span
>
</div>
<div class="action-button hidden" id="reload-action">
<i class="material-icons md-48">refresh</i>
<span id="reload-tooltip" style="display: none"
>${t.__("Reload")}</span
>
</div>
<div class="action-button disable" id="loading-action">
<i class="refresh material-icons md-48">loop</i>
<span id="loading-tooltip" style="display: none"
>${t.__("Loading")}</span
>
</div>
<div class="action-button disable" id="back-action">
<i class="material-icons md-48">arrow_back</i>
<span id="back-tooltip" style="display: none"
>${t.__("Go Back")}</span
>
</div>
<div class="action-button" id="settings-action">
<i class="material-icons md-48">settings</i>
<span id="setting-tooltip" style="display: none"
>${t.__("Settings")}</span
>
</div>
</div>
</div>
<div id="main-container">
<div id="webviews-container"></div>
</div>
</div>
`.html;
const serverManagerView = new ServerManagerView();
await serverManagerView.init();
});

View File

@@ -18,10 +18,10 @@ export function newNotification(
): NotificationData {
const notification = new Notification(title, {...options, silent: true});
for (const type of ["click", "close", "error", "show"]) {
notification.addEventListener(type, (ev: Event) => {
notification.addEventListener(type, (event) => {
if (type === "click") ipcRenderer.send("focus-this-webview");
if (!dispatch(type, ev)) {
ev.preventDefault();
if (!dispatch(type, event)) {
event.preventDefault();
}
});
}

View File

@@ -1,6 +1,9 @@
import {app} from "@electron/remote";
import {Html, html} from "../../../common/html.js";
import {bundleUrl} from "../../../common/paths.js";
import * as t from "../../../common/translation-util.js";
import {generateNodeFromHtml} from "../components/base.js";
export class AboutView {
static async create(): Promise<AboutView> {
@@ -16,6 +19,32 @@ export class AboutView {
const $shadow = this.$view.attachShadow({mode: "open"});
$shadow.innerHTML = templateHtml;
$shadow.querySelector("#version")!.textContent = `v${app.getVersion()}`;
const maintenanceInfoHtml = html`
<div class="maintenance-info">
<p class="detail maintainer">
${new Html({
html: t.__("Maintained by {{{link}}}Zulip{{{endLink}}}", {
link: '<a href="https://zulip.com" target="_blank" rel="noopener noreferrer">',
endLink: "</a>",
}),
})}
</p>
<p class="detail license">
${new Html({
html: t.__(
"Available under the {{{link}}}Apache 2.0 License{{{endLink}}}",
{
link: '<a href="https://github.com/zulip/zulip-desktop/blob/main/LICENSE" target="_blank" rel="noopener noreferrer">',
endLink: "</a>",
},
),
})}
</p>
</div>
`;
$shadow
.querySelector(".about")!
.append(generateNodeFromHtml(maintenanceInfoHtml));
}
destroy() {

View File

@@ -1,17 +1,16 @@
import type {Html} from "../../../../common/html.js";
import {html} from "../../../../common/html.js";
import {type Html, html} from "../../../../common/html.js";
import {generateNodeFromHtml} from "../../components/base.js";
import {ipcRenderer} from "../../typed-ipc-renderer.js";
type BaseSectionProps = {
type BaseSectionProperties = {
$element: HTMLElement;
disabled?: boolean;
value: boolean;
clickHandler: () => void;
};
export function generateSettingOption(props: BaseSectionProps): void {
const {$element, disabled, value, clickHandler} = props;
export function generateSettingOption(properties: BaseSectionProperties): void {
const {$element, disabled, value, clickHandler} = properties;
$element.textContent = "";
@@ -30,8 +29,7 @@ export function generateOptionHtml(
disabled?: boolean,
): Html {
const labelHtml = disabled
? // eslint-disable-next-line unicorn/template-indent
html`<label
? html`<label
class="disallowed"
title="Setting locked by system administrator."
></label>`

View File

@@ -7,13 +7,13 @@ import {reloadApp} from "./base-section.js";
import {initFindAccounts} from "./find-accounts.js";
import {initServerInfoForm} from "./server-info-form.js";
type ConnectedOrgSectionProps = {
type ConnectedOrgSectionProperties = {
$root: Element;
};
export function initConnectedOrgSection({
$root,
}: ConnectedOrgSectionProps): void {
}: ConnectedOrgSectionProperties): void {
$root.textContent = "";
const servers = DomainUtil.getDomains();
@@ -21,7 +21,7 @@ export function initConnectedOrgSection({
<div class="settings-pane" id="server-settings-pane">
<div class="page-title">${t.__("Connected organizations")}</div>
<div class="title" id="existing-servers">
${t.__("All the connected orgnizations will appear here.")}
${t.__("All the connected organizations will appear here.")}
</div>
<div id="server-info-container"></div>
<div id="new-org-button">
@@ -42,7 +42,9 @@ export function initConnectedOrgSection({
"#find-accounts-container",
)!;
const noServerText = t.__("All the connected orgnizations will appear here");
const noServerText = t.__(
"All the connected organizations will appear here.",
);
// Show noServerText if no servers are there otherwise hide it
$existingServers.textContent = servers.length === 0 ? noServerText : "";

View File

@@ -3,7 +3,7 @@ import * as LinkUtil from "../../../../common/link-util.js";
import * as t from "../../../../common/translation-util.js";
import {generateNodeFromHtml} from "../../components/base.js";
type FindAccountsProps = {
type FindAccountsProperties = {
$root: Element;
};
@@ -19,7 +19,7 @@ async function findAccounts(url: string): Promise<void> {
await LinkUtil.openBrowser(new URL("/accounts/find", url));
}
export function initFindAccounts(props: FindAccountsProps): void {
export function initFindAccounts(properties: FindAccountsProperties): void {
const $findAccounts = generateNodeFromHtml(html`
<div class="settings-card certificate-card">
<div class="certificate-input">
@@ -33,7 +33,7 @@ export function initFindAccounts(props: FindAccountsProps): void {
</div>
</div>
`);
props.$root.append($findAccounts);
properties.$root.append($findAccounts);
const $findAccountsButton = $findAccounts.querySelector(
"#find-accounts-button",
)!;

View File

@@ -6,8 +6,7 @@ import process from "node:process";
import * as remote from "@electron/remote";
import {app, dialog, session} from "@electron/remote";
import Tagify from "@yaireo/tagify";
import ISO6391 from "iso-639-1";
import * as z from "zod";
import {z} from "zod";
import supportedLocales from "../../../../../public/translations/supported-locales.json";
import * as ConfigUtil from "../../../../common/config-util.js";
@@ -20,11 +19,11 @@ import {generateSelectHtml, generateSettingOption} from "./base-section.js";
const currentBrowserWindow = remote.getCurrentWindow();
type GeneralSectionProps = {
type GeneralSectionProperties = {
$root: Element;
};
export function initGeneralSection({$root}: GeneralSectionProps): void {
export function initGeneralSection({$root}: GeneralSectionProperties): void {
$root.innerHTML = html`
<div class="settings-pane">
<div class="title">${t.__("Appearance")}</div>
@@ -57,7 +56,7 @@ export function initGeneralSection({$root}: GeneralSectionProps): void {
</div>
<div class="setting-row" id="badge-option">
<div class="setting-description">
${t.__("Show app unread badge")}
${t.__("Show unread count badge on app icon")}
</div>
<div class="setting-control"></div>
</div>
@@ -356,7 +355,8 @@ export function initGeneralSection({$root}: GeneralSectionProps): void {
const newValue = !ConfigUtil.getConfigItem("silent", true);
ConfigUtil.setConfigItem("silent", newValue);
updateSilentOption();
ipcRenderer.sendTo(
ipcRenderer.send(
"forward-to",
currentBrowserWindow.webContents.id,
"toggle-silent",
newValue,
@@ -455,14 +455,13 @@ export function initGeneralSection({$root}: GeneralSectionProps): void {
async function customCssDialog(): Promise<void> {
const showDialogOptions: OpenDialogOptions = {
title: "Select file",
title: t.__("Select file"),
properties: ["openFile"],
filters: [{name: "CSS file", extensions: ["css"]}],
filters: [{name: t.__("CSS file"), extensions: ["css"]}],
};
const {filePaths, canceled} = await dialog.showOpenDialog(
showDialogOptions,
);
const {filePaths, canceled} =
await dialog.showOpenDialog(showDialogOptions);
if (!canceled) {
ConfigUtil.setConfigItem("customCSS", filePaths[0]);
ipcRenderer.send("forward-message", "hard-reload");
@@ -525,13 +524,12 @@ export function initGeneralSection({$root}: GeneralSectionProps): void {
async function downloadFolderDialog(): Promise<void> {
const showDialogOptions: OpenDialogOptions = {
title: "Select Download Location",
title: t.__("Select Download Location"),
properties: ["openDirectory"],
};
const {filePaths, canceled} = await dialog.showOpenDialog(
showDialogOptions,
);
const {filePaths, canceled} =
await dialog.showOpenDialog(showDialogOptions);
if (!canceled) {
ConfigUtil.setConfigItem("downloadsPath", filePaths[0]);
const downloadFolderPath: HTMLElement = $root.querySelector(
@@ -569,9 +567,9 @@ export function initGeneralSection({$root}: GeneralSectionProps): void {
const {response} = await dialog.showMessageBox({
type: "warning",
buttons: ["YES", "NO"],
buttons: [t.__("Yes"), t.__("No")],
defaultId: 0,
message: "Are you sure?",
message: t.__("Are you sure?"),
detail: clearAppDataMessage,
});
if (response === 0) {
@@ -592,7 +590,7 @@ export function initGeneralSection({$root}: GeneralSectionProps): void {
}
function initSpellChecker(): void {
// The elctron API is a no-op on macOS and macOS default spellchecker is used.
// The Electron API is a no-op on macOS and macOS default spellchecker is used.
if (process.platform === "darwin") {
const note: HTMLElement = $root.querySelector("#note")!;
note.append(t.__("On macOS, the OS spellchecker is used."));
@@ -610,7 +608,9 @@ export function initGeneralSection({$root}: GeneralSectionProps): void {
const spellDiv: HTMLElement = $root.querySelector("#spellcheck-langs")!;
spellDiv.innerHTML += html`
<div class="setting-description">${t.__("Spellchecker Languages")}</div>
<div id="spellcheck-langs-value">
<input name="spellcheck" placeholder="Enter Languages" />
</div>
`.html;
const availableLanguages = session.fromPartition(
@@ -618,26 +618,23 @@ export function initGeneralSection({$root}: GeneralSectionProps): void {
).availableSpellCheckerLanguages;
let languagePairs = new Map<string, string>();
for (const l of availableLanguages) {
if (ISO6391.validate(l)) {
languagePairs.set(ISO6391.getName(l), l);
const locale = new Intl.Locale(l.replaceAll("_", "-"));
let displayName = new Intl.DisplayNames([locale], {
type: "language",
}).of(locale.language);
if (displayName === undefined) continue;
displayName = displayName.replace(/^./u, (firstChar) =>
firstChar.toLocaleUpperCase(locale),
);
if (locale.script !== undefined)
displayName += ` (${new Intl.DisplayNames([locale], {type: "script"}).of(locale.script)})`;
if (locale.region !== undefined)
displayName += ` (${new Intl.DisplayNames([locale], {type: "region"}).of(locale.region)})`;
languagePairs.set(displayName, l);
}
}
// Manually set names for languages not available in ISO6391
languagePairs.set("English (AU)", "en-AU");
languagePairs.set("English (CA)", "en-CA");
languagePairs.set("English (GB)", "en-GB");
languagePairs.set("English (US)", "en-US");
languagePairs.set("Spanish (Latin America)", "es-419");
languagePairs.set("Spanish (Argentina)", "es-AR");
languagePairs.set("Spanish (Mexico)", "es-MX");
languagePairs.set("Spanish (US)", "es-US");
languagePairs.set("Portuguese (Brazil)", "pt-BR");
languagePairs.set("Portuguese (Portugal)", "pt-PT");
languagePairs.set("Serbo-Croatian", "sh");
languagePairs = new Map(
[...languagePairs].sort((a, b) => (a[0] < b[0] ? -1 : 1)),
[...languagePairs].sort((a, b) => a[0].localeCompare(b[1])),
);
const tagField: HTMLInputElement = $root.querySelector(
@@ -652,8 +649,20 @@ export function initGeneralSection({$root}: GeneralSectionProps): void {
maxItems: Number.POSITIVE_INFINITY,
closeOnSelect: false,
highlightFirst: true,
position: "manual",
classname: "settings-tagify-dropdown",
},
});
tagify.DOM.input.addEventListener("focus", () => {
tagify.dropdown.show();
$root
.querySelector("#spellcheck-langs-value")!
.append(tagify.DOM.dropdown);
});
tagify.DOM.input.addEventListener("blur", () => {
tagify.dropdown.hide(true);
tagify.DOM.dropdown.remove();
});
const configuredLanguages: string[] = (
ConfigUtil.getConfigItem("spellcheckerLanguages", null) ?? []

View File

@@ -1,74 +1,74 @@
import type {Html} from "../../../../common/html.js";
import {html} from "../../../../common/html.js";
import {type Html, html} from "../../../../common/html.js";
import * as t from "../../../../common/translation-util.js";
import type {NavItem} from "../../../../common/types.js";
import type {NavigationItem} from "../../../../common/types.js";
import {generateNodeFromHtml} from "../../components/base.js";
type PreferenceNavProps = {
type PreferenceNavigationProperties = {
$root: Element;
onItemSelected: (navItem: NavItem) => void;
onItemSelected: (navigationItem: NavigationItem) => void;
};
export default class PreferenceNav {
navItems: NavItem[];
export default class PreferenceNavigation {
navigationItems: Array<{navigationItem: NavigationItem; label: string}>;
$el: Element;
constructor(private readonly props: PreferenceNavProps) {
this.navItems = [
"General",
"Network",
"AddServer",
"Organizations",
"Shortcuts",
constructor(private readonly properties: PreferenceNavigationProperties) {
this.navigationItems = [
{navigationItem: "General", label: t.__("General")},
{navigationItem: "Network", label: t.__("Network")},
{navigationItem: "AddServer", label: t.__("Add Organization")},
{navigationItem: "Organizations", label: t.__("Organizations")},
{navigationItem: "Shortcuts", label: t.__("Shortcuts")},
];
this.$el = generateNodeFromHtml(this.templateHtml());
this.props.$root.append(this.$el);
this.properties.$root.append(this.$el);
this.registerListeners();
}
templateHtml(): Html {
const navItemsHtml = html``.join(
this.navItems.map(
(navItem) => html`
<div class="nav" id="nav-${navItem}">${t.__(navItem)}</div>
`,
const navigationItemsHtml = html``.join(
this.navigationItems.map(
({navigationItem, label}) =>
html`<div class="nav" id="nav-${navigationItem}">${label}</div>`,
),
);
return html`
<div>
<div id="settings-header">${t.__("Settings")}</div>
<div id="nav-container">${navItemsHtml}</div>
<div id="nav-container">${navigationItemsHtml}</div>
</div>
`;
}
registerListeners(): void {
for (const navItem of this.navItems) {
const $item = this.$el.querySelector(`#nav-${CSS.escape(navItem)}`)!;
for (const {navigationItem} of this.navigationItems) {
const $item = this.$el.querySelector(
`#nav-${CSS.escape(navigationItem)}`,
)!;
$item.addEventListener("click", () => {
this.props.onItemSelected(navItem);
this.properties.onItemSelected(navigationItem);
});
}
}
select(navItemToSelect: NavItem): void {
for (const navItem of this.navItems) {
if (navItem === navItemToSelect) {
this.activate(navItem);
select(navigationItemToSelect: NavigationItem): void {
for (const {navigationItem} of this.navigationItems) {
if (navigationItem === navigationItemToSelect) {
this.activate(navigationItem);
} else {
this.deactivate(navItem);
this.deactivate(navigationItem);
}
}
}
activate(navItem: NavItem): void {
const $item = this.$el.querySelector(`#nav-${CSS.escape(navItem)}`)!;
activate(navigationItem: NavigationItem): void {
const $item = this.$el.querySelector(`#nav-${CSS.escape(navigationItem)}`)!;
$item.classList.add("active");
}
deactivate(navItem: NavItem): void {
const $item = this.$el.querySelector(`#nav-${CSS.escape(navItem)}`)!;
deactivate(navigationItem: NavigationItem): void {
const $item = this.$el.querySelector(`#nav-${CSS.escape(navigationItem)}`)!;
$item.classList.remove("active");
}
}

View File

@@ -5,11 +5,11 @@ import {ipcRenderer} from "../../typed-ipc-renderer.js";
import {generateSettingOption} from "./base-section.js";
type NetworkSectionProps = {
type NetworkSectionProperties = {
$root: Element;
};
export function initNetworkSection({$root}: NetworkSectionProps): void {
export function initNetworkSection({$root}: NetworkSectionProperties): void {
$root.innerHTML = html`
<div class="settings-pane">
<div class="title">${t.__("Proxy")}</div>

View File

@@ -7,12 +7,15 @@ import {generateNodeFromHtml} from "../../components/base.js";
import {ipcRenderer} from "../../typed-ipc-renderer.js";
import * as DomainUtil from "../../utils/domain-util.js";
type NewServerFormProps = {
type NewServerFormProperties = {
$root: Element;
onChange: () => void;
};
export function initNewServerForm({$root, onChange}: NewServerFormProps): void {
export function initNewServerForm({
$root,
onChange,
}: NewServerFormProperties): void {
const $newServerForm = generateNodeFromHtml(html`
<div class="server-input-container">
<div class="title">${t.__("Organization URL")}</div>
@@ -58,9 +61,9 @@ export function initNewServerForm({$root, onChange}: NewServerFormProps): void {
async function submitFormHandler(): Promise<void> {
$saveServerButton.textContent = "Connecting...";
let serverConf;
let serverConfig;
try {
serverConf = await DomainUtil.checkDomain($newServerUrl.value.trim());
serverConfig = await DomainUtil.checkDomain($newServerUrl.value.trim());
} catch (error: unknown) {
$saveServerButton.textContent = "Connect";
await dialog.showMessageBox({
@@ -68,13 +71,13 @@ export function initNewServerForm({$root, onChange}: NewServerFormProps): void {
message:
error instanceof Error
? `${error.name}: ${error.message}`
: "Unknown error",
buttons: ["OK"],
: t.__("Unknown error"),
buttons: [t.__("OK")],
});
return;
}
await DomainUtil.addDomain(serverConf);
await DomainUtil.addDomain(serverConfig);
onChange();
}

View File

@@ -1,8 +1,9 @@
import type {IpcRendererEvent} from "electron/renderer";
import process from "node:process";
import type {DndSettings} from "../../../../common/dnd-util.js";
import {bundleUrl} from "../../../../common/paths.js";
import type {NavItem} from "../../../../common/types.js";
import type {NavigationItem} from "../../../../common/types.js";
import {ipcRenderer} from "../../typed-ipc-renderer.js";
import {initConnectedOrgSection} from "./connected-org-section.js";
@@ -25,7 +26,7 @@ export class PreferenceView {
private readonly $shadow: ShadowRoot;
private readonly $settingsContainer: Element;
private readonly nav: Nav;
private navItem: NavItem = "General";
private navigationItem: NavigationItem = "General";
private constructor(templateHtml: string) {
this.$view = document.createElement("div");
@@ -46,13 +47,13 @@ export class PreferenceView {
ipcRenderer.on("toggle-autohide-menubar", this.handleToggleMenubar);
ipcRenderer.on("toggle-dnd", this.handleToggleDnd);
this.handleNavigation(this.navItem);
this.handleNavigation(this.navigationItem);
}
handleNavigation = (navItem: NavItem): void => {
this.navItem = navItem;
this.nav.select(navItem);
switch (navItem) {
handleNavigation = (navigationItem: NavigationItem): void => {
this.navigationItem = navigationItem;
this.nav.select(navigationItem);
switch (navigationItem) {
case "AddServer": {
initServersSection({
$root: this.$settingsContainer,
@@ -87,13 +88,9 @@ export class PreferenceView {
});
break;
}
default: {
((n: never) => n)(navItem);
}
}
window.location.hash = `#${navItem}`;
location.hash = `#${navigationItem}`;
};
handleToggleTray(state: boolean) {
@@ -115,16 +112,22 @@ export class PreferenceView {
}
}
private readonly handleToggleSidebar = (_event: Event, state: boolean) => {
private readonly handleToggleSidebar = (
_event: IpcRendererEvent,
state: boolean,
) => {
this.handleToggle("sidebar-option", state);
};
private readonly handleToggleMenubar = (_event: Event, state: boolean) => {
private readonly handleToggleMenubar = (
_event: IpcRendererEvent,
state: boolean,
) => {
this.handleToggle("menubar-option", state);
};
private readonly handleToggleDnd = (
_event: Event,
_event: IpcRendererEvent,
_state: boolean,
newSettings: Partial<DndSettings>,
) => {

View File

@@ -3,32 +3,35 @@ import {dialog} from "@electron/remote";
import {html} from "../../../../common/html.js";
import * as Messages from "../../../../common/messages.js";
import * as t from "../../../../common/translation-util.js";
import type {ServerConf} from "../../../../common/types.js";
import type {ServerConfig} from "../../../../common/types.js";
import {generateNodeFromHtml} from "../../components/base.js";
import {ipcRenderer} from "../../typed-ipc-renderer.js";
import * as DomainUtil from "../../utils/domain-util.js";
type ServerInfoFormProps = {
type ServerInfoFormProperties = {
$root: Element;
server: ServerConf;
server: ServerConfig;
index: number;
onChange: () => void;
};
export function initServerInfoForm(props: ServerInfoFormProps): void {
export function initServerInfoForm(properties: ServerInfoFormProperties): void {
const $serverInfoForm = generateNodeFromHtml(html`
<div class="settings-card">
<div class="server-info-left">
<img class="server-info-icon" src="${props.server.icon}" />
<img
class="server-info-icon"
src="${DomainUtil.iconAsUrl(properties.server.icon)}"
/>
<div class="server-info-row">
<span class="server-info-alias">${props.server.alias}</span>
<span class="server-info-alias">${properties.server.alias}</span>
<i class="material-icons open-tab-button">open_in_new</i>
</div>
</div>
<div class="server-info-right">
<div class="server-info-row server-url">
<span class="server-url-info" title="${props.server.url}"
>${props.server.url}</span
<span class="server-url-info" title="${properties.server.url}"
>${properties.server.url}</span
>
</div>
<div class="server-info-row">
@@ -45,21 +48,21 @@ export function initServerInfoForm(props: ServerInfoFormProps): void {
".server-delete-action",
)!;
const $openServerButton = $serverInfoForm.querySelector(".open-tab-button")!;
props.$root.append($serverInfoForm);
properties.$root.append($serverInfoForm);
$deleteServerButton.addEventListener("click", async () => {
const {response} = await dialog.showMessageBox({
type: "warning",
buttons: [t.__("YES"), t.__("NO")],
buttons: [t.__("Yes"), t.__("No")],
defaultId: 0,
message: t.__("Are you sure you want to disconnect this organization?"),
});
if (response === 0) {
if (DomainUtil.removeDomain(props.index)) {
if (DomainUtil.removeDomain(properties.index)) {
ipcRenderer.send("reload-full-app");
} else {
const {title, content} = Messages.orgRemovalError(
DomainUtil.getDomain(props.index).url,
DomainUtil.getDomain(properties.index).url,
);
dialog.showErrorBox(title, content);
}
@@ -67,14 +70,14 @@ export function initServerInfoForm(props: ServerInfoFormProps): void {
});
$openServerButton.addEventListener("click", () => {
ipcRenderer.send("forward-message", "switch-server-tab", props.index);
ipcRenderer.send("forward-message", "switch-server-tab", properties.index);
});
$serverInfoAlias.addEventListener("click", () => {
ipcRenderer.send("forward-message", "switch-server-tab", props.index);
ipcRenderer.send("forward-message", "switch-server-tab", properties.index);
});
$serverIcon.addEventListener("click", () => {
ipcRenderer.send("forward-message", "switch-server-tab", props.index);
ipcRenderer.send("forward-message", "switch-server-tab", properties.index);
});
}

View File

@@ -4,11 +4,11 @@ import * as t from "../../../../common/translation-util.js";
import {reloadApp} from "./base-section.js";
import {initNewServerForm} from "./new-server-form.js";
type ServersSectionProps = {
type ServersSectionProperties = {
$root: Element;
};
export function initServersSection({$root}: ServersSectionProps): void {
export function initServersSection({$root}: ServersSectionProperties): void {
$root.innerHTML = html`
<div class="add-server-modal">
<div class="modal-container">

View File

@@ -4,12 +4,14 @@ import {html} from "../../../../common/html.js";
import * as LinkUtil from "../../../../common/link-util.js";
import * as t from "../../../../common/translation-util.js";
type ShortcutsSectionProps = {
type ShortcutsSectionProperties = {
$root: Element;
};
// eslint-disable-next-line complexity
export function initShortcutsSection({$root}: ShortcutsSectionProps): void {
export function initShortcutsSection({
$root,
}: ShortcutsSectionProperties): void {
const cmdOrCtrl = process.platform === "darwin" ? "⌘" : "Ctrl";
$root.innerHTML = html`

View File

@@ -1,67 +1,21 @@
import {contextBridge, webFrame} from "electron/renderer";
import {contextBridge} from "electron/renderer";
import electron_bridge, {bridgeEvents} from "./electron-bridge.js";
import * as NetworkError from "./pages/network.js";
import {ipcRenderer} from "./typed-ipc-renderer.js";
contextBridge.exposeInMainWorld("raw_electron_bridge", electron_bridge);
contextBridge.exposeInMainWorld("electron_bridge", electron_bridge);
ipcRenderer.on("logout", () => {
if (bridgeEvents.emit("logout")) {
return;
}
// Create the menu for the below
const dropdown: HTMLElement = document.querySelector(".dropdown-toggle")!;
dropdown.click();
const nodes: NodeListOf<HTMLElement> = document.querySelectorAll(
".dropdown-menu li:last-child a",
);
nodes[nodes.length - 1].click();
bridgeEvents.emit("logout");
});
ipcRenderer.on("show-keyboard-shortcuts", () => {
if (bridgeEvents.emit("show-keyboard-shortcuts")) {
return;
}
// Create the menu for the below
const node: HTMLElement = document.querySelector(
"a[data-overlay-trigger=keyboard-shortcuts]",
)!;
// Additional check
if (node.textContent!.trim().toLowerCase() === "keyboard shortcuts (?)") {
node.click();
} else {
// Atleast click the dropdown
const dropdown: HTMLElement = document.querySelector(".dropdown-toggle")!;
dropdown.click();
}
bridgeEvents.emit("show-keyboard-shortcuts");
});
ipcRenderer.on("show-notification-settings", () => {
if (bridgeEvents.emit("show-notification-settings")) {
return;
}
// Create the menu for the below
const dropdown: HTMLElement = document.querySelector(".dropdown-toggle")!;
dropdown.click();
const nodes: NodeListOf<HTMLElement> = document.querySelectorAll(
".dropdown-menu li a",
);
nodes[2].click();
const notificationItem: NodeListOf<HTMLElement> = document.querySelectorAll(
".normal-settings-list li div",
);
// Wait until the notification dom element shows up
setTimeout(() => {
notificationItem[2].click();
}, 100);
bridgeEvents.emit("show-notification-settings");
});
window.addEventListener("load", () => {
@@ -73,6 +27,3 @@ window.addEventListener("load", () => {
const $settingsButton = document.querySelector("#settings")!;
NetworkError.init($reconnectButton, $settingsButton);
});
(async () =>
webFrame.executeJavaScript(ipcRenderer.sendSync("get-injected-js")))();

View File

@@ -1,5 +1,4 @@
import type {NativeImage} from "electron/common";
import {nativeImage} from "electron/common";
import {type NativeImage, nativeImage} from "electron/common";
import type {Tray as ElectronTray} from "electron/main";
import path from "node:path";
import process from "node:process";
@@ -64,8 +63,8 @@ const config = {
thick: process.platform === "win32",
};
const renderCanvas = function (arg: number): HTMLCanvasElement {
config.unreadCount = arg;
const renderCanvas = function (argument: number): HTMLCanvasElement {
config.unreadCount = argument;
const size = config.size * config.pixelRatio;
const padding = size * 0.05;
@@ -79,30 +78,34 @@ const renderCanvas = function (arg: number): HTMLCanvasElement {
const canvas = document.createElement("canvas");
canvas.width = size;
canvas.height = size;
const ctx = canvas.getContext("2d")!;
const context = canvas.getContext("2d")!;
// Circle
// If (!config.thick || config.thick && hasCount) {
ctx.beginPath();
ctx.arc(center, center, size / 2 - padding, 0, 2 * Math.PI, false);
ctx.fillStyle = backgroundColor;
ctx.fill();
ctx.lineWidth = size / (config.thick ? 10 : 20);
ctx.strokeStyle = backgroundColor;
ctx.stroke();
context.beginPath();
context.arc(center, center, size / 2 - padding, 0, 2 * Math.PI, false);
context.fillStyle = backgroundColor;
context.fill();
context.lineWidth = size / (config.thick ? 10 : 20);
context.strokeStyle = backgroundColor;
context.stroke();
// Count or Icon
if (hasCount) {
ctx.fillStyle = color;
ctx.textAlign = "center";
context.fillStyle = color;
context.textAlign = "center";
if (config.unreadCount > 99) {
ctx.font = `${config.thick ? "bold " : ""}${size * 0.4}px Helvetica`;
ctx.fillText("99+", center, center + size * 0.15);
context.font = `${config.thick ? "bold " : ""}${size * 0.4}px Helvetica`;
context.fillText("99+", center, center + size * 0.15);
} else if (config.unreadCount < 10) {
ctx.font = `${config.thick ? "bold " : ""}${size * 0.5}px Helvetica`;
ctx.fillText(String(config.unreadCount), center, center + size * 0.2);
context.font = `${config.thick ? "bold " : ""}${size * 0.5}px Helvetica`;
context.fillText(String(config.unreadCount), center, center + size * 0.2);
} else {
ctx.font = `${config.thick ? "bold " : ""}${size * 0.5}px Helvetica`;
ctx.fillText(String(config.unreadCount), center, center + size * 0.15);
context.font = `${config.thick ? "bold " : ""}${size * 0.5}px Helvetica`;
context.fillText(
String(config.unreadCount),
center,
center + size * 0.15,
);
}
}
@@ -114,12 +117,12 @@ const renderCanvas = function (arg: number): HTMLCanvasElement {
* @param arg: Unread count
* @return the native image
*/
const renderNativeImage = function (arg: number): NativeImage {
const renderNativeImage = function (argument: number): NativeImage {
if (process.platform === "win32") {
return nativeImage.createFromPath(winUnreadTrayIconPath());
}
const canvas = renderCanvas(arg);
const canvas = renderCanvas(argument);
const pngData = nativeImage
.createFromDataURL(canvas.toDataURL("image/png"))
.toPNG();
@@ -130,7 +133,7 @@ const renderNativeImage = function (arg: number): NativeImage {
function sendAction<Channel extends keyof RendererMessage>(
channel: Channel,
...args: Parameters<RendererMessage[Channel]>
...arguments_: Parameters<RendererMessage[Channel]>
): void {
const win = BrowserWindow.getAllWindows()[0];
@@ -138,7 +141,7 @@ function sendAction<Channel extends keyof RendererMessage>(
win.restore();
}
ipcRenderer.sendTo(win.webContents.id, channel, ...args);
ipcRenderer.send("forward-to", win.webContents.id, channel, ...arguments_);
}
const createTray = function (): void {
@@ -176,7 +179,7 @@ const createTray = function (): void {
};
export function initializeTray(serverManagerView: ServerManagerView) {
ipcRenderer.on("destroytray", (_event: Event) => {
ipcRenderer.on("destroytray", () => {
if (!tray) {
return;
}
@@ -189,22 +192,22 @@ export function initializeTray(serverManagerView: ServerManagerView) {
}
});
ipcRenderer.on("tray", (_event: Event, arg: number): void => {
ipcRenderer.on("tray", (_event, argument: number): void => {
if (!tray) {
return;
}
// We don't want to create tray from unread messages on macOS since it already has dock badges.
if (process.platform === "linux" || process.platform === "win32") {
if (arg === 0) {
unread = arg;
if (argument === 0) {
unread = argument;
tray.setImage(iconPath());
tray.setToolTip("No unread messages");
} else {
unread = arg;
const image = renderNativeImage(arg);
unread = argument;
const image = renderNativeImage(argument);
tray.setImage(image);
tray.setToolTip(`${arg} unread messages`);
tray.setToolTip(`${argument} unread messages`);
}
}
});

View File

@@ -1,5 +1,5 @@
import type {IpcRendererEvent} from "electron/renderer";
import {
type IpcRendererEvent,
ipcRenderer as untypedIpcRenderer, // eslint-disable-line no-restricted-imports
} from "electron/renderer";
@@ -10,8 +10,8 @@ import type {
} from "../../common/typed-ipc.js";
type RendererListener<Channel extends keyof RendererMessage> =
RendererMessage[Channel] extends (...args: infer Args) => void
? (event: IpcRendererEvent, ...args: Args) => void
RendererMessage[Channel] extends (...arguments_: infer Arguments) => void
? (event: IpcRendererEvent, ...arguments_: Arguments) => void
: never;
export const ipcRenderer: {
@@ -35,19 +35,25 @@ export const ipcRenderer: {
send<Channel extends keyof RendererMessage>(
channel: "forward-message",
rendererChannel: Channel,
...args: Parameters<RendererMessage[Channel]>
...arguments_: Parameters<RendererMessage[Channel]>
): void;
send<Channel extends keyof RendererMessage>(
channel: "forward-to",
webContentsId: number,
rendererChannel: Channel,
...arguments_: Parameters<RendererMessage[Channel]>
): void;
send<Channel extends keyof MainMessage>(
channel: Channel,
...args: Parameters<MainMessage[Channel]>
...arguments_: Parameters<MainMessage[Channel]>
): void;
invoke<Channel extends keyof MainCall>(
channel: Channel,
...args: Parameters<MainCall[Channel]>
...arguments_: Parameters<MainCall[Channel]>
): Promise<ReturnType<MainCall[Channel]>>;
sendSync<Channel extends keyof MainMessage>(
channel: Channel,
...args: Parameters<MainMessage[Channel]>
...arguments_: Parameters<MainMessage[Channel]>
): ReturnType<MainMessage[Channel]>;
postMessage<Channel extends keyof MainMessage>(
channel: Channel,
@@ -56,13 +62,8 @@ export const ipcRenderer: {
: never,
transfer?: MessagePort[],
): void;
sendTo<Channel extends keyof RendererMessage>(
webContentsId: number,
channel: Channel,
...args: Parameters<RendererMessage[Channel]>
): void;
sendToHost<Channel extends keyof RendererMessage>(
channel: Channel,
...args: Parameters<RendererMessage[Channel]>
...arguments_: Parameters<RendererMessage[Channel]>
): void;
} = untypedIpcRenderer;

View File

@@ -2,68 +2,78 @@ import fs from "node:fs";
import path from "node:path";
import {app, dialog} from "@electron/remote";
import * as Sentry from "@sentry/electron";
import * as Sentry from "@sentry/electron/renderer";
import {JsonDB} from "node-json-db";
import {DataError} from "node-json-db/dist/lib/Errors";
import * as z from "zod";
import {z} from "zod";
import * as EnterpriseUtil from "../../../common/enterprise-util.js";
import Logger from "../../../common/logger-util.js";
import * as Messages from "../../../common/messages.js";
import type {ServerConf} from "../../../common/types.js";
import * as t from "../../../common/translation-util.js";
import type {ServerConfig} from "../../../common/types.js";
import defaultIcon from "../../img/icon.png";
import {ipcRenderer} from "../typed-ipc-renderer.js";
const logger = new Logger({
file: "domain-util.log",
});
const defaultIconUrl = "../renderer/img/icon.png";
// For historical reasons, we store this string in domain.json to denote a
// missing icon; it does not change with the actual icon location.
export const defaultIconSentinel = "../renderer/img/icon.png";
const serverConfSchema = z.object({
url: z.string(),
const serverConfigSchema = z.object({
url: z.string().url(),
alias: z.string(),
icon: z.string(),
zulipVersion: z.string().default("unknown"),
zulipFeatureLevel: z.number().default(0),
});
let db!: JsonDB;
let database!: JsonDB;
reloadDb();
reloadDatabase();
// Migrate from old schema
try {
const oldDomain = db.getObject<unknown>("/domain");
const oldDomain = database.getObject<unknown>("/domain");
if (typeof oldDomain === "string") {
(async () => {
await addDomain({
alias: "Zulip",
url: oldDomain,
});
db.delete("/domain");
database.delete("/domain");
})();
}
} catch (error: unknown) {
if (!(error instanceof DataError)) throw error;
}
export function getDomains(): ServerConf[] {
reloadDb();
export function getDomains(): ServerConfig[] {
reloadDatabase();
try {
return serverConfSchema.array().parse(db.getObject<unknown>("/domains"));
return serverConfigSchema
.array()
.parse(database.getObject<unknown>("/domains"));
} catch (error: unknown) {
if (!(error instanceof DataError)) throw error;
return [];
}
}
export function getDomain(index: number): ServerConf {
reloadDb();
return serverConfSchema.parse(db.getObject<unknown>(`/domains[${index}]`));
export function getDomain(index: number): ServerConfig {
reloadDatabase();
return serverConfigSchema.parse(
database.getObject<unknown>(`/domains[${index}]`),
);
}
export function updateDomain(index: number, server: ServerConf): void {
reloadDb();
serverConfSchema.parse(server);
db.push(`/domains[${index}]`, server, true);
export function updateDomain(index: number, server: ServerConfig): void {
reloadDatabase();
serverConfigSchema.parse(server);
database.push(`/domains[${index}]`, server, true);
}
export async function addDomain(server: {
@@ -74,20 +84,20 @@ export async function addDomain(server: {
if (server.icon) {
const localIconUrl = await saveServerIcon(server.icon);
server.icon = localIconUrl;
serverConfSchema.parse(server);
db.push("/domains[]", server, true);
reloadDb();
serverConfigSchema.parse(server);
database.push("/domains[]", server, true);
reloadDatabase();
} else {
server.icon = defaultIconUrl;
serverConfSchema.parse(server);
db.push("/domains[]", server, true);
reloadDb();
server.icon = defaultIconSentinel;
serverConfigSchema.parse(server);
database.push("/domains[]", server, true);
reloadDatabase();
}
}
export function removeDomains(): void {
db.delete("/domains");
reloadDb();
database.delete("/domains");
reloadDatabase();
}
export function removeDomain(index: number): boolean {
@@ -95,8 +105,8 @@ export function removeDomain(index: number): boolean {
return false;
}
db.delete(`/domains[${index}]`);
reloadDb();
database.delete(`/domains[${index}]`);
reloadDatabase();
return true;
}
@@ -109,7 +119,7 @@ export function duplicateDomain(domain: string): boolean {
export async function checkDomain(
domain: string,
silent = false,
): Promise<ServerConf> {
): Promise<ServerConfig> {
if (!silent && duplicateDomain(domain)) {
// Do not check duplicate in silent mode
throw new Error("This server has been added.");
@@ -124,36 +134,43 @@ export async function checkDomain(
}
}
async function getServerSettings(domain: string): Promise<ServerConf> {
async function getServerSettings(domain: string): Promise<ServerConfig> {
return ipcRenderer.invoke("get-server-settings", domain);
}
export async function saveServerIcon(iconURL: string): Promise<string> {
return ipcRenderer.invoke("save-server-icon", iconURL);
return (
(await ipcRenderer.invoke("save-server-icon", iconURL)) ??
defaultIconSentinel
);
}
export async function updateSavedServer(
url: string,
index: number,
): Promise<void> {
): Promise<ServerConfig> {
// Does not promise successful update
const oldIcon = getDomain(index).icon;
const serverConfig = getDomain(index);
const oldIcon = serverConfig.icon;
try {
const newServerConf = await checkDomain(url, true);
const localIconUrl = await saveServerIcon(newServerConf.icon);
if (!oldIcon || localIconUrl !== "../renderer/img/icon.png") {
newServerConf.icon = localIconUrl;
updateDomain(index, newServerConf);
reloadDb();
const newServerConfig = await checkDomain(url, true);
const localIconUrl = await saveServerIcon(newServerConfig.icon);
if (!oldIcon || localIconUrl !== defaultIconSentinel) {
newServerConfig.icon = localIconUrl;
updateDomain(index, newServerConfig);
reloadDatabase();
}
return newServerConfig;
} catch (error: unknown) {
logger.log("Could not update server icon.");
logger.log(error);
Sentry.captureException(error);
return serverConfig;
}
}
function reloadDb(): void {
function reloadDatabase(): void {
const domainJsonPath = path.join(
app.getPath("userData"),
"config/domain.json",
@@ -165,9 +182,10 @@ function reloadDb(): void {
if (fs.existsSync(domainJsonPath)) {
fs.unlinkSync(domainJsonPath);
dialog.showErrorBox(
"Error saving new organization",
"There seems to be error while saving new organization, " +
"you may have to re-add your previous organizations back.",
t.__("Error saving new organization"),
t.__(
"There was an error while saving the new organization. You may have to add your previous organizations again.",
),
);
logger.error("Error while JSON parsing domain.json: ");
logger.error(error);
@@ -175,7 +193,7 @@ function reloadDb(): void {
}
}
db = new JsonDB(domainJsonPath, true, true);
database = new JsonDB(domainJsonPath, true, true);
}
export function formatUrl(domain: string): string {
@@ -189,3 +207,30 @@ export function formatUrl(domain: string): string {
return `https://${domain}`;
}
export function getUnsupportedMessage(
server: ServerConfig,
): string | undefined {
if (server.zulipFeatureLevel < 65 /* Zulip Server 4.0 */) {
const realm = new URL(server.url).hostname;
return t.__(
"{{{server}}} runs an outdated Zulip Server version {{{version}}}. It may not fully work in this app.",
{server: realm, version: server.zulipVersion},
);
}
return undefined;
}
export function iconAsUrl(iconPath: string): string {
if (iconPath === defaultIconSentinel) return defaultIcon;
try {
return `data:application/octet-stream;base64,${fs.readFileSync(
iconPath,
"base64",
)}`;
} catch {
return defaultIcon;
}
}

View File

@@ -15,7 +15,7 @@ export default class ReconnectUtil {
fibonacciBackoff: backoff.Backoff;
constructor(webview: WebView) {
this.url = webview.props.url;
this.url = webview.properties.url;
this.alreadyReloaded = false;
this.fibonacciBackoff = backoff.fibonacci({
initialDelay: 5000,

View File

@@ -1,56 +1,16 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en" class="responsive desktop">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta
http-equiv="Content-Security-Policy"
content="default-src 'none'; connect-src 'self'; font-src 'self'; img-src 'self' data:; script-src 'self'; style-src 'self' 'unsafe-inline'"
/>
<meta name="viewport" content="width=device-width" />
<title>Zulip</title>
<link rel="stylesheet" href="css/fonts.css" />
<link rel="stylesheet" href="css/main.css" />
</head>
<body>
<div id="content">
<div class="popup">
<span class="popuptext hidden" id="fullscreen-popup"></span>
</div>
<div id="sidebar" class="toggle-sidebar">
<div id="view-controls-container">
<div id="tabs-container"></div>
<div id="add-tab" class="tab functional-tab">
<div class="server-tab" id="add-action">
<i class="material-icons">add</i>
</div>
<span id="add-server-tooltip" style="display: none"
>Add organization</span
>
</div>
</div>
<div id="actions-container">
<div class="action-button" id="dnd-action">
<i class="material-icons md-48">notifications</i>
<span id="dnd-tooltip" style="display: none">Do Not Disturb</span>
</div>
<div class="action-button hidden" id="reload-action">
<i class="material-icons md-48">refresh</i>
<span id="reload-tooltip" style="display: none">Reload</span>
</div>
<div class="action-button disable" id="loading-action">
<i class="refresh material-icons md-48">loop</i>
<span id="loading-tooltip" style="display: none">Loading</span>
</div>
<div class="action-button disable" id="back-action">
<i class="material-icons md-48">arrow_back</i>
<span id="back-tooltip" style="display: none">Go Back</span>
</div>
<div class="action-button" id="settings-action">
<i class="material-icons md-48">settings</i>
<span id="setting-tooltip" style="display: none">Settings</span>
</div>
</div>
</div>
<div id="main-container">
<div id="webviews-container"></div>
</div>
</div>
</body>
<body></body>
</html>

View File

@@ -1,7 +1,11 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en" class="responsive desktop">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta
http-equiv="Content-Security-Policy"
content="default-src 'none'; connect-src 'self'; img-src 'self'; script-src 'self'; style-src 'self'"
/>
<meta name="viewport" content="width=device-width" />
<title>Zulip - Network Troubleshooting</title>
<link

View File

@@ -1,10 +1,7 @@
<!DOCTYPE html>
<!doctype html>
<meta charset="UTF-8" />
<link rel="stylesheet" href="css/fonts.css" />
<link rel="stylesheet" href="css/preference.css" />
<script type="module">
import "@yaireo/tagify/dist/tagify.css";
</script>
<!-- Initially hidden to prevent FOUC -->
<div id="content" hidden>

BIN
build/icon-macos.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

1
build/icon-macos.svg Normal file
View File

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="-100 -100 1024 1024"><defs><linearGradient id="a" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#50adff"/><stop offset="1" stop-color="#7877fc"/></linearGradient><mask id="b"><rect x="-100" y="-100" width="1024" height="1024" fill="#fff"/><path d="M566.66 527.25c0 33.03-24.23 60.05-53.84 60.05H260.29c-29.61 0-53.84-27.02-53.84-60.05 0-20.22 9.09-38.2 22.93-49.09l134.37-120c2.5-2.14 5.74 1.31 3.94 4.19l-49.29 98.69c-1.38 2.76.41 6.16 3.25 6.16h191.18c29.61 0 53.83 27.03 53.83 60.05zm0-281.39c0 20.22-9.09 38.2-22.93 49.09l-134.37 120c-2.5 2.14-5.74-1.31-3.94-4.19l49.29-98.69c1.38-2.76-.41-6.16-3.25-6.16H260.29c-29.61 0-53.84-27.02-53.84-60.05s24.23-60.05 53.84-60.05h252.54c29.61 0 53.83 27.02 53.83 60.05z" transform="scale(1.0658112582781456)" fill="#000"/></mask><path id="c" d="M824 257c0-64 0-104-14-141A173 173 0 00708 14C671 0 631 0 567 0H257C193 0 153 0 116 14A173 173 0 0014 116C0 153 0 193 0 257V567c0 64 0 104 14 141A173 173 0 00116 810c37 14 77 14 141 14H567c64 0 104 0 141-14A173 173 0 00810 708c14-37 14-77 14-141Z"/><filter id="d"><feGaussianBlur in="SourceGraphic" stdDeviation="10"/></filter><filter id="e"><feGaussianBlur in="SourceGraphic" stdDeviation="5"/></filter></defs><use href="#c" transform="translate(0 10)" fill-opacity="0.3" filter="url(#d)"/><rect x="120" y="120" width="584" height="584" fill="#fff" /><g filter="url(#e)"><rect x="120" y="120" width="584" height="584" fill="#32497f" mask="url(#b)" transform="translate(0 5)"/></g><use href="#c" mask="url(#b)" fill="url(#a)"/></svg>

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 60 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 581 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 797 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.2 KiB

View File

@@ -2,6 +2,102 @@
All notable changes to the Zulip desktop app are documented in this file.
### v5.12.0 --2025-03-13
**Enhancements**:
- Updated the icon in macOS with a native appearance.
- Marked untranslated strings for translation.
- Updated translations.
**Dependencies**:
- Upgraded all dependencies, including Electron 35.0.1.
**Removed features**:
- Removed support for macOS 10.15 and earlier, which reached end-of-life in 2022 and is [no longer supported](https://www.electronjs.org/blog/electron-33-0#removed-macos-1015-support) by Electron.
### v5.11.1 --2024-08-23
**Enhancements**:
- Updated translations.
**Dependencies**:
- Upgraded all dependencies, including Electron 32.0.1.
### v5.11.0 --2024-03-22
**Fixes**:
- Removed the popup dialog for certificate errors when loading subresources such as images.
- Allowed hiding the window from full screen mode on macOS.
**Enhancements**:
- Enabled zooming with Ctrl+mouse wheel on Linux and Windows.
**Dependencies**:
- Upgraded all dependencies, including Electron 29.1.5.
### v5.10.5 --2024-01-25
**Dependencies**:
- Upgraded all dependencies, including Electron 28.2.0.
**Enhancements**:
- Improved security hardening by setting a Content-Security-Policy for the app UI.
### v5.10.4 --2024-01-09
**Dependencies**:
- Upgraded all dependencies, including Electron 28.1.1.
### v5.10.3 --2023-09-30
**Fixes**:
- Fixed an error in the third-party `gatemaker` library that broke the display of notifications for completed downloads.
**Dependencies**:
- Upgraded all dependencies, including Electron 25.8.4.
### v5.10.2 --2023-09-14
**Dependencies**:
- Downgraded Electron to 25.8.1 to avoid a renderer process crash on Linux.
### v5.10.1 --2023-09-13
**Dependencies**:
- Upgraded all dependencies, including Electron 26.2.1.
### v5.10.0 --2023-05-05
**Removed features**:
- Removed support for Windows 8.1 and earlier, which reached end-of-life earlier this year and are [no longer supported](https://www.electronjs.org/blog/windows-7-to-8-1-deprecation-notice) by Electron.
- Removed support for Zulip Server 3.x and earlier, which have been obsolete for more than 18 months, in accordance with our [release lifecycle](https://zulip.readthedocs.io/en/latest/overview/release-lifecycle.html). A notice will now be displayed when connecting to a server with an unsupported version.
**Fixes**:
- Fixed display of the dropdown for the spellchecker languages setting.
- Fixed various bugs related to displaying and updating organization icons.
- Fixed settings to disable visual display of notifications.
**Dependencies**:
- Upgraded all dependencies, including Electron 24.2.0.
### v5.9.5 --2023-02-06
**Fixes**:
@@ -193,10 +289,10 @@ All notable changes to the Zulip desktop app are documented in this file.
**New features**:
- Add a cancel button in the report-issue modal.
- macOS: Use electron API to get dark tray icon instead of the green icon for the light theme.
- macOS: Use Electron API to get dark tray icon instead of the green icon for the light theme.
- Remove 'Reset App Data' option. Factory Reset option has been moved to Settings → General.
- Support pkg installer on macOS.
- Use electron 8 built-in spellchecker. Linux and Windows users can now choose upto three spellchecker languages from Settings → General. On macOS, default spellchecker is used.
- Use Electron 8 built-in spellchecker. Linux and Windows users can now choose up to three spellchecker languages from Settings → General. On macOS, default spellchecker is used.
- Setup Transifex for better synchronization of translations. The application now supports 41 languages instead of 21.
**Dependencies**:
@@ -304,7 +400,7 @@ All notable changes to the Zulip desktop app are documented in this file.
- Document enterprise configuration features.
- Update the Electron tutorial guide.
- Explicitly address where to report bugs in `README.md`.
- Fix typo in the link to server/webapp repository in `README.md`.
- Fix typo in the link to server/web app repository in `README.md`.
- Add documentation for translation.
### v4.0.0 --2019-08-08
@@ -355,7 +451,7 @@ All notable changes to the Zulip desktop app are documented in this file.
**Development**:
- Migrate codebase to TypeScript.
- Set the indent_size in `.editconfig` to 4.
- Set the indent_size in `.editorconfig` to 4.
- Use `.env` file for reading Sentry DSN.
**Documentation**:
@@ -424,7 +520,7 @@ All notable changes to the Zulip desktop app are documented in this file.
- Fix typo in network error message.
- Fix context menu not working on adding new org.
- Fix reply from notification.
- Fix shorcut section horizontal alignment.
- Fix shortcut section horizontal alignment.
- Fix broken link in docs.
- Fix grammatical errors.
- Fix typo error in issue template.
@@ -463,7 +559,7 @@ All notable changes to the Zulip desktop app are documented in this file.
- Auto hide menubar on Windows/Linux. Add a setting option for the same.
- Improve design of setting page.
- Toggle app on clicking the tray icon (Linux).
- Update sidebar realm name when it's changed in webapp.
- Update sidebar realm name when it's changed in web app.
- left-sidebar: Add initial character of realm name instead of default icon.
**Fixes**:
@@ -500,7 +596,7 @@ All notable changes to the Zulip desktop app are documented in this file.
**Fixes**:
- Fix youtube video not playing in lightbox.
- Fix YouTube video not playing in lightbox.
- Fix realm name not escaped properly.
<hr>
@@ -510,7 +606,7 @@ All notable changes to the Zulip desktop app are documented in this file.
**New features**:
- Add a setting option to show downloaded file in file manager.
- Added electron bridge to communicate with webapp in real time.
- Added Electron bridge to communicate with web app in real time.
**Fixes**:
@@ -623,7 +719,7 @@ electron-updater - `v2.21.8`
- Add an option to download the file attachments instead of opening it in the browser
- Open image link in webapp lightbox
- Open image link in web app lightbox
- Add scrollbar for list of organizations on overflow
@@ -660,7 +756,7 @@ electron-updater - `v2.21.8`
- Some users wanted to change the look of the Zulip. Now you have the power. Feel free to add your own CSS using the all-new setting option **Add Custom CSS**
- Added i18n locale helper script. Internalization is coming in the next release
- Added i18n locale helper script. Internationalization is coming in the next release
- Added **What's new** in `help` submenu so that you can see all the latest changes in the app
@@ -1102,7 +1198,7 @@ Minor improvements
- Using two package.json structure
- Node integration disabled in main window due to jquery error
- Node integration disabled in main window due to jQuery error
- Now using electron-builder for packaging instead of electron-packager

View File

@@ -49,7 +49,7 @@ If [NPM](https://www.npmjs.com/get-npm) and [node-gyp](https://github.com/nodejs
[node-windows]: https://nodejs.org/en/download/package-manager/#windows
- Also, install install Windows-Build-Tools to compile native node modules by using
- Also, install Windows-Build-Tools to compile native node modules by using
```sh
$ npm install --global windows-build-tools
```

View File

@@ -5,13 +5,13 @@
- [Git](http://git-scm.com/book/en/v2/Getting-Started-Installing-Git)
- [Node.js](https://nodejs.org) >= v6.9.0
- [python](https://www.python.org/downloads/release/python-2713/) (v2.7.x recommended)
- [node-gyp](https://github.com/nodejs/node-gyp#installation) (installed via powershell)
- [node-gyp](https://github.com/nodejs/node-gyp#installation) (installed via PowerShell)
## System specific dependencies
- use only 32bit or 64bit for all of the installers, do not mix architectures
- install using default settings
- open Windows Powershell as Admin
- open Windows PowerShell as Admin
```powershell
C:\Windows\system32> npm install --global --production windows-build-tools

21
i18next-scanner.config.js Normal file
View File

@@ -0,0 +1,21 @@
"use strict";
module.exports = {
input: ["app/**/*.ts"],
options: {
debug: true,
removeUnusedKeys: true,
sort: true,
func: {list: ["t.__"], extensions: [".ts"]},
defaultLng: "en",
defaultValue: (lng, ns, key) => (lng === "en" ? key : ""),
resource: {
loadPath: "public/translations/{{lng}}.json",
savePath: "public/translations/{{lng}}.json",
jsonIndent: "\t",
},
keySeparator: false,
nsSeparator: false,
context: false,
},
};

12951
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -1,7 +1,7 @@
{
"name": "zulip",
"productName": "Zulip",
"version": "5.9.5",
"version": "5.12.0",
"main": "./dist-electron",
"description": "Zulip Desktop App",
"license": "Apache-2.0",
@@ -18,7 +18,7 @@
"url": "https://github.com/zulip/zulip-desktop/issues"
},
"engines": {
"node": ">=16.13.2"
"node": ">=18"
},
"scripts": {
"start": "vite",
@@ -28,7 +28,7 @@
"lint-css": "stylelint \"app/**/*.css\"",
"lint-html": "htmlhint \"app/**/*.html\"",
"lint-js": "xo",
"prettier-non-js": "prettier --check --loglevel=warn . \"!**/*.{js,ts}\"",
"prettier-non-js": "prettier --check --log-level=warn . \"!**/*.{js,ts}\"",
"test": "tsc && npm run lint-html && npm run lint-css && npm run lint-js && npm run prettier-non-js",
"test-e2e": "vite build && tape \"tests/**/*.js\"",
"pack": "vite build && electron-builder --dir",
@@ -39,7 +39,6 @@
"test"
],
"build": {
"afterSign": "./scripts/notarize.js",
"appId": "org.zulip.zulip-electron",
"asar": true,
"asarUnpack": [
@@ -51,6 +50,7 @@
"copyright": "©2020 Kandra Labs, Inc.",
"mac": {
"category": "public.app-category.productivity",
"icon": "build/icon-macos.png",
"target": [
{
"target": "default",
@@ -72,7 +72,7 @@
},
"linux": {
"category": "Chat;GNOME;GTK;Network;InstantMessaging",
"icon": "build/icon.icns",
"icon": "build/zulip.png",
"description": "Zulip Desktop Client for Linux",
"target": [
"deb",
@@ -118,8 +118,17 @@
}
],
"icon": "build/icon.ico",
"signtoolOptions": {
"publisherName": "Kandra Labs, Inc."
},
"azureSignOptions": {
"endpoint": "https://eus.codesigning.azure.net/",
"codeSigningAccountName": "kandralabs",
"certificateProfileName": "kandralabs",
"timestampRfc3161": "http://timestamp.acs.microsoft.com",
"timestampDigest": "SHA256"
}
},
"msi": {
"artifactName": "${productName}-${version}-${arch}.${ext}"
},
@@ -141,49 +150,46 @@
"InstantMessaging"
],
"dependencies": {
"gatemaker": "^1.0.0"
"gatemaker": "https://github.com/andersk/gatemaker/archive/d31890ae1cb293faabcb1e4e465c673458f6eed2.tar.gz"
},
"devDependencies": {
"@electron/notarize": "^1.2.3",
"@electron/remote": "^2.0.8",
"@sentry/electron": "^4.1.2",
"@sentry/core": "^9.5.0",
"@sentry/electron": "^6.1.0",
"@types/adm-zip": "^0.5.0",
"@types/auto-launch": "^5.0.2",
"@types/backoff": "^2.5.2",
"@types/i18n": "^0.13.1",
"@types/node": "^16.11.26",
"@types/node": "^22.13.10",
"@types/requestidlecallback": "^0.3.4",
"@types/semver": "^7.5.8",
"@types/yaireo__tagify": "^4.3.2",
"@yaireo/tagify": "^4.5.0",
"adm-zip": "^0.5.5",
"auto-launch": "^5.0.5",
"backoff": "^2.5.0",
"dotenv": "^16.0.0",
"electron": "^22.0.0",
"electron-builder": "^23.0.3",
"electron-log": "^4.3.5",
"electron-updater": "^5.0.1",
"electron": "^35.0.1",
"electron-builder": "^25.1.8",
"electron-log": "^5.0.3",
"electron-updater": "^6.3.4",
"electron-window-state": "^5.0.3",
"escape-goat": "^4.0.0",
"get-stream": "^6.0.1",
"htmlhint": "^1.1.2",
"i18n": "^0.15.1",
"iso-639-1": "^2.1.9",
"i18next-scanner": "^4.6.0",
"medium": "^1.2.0",
"node-json-db": "^1.3.0",
"playwright-core": "^1.30.0-alpha-jan-3-2023",
"playwright-core": "^1.41.0-alpha-jan-9-2024",
"pre-commit": "^1.2.2",
"prettier": "^2.3.2",
"rimraf": "^4.1.2",
"prettier": "^3.0.3",
"semver": "^7.3.5",
"stylelint": "^14.5.3",
"stylelint-config-prettier": "^9.0.3",
"stylelint-config-standard": "^29.0.0",
"stylelint": "^16.1.0",
"stylelint-config-standard": "^37.0.0",
"tape": "^5.2.2",
"typescript": "^4.3.5",
"vite": "^4.1.1",
"vite-plugin-electron": "^0.11.1",
"xo": "^0.53.1",
"typescript": "^5.0.4",
"vite": "^5.0.11",
"vite-plugin-electron": "^0.28.0",
"xo": "^0.60.0",
"zod": "^3.5.1"
},
"prettier": {
@@ -241,6 +247,10 @@
"error",
{
"paths": [
{
"name": "@sentry/electron",
"message": "Use @sentry/electron/main, @sentry/electron/renderer, or @sentry/core."
},
{
"name": "electron",
"message": "Use electron/main, electron/renderer, or electron/common."
@@ -258,6 +268,10 @@
"ipcRenderer"
],
"message": "Use typed-ipc-renderer."
},
{
"name": "electron-log",
"message": "Use electron-log/main or electron-log/renderer."
}
]
}
@@ -270,7 +284,6 @@
}
],
"strict": "error",
"unicorn/prefer-json-parse-buffer": "off",
"unicorn/prefer-module": "off",
"unicorn/prefer-top-level-await": "off"
},
@@ -303,8 +316,8 @@
},
{
"files": [
"app/renderer/js/injected.ts",
"scripts/notarize.js",
"i18next-scanner.config.js",
"scripts/win-sign.js",
"tests/**/*.js"
],
"parserOptions": {

Binary file not shown.

View File

@@ -1,45 +1,67 @@
{
"A new update {{{version}}} has been downloaded.": "A new update {{{version}}} has been downloaded.",
"A new version {{{version}}} of Zulip Desktop is available.": "A new version {{{version}}} of Zulip Desktop is available.",
"About": "About",
"About Zulip": "حول \"زوليب\"",
"Actual Size": "الحجم الفعلي",
"Add Custom Certificates": "إضافة رخصة معدلة",
"Add Organization": "إضافة منظمة",
"Add a Zulip organization": "إضافة منظمة \"زوليب\"",
"Add custom CSS": صافة CSS معدلة",
"Add custom CSS": ضافة CSS معدلة",
"Add to Dictionary": "Add to Dictionary",
"Advanced": "متقدم",
"All the connected organizations will appear here": "جميع المنظمات المتصلة تعرض هنا",
"All the connected organizations will appear here.": "جميع المنظمات المتصلة ستظهر هنا",
"Always start minimized": "دائماً إبدأ بالقليل",
"App Updates": "تحديث التطبيق",
"App Updates": "تحديثات التطبيق",
"App language (requires restart)": "App language (requires restart)",
"Appearance": "المظهر",
"Application Shortcuts": "إختصارات التطبيق",
"Are you sure you want to disconnect this organization?": "هل أنت متأكد من فصل هذة المنظمة؟",
"Are you sure?": "Are you sure?",
"Ask where to save files before downloading": "Ask where to save files before downloading",
"Auto hide Menu bar": "أخف القائمة تلقائياً",
"Auto hide menu bar (Press Alt key to display)": "أخف القائمة تلقائياً (إضغط Alt لعرض القائمة)",
"Available under the {{{link}}}Apache 2.0 License{{{endLink}}}": "Available under the {{{link}}}Apache 2.0 License{{{endLink}}}",
"Back": "رجوع",
"Bounce dock on new private message": "أخرج المنصة في حال رسالة خاصة جديدة",
"Certificate file": "ملف الشهادة",
"CSS file": "CSS file",
"Cancel": "إلغاء",
"Certificate error": "Certificate error",
"Change": "تغيير",
"Change the language from System Preferences → Keyboard → Text → Spelling.": "Change the language from System Preferences → Keyboard → Text → Spelling.",
"Check for Updates": "التحقق من التحديثات",
"Close": "اغلاق",
"Close": "إغلاق",
"Connect": "اتصال",
"Connect to another organization": "التوصيل مع منظمة أخرى",
"Connected organizations": "المنظمات المتصلة",
"Copy": "نسخ",
"Copy Email Address": "Copy Email Address",
"Copy Image": "Copy Image",
"Copy Image URL": "Copy Image URL",
"Copy Link": "Copy Link",
"Copy Zulip URL": "نسخ رابط زوليب",
"Create a new organization": "Create a new organization",
"Create a new organization": "إنشاء منظمة جديدة",
"Custom CSS file deleted": "Custom CSS file deleted",
"Cut": "قص",
"Default download location": "موقع التحميل الافتراضي",
"Delete": "حذف",
"Desktop App Settings": "إعدادت تطبيق سطح المكتب",
"Desktop Notifications": "إشعارات سطح المكتب",
"Desktop Settings": "إعدادات سطح المكتب",
"Disconnect": "قطع الاتصال",
"Disconnect organization": "Disconnect organization",
"Do Not Disturb": "Do Not Disturb",
"Download App Logs": "تنزيل سجلات التطبيق",
"Edit": "تعديل",
"Edit Shortcuts": "تعديل الاختصارات",
"Emoji & Symbols": "الإيموجي و الرموز",
"Enable auto updates": "تفعيل التحديثات التلقائية",
"Enable error reporting (requires restart)": "تفعيل تقارير الأخطاء (يتطلب إعادة التشغيل)",
"Enable spellchecker (requires restart)": "Enable spellchecker (requires restart)",
"Enter Full Screen": "اعرض الشاشة كاملة",
"Error saving new organization": "Error saving new organization",
"Error saving update notifications": "Error saving update notifications",
"Error: {{{error}}}\n\nThe latest version of Zulip Desktop is available at:\n{{{link}}}\nCurrent version: {{{version}}}": "Error: {{{error}}}\n\nThe latest version of Zulip Desktop is available at:\n{{{link}}}\nCurrent version: {{{version}}}",
"Factory Reset": "إعادة ضبط المصنع",
"Factory Reset Data": "Factory Reset Data",
"File": "ملف",
"Find accounts": "Find accounts",
"Find accounts by email": "Find accounts by email",
@@ -48,20 +70,39 @@
"Functionality": "Functionality",
"General": "General",
"Get beta updates": "Get beta updates",
"Go Back": "Go Back",
"Hard Reload": "Hard Reload",
"Help": "Help",
"Help Center": "Help Center",
"Hide": "Hide",
"Hide Others": "Hide Others",
"Hide Zulip": "أخفي زوليب",
"History": "History",
"History Shortcuts": "History Shortcuts",
"Install Later": "Install Later",
"Install and Relaunch": "Install and Relaunch",
"It will be installed the next time you restart the application.": "It will be installed the next time you restart the application.",
"Keyboard Shortcuts": "Keyboard Shortcuts",
"Later": "Later",
"Loading": "Loading",
"Log Out": "Log Out",
"Log Out of Organization": "Log Out of Organization",
"Look Up": "Look Up",
"Maintained by {{{link}}}Zulip{{{endLink}}}": "Maintained by {{{link}}}Zulip{{{endLink}}}",
"Manual Download": "Manual Download",
"Manual proxy configuration": "Manual proxy configuration",
"Minimize": "Minimize",
"Mute all sounds from Zulip": "Mute all sounds from Zulip",
"NO": "NO",
"Network": "Network",
"Network and Proxy Settings": "الشبكة و إعدادات البروكسي",
"New servers added. Reload app now?": "New servers added. Reload app now?",
"No": "No",
"No Suggestion Found": "No Suggestion Found",
"No updates available.": "No updates available.",
"Notification settings": "Notification settings",
"OK": "حسنًا",
"OR": "OR",
"On macOS, the OS spellchecker is used.": "On macOS, the OS spellchecker is used.",
"Organization URL": "Organization URL",
"Organizations": "Organizations",
"Paste": "Paste",
@@ -69,27 +110,36 @@
"Proxy": "Proxy",
"Proxy bypass rules": "Proxy bypass rules",
"Proxy rules": "Proxy rules",
"Proxy settings saved.": "Proxy settings saved.",
"Quit": "Quit",
"Quit Zulip": "Quit Zulip",
"Quit when the window is closed": "Quit when the window is closed",
"Redo": "Redo",
"Release Notes": "Release Notes",
"Reload": "Reload",
"Report an Issue": "Report an Issue",
"Reset App Settings": "أعد ضبط إعدادات التطبيق",
"Reset the application, thus deleting all the connected organizations and accounts.": "إعادة ضبط التطبيق, و بالتالي مسح جميع المنظمات المتصلة و الحسابات",
"Save": "Save",
"Select All": "Select All",
"Select Download Location": "Select Download Location",
"Select file": "Select file",
"Services": "Services",
"Settings": "Settings",
"Shortcuts": "Shortcuts",
"Show App Logs": "Show App Logs",
"Show app icon in system tray": "Show app icon in system tray",
"Show app unread badge": "Show app unread badge",
"Show desktop notifications": "Show desktop notifications",
"Show downloaded files in file manager": "Show downloaded files in file manager",
"Show sidebar": "Show sidebar",
"Show unread count badge on app icon": "Show unread count badge on app icon",
"Spellchecker Languages": "Spellchecker Languages",
"Start app at login": "Start app at login",
"Switch to Next Organization": "Switch to Next Organization",
"Switch to Previous Organization": "Switch to Previous Organization",
"The custom CSS previously set is deleted.": "The custom CSS previously set is deleted.",
"The server presented an invalid certificate for {{{origin}}}:\n\n{{{error}}}": "The server presented an invalid certificate for {{{origin}}}:\n\n{{{error}}}",
"The update will be downloaded in the background. You will be notified when it is ready to be installed.": "The update will be downloaded in the background. You will be notified when it is ready to be installed.",
"There was an error while saving the new organization. You may have to add your previous organizations again.": "There was an error while saving the new organization. You may have to add your previous organizations again.",
"These desktop app shortcuts extend the Zulip webapp's": "These desktop app shortcuts extend the Zulip webapp's",
"This will delete all application data including all added accounts and preferences": "This will delete all application data including all added accounts and preferences",
"Tip": "Tip",
"Toggle DevTools for Active Tab": "Toggle DevTools for Active Tab",
"Toggle DevTools for Zulip App": "Toggle DevTools for Zulip App",
@@ -98,37 +148,24 @@
"Toggle Sidebar": "Toggle Sidebar",
"Toggle Tray Icon": "Toggle Tray Icon",
"Tools": "Tools",
"Unable to check for updates.": "Unable to check for updates.",
"Unable to download the update.": "Unable to download the update.",
"Undo": "Undo",
"Unhide": "Unhide",
"Unknown error": "Unknown error",
"Upload": "Upload",
"Use system proxy settings (requires restart)": "Use system proxy settings (requires restart)",
"View": "View",
"View Shortcuts": "View Shortcuts",
"We encountered an error while saving the update notifications.": "We encountered an error while saving the update notifications.",
"Window": "Window",
"Window Shortcuts": "Window Shortcuts",
"YES": "YES",
"Yes": "Yes",
"You are running the latest version of Zulip Desktop.\nVersion: {{{version}}}": "You are running the latest version of Zulip Desktop.\nVersion: {{{version}}}",
"You can select a maximum of 3 languages for spellchecking.": "You can select a maximum of 3 languages for spellchecking.",
"Zoom In": "Zoom In",
"Zoom Out": "Zoom Out",
"Zulip Help": "Zulip Help",
"keyboard shortcuts": "keyboard shortcuts",
"script": "script",
"Quit when the window is closed": "Quit when the window is closed",
"Ask where to save files before downloading": "Ask where to save files before downloading",
"Services": "Services",
"Hide": "Hide",
"Hide Others": "Hide Others",
"Unhide": "Unhide",
"AddServer": "AddServer",
"App language (requires restart)": "App language (requires restart)",
"Factory Reset Data": "Factory Reset Data",
"Reset the application, thus deleting all the connected organizations, accounts, and certificates.": "Reset the application, thus deleting all the connected organizations, accounts, and certificates.",
"On macOS, the OS spellchecker is used.": "On macOS, the OS spellchecker is used.",
"Change the language from System Preferences → Keyboard → Text → Spelling.": "Change the language from System Preferences → Keyboard → Text → Spelling.",
"Copy Link": "Copy Link",
"Copy Image": "Copy Image",
"Copy Image URL": "Copy Image URL",
"No Suggestion Found": "No Suggestion Found",
"You can select a maximum of 3 languages for spellchecking.": "You can select a maximum of 3 languages for spellchecking.",
"Spellchecker Languages": "Spellchecker Languages",
"Add to Dictionary": "Add to Dictionary",
"Look Up": "Look Up"
"{{{server}}} runs an outdated Zulip Server version {{{version}}}. It may not fully work in this app.": "{{{server}}} يقوم بتشغيل نسخة قديمة من خادم زوليب {{{version}}}. قد لا يعمل بشكل كامل مع هذا التطبيق "
}

171
public/translations/be.json Normal file
View File

@@ -0,0 +1,171 @@
{
"A new update {{{version}}} has been downloaded.": "A new update {{{version}}} has been downloaded.",
"A new version {{{version}}} of Zulip Desktop is available.": "A new version {{{version}}} of Zulip Desktop is available.",
"About": "About",
"About Zulip": "Пра Zulip",
"Actual Size": "Сапраўдны памер",
"Add Organization": "Дадаць арганізацыю",
"Add a Zulip organization": "Дадаць арганізацыю Zulip",
"Add custom CSS": "Дадаць свой CSS",
"Add to Dictionary": "Дадаць у слоўнік",
"Advanced": "Пашыраныя",
"All the connected organizations will appear here.": "Тут з'явяцца ўсе звязаныя арганізацыі.",
"Always start minimized": "Заўсёды адкрываць згорнутым",
"App Updates": "Абнаўленні праграмы",
"App language (requires restart)": "Мова праграмы (патрабуецца перазапуск)",
"Appearance": "Выгляд",
"Application Shortcuts": "Спалучэнні клавішаў",
"Are you sure you want to disconnect this organization?": "Вы ўпэўненыя, што хочаце адключыць гэту арганізацыю?",
"Are you sure?": "Are you sure?",
"Ask where to save files before downloading": "Спытаць, куды захоўваць файлы перад сцягваннем",
"Auto hide Menu bar": "Аўтаматычна хаваць радок меню",
"Auto hide menu bar (Press Alt key to display)": "Аўтаматычна хаваць радок меню (для выявы націсніце клавішу Alt)",
"Available under the {{{link}}}Apache 2.0 License{{{endLink}}}": "Available under the {{{link}}}Apache 2.0 License{{{endLink}}}",
"Back": "Назад",
"Bounce dock on new private message": "Подпрыгваючы dock пры новым асабістым паведамленні",
"CSS file": "CSS file",
"Cancel": "Скасаваць",
"Certificate error": "Certificate error",
"Change": "Змяніць",
"Change the language from System Preferences → Keyboard → Text → Spelling.": "Змяніце мову ў: Сістэмныя налады → Клавіятура → Тэкст → Правапіс.",
"Check for Updates": "Праверыць наяўнасць абнаўленняў",
"Close": "Закрыць",
"Connect": "Падлучыць",
"Connect to another organization": "Падлучыць да іншай арганізацыі",
"Connected organizations": "Падлучаныя арганізацыі",
"Copy": "Капіяваць",
"Copy Email Address": "Copy Email Address",
"Copy Image": "Капіяваць відарыс",
"Copy Image URL": "Капіяваць URL відарысу",
"Copy Link": "Капіяваць спасылку",
"Copy Zulip URL": "Капіяваць Zulip URL",
"Create a new organization": "Стварыць новую арганізацыю",
"Custom CSS file deleted": "Custom CSS file deleted",
"Cut": "Выразаць",
"Default download location": "Месца сцягвання па змаўчанні",
"Delete": "Выдаліць",
"Desktop Notifications": "Апавяшчэнні для ПК",
"Desktop Settings": "Налады для ПК",
"Disconnect": "Адлучыць",
"Disconnect organization": "Disconnect organization",
"Do Not Disturb": "Do Not Disturb",
"Download App Logs": "Сцягнуць журналы праграмаў",
"Edit": "Рэдагаваць",
"Edit Shortcuts": "Рэдагаваць cпалучэнні клавішаў",
"Emoji & Symbols": "Эмодзі і сімвалы",
"Enable auto updates": "Увамкнуць аўтаматычнае абнаўленне",
"Enable error reporting (requires restart)": "Увамкнуць справаздачу аб памылках (патрабуецца перазапуск)",
"Enable spellchecker (requires restart)": "Увамкнуць праверку правапісу (патрабуецца перазапуск)",
"Enter Full Screen": "Пераход у поўнаэкранны рэжым",
"Error saving new organization": "Error saving new organization",
"Error saving update notifications": "Error saving update notifications",
"Error: {{{error}}}\n\nThe latest version of Zulip Desktop is available at:\n{{{link}}}\nCurrent version: {{{version}}}": "Error: {{{error}}}\n\nThe latest version of Zulip Desktop is available at:\n{{{link}}}\nCurrent version: {{{version}}}",
"Factory Reset": "Аднаўленне заводскіх наладаў",
"Factory Reset Data": "Аднаўленне даных да заводскіх наладаў",
"File": "Файл",
"Find accounts": "Знайсці ўліковыя запісы",
"Find accounts by email": "Знайсці ўліковыя запісы паводле email",
"Flash taskbar on new message": "Успыхваць на панэлі заданняў пры новым асабістым паведамленні ",
"Forward": "Пераадрасаваць",
"Functionality": "Функцыянальнасць",
"General": "Агульныя",
"Get beta updates": "Атрымлівць бэта-абнаўленні",
"Go Back": "Go Back",
"Hard Reload": "Апаратнае пераладаванне",
"Help": "Даведка",
"Help Center": "Цэнтр даведак",
"Hide": "Схаваць",
"Hide Others": "Схаваць іншыя",
"Hide Zulip": "Схаваць Zulip",
"History": "Гісторыя",
"History Shortcuts": "Гісторыя cпалучэнняў клавішаў",
"Install Later": "Install Later",
"Install and Relaunch": "Install and Relaunch",
"It will be installed the next time you restart the application.": "It will be installed the next time you restart the application.",
"Keyboard Shortcuts": "Спалучэнні клавішаў",
"Later": "Later",
"Loading": "Loading",
"Log Out": "Выйсці з уліковага запісу",
"Log Out of Organization": "Выйсці з уліковага запісу арганізацыі",
"Look Up": "Шукаць",
"Maintained by {{{link}}}Zulip{{{endLink}}}": "Maintained by {{{link}}}Zulip{{{endLink}}}",
"Manual Download": "Manual Download",
"Manual proxy configuration": "Ручная налада проксі",
"Minimize": "Згарнуць",
"Mute all sounds from Zulip": "Адключыць усе гукі з Zulip",
"Network": "Сетка",
"Network and Proxy Settings": "Налады сеткі і проксі",
"New servers added. Reload app now?": "New servers added. Reload app now?",
"No": "No",
"No Suggestion Found": "Прапановы не знойдзеныя",
"No updates available.": "No updates available.",
"Notification settings": "Notification settings",
"OK": "OK",
"OR": "OR",
"On macOS, the OS spellchecker is used.": "У macOS выкарыстоўваецца сістэмная праверка правапісу.",
"Organization URL": "URL арганізацыі",
"Organizations": "Арганізацыі",
"Paste": "Уставіць",
"Paste and Match Style": "Уставіць і ўзгадніць стыль",
"Proxy": "Проксі",
"Proxy bypass rules": "Правілы абыходу проксі",
"Proxy rules": "Правілы проксі",
"Proxy settings saved.": "Proxy settings saved.",
"Quit": "Выйсці",
"Quit Zulip": "Выйсці з Zulip",
"Quit when the window is closed": "Выйсці, калі акно зачыненае",
"Redo": "Узнавіць",
"Release Notes": "Заўвагі да выпуску",
"Reload": "Пераладаваць",
"Report an Issue": "Паведаміць аб праблеме",
"Reset App Settings": "Скінуць налады праграмы",
"Reset the application, thus deleting all the connected organizations and accounts.": "Скінуць усю праграму, выдаліўшы такім чынам усе звязаныя арганізацыі і ўліковыя запісы.",
"Save": "Захаваць",
"Select All": "Выбраць усё",
"Select Download Location": "Select Download Location",
"Select file": "Select file",
"Services": "Сэрвісы",
"Settings": "Налады",
"Shortcuts": "Спалучэнні клавішаў",
"Show app icon in system tray": "Паказаць значок праграмы ў вобласці паведамленняў",
"Show desktop notifications": "Паказваць апавяшчэнні на працоўным стале",
"Show sidebar": "Паказваць бакавую панэль",
"Show unread count badge on app icon": "Show unread count badge on app icon",
"Spellchecker Languages": "Мовы для праверкі правапісу",
"Start app at login": "Запусціць праграму пры ўваходзе ва ўліковы запіс",
"Switch to Next Organization": "Пераключыцца на наступную арганізацыю",
"Switch to Previous Organization": "Пераключыцца на папярэднюю арганізацыю",
"The custom CSS previously set is deleted.": "The custom CSS previously set is deleted.",
"The server presented an invalid certificate for {{{origin}}}:\n\n{{{error}}}": "The server presented an invalid certificate for {{{origin}}}:\n\n{{{error}}}",
"The update will be downloaded in the background. You will be notified when it is ready to be installed.": "The update will be downloaded in the background. You will be notified when it is ready to be installed.",
"There was an error while saving the new organization. You may have to add your previous organizations again.": "There was an error while saving the new organization. You may have to add your previous organizations again.",
"These desktop app shortcuts extend the Zulip webapp's": "Гэтыя спалучэнні клавішаў пашыраюць магчымасці Zulip",
"Tip": "Парада",
"Toggle DevTools for Active Tab": "Увамкнуць DevTools для актыўнай укладкі",
"Toggle DevTools for Zulip App": "Перамкнуць DevTools для праграмы Zulip",
"Toggle Do Not Disturb": "Перамкнуць рэжым \"Не турбаваць\"",
"Toggle Full Screen": "Перамкнуць \"На ўвесь экран\"",
"Toggle Sidebar": "Перамкнуць бакавую панэль",
"Toggle Tray Icon": "Перамкнуць значок у вобласці паведамленняў",
"Tools": "Інструменты",
"Unable to check for updates.": "Unable to check for updates.",
"Unable to download the update.": "Unable to download the update.",
"Undo": "Адрабіць",
"Unhide": "Зрабіць бачным",
"Unknown error": "Unknown error",
"Upload": "Заладаваць",
"Use system proxy settings (requires restart)": "Выкарыстоўваць сістэмныя налады проксі (патрабуе перазапуск)",
"View": "Прагляд",
"View Shortcuts": "Спалучэнні клавішаў прагляду",
"We encountered an error while saving the update notifications.": "We encountered an error while saving the update notifications.",
"Window": "Акно",
"Window Shortcuts": "Спалучэнні клавішаў акна",
"Yes": "Yes",
"You are running the latest version of Zulip Desktop.\nVersion: {{{version}}}": "You are running the latest version of Zulip Desktop.\nVersion: {{{version}}}",
"You can select a maximum of 3 languages for spellchecking.": "Вы можаце выбраць максімум 3 мовы для праверкі правапісу.",
"Zoom In": "Павялічыць",
"Zoom Out": "Паменшыць",
"keyboard shortcuts": "спалучэнні клавішаў",
"script": "скрыпт",
"{{{server}}} runs an outdated Zulip Server version {{{version}}}. It may not fully work in this app.": "На {{{server}}} працуе састарэлая версія сервера Zulip {{{version}}}. У гэтай праграме ён можа працаваць часткова."
}

View File

@@ -1,45 +1,67 @@
{
"A new update {{{version}}} has been downloaded.": "A new update {{{version}}} has been downloaded.",
"A new version {{{version}}} of Zulip Desktop is available.": "A new version {{{version}}} of Zulip Desktop is available.",
"About": "About",
"About Zulip": "Относно Zulip",
"Actual Size": "Действителен размер",
"Add Custom Certificates": "Добавяне на персонализирани сертификати",
"Add Organization": "Добавяне на организация",
"Add a Zulip organization": "Добавете организация Zulip",
"Add custom CSS": "Добавете персонализиран CSS",
"Add to Dictionary": "Add to Dictionary",
"Advanced": "напреднал",
"All the connected organizations will appear here": "Всички свързани организации ще се появят тук",
"All the connected organizations will appear here.": "All the connected organizations will appear here.",
"Always start minimized": "Винаги започвайте да минимизирате",
"App Updates": "Актуализации на приложения",
"App language (requires restart)": "App language (requires restart)",
"Appearance": "Външен вид",
"Application Shortcuts": "Клавишни комбинации за приложения",
"Are you sure you want to disconnect this organization?": "Наистина ли искате да прекъснете връзката с тази организация?",
"Are you sure?": "Are you sure?",
"Ask where to save files before downloading": "Ask where to save files before downloading",
"Auto hide Menu bar": "Автоматично скриване на лентата с менюта",
"Auto hide menu bar (Press Alt key to display)": "Автоматично скриване на лентата с менюта (натиснете клавиша Alt за показване)",
"Available under the {{{link}}}Apache 2.0 License{{{endLink}}}": "Available under the {{{link}}}Apache 2.0 License{{{endLink}}}",
"Back": "обратно",
"Bounce dock on new private message": "Прескочи док в новото лично съобщение",
"Certificate file": "Файл за сертификат",
"CSS file": "CSS file",
"Cancel": "Откажи",
"Certificate error": "Certificate error",
"Change": "промяна",
"Change the language from System Preferences → Keyboard → Text → Spelling.": "Change the language from System Preferences → Keyboard → Text → Spelling.",
"Check for Updates": "Провери за обновления",
"Close": "Близо",
"Connect": "Свържете",
"Connect to another organization": "Свържете се с друга организация",
"Connected organizations": "Свързани организации",
"Copy": "копие",
"Copy Email Address": "Copy Email Address",
"Copy Image": "Copy Image",
"Copy Image URL": "Copy Image URL",
"Copy Link": "Copy Link",
"Copy Zulip URL": "Копирайте URL адреса на Zulip",
"Create a new organization": "Създайте нова организация",
"Custom CSS file deleted": "Custom CSS file deleted",
"Cut": "Разрез",
"Default download location": "Място на изтегляне по подразбиране",
"Delete": "Изтрий",
"Desktop App Settings": "Настройки на приложението за работния плот",
"Desktop Notifications": "Известия за работния плот",
"Desktop Settings": "Настройки на работния плот",
"Disconnect": "Прекъсване на връзката",
"Disconnect organization": "Disconnect organization",
"Do Not Disturb": "Do Not Disturb",
"Download App Logs": "Изтеглете регистрационни файлове на приложенията",
"Edit": "редактиране",
"Edit Shortcuts": "Редактиране на преки пътища",
"Emoji & Symbols": "Emoji & Symbols",
"Enable auto updates": "Активиране на автоматичните актуализации",
"Enable error reporting (requires restart)": "Активиране на отчитането за грешки (изисква се рестартиране)",
"Enable spellchecker (requires restart)": "Активиране на проверката на правописа (изисква се рестартиране)",
"Enter Full Screen": "Enter Full Screen",
"Error saving new organization": "Error saving new organization",
"Error saving update notifications": "Error saving update notifications",
"Error: {{{error}}}\n\nThe latest version of Zulip Desktop is available at:\n{{{link}}}\nCurrent version: {{{version}}}": "Error: {{{error}}}\n\nThe latest version of Zulip Desktop is available at:\n{{{link}}}\nCurrent version: {{{version}}}",
"Factory Reset": "Фабрично нулиране",
"Factory Reset Data": "Factory Reset Data",
"File": "досие",
"Find accounts": "Намерете профили",
"Find accounts by email": "Намерете профили по имейл",
@@ -48,20 +70,39 @@
"Functionality": "Функционалност",
"General": "Общ",
"Get beta updates": "Изтеглете бета актуализации",
"Go Back": "Go Back",
"Hard Reload": "Hard Reload",
"Help": "Помогне",
"Help Center": "Помощен център",
"Hide": "Hide",
"Hide Others": "Hide Others",
"Hide Zulip": "Hide Zulip",
"History": "история",
"History Shortcuts": "Преки пътища в историята",
"Install Later": "Install Later",
"Install and Relaunch": "Install and Relaunch",
"It will be installed the next time you restart the application.": "It will be installed the next time you restart the application.",
"Keyboard Shortcuts": "Комбинация от клавиши",
"Later": "Later",
"Loading": "Loading",
"Log Out": "Излез от профила си",
"Log Out of Organization": "Излезте от организацията",
"Look Up": "Look Up",
"Maintained by {{{link}}}Zulip{{{endLink}}}": "Maintained by {{{link}}}Zulip{{{endLink}}}",
"Manual Download": "Manual Download",
"Manual proxy configuration": "Ръчна конфигурация на прокси",
"Minimize": "Минимизиране",
"Mute all sounds from Zulip": "Заглуши всички звуци от Zulip",
"NO": "НЕ",
"Network": "мрежа",
"Network and Proxy Settings": "Network and Proxy Settings",
"New servers added. Reload app now?": "New servers added. Reload app now?",
"No": "No",
"No Suggestion Found": "No Suggestion Found",
"No updates available.": "No updates available.",
"Notification settings": "Настройки на известията",
"OK": "OK",
"OR": "ИЛИ",
"On macOS, the OS spellchecker is used.": "On macOS, the OS spellchecker is used.",
"Organization URL": "URL адрес на организацията",
"Organizations": "организации",
"Paste": "паста",
@@ -69,27 +110,36 @@
"Proxy": "пълномощник",
"Proxy bypass rules": "Правила за заобикаляне на прокси",
"Proxy rules": "Прокси правила",
"Proxy settings saved.": "Proxy settings saved.",
"Quit": "напускам",
"Quit Zulip": "Прекрати Zulip",
"Quit when the window is closed": "Quit when the window is closed",
"Redo": "ремонтирам",
"Release Notes": "Бележки към изданието",
"Reload": "Презареди",
"Report an Issue": "Подаване на сигнал за проблем",
"Reset App Settings": "Reset App Settings",
"Reset the application, thus deleting all the connected organizations and accounts.": "Reset the application, thus deleting all the connected organizations and accounts.",
"Save": "Запази",
"Select All": "Избери всички",
"Select Download Location": "Select Download Location",
"Select file": "Select file",
"Services": "Services",
"Settings": "Настройки",
"Shortcuts": "Shortcuts",
"Show App Logs": "Показване на регистрационните файлове на приложенията",
"Show app icon in system tray": "Показване на иконата на приложението в системната област",
"Show app unread badge": "Показване на непрочетената значка на приложението",
"Show desktop notifications": "Показване на известията на работния плот",
"Show downloaded files in file manager": "Показване на изтеглените файлове във файловия мениджър",
"Show sidebar": "Показване на страничната лента",
"Show unread count badge on app icon": "Show unread count badge on app icon",
"Spellchecker Languages": "Spellchecker Languages",
"Start app at login": "Стартирайте приложението при влизане",
"Switch to Next Organization": "Превключване към следваща организация",
"Switch to Previous Organization": "Превключване към предишна организация",
"The custom CSS previously set is deleted.": "The custom CSS previously set is deleted.",
"The server presented an invalid certificate for {{{origin}}}:\n\n{{{error}}}": "The server presented an invalid certificate for {{{origin}}}:\n\n{{{error}}}",
"The update will be downloaded in the background. You will be notified when it is ready to be installed.": "The update will be downloaded in the background. You will be notified when it is ready to be installed.",
"There was an error while saving the new organization. You may have to add your previous organizations again.": "There was an error while saving the new organization. You may have to add your previous organizations again.",
"These desktop app shortcuts extend the Zulip webapp's": "Тези клавишни комбинации за настолни приложения разширяват webapp на Zulip",
"This will delete all application data including all added accounts and preferences": "Това ще изтрие всички данни за приложения, включително всички добавени акаунти и предпочитания",
"Tip": "Бакшиш",
"Toggle DevTools for Active Tab": "Превключете DevTools за Active Tab",
"Toggle DevTools for Zulip App": "Превключете DevTools за Zulip App",
@@ -98,37 +148,24 @@
"Toggle Sidebar": "Превключване на страничната лента",
"Toggle Tray Icon": "Превключете иконата на тава",
"Tools": "Инструменти",
"Unable to check for updates.": "Unable to check for updates.",
"Unable to download the update.": "Unable to download the update.",
"Undo": "премахвам",
"Unhide": "Unhide",
"Unknown error": "Unknown error",
"Upload": "Качи",
"Use system proxy settings (requires restart)": "Използване на системните прокси настройки (изисква рестартиране)",
"View": "изглед",
"View Shortcuts": "Преглед на преки пътища",
"We encountered an error while saving the update notifications.": "We encountered an error while saving the update notifications.",
"Window": "прозорец",
"Window Shortcuts": "Клавишни комбинации",
"YES": "ДА",
"Yes": "Yes",
"You are running the latest version of Zulip Desktop.\nVersion: {{{version}}}": "You are running the latest version of Zulip Desktop.\nVersion: {{{version}}}",
"You can select a maximum of 3 languages for spellchecking.": "You can select a maximum of 3 languages for spellchecking.",
"Zoom In": "Увеличавам",
"Zoom Out": "Отдалечавам",
"Zulip Help": "Помощ за Zulip",
"keyboard shortcuts": "комбинация от клавиши",
"script": "писменост",
"Quit when the window is closed": "Quit when the window is closed",
"Ask where to save files before downloading": "Ask where to save files before downloading",
"Services": "Services",
"Hide": "Hide",
"Hide Others": "Hide Others",
"Unhide": "Unhide",
"AddServer": "AddServer",
"App language (requires restart)": "App language (requires restart)",
"Factory Reset Data": "Factory Reset Data",
"Reset the application, thus deleting all the connected organizations, accounts, and certificates.": "Reset the application, thus deleting all the connected organizations, accounts, and certificates.",
"On macOS, the OS spellchecker is used.": "On macOS, the OS spellchecker is used.",
"Change the language from System Preferences → Keyboard → Text → Spelling.": "Change the language from System Preferences → Keyboard → Text → Spelling.",
"Copy Link": "Copy Link",
"Copy Image": "Copy Image",
"Copy Image URL": "Copy Image URL",
"No Suggestion Found": "No Suggestion Found",
"You can select a maximum of 3 languages for spellchecking.": "You can select a maximum of 3 languages for spellchecking.",
"Spellchecker Languages": "Spellchecker Languages",
"Add to Dictionary": "Add to Dictionary",
"Look Up": "Look Up"
"{{{server}}} runs an outdated Zulip Server version {{{version}}}. It may not fully work in this app.": "{{{server}}} runs an outdated Zulip Server version {{{version}}}. It may not fully work in this app."
}

171
public/translations/bn.json Normal file
View File

@@ -0,0 +1,171 @@
{
"A new update {{{version}}} has been downloaded.": "A new update {{{version}}} has been downloaded.",
"A new version {{{version}}} of Zulip Desktop is available.": "A new version {{{version}}} of Zulip Desktop is available.",
"About": "About",
"About Zulip": "যুলিপ সম্পর্কে ",
"Actual Size": "প্রকৃত সাইজ ",
"Add Organization": "সংস্থা যুক্ত করুন",
"Add a Zulip organization": "একটি যুলিপ প্রতিষ্ঠান যুক্ত করুন",
"Add custom CSS": "কাস্টম সিএসএস যুক্ত করুন",
"Add to Dictionary": "Add to Dictionary",
"Advanced": "অগ্রসর ",
"All the connected organizations will appear here.": "All the connected organizations will appear here.",
"Always start minimized": "সব সময় মিনিমাইজড ভাবে শুরু করুন ",
"App Updates": "অ্যাপ আপডেট",
"App language (requires restart)": "App language (requires restart)",
"Appearance": "প্রকাশ",
"Application Shortcuts": "অ্যাপ্লিকেশান শর্টকাট ",
"Are you sure you want to disconnect this organization?": "আপনি কি নিশ্চিত যে আপনি এই সংস্থার সংযোগ বিচ্ছিন্ন করতে চান ?",
"Are you sure?": "Are you sure?",
"Ask where to save files before downloading": "Ask where to save files before downloading",
"Auto hide Menu bar": "অটো মেনুবার হাইড করুন ",
"Auto hide menu bar (Press Alt key to display)": "অটো মেনুবার হাইড করুন (দেখার জন্য অল্টার কি চাপুন)",
"Available under the {{{link}}}Apache 2.0 License{{{endLink}}}": "Available under the {{{link}}}Apache 2.0 License{{{endLink}}}",
"Back": "পেছন",
"Bounce dock on new private message": "ব্যাক্তিগত মেসেজে ডক বাউন্স করুন ",
"CSS file": "CSS file",
"Cancel": "বাতিল",
"Certificate error": "Certificate error",
"Change": "পরিবর্তন",
"Change the language from System Preferences → Keyboard → Text → Spelling.": "ভাষা পরিবর্তন করতে সিস্টেম প্রেফারেন্স → কীবোর্ড → টেক্সট → স্পেলিং এ যান ",
"Check for Updates": "আপডেট চেক করুন",
"Close": "বন্ধ করুন",
"Connect": "সংযুক্ত করুন",
"Connect to another organization": "অন্য একটি সংস্থার সাথে সংযুক্ত করুন",
"Connected organizations": "সংযুক্ত সংস্থা সমূহ ",
"Copy": "কপি",
"Copy Email Address": "Copy Email Address",
"Copy Image": "Copy Image",
"Copy Image URL": "Copy Image URL",
"Copy Link": "Copy Link",
"Copy Zulip URL": "যুলিপ ইউআরএল কপি করুন ",
"Create a new organization": "নতুন সংস্থা তৈরি করুন ",
"Custom CSS file deleted": "Custom CSS file deleted",
"Cut": "কাট ",
"Default download location": "Default download location",
"Delete": "ডিলিট",
"Desktop Notifications": "ডেস্কটপ নোটিফিকেশান ",
"Desktop Settings": "ডেস্কটপ সেটিংস",
"Disconnect": "সংযোগ বিছিন্ন করুন",
"Disconnect organization": "Disconnect organization",
"Do Not Disturb": "Do Not Disturb",
"Download App Logs": "অ্যাপ লগ ডাউনলোড করুন ",
"Edit": "এডিট",
"Edit Shortcuts": "শর্টকাটগুলো এডিট করুন ",
"Emoji & Symbols": "Emoji & Symbols",
"Enable auto updates": "অটো আপডেট চালু করুন",
"Enable error reporting (requires restart)": "Enable error reporting (requires restart)",
"Enable spellchecker (requires restart)": "Enable spellchecker (requires restart)",
"Enter Full Screen": "Enter Full Screen",
"Error saving new organization": "Error saving new organization",
"Error saving update notifications": "Error saving update notifications",
"Error: {{{error}}}\n\nThe latest version of Zulip Desktop is available at:\n{{{link}}}\nCurrent version: {{{version}}}": "Error: {{{error}}}\n\nThe latest version of Zulip Desktop is available at:\n{{{link}}}\nCurrent version: {{{version}}}",
"Factory Reset": "ফ্যাক্টরি রিসেট",
"Factory Reset Data": "Factory Reset Data",
"File": "ফাইল",
"Find accounts": "অ্যাকাউন্ট খুজুন",
"Find accounts by email": "ইমেইল ব্যাবহার করে অ্যাকাউন্ট খুজুন",
"Flash taskbar on new message": "Flash taskbar on new message",
"Forward": "ফরওয়ার্ড",
"Functionality": "Functionality",
"General": "সাধারন",
"Get beta updates": "Get beta updates",
"Go Back": "Go Back",
"Hard Reload": "Hard Reload",
"Help": "সাহায্য",
"Help Center": "সাহায্য কেন্দ্র",
"Hide": "Hide",
"Hide Others": "Hide Others",
"Hide Zulip": "Hide Zulip",
"History": "ইতিহাস",
"History Shortcuts": "History Shortcuts",
"Install Later": "Install Later",
"Install and Relaunch": "Install and Relaunch",
"It will be installed the next time you restart the application.": "It will be installed the next time you restart the application.",
"Keyboard Shortcuts": "Keyboard Shortcuts",
"Later": "Later",
"Loading": "Loading",
"Log Out": "লগ আউট",
"Log Out of Organization": "সংস্থা থেকে লগ আউট করুন",
"Look Up": "Look Up",
"Maintained by {{{link}}}Zulip{{{endLink}}}": "Maintained by {{{link}}}Zulip{{{endLink}}}",
"Manual Download": "Manual Download",
"Manual proxy configuration": "Manual proxy configuration",
"Minimize": "ছোট করুন",
"Mute all sounds from Zulip": "Mute all sounds from Zulip",
"Network": "Network",
"Network and Proxy Settings": "Network and Proxy Settings",
"New servers added. Reload app now?": "New servers added. Reload app now?",
"No": "No",
"No Suggestion Found": "কোন সাজেশন পাওয়া যায়নি",
"No updates available.": "No updates available.",
"Notification settings": "Notification settings",
"OK": "OK",
"OR": "অথবা",
"On macOS, the OS spellchecker is used.": "ম্যাক ওএস এ , ওএস এর স্পেলচেকার ব্যাবহার করা হয় ।",
"Organization URL": "Organization URL",
"Organizations": "সংস্থাসমূহ",
"Paste": "Paste",
"Paste and Match Style": "Paste and Match Style",
"Proxy": "Proxy",
"Proxy bypass rules": "Proxy bypass rules",
"Proxy rules": "Proxy rules",
"Proxy settings saved.": "Proxy settings saved.",
"Quit": "Quit",
"Quit Zulip": "Quit Zulip",
"Quit when the window is closed": "Quit when the window is closed",
"Redo": "Redo",
"Release Notes": "Release Notes",
"Reload": "Reload",
"Report an Issue": "Report an Issue",
"Reset App Settings": "Reset App Settings",
"Reset the application, thus deleting all the connected organizations and accounts.": "Reset the application, thus deleting all the connected organizations and accounts.",
"Save": "সেভ",
"Select All": "Select All",
"Select Download Location": "Select Download Location",
"Select file": "Select file",
"Services": "Services",
"Settings": "সেটিংস",
"Shortcuts": "শর্টকাট সমূহ",
"Show app icon in system tray": "Show app icon in system tray",
"Show desktop notifications": "Show desktop notifications",
"Show sidebar": "Show sidebar",
"Show unread count badge on app icon": "Show unread count badge on app icon",
"Spellchecker Languages": "Spellchecker Languages",
"Start app at login": "Start app at login",
"Switch to Next Organization": "Switch to Next Organization",
"Switch to Previous Organization": "Switch to Previous Organization",
"The custom CSS previously set is deleted.": "The custom CSS previously set is deleted.",
"The server presented an invalid certificate for {{{origin}}}:\n\n{{{error}}}": "The server presented an invalid certificate for {{{origin}}}:\n\n{{{error}}}",
"The update will be downloaded in the background. You will be notified when it is ready to be installed.": "The update will be downloaded in the background. You will be notified when it is ready to be installed.",
"There was an error while saving the new organization. You may have to add your previous organizations again.": "There was an error while saving the new organization. You may have to add your previous organizations again.",
"These desktop app shortcuts extend the Zulip webapp's": "These desktop app shortcuts extend the Zulip webapp's",
"Tip": "টিপ",
"Toggle DevTools for Active Tab": "Toggle DevTools for Active Tab",
"Toggle DevTools for Zulip App": "Toggle DevTools for Zulip App",
"Toggle Do Not Disturb": "Toggle Do Not Disturb",
"Toggle Full Screen": "Toggle Full Screen",
"Toggle Sidebar": "Toggle Sidebar",
"Toggle Tray Icon": "Toggle Tray Icon",
"Tools": "Tools",
"Unable to check for updates.": "Unable to check for updates.",
"Unable to download the update.": "Unable to download the update.",
"Undo": "অ্যান্ডু ",
"Unhide": "Unhide",
"Unknown error": "Unknown error",
"Upload": "আপলোড",
"Use system proxy settings (requires restart)": "Use system proxy settings (requires restart)",
"View": "View",
"View Shortcuts": "View Shortcuts",
"We encountered an error while saving the update notifications.": "We encountered an error while saving the update notifications.",
"Window": "Window",
"Window Shortcuts": "Window Shortcuts",
"Yes": "Yes",
"You are running the latest version of Zulip Desktop.\nVersion: {{{version}}}": "You are running the latest version of Zulip Desktop.\nVersion: {{{version}}}",
"You can select a maximum of 3 languages for spellchecking.": "You can select a maximum of 3 languages for spellchecking.",
"Zoom In": "Zoom In",
"Zoom Out": "জুম আউট",
"keyboard shortcuts": "keyboard shortcuts",
"script": "স্ক্রিপ্ট ",
"{{{server}}} runs an outdated Zulip Server version {{{version}}}. It may not fully work in this app.": "{{{server}}} runs an outdated Zulip Server version {{{version}}}. It may not fully work in this app."
}

View File

@@ -1,67 +1,108 @@
{
"A new update {{{version}}} has been downloaded.": "A new update {{{version}}} has been downloaded.",
"A new version {{{version}}} of Zulip Desktop is available.": "A new version {{{version}}} of Zulip Desktop is available.",
"About": "About",
"About Zulip": "About Zulip",
"Actual Size": "Actual Size",
"Add Custom Certificates": "Add Custom Certificates",
"Add Organization": "Add Organization",
"Add a Zulip organization": "Add a Zulip organization",
"Add custom CSS": "Add custom CSS",
"Add to Dictionary": "Add to Dictionary",
"Advanced": "Advanced",
"All the connected organizations will appear here": "All the connected organizations will appear here",
"All the connected organizations will appear here.": "All the connected organizations will appear here.",
"Always start minimized": "Always start minimized",
"App Updates": "App Updates",
"App language (requires restart)": "App language (requires restart)",
"Appearance": "Appearance",
"Application Shortcuts": "Application Shortcuts",
"Are you sure you want to disconnect this organization?": "Are you sure you want to disconnect this organization?",
"Are you sure?": "Are you sure?",
"Ask where to save files before downloading": "Ask where to save files before downloading",
"Auto hide Menu bar": "Auto hide Menu bar",
"Auto hide menu bar (Press Alt key to display)": "Auto hide menu bar (Press Alt key to display)",
"Available under the {{{link}}}Apache 2.0 License{{{endLink}}}": "Available under the {{{link}}}Apache 2.0 License{{{endLink}}}",
"Back": "Back",
"Bounce dock on new private message": "Bounce dock on new private message",
"Certificate file": "Certificate file",
"Change": "Change",
"CSS file": "CSS file",
"Cancel": "raď kerdên",
"Certificate error": "Certificate error",
"Change": "ālêštkâri",
"Change the language from System Preferences → Keyboard → Text → Spelling.": "Change the language from System Preferences → Keyboard → Text → Spelling.",
"Check for Updates": "Check for Updates",
"Close": "Close",
"Close": "bastên",
"Connect": "Connect",
"Connect to another organization": "Connect to another organization",
"Connected organizations": "Connected organizations",
"Copy": "Copy",
"Copy Email Address": "Copy Email Address",
"Copy Image": "Copy Image",
"Copy Image URL": "Copy Image URL",
"Copy Link": "Copy Link",
"Copy Zulip URL": "Copy Zulip URL",
"Create a new organization": "Create a new organization",
"Custom CSS file deleted": "Custom CSS file deleted",
"Cut": "Cut",
"Default download location": "Default download location",
"Delete": "Delete",
"Desktop App Settings": "Desktop App Settings",
"Delete": "pāk kerdên",
"Desktop Notifications": "Desktop Notifications",
"Desktop Settings": "Desktop Settings",
"Disconnect": "Disconnect",
"Disconnect organization": "Disconnect organization",
"Do Not Disturb": "Do Not Disturb",
"Download App Logs": "Download App Logs",
"Edit": "Edit",
"Edit": "ālêšt",
"Edit Shortcuts": "Edit Shortcuts",
"Emoji & Symbols": "Emoji & Symbols",
"Enable auto updates": "Enable auto updates",
"Enable error reporting (requires restart)": "Enable error reporting (requires restart)",
"Enable spellchecker (requires restart)": "Enable spellchecker (requires restart)",
"Enter Full Screen": "Enter Full Screen",
"Error saving new organization": "Error saving new organization",
"Error saving update notifications": "Error saving update notifications",
"Error: {{{error}}}\n\nThe latest version of Zulip Desktop is available at:\n{{{link}}}\nCurrent version: {{{version}}}": "Error: {{{error}}}\n\nThe latest version of Zulip Desktop is available at:\n{{{link}}}\nCurrent version: {{{version}}}",
"Factory Reset": "Factory Reset",
"File": "File",
"Find accounts": "Find accounts",
"Factory Reset Data": "Factory Reset Data",
"File": "fāyl",
"Find accounts": "jostên hêsāvā mêntori",
"Find accounts by email": "Find accounts by email",
"Flash taskbar on new message": "Flash taskbar on new message",
"Forward": "Forward",
"Functionality": "Functionality",
"General": "General",
"Get beta updates": "Get beta updates",
"Go Back": "Go Back",
"Hard Reload": "Hard Reload",
"Help": "Help",
"Help Center": "Help Center",
"Hide": "Hide",
"Hide Others": "Hide Others",
"Hide Zulip": "Hide Zulip",
"History": "History",
"History Shortcuts": "History Shortcuts",
"Install Later": "Install Later",
"Install and Relaunch": "Install and Relaunch",
"It will be installed the next time you restart the application.": "It will be installed the next time you restart the application.",
"Keyboard Shortcuts": "Keyboard Shortcuts",
"Later": "Later",
"Loading": "Loading",
"Log Out": "Log Out",
"Log Out of Organization": "Log Out of Organization",
"Look Up": "Look Up",
"Maintained by {{{link}}}Zulip{{{endLink}}}": "Maintained by {{{link}}}Zulip{{{endLink}}}",
"Manual Download": "Manual Download",
"Manual proxy configuration": "Manual proxy configuration",
"Minimize": "Minimize",
"Mute all sounds from Zulip": "Mute all sounds from Zulip",
"NO": "NO",
"Network": "Network",
"Network and Proxy Settings": "Network and Proxy Settings",
"New servers added. Reload app now?": "New servers added. Reload app now?",
"No": "No",
"No Suggestion Found": "No Suggestion Found",
"No updates available.": "No updates available.",
"Notification settings": "Notification settings",
"OK": "xā",
"OR": "OR",
"On macOS, the OS spellchecker is used.": "On macOS, the OS spellchecker is used.",
"Organization URL": "Organization URL",
"Organizations": "Organizations",
"Paste": "Paste",
@@ -69,27 +110,36 @@
"Proxy": "Proxy",
"Proxy bypass rules": "Proxy bypass rules",
"Proxy rules": "Proxy rules",
"Proxy settings saved.": "Proxy settings saved.",
"Quit": "Quit",
"Quit Zulip": "Quit Zulip",
"Quit when the window is closed": "Quit when the window is closed",
"Redo": "Redo",
"Release Notes": "Release Notes",
"Reload": "Reload",
"Report an Issue": "Report an Issue",
"Save": "Save",
"Reset App Settings": "Reset App Settings",
"Reset the application, thus deleting all the connected organizations and accounts.": "Reset the application, thus deleting all the connected organizations and accounts.",
"Save": "zaft kerdên",
"Select All": "Select All",
"Settings": "Settings",
"Select Download Location": "Select Download Location",
"Select file": "Select file",
"Services": "Services",
"Settings": "sāmovā",
"Shortcuts": "Shortcuts",
"Show App Logs": "Show App Logs",
"Show app icon in system tray": "Show app icon in system tray",
"Show app unread badge": "Show app unread badge",
"Show desktop notifications": "Show desktop notifications",
"Show downloaded files in file manager": "Show downloaded files in file manager",
"Show sidebar": "Show sidebar",
"Show unread count badge on app icon": "Show unread count badge on app icon",
"Spellchecker Languages": "Spellchecker Languages",
"Start app at login": "Start app at login",
"Switch to Next Organization": "Switch to Next Organization",
"Switch to Previous Organization": "Switch to Previous Organization",
"The custom CSS previously set is deleted.": "The custom CSS previously set is deleted.",
"The server presented an invalid certificate for {{{origin}}}:\n\n{{{error}}}": "The server presented an invalid certificate for {{{origin}}}:\n\n{{{error}}}",
"The update will be downloaded in the background. You will be notified when it is ready to be installed.": "The update will be downloaded in the background. You will be notified when it is ready to be installed.",
"There was an error while saving the new organization. You may have to add your previous organizations again.": "There was an error while saving the new organization. You may have to add your previous organizations again.",
"These desktop app shortcuts extend the Zulip webapp's": "These desktop app shortcuts extend the Zulip webapp's",
"This will delete all application data including all added accounts and preferences": "This will delete all application data including all added accounts and preferences",
"Tip": "Tip",
"Toggle DevTools for Active Tab": "Toggle DevTools for Active Tab",
"Toggle DevTools for Zulip App": "Toggle DevTools for Zulip App",
@@ -98,37 +148,24 @@
"Toggle Sidebar": "Toggle Sidebar",
"Toggle Tray Icon": "Toggle Tray Icon",
"Tools": "Tools",
"Unable to check for updates.": "Unable to check for updates.",
"Unable to download the update.": "Unable to download the update.",
"Undo": "Undo",
"Unhide": "Unhide",
"Unknown error": "Unknown error",
"Upload": "Upload",
"Use system proxy settings (requires restart)": "Use system proxy settings (requires restart)",
"View": "View",
"View Shortcuts": "View Shortcuts",
"We encountered an error while saving the update notifications.": "We encountered an error while saving the update notifications.",
"Window": "Window",
"Window Shortcuts": "Window Shortcuts",
"YES": "YES",
"Yes": "Yes",
"You are running the latest version of Zulip Desktop.\nVersion: {{{version}}}": "You are running the latest version of Zulip Desktop.\nVersion: {{{version}}}",
"You can select a maximum of 3 languages for spellchecking.": "You can select a maximum of 3 languages for spellchecking.",
"Zoom In": "Zoom In",
"Zoom Out": "Zoom Out",
"Zulip Help": "Zulip Help",
"keyboard shortcuts": "keyboard shortcuts",
"script": "script",
"Quit when the window is closed": "Quit when the window is closed",
"Ask where to save files before downloading": "Ask where to save files before downloading",
"Services": "Services",
"Hide": "Hide",
"Hide Others": "Hide Others",
"Unhide": "Unhide",
"AddServer": "AddServer",
"App language (requires restart)": "App language (requires restart)",
"Factory Reset Data": "Factory Reset Data",
"Reset the application, thus deleting all the connected organizations, accounts, and certificates.": "Reset the application, thus deleting all the connected organizations, accounts, and certificates.",
"On macOS, the OS spellchecker is used.": "On macOS, the OS spellchecker is used.",
"Change the language from System Preferences → Keyboard → Text → Spelling.": "Change the language from System Preferences → Keyboard → Text → Spelling.",
"Copy Link": "Copy Link",
"Copy Image": "Copy Image",
"Copy Image URL": "Copy Image URL",
"No Suggestion Found": "No Suggestion Found",
"You can select a maximum of 3 languages for spellchecking.": "You can select a maximum of 3 languages for spellchecking.",
"Spellchecker Languages": "Spellchecker Languages",
"Add to Dictionary": "Add to Dictionary",
"Look Up": "Look Up"
"{{{server}}} runs an outdated Zulip Server version {{{version}}}. It may not fully work in this app.": "{{{server}}} runs an outdated Zulip Server version {{{version}}}. It may not fully work in this app."
}

View File

@@ -1,45 +1,67 @@
{
"A new update {{{version}}} has been downloaded.": "A new update {{{version}}} has been downloaded.",
"A new version {{{version}}} of Zulip Desktop is available.": "A new version {{{version}}} of Zulip Desktop is available.",
"About": "About",
"About Zulip": "Quant a Zulip",
"Actual Size": "Actual Size",
"Add Custom Certificates": "Add Custom Certificates",
"Add Organization": "Add Organization",
"Add a Zulip organization": "Add a Zulip organization",
"Add custom CSS": "Add custom CSS",
"Advanced": "Advanced",
"All the connected organizations will appear here": "All the connected organizations will appear here",
"Add to Dictionary": "Add to Dictionary",
"Advanced": "Avançat",
"All the connected organizations will appear here.": "All the connected organizations will appear here.",
"Always start minimized": "Always start minimized",
"App Updates": "App Updates",
"App language (requires restart)": "App language (requires restart)",
"Appearance": "Appearance",
"Application Shortcuts": "Application Shortcuts",
"Are you sure you want to disconnect this organization?": "Are you sure you want to disconnect this organization?",
"Are you sure?": "Are you sure?",
"Ask where to save files before downloading": "Ask where to save files before downloading",
"Auto hide Menu bar": "Auto hide Menu bar",
"Auto hide menu bar (Press Alt key to display)": "Auto hide menu bar (Press Alt key to display)",
"Available under the {{{link}}}Apache 2.0 License{{{endLink}}}": "Available under the {{{link}}}Apache 2.0 License{{{endLink}}}",
"Back": "Back",
"Bounce dock on new private message": "Bounce dock on new private message",
"Certificate file": "Certificate file",
"CSS file": "CSS file",
"Cancel": "Cancel·la",
"Certificate error": "Certificate error",
"Change": "Change",
"Change the language from System Preferences → Keyboard → Text → Spelling.": "Change the language from System Preferences → Keyboard → Text → Spelling.",
"Check for Updates": "Check for Updates",
"Close": "Tancar",
"Connect": "Connect",
"Connect to another organization": "Connect to another organization",
"Connected organizations": "Connected organizations",
"Copy": "Copia",
"Copy Email Address": "Copy Email Address",
"Copy Image": "Copy Image",
"Copy Image URL": "Copy Image URL",
"Copy Link": "Copy Link",
"Copy Zulip URL": "Copy Zulip URL",
"Create a new organization": "Crea una nova organització",
"Custom CSS file deleted": "Custom CSS file deleted",
"Cut": "Cut",
"Default download location": "Default download location",
"Delete": "Elimina",
"Desktop App Settings": "Configuració de l'aplicació d'escriptori",
"Desktop Notifications": "Desktop Notifications",
"Desktop Settings": "Configuració d'escriptori",
"Disconnect": "Disconnect",
"Disconnect organization": "Disconnect organization",
"Do Not Disturb": "Do Not Disturb",
"Download App Logs": "Download App Logs",
"Edit": "Edita",
"Edit Shortcuts": "Edit Shortcuts",
"Emoji & Symbols": "Emoji & Symbols",
"Enable auto updates": "Enable auto updates",
"Enable error reporting (requires restart)": "Enable error reporting (requires restart)",
"Enable spellchecker (requires restart)": "Enable spellchecker (requires restart)",
"Enter Full Screen": "Enter Full Screen",
"Error saving new organization": "Error saving new organization",
"Error saving update notifications": "Error saving update notifications",
"Error: {{{error}}}\n\nThe latest version of Zulip Desktop is available at:\n{{{link}}}\nCurrent version: {{{version}}}": "Error: {{{error}}}\n\nThe latest version of Zulip Desktop is available at:\n{{{link}}}\nCurrent version: {{{version}}}",
"Factory Reset": "Factory Reset",
"Factory Reset Data": "Factory Reset Data",
"File": "Fitxer",
"Find accounts": "Find accounts",
"Find accounts by email": "Find accounts by email",
@@ -48,20 +70,39 @@
"Functionality": "Functionality",
"General": "General",
"Get beta updates": "Get beta updates",
"Hard Reload": "Hard Reload",
"Go Back": "Go Back",
"Hard Reload": "Recàrrega forçada",
"Help": "Help",
"Help Center": "Centre d'ajuda",
"Hide": "Hide",
"Hide Others": "Hide Others",
"Hide Zulip": "Hide Zulip",
"History": "Historial",
"History Shortcuts": "Dreceres d'historial",
"Install Later": "Install Later",
"Install and Relaunch": "Install and Relaunch",
"It will be installed the next time you restart the application.": "It will be installed the next time you restart the application.",
"Keyboard Shortcuts": "Keyboard Shortcuts",
"Log Out": "Log Out",
"Log Out of Organization": "Log Out of Organization",
"Later": "Later",
"Loading": "Loading",
"Log Out": "Tanca la sessió",
"Log Out of Organization": "Tanca la sessió de l'organització",
"Look Up": "Look Up",
"Maintained by {{{link}}}Zulip{{{endLink}}}": "Maintained by {{{link}}}Zulip{{{endLink}}}",
"Manual Download": "Manual Download",
"Manual proxy configuration": "Manual proxy configuration",
"Minimize": "Minimize",
"Mute all sounds from Zulip": "Silencia tots els sons de Zulip",
"NO": "NO",
"Network": "Network",
"Network and Proxy Settings": "Network and Proxy Settings",
"New servers added. Reload app now?": "New servers added. Reload app now?",
"No": "No",
"No Suggestion Found": "No Suggestion Found",
"No updates available.": "No updates available.",
"Notification settings": "Notification settings",
"OK": "D'acord",
"OR": "OR",
"On macOS, the OS spellchecker is used.": "On macOS, the OS spellchecker is used.",
"Organization URL": "URL d'organització",
"Organizations": "Organizations",
"Paste": "Paste",
@@ -69,27 +110,36 @@
"Proxy": "Proxy",
"Proxy bypass rules": "Proxy bypass rules",
"Proxy rules": "Proxy rules",
"Proxy settings saved.": "Proxy settings saved.",
"Quit": "Quit",
"Quit Zulip": "Quit Zulip",
"Quit when the window is closed": "Quit when the window is closed",
"Redo": "Redo",
"Release Notes": "Release Notes",
"Reload": "Reload",
"Reload": "Recarrega",
"Report an Issue": "Report an Issue",
"Reset App Settings": "Reinicia la configuració de l'aplicació",
"Reset the application, thus deleting all the connected organizations and accounts.": "Reset the application, thus deleting all the connected organizations and accounts.",
"Save": "Guardar",
"Select All": "Select All",
"Select Download Location": "Select Download Location",
"Select file": "Select file",
"Services": "Services",
"Settings": "Configuració",
"Shortcuts": "Shortcuts",
"Show App Logs": "Show App Logs",
"Show app icon in system tray": "Show app icon in system tray",
"Show app unread badge": "Mostrar una marca en la icona si hi ha missatges no llegits",
"Show desktop notifications": "Show desktop notifications",
"Show downloaded files in file manager": "Show downloaded files in file manager",
"Show sidebar": "Show sidebar",
"Show unread count badge on app icon": "Show unread count badge on app icon",
"Spellchecker Languages": "Spellchecker Languages",
"Start app at login": "Start app at login",
"Switch to Next Organization": "Switch to Next Organization",
"Switch to Previous Organization": "Switch to Previous Organization",
"The custom CSS previously set is deleted.": "The custom CSS previously set is deleted.",
"The server presented an invalid certificate for {{{origin}}}:\n\n{{{error}}}": "The server presented an invalid certificate for {{{origin}}}:\n\n{{{error}}}",
"The update will be downloaded in the background. You will be notified when it is ready to be installed.": "The update will be downloaded in the background. You will be notified when it is ready to be installed.",
"There was an error while saving the new organization. You may have to add your previous organizations again.": "There was an error while saving the new organization. You may have to add your previous organizations again.",
"These desktop app shortcuts extend the Zulip webapp's": "These desktop app shortcuts extend the Zulip webapp's",
"This will delete all application data including all added accounts and preferences": "This will delete all application data including all added accounts and preferences",
"Tip": "Tip",
"Toggle DevTools for Active Tab": "Toggle DevTools for Active Tab",
"Toggle DevTools for Zulip App": "Toggle DevTools for Zulip App",
@@ -98,37 +148,24 @@
"Toggle Sidebar": "Toggle Sidebar",
"Toggle Tray Icon": "Toggle Tray Icon",
"Tools": "Tools",
"Unable to check for updates.": "Unable to check for updates.",
"Unable to download the update.": "Unable to download the update.",
"Undo": "Undo",
"Unhide": "Unhide",
"Unknown error": "Unknown error",
"Upload": "Pujada",
"Use system proxy settings (requires restart)": "Use system proxy settings (requires restart)",
"View": "View",
"View Shortcuts": "View Shortcuts",
"We encountered an error while saving the update notifications.": "We encountered an error while saving the update notifications.",
"Window": "Window",
"Window Shortcuts": "Window Shortcuts",
"YES": "YES",
"Yes": "Yes",
"You are running the latest version of Zulip Desktop.\nVersion: {{{version}}}": "You are running the latest version of Zulip Desktop.\nVersion: {{{version}}}",
"You can select a maximum of 3 languages for spellchecking.": "You can select a maximum of 3 languages for spellchecking.",
"Zoom In": "Zoom In",
"Zoom Out": "Zoom Out",
"Zulip Help": "Zulip Help",
"keyboard shortcuts": "keyboard shortcuts",
"script": "script",
"Quit when the window is closed": "Quit when the window is closed",
"Ask where to save files before downloading": "Ask where to save files before downloading",
"Services": "Services",
"Hide": "Hide",
"Hide Others": "Hide Others",
"Unhide": "Unhide",
"AddServer": "AddServer",
"App language (requires restart)": "App language (requires restart)",
"Factory Reset Data": "Factory Reset Data",
"Reset the application, thus deleting all the connected organizations, accounts, and certificates.": "Reset the application, thus deleting all the connected organizations, accounts, and certificates.",
"On macOS, the OS spellchecker is used.": "On macOS, the OS spellchecker is used.",
"Change the language from System Preferences → Keyboard → Text → Spelling.": "Change the language from System Preferences → Keyboard → Text → Spelling.",
"Copy Link": "Copy Link",
"Copy Image": "Copy Image",
"Copy Image URL": "Copy Image URL",
"No Suggestion Found": "No Suggestion Found",
"You can select a maximum of 3 languages for spellchecking.": "You can select a maximum of 3 languages for spellchecking.",
"Spellchecker Languages": "Spellchecker Languages",
"Add to Dictionary": "Add to Dictionary",
"Look Up": "Look Up"
"{{{server}}} runs an outdated Zulip Server version {{{version}}}. It may not fully work in this app.": "{{{server}}} runs an outdated Zulip Server version {{{version}}}. It may not fully work in this app."
}

View File

@@ -1,45 +1,67 @@
{
"A new update {{{version}}} has been downloaded.": "Byla stažena nová aktualizace {{{version}}}.",
"A new version {{{version}}} of Zulip Desktop is available.": "Je dostupná nová verze {{{version}}} Zulip Desktop.",
"About": "O programu",
"About Zulip": "O Zulipu",
"Actual Size": "Skutečná velikost",
"Add Custom Certificates": "Přidat vlastní certifikáty",
"Add Organization": "Přidat organizaci",
"Add a Zulip organization": "Přidat organizaci Zulip",
"Add custom CSS": "Přidat vlastní CSS",
"Add to Dictionary": "Přidat do slovníku",
"Advanced": "Rozšířené",
"All the connected organizations will appear here": "Všechny připojené organizace se objeví zde",
"All the connected organizations will appear here.": "Všechny připojené organizace se objeví zde.",
"Always start minimized": "Vždy spouštět minimalizované",
"App Updates": "Aktualizace aplikace",
"App language (requires restart)": "Jazyk programu (vyžaduje opětovné spuštění programu)",
"Appearance": "Vzhled",
"Application Shortcuts": "Zkratky programu",
"Are you sure you want to disconnect this organization?": "Opravdu chcete odpojit tuto organizaci?",
"Are you sure?": "Jste si jistý?",
"Ask where to save files before downloading": "Před stažením se zeptat kam uložit soubory",
"Auto hide Menu bar": "Automaticky skrývat menu",
"Auto hide menu bar (Press Alt key to display)": "Automaticky skrývat menu (pro zobrazení stiskněte klávesu Alt)",
"Available under the {{{link}}}Apache 2.0 License{{{endLink}}}": "Dostupné pod {{{link}}}licencí Apache 2.0{{{endLink}}}",
"Back": "Zpět",
"Bounce dock on new private message": "Poskakování ikony v docku po obdržení nové soukromé zprávy",
"Certificate file": "Soubor s certifikátem",
"CSS file": "Soubor CSS",
"Cancel": "Zrušit",
"Certificate error": "Chyba certifikátu",
"Change": "Změnit",
"Change the language from System Preferences → Keyboard → Text → Spelling.": "Změnit jazyk v Nastavení systému → Klávesnice → Text → Kontrola pravopisu.",
"Check for Updates": "Zkontrolovat aktualizace",
"Close": "Zavřít",
"Connect": "Připojit se",
"Connect to another organization": "Připojit se k jiné organizaci",
"Connected organizations": "Připojené organizace",
"Copy": "Kopírovat",
"Copy Email Address": "Kopírovat adresu elektronické pošty",
"Copy Image": "Kopírovat obrázek",
"Copy Image URL": "Kopírovat adresu (URL) obrázku",
"Copy Link": "Kopírovat odkaz",
"Copy Zulip URL": "Kopírovat adresu (URL) Zulipu",
"Create a new organization": "Vytvořit novou organizaci",
"Custom CSS file deleted": "Vlastní soubor CSS smazán",
"Cut": "Vyjmout",
"Default download location": "Výchozí umístění stahování",
"Delete": "Smazat",
"Desktop App Settings": "Nastavení desktopové aplikace",
"Desktop Notifications": "Oznámení na ploše",
"Desktop Settings": "Nastavení plochy",
"Disconnect": "Odpojit",
"Disconnect organization": "Odpojit organizaci",
"Do Not Disturb": "Nerušit",
"Download App Logs": "Stáhnout záznamy programu",
"Edit": "Upravit",
"Edit Shortcuts": "Upravit zkratky",
"Emoji & Symbols": "Obrázečky a zvláštní znaky",
"Enable auto updates": "Povolit automatické aktualizace",
"Enable error reporting (requires restart)": "Povolit hlášení chyb (vyžaduje opětovné spuštění programu)",
"Enable spellchecker (requires restart)": "Povolit kontrolu pravopisu (vyžaduje opětovné spuštění programu)",
"Enter Full Screen": "Vstoupit na celou obrazovku",
"Error saving new organization": "Chyba při ukládání nové organizace",
"Error saving update notifications": "Chyba při ukládání oznámení aktualizace",
"Error: {{{error}}}\n\nThe latest version of Zulip Desktop is available at:\n{{{link}}}\nCurrent version: {{{version}}}": "Chyba: {{{error}}}\n\nNejnovější verze aplikace Zulip Desktop je dostupná na adrese:\n{{{link}}}\nNynější verze: {{{version}}}",
"Factory Reset": "Obnovení do továrního nastavení",
"Factory Reset Data": "Obnovení dat do továrního nastavení",
"File": "Soubor",
"Find accounts": "Najít účty",
"Find accounts by email": "Najít účty podle adresy elektronické pošty",
@@ -48,20 +70,39 @@
"Functionality": "Funkce",
"General": "Obecné",
"Get beta updates": "Dostávat beta aktualizace",
"Go Back": "Jít zpět",
"Hard Reload": "Tvrdé znovunahrání",
"Help": "Nápověda",
"Help Center": "Centrum nápovědy",
"Hide": "Skrýt",
"Hide Others": "Skrýt jiné",
"Hide Zulip": "Skrýt Zulip",
"History": "Historie",
"History Shortcuts": "Zkratky pro historii",
"Install Later": "Instalovat později",
"Install and Relaunch": "Nainstalovat a spustit znovu",
"It will be installed the next time you restart the application.": "Nainstaluje se při příštím restartu aplikace.",
"Keyboard Shortcuts": "Klávesové zkratky",
"Later": "Později",
"Loading": "Nahrává se",
"Log Out": "Odhlásit se",
"Log Out of Organization": "Odhlásit se z organizace",
"Look Up": "Vyhledat",
"Maintained by {{{link}}}Zulip{{{endLink}}}": "Udržováno {{{link}}}Zulip{{{endLink}}}",
"Manual Download": "Ruční stažení",
"Manual proxy configuration": "Ruční nastavení proxy",
"Minimize": "Minimalizovat",
"Mute all sounds from Zulip": "Ztlumit všechny zvuky ze Zulipu",
"NO": "NE",
"Network": "Síť",
"Network and Proxy Settings": "Nastavení sítě a proxy serveru",
"New servers added. Reload app now?": "Přidány nové servery. Nahrát nyní aplikaci znovu?",
"No": "Ne",
"No Suggestion Found": "Nenalezen žádný návrh",
"No updates available.": "Žádné dostupné aktualizace",
"Notification settings": "Nastavení oznámení",
"OK": "OK",
"OR": "NEBO",
"On macOS, the OS spellchecker is used.": "Na macOS se používá kontrola pravopisu OS.",
"Organization URL": "Adresa organizace",
"Organizations": "Organizace",
"Paste": "Vložit",
@@ -69,27 +110,36 @@
"Proxy": "Proxy",
"Proxy bypass rules": "Pravidla pro obejití Proxy",
"Proxy rules": "Pravidla Proxy",
"Proxy settings saved.": "Nastavení proxy serveru je uloženo.",
"Quit": "Ukončit",
"Quit Zulip": "Ukončit Zulip",
"Quit when the window is closed": "Ukončit, když je okno zavřeno",
"Redo": "Znovu",
"Release Notes": "Poznámky k této verzi",
"Reload": "Nahrát znovu",
"Report an Issue": "Nahlásit problém",
"Reset App Settings": "Obnovit výchozí nastavení programu",
"Reset the application, thus deleting all the connected organizations and accounts.": "Obnovit program do výchozího nastavení. čili smazat všechny připojené organizace a účty.",
"Save": "Uložit",
"Select All": "Vybrat vše",
"Select Download Location": "Vyberte umístění stahování",
"Select file": "Vybrat soubor",
"Services": "Služby",
"Settings": "Nastavení",
"Shortcuts": "Zkratky",
"Show App Logs": "Zobrazit záznamy programu",
"Show app icon in system tray": "Zobrazovat ikonu programu v oznamovací oblasti panelu",
"Show app unread badge": "Zobrazovat u ikony aplikace symbol nepřečteno",
"Show desktop notifications": "Zobrazovat oznámení na ploše",
"Show downloaded files in file manager": "Zobrazit stažené soubory ve správci souborů",
"Show sidebar": "Zobrazovat postranní panel",
"Show unread count badge on app icon": "Ukázat počet nepřečtených na ikoně aplikace",
"Spellchecker Languages": "Kontrola pravopisu jazyků",
"Start app at login": "Spustit program při přihlášení",
"Switch to Next Organization": "Přepnout na další organizaci",
"Switch to Previous Organization": "Přepnout na předchozí organizaci",
"The custom CSS previously set is deleted.": "Předtím nastavený vlastní soubor CSS je smazán.",
"The server presented an invalid certificate for {{{origin}}}:\n\n{{{error}}}": "Server předložil neplatný certifikát pro {{{origin}}}:\n\n{{{error}}}",
"The update will be downloaded in the background. You will be notified when it is ready to be installed.": "Aktualizace se stáhne na pozadí. Až bude připravena k instalaci, budete o tom informováni.",
"There was an error while saving the new organization. You may have to add your previous organizations again.": "Při ukládání nové organizace došlo k chybě. Je možné, že budete muset předchozí organizace přidat znovu.",
"These desktop app shortcuts extend the Zulip webapp's": "Tyto zkratky rozšiřují webovou aplikaci Zulipu",
"This will delete all application data including all added accounts and preferences": "Toto smaže všechna data programu včetně všech přidaných účtů a nastavení",
"Tip": "Tip",
"Toggle DevTools for Active Tab": "Přepnout vývojářské nástroje pro aktivní kartu",
"Toggle DevTools for Zulip App": "Přepnout vývojářské nástroje pro program Zulip",
@@ -98,37 +148,24 @@
"Toggle Sidebar": "Přepnout zobrazení postranního panelu",
"Toggle Tray Icon": "Přepnout ikonu v oznamovací oblasti panelu",
"Tools": "Nástroje",
"Unable to check for updates.": "Nelze zkontrolovat aktualizace.",
"Unable to download the update.": "Aktualizaci se nepodařilo stáhnout.",
"Undo": "Zpět",
"Unhide": "Zobrazit",
"Unknown error": "Neznámá chyba",
"Upload": "Nahrát",
"Use system proxy settings (requires restart)": "Použít systémová nastavení proxy (vyžaduje opětovné spuštění programu)",
"View": "Zobrazení",
"View Shortcuts": "Zobrazit zkratky",
"We encountered an error while saving the update notifications.": "Při ukládání oznámení o aktualizaci jsme narazili na chybu.",
"Window": "Okno",
"Window Shortcuts": "Zkratky pro okno",
"YES": "ANO",
"Yes": "Ano",
"You are running the latest version of Zulip Desktop.\nVersion: {{{version}}}": "Používáte nejnovější verzi aplikace Zulip Desktop.\nVerze: {{{version}}}",
"You can select a maximum of 3 languages for spellchecking.": "Pro kontrolu pravopisu můžete vybrat nejvíce 3 jazyky.",
"Zoom In": "Přiblížit",
"Zoom Out": "Oddálit",
"Zulip Help": "Nápověda Zulipu",
"keyboard shortcuts": "klávesové zkratky",
"script": "skript",
"Quit when the window is closed": "Ukončit, když je okno zavřeno",
"Ask where to save files before downloading": "Před stažením se zeptat kam uložit soubory",
"Services": "Služby",
"Hide": "Skrýt",
"Hide Others": "Skrýt jiné",
"Unhide": "Zobrazit",
"AddServer": "Přidat server",
"App language (requires restart)": "Jazyk programu (vyžaduje opětovné spuštění programu)",
"Factory Reset Data": "Obnovení dat do továrního nastavení",
"Reset the application, thus deleting all the connected organizations, accounts, and certificates.": "Obnovit program do výchozího nastavení. čili smazat všechny připojené organizace, účty a certifikáty.",
"On macOS, the OS spellchecker is used.": "Na macOS se používá kontrola pravopisu OS.",
"Change the language from System Preferences → Keyboard → Text → Spelling.": "Změnit jazyk v Nastavení systému → Klávesnice → Text → Kontrola pravopisu.",
"Copy Link": "Kopírovat odkaz",
"Copy Image": "Kopírovat obrázek",
"Copy Image URL": "Kopírovat adresu (URL) obrázku",
"No Suggestion Found": "Nenalezen žádný návrh",
"You can select a maximum of 3 languages for spellchecking.": "Pro kontrolu pravopisu můžete vybrat nejvíce 3 jazyky.",
"Spellchecker Languages": "Kontrola pravopisu jazyků",
"Add to Dictionary": "Přidat do slovníku",
"Look Up": "Vyhledat"
"{{{server}}} runs an outdated Zulip Server version {{{version}}}. It may not fully work in this app.": "{{{server}}} používá zastaralou verzi serveru Zulip {{{verze}}}. V této aplikaci nemusí plně pracovat."
}

171
public/translations/cy.json Normal file
View File

@@ -0,0 +1,171 @@
{
"A new update {{{version}}} has been downloaded.": "A new update {{{version}}} has been downloaded.",
"A new version {{{version}}} of Zulip Desktop is available.": "A new version {{{version}}} of Zulip Desktop is available.",
"About": "About",
"About Zulip": "Am Zulip",
"Actual Size": "Maint Gwirioneddol",
"Add Organization": "Ychwanegu Sefydliad",
"Add a Zulip organization": "Ychwanegwch sefydliad Zulip",
"Add custom CSS": "Ychwanegwch CSS wedi'i ddylunio'n benodol",
"Add to Dictionary": "Ychwanegu at y Geiriadur",
"Advanced": "Uwch",
"All the connected organizations will appear here.": "Bydd yr holl sefydliadau cysylltiedig yn ymddangos yma",
"Always start minimized": "Dechreuwch gyn lleied â phosibl bob amser",
"App Updates": "Diweddariadau Ap",
"App language (requires restart)": "Iaith ap (angen ailgychwyn)",
"Appearance": "Ymddangosiad",
"Application Shortcuts": "Llwybrau Byr yr Ap",
"Are you sure you want to disconnect this organization?": "Ydych chi'n siŵr eich bod chi am ddatgysylltu'r sefydliad hwn?",
"Are you sure?": "Are you sure?",
"Ask where to save files before downloading": "Gofynnwch ble i arbed ffeiliau cyn eu lawrlwytho",
"Auto hide Menu bar": "Cuddiwch y bar dewislen yn awtomatig",
"Auto hide menu bar (Press Alt key to display)": "Cuddiwch y bar dewislen yn awtomatig (Pwyswch Alt i'w harddangos)",
"Available under the {{{link}}}Apache 2.0 License{{{endLink}}}": "Available under the {{{link}}}Apache 2.0 License{{{endLink}}}",
"Back": "Yn ôl",
"Bounce dock on new private message": "Sbonciwch doc ar neges breifat newydd",
"CSS file": "CSS file",
"Cancel": "Canslo",
"Certificate error": "Certificate error",
"Change": "Newid",
"Change the language from System Preferences → Keyboard → Text → Spelling.": "Newid yr iaith o Dewisiadau System → Bysellfwrdd → Testun → Sillafu.",
"Check for Updates": "Chwiliwch am Ddiweddariadau",
"Close": "Cau",
"Connect": "Cysylltu",
"Connect to another organization": "Cysylltu â sefydliad arall",
"Connected organizations": "Sefydliadau cysylltiedig",
"Copy": "Copi",
"Copy Email Address": "Copy Email Address",
"Copy Image": "Copi Delwedd",
"Copy Image URL": "Copi URL Delwedd",
"Copy Link": "Copi Dolen",
"Copy Zulip URL": "Copïwch URL Zulip",
"Create a new organization": "Creu sefydliad newydd",
"Custom CSS file deleted": "Custom CSS file deleted",
"Cut": "Torri",
"Default download location": "Lleoliad lawrlwytho diofyn",
"Delete": "Dileu",
"Desktop Notifications": "Hysbysiadau Penbwrdd",
"Desktop Settings": "Gosodiadau Penbwrdd",
"Disconnect": "Datgysylltwch",
"Disconnect organization": "Disconnect organization",
"Do Not Disturb": "Do Not Disturb",
"Download App Logs": "Lawrlwythwch Logiau Ap",
"Edit": "Golygu",
"Edit Shortcuts": "Golygu Llwybrau Byr",
"Emoji & Symbols": "Emoji a Symbolau",
"Enable auto updates": "Galluogi diweddariadau yn awtomatig",
"Enable error reporting (requires restart)": "Galluogi adrodd am wallau (angen ailgychwyn)",
"Enable spellchecker (requires restart)": "Galluogi gwiriwr sillafu (angen ailgychwyn)",
"Enter Full Screen": "Rhowch sgrin lawn",
"Error saving new organization": "Error saving new organization",
"Error saving update notifications": "Error saving update notifications",
"Error: {{{error}}}\n\nThe latest version of Zulip Desktop is available at:\n{{{link}}}\nCurrent version: {{{version}}}": "Error: {{{error}}}\n\nThe latest version of Zulip Desktop is available at:\n{{{link}}}\nCurrent version: {{{version}}}",
"Factory Reset": "Ailosod Ffatri",
"Factory Reset Data": "Ailosod Data Ffatri",
"File": "Ffeil",
"Find accounts": "Dewch o hyd i gyfrifon",
"Find accounts by email": "Dewch o hyd i gyfrifon trwy e-bost",
"Flash taskbar on new message": "Fflachia'r bar tasgau ar neges newydd",
"Forward": "Ymlaen",
"Functionality": "Ymarferoldeb",
"General": "Cyffredinol",
"Get beta updates": "Cael diweddariadau beta",
"Go Back": "Go Back",
"Hard Reload": "Ail-lwytho Caled",
"Help": "Cymorth",
"Help Center": "Canolfan Gymorth",
"Hide": "Cuddio",
"Hide Others": "Cuddio Eraill",
"Hide Zulip": "Cuddiwch Zulip",
"History": "Hanes",
"History Shortcuts": "Hanes Llwybrau Byr ",
"Install Later": "Install Later",
"Install and Relaunch": "Install and Relaunch",
"It will be installed the next time you restart the application.": "It will be installed the next time you restart the application.",
"Keyboard Shortcuts": "Llwybrau Byr Bysellfwrdd",
"Later": "Later",
"Loading": "Loading",
"Log Out": "Allgofnodi",
"Log Out of Organization": "Allgofnodi Sefydliad",
"Look Up": "Ymchwiliwch",
"Maintained by {{{link}}}Zulip{{{endLink}}}": "Maintained by {{{link}}}Zulip{{{endLink}}}",
"Manual Download": "Manual Download",
"Manual proxy configuration": "Cyfluniad dirprwy â llaw",
"Minimize": "Lleihau",
"Mute all sounds from Zulip": "Tawelwch pob sain o Zulip",
"Network": "Rhwydwaith",
"Network and Proxy Settings": "Gosodiadau Rhwydwaith a Dirprwy",
"New servers added. Reload app now?": "New servers added. Reload app now?",
"No": "No",
"No Suggestion Found": "Ni chanfuwyd unrhyw awgrym",
"No updates available.": "No updates available.",
"Notification settings": "Gosodiadau hysbysu",
"OK": "Iawn",
"OR": "NEU",
"On macOS, the OS spellchecker is used.": "Ar macOS, defnyddir gwiriwr sillafu OS.",
"Organization URL": "URL y sefydliad",
"Organizations": "Sefydliadau",
"Paste": "Gludo",
"Paste and Match Style": "Arddull Gludo a Paru ",
"Proxy": "Dirprwy",
"Proxy bypass rules": "Rheolau ffordd osgoi dirprwy",
"Proxy rules": "Rheolau dirprwy",
"Proxy settings saved.": "Proxy settings saved.",
"Quit": "Ymadael",
"Quit Zulip": "Ymadael Zulip",
"Quit when the window is closed": "Cau pan fydd y ffenestr ar gau",
"Redo": "Ail-wneud",
"Release Notes": "Nodiadau ar y datganiad hwn",
"Reload": "Ail-lwytho",
"Report an Issue": "Adroddiwch mater",
"Reset App Settings": "Ailosod Gosodiadau Ap",
"Reset the application, thus deleting all the connected organizations and accounts.": "Ailosod y cais, gan ddileu'r holl sefydliadau a chyfrifon cysylltiedig.",
"Save": "Cadw",
"Select All": "Dewiswch Bobeth",
"Select Download Location": "Select Download Location",
"Select file": "Select file",
"Services": "Gwasanaethau",
"Settings": "Gosodiadau",
"Shortcuts": "Llwybrau byr",
"Show app icon in system tray": "Dangos eicon ap yn yr hambwrdd system",
"Show desktop notifications": "Dangos hysbysiadau bwrdd gwaith",
"Show sidebar": "Dangos bar ochr",
"Show unread count badge on app icon": "Show unread count badge on app icon",
"Spellchecker Languages": "Ieithoedd Sillafu",
"Start app at login": "Dechreuwch yr ap wrth fewngofnodi",
"Switch to Next Organization": "Newid i'r Sefydliad Nesaf",
"Switch to Previous Organization": "Newid i Sefydliad Blaenorol",
"The custom CSS previously set is deleted.": "The custom CSS previously set is deleted.",
"The server presented an invalid certificate for {{{origin}}}:\n\n{{{error}}}": "The server presented an invalid certificate for {{{origin}}}:\n\n{{{error}}}",
"The update will be downloaded in the background. You will be notified when it is ready to be installed.": "The update will be downloaded in the background. You will be notified when it is ready to be installed.",
"There was an error while saving the new organization. You may have to add your previous organizations again.": "There was an error while saving the new organization. You may have to add your previous organizations again.",
"These desktop app shortcuts extend the Zulip webapp's": "Mae'r llwybrau byr ap bwrdd gwaith hyn yn ymestyn y webap-iau Zulip",
"Tip": "Awgrym",
"Toggle DevTools for Active Tab": "Toglo DevTools ar gyfer Tab Gweithredol",
"Toggle DevTools for Zulip App": "Toglo DevTools ar gyfer Ap Zulip Ap",
"Toggle Do Not Disturb": "Toglo Peidiwch â Tharfu",
"Toggle Full Screen": "Toglo Sgrin Lawn",
"Toggle Sidebar": "Toglo Bar Ochr",
"Toggle Tray Icon": "Toglo Eicon Hambwrdd",
"Tools": "Offer",
"Unable to check for updates.": "Unable to check for updates.",
"Unable to download the update.": "Unable to download the update.",
"Undo": "Dadwneud",
"Unhide": "Dad-guddio",
"Unknown error": "Unknown error",
"Upload": "Fyny-lwytho",
"Use system proxy settings (requires restart)": "Defnyddiwch osodiadau dirprwy system (angen ailgychwyn)",
"View": "Gweld",
"View Shortcuts": "Gweld y Llwybrau Byr",
"We encountered an error while saving the update notifications.": "We encountered an error while saving the update notifications.",
"Window": "Ffenestr",
"Window Shortcuts": "Llwybrau Byr Ffenestri",
"Yes": "Ydy",
"You are running the latest version of Zulip Desktop.\nVersion: {{{version}}}": "You are running the latest version of Zulip Desktop.\nVersion: {{{version}}}",
"You can select a maximum of 3 languages for spellchecking.": "Gallwch ddewis uchafswm o 3 iaith ar gyfer gwirio sillafu.",
"Zoom In": "Chwyddo Mewn",
"Zoom Out": "Chwyddo allan",
"keyboard shortcuts": "llwybrau byr bysellfwrdd",
"script": "sgript",
"{{{server}}} runs an outdated Zulip Server version {{{version}}}. It may not fully work in this app.": "Mae {{{server}}} yn rhedeg fersiwn Zulip Server {{{version}}} sydd wedi dyddio. Efallai na fydd yn gweithio'n llawn yn yr app hon."
}

View File

@@ -1,67 +1,108 @@
{
"A new update {{{version}}} has been downloaded.": "A new update {{{version}}} has been downloaded.",
"A new version {{{version}}} of Zulip Desktop is available.": "A new version {{{version}}} of Zulip Desktop is available.",
"About": "About",
"About Zulip": "Om Zulip",
"Actual Size": "Faktisk størrelse",
"Add Custom Certificates": "Tilføj egne certifikater",
"Add Organization": "Opret organisation",
"Add a Zulip organization": "Opret en Zulip organisation",
"Add Organization": "Tilføj organisation",
"Add a Zulip organization": "Tilføj en Zulip organisation",
"Add custom CSS": "Tilføj egen CSS",
"Add to Dictionary": "Add to Dictionary",
"Advanced": "Avanceret",
"All the connected organizations will appear here": "Alle de tilsluttede organisationer vil blive vist her",
"All the connected organizations will appear here.": "Alle forbundne organisationer vil blive vist her",
"Always start minimized": "Start altid minimeret",
"App Updates": "App-opdateringer",
"App language (requires restart)": "App language (requires restart)",
"Appearance": "Udseende",
"Application Shortcuts": "Genveje",
"Are you sure you want to disconnect this organization?": "Er du sikker på du vil frakoble denne organisation? ",
"Are you sure?": "Are you sure?",
"Ask where to save files before downloading": "Ask where to save files before downloading",
"Auto hide Menu bar": "Skjul menu automatisk",
"Auto hide menu bar (Press Alt key to display)": "Skjul menu automatisk (tryk på Alt-tasten for at vise)",
"Available under the {{{link}}}Apache 2.0 License{{{endLink}}}": "Available under the {{{link}}}Apache 2.0 License{{{endLink}}}",
"Back": "Tilbage",
"Bounce dock on new private message": "Bounce dock on new private message",
"Certificate file": "Certifikat-fil",
"Bounce dock on new private message": "Animér dock ved ny privat meddelelse",
"CSS file": "CSS file",
"Cancel": "Annuller",
"Certificate error": "Certificate error",
"Change": "Skift",
"Change the language from System Preferences → Keyboard → Text → Spelling.": "Change the language from System Preferences → Keyboard → Text → Spelling.",
"Check for Updates": "Tjek for opdateringer",
"Close": "Luk",
"Connect": "Tilslut",
"Connect to another organization": "Forbind til en anden organisation",
"Connected organizations": "Tilsluttede organisationer",
"Copy": "Kopiér",
"Copy Email Address": "Copy Email Address",
"Copy Image": "Copy Image",
"Copy Image URL": "Copy Image URL",
"Copy Link": "Copy Link",
"Copy Zulip URL": "Kopiér Zulip URL",
"Create a new organization": "Opret ny organisation",
"Custom CSS file deleted": "Custom CSS file deleted",
"Cut": "Klip",
"Default download location": "Default download placering",
"Delete": "Slet",
"Desktop App Settings": "Desktop app-indstillinger",
"Desktop Notifications": "Desktop-notifikationer",
"Desktop Settings": "Desktop-indstillinger",
"Disconnect": "Frakobl",
"Disconnect organization": "Disconnect organization",
"Do Not Disturb": "Do Not Disturb",
"Download App Logs": "Download app-logfiler",
"Edit": "Redigér",
"Edit Shortcuts": "Redigér genveje",
"Emoji & Symbols": "Emoji og symboler",
"Enable auto updates": "Aktivér auto-opdateringer",
"Enable error reporting (requires restart)": "Aktivér fejlrapportering (kræver genstart)",
"Enable spellchecker (requires restart)": "Aktivér stavekontrol (kræver genstart)",
"Enter Full Screen": "Fuld skærm",
"Error saving new organization": "Error saving new organization",
"Error saving update notifications": "Error saving update notifications",
"Error: {{{error}}}\n\nThe latest version of Zulip Desktop is available at:\n{{{link}}}\nCurrent version: {{{version}}}": "Error: {{{error}}}\n\nThe latest version of Zulip Desktop is available at:\n{{{link}}}\nCurrent version: {{{version}}}",
"Factory Reset": "Nulstil til fabriksindstillinger",
"Factory Reset Data": "Factory Reset Data",
"File": "Fil",
"Find accounts": "Find konti",
"Find accounts by email": "Find accounts by email",
"Flash taskbar on new message": "Flash taskbar on new message",
"Forward": "Forward",
"Find accounts by email": "Find konti via email-adresse",
"Flash taskbar on new message": "Animér proceslinjen ved ny besked",
"Forward": "Vidersend",
"Functionality": "Funktionalitet",
"General": "Generelt",
"Get beta updates": "Få beta opdateringer",
"Go Back": "Go Back",
"Hard Reload": "Hård reload",
"Help": "Hjælp",
"Help Center": "Hjælpecenter",
"Hide": "Skjul",
"Hide Others": "Skjul andre",
"Hide Zulip": "Skjul Zulip",
"History": "Historik",
"History Shortcuts": "Historik genveje",
"Keyboard Shortcuts": "Tastatur genveje",
"History Shortcuts": "Historikgenveje",
"Install Later": "Install Later",
"Install and Relaunch": "Install and Relaunch",
"It will be installed the next time you restart the application.": "It will be installed the next time you restart the application.",
"Keyboard Shortcuts": "Tastaturgenveje",
"Later": "Later",
"Loading": "Loading",
"Log Out": "Log ud",
"Log Out of Organization": "Log ud af organisation",
"Look Up": "Look Up",
"Maintained by {{{link}}}Zulip{{{endLink}}}": "Maintained by {{{link}}}Zulip{{{endLink}}}",
"Manual Download": "Manual Download",
"Manual proxy configuration": "Manuel proxy opsætning",
"Minimize": "Minimér",
"Mute all sounds from Zulip": "Mute all sounds from Zulip",
"NO": "NEJ",
"Minimize": "Minimer",
"Mute all sounds from Zulip": "Dæmp alle lyde fra Zulip",
"Network": "Netværk",
"Network and Proxy Settings": "Netværk og proxy indstillinger",
"New servers added. Reload app now?": "New servers added. Reload app now?",
"No": "No",
"No Suggestion Found": "No Suggestion Found",
"No updates available.": "No updates available.",
"Notification settings": "Indstillinger for notifikationer",
"OK": "OK",
"OR": "ELLER",
"On macOS, the OS spellchecker is used.": "On macOS, the OS spellchecker is used.",
"Organization URL": "Organisation URL",
"Organizations": "Organisationer",
"Paste": "Indsæt",
@@ -69,66 +110,62 @@
"Proxy": "Proxy",
"Proxy bypass rules": "Proxy bypass regler",
"Proxy rules": "Proxy regler",
"Proxy settings saved.": "Proxy settings saved.",
"Quit": "Luk",
"Quit Zulip": "Luk Zulip",
"Quit when the window is closed": "Quit when the window is closed",
"Redo": "Redo",
"Release Notes": "Release Notes",
"Reload": "Reload",
"Report an Issue": "Report an Issue",
"Save": "Save",
"Select All": "Select All",
"Settings": "Settings",
"Reset App Settings": "Nulstil App-indstillinger",
"Reset the application, thus deleting all the connected organizations and accounts.": "Nulstil applikationen, dvs: slet alle forbundne organisationer og konti.",
"Save": "Gem",
"Select All": "Vælg alle",
"Select Download Location": "Select Download Location",
"Select file": "Select file",
"Services": "Tjenester",
"Settings": "Indstillinger",
"Shortcuts": "Shortcuts",
"Show App Logs": "Show App Logs",
"Show app icon in system tray": "Show app icon in system tray",
"Show app unread badge": "Show app unread badge",
"Show desktop notifications": "Show desktop notifications",
"Show downloaded files in file manager": "Show downloaded files in file manager",
"Show sidebar": "Show sidebar",
"Show unread count badge on app icon": "Show unread count badge on app icon",
"Spellchecker Languages": "Spellchecker Languages",
"Start app at login": "Start app at login",
"Switch to Next Organization": "Switch to Next Organization",
"Switch to Previous Organization": "Switch to Previous Organization",
"The custom CSS previously set is deleted.": "The custom CSS previously set is deleted.",
"The server presented an invalid certificate for {{{origin}}}:\n\n{{{error}}}": "The server presented an invalid certificate for {{{origin}}}:\n\n{{{error}}}",
"The update will be downloaded in the background. You will be notified when it is ready to be installed.": "The update will be downloaded in the background. You will be notified when it is ready to be installed.",
"There was an error while saving the new organization. You may have to add your previous organizations again.": "There was an error while saving the new organization. You may have to add your previous organizations again.",
"These desktop app shortcuts extend the Zulip webapp's": "These desktop app shortcuts extend the Zulip webapp's",
"This will delete all application data including all added accounts and preferences": "This will delete all application data including all added accounts and preferences",
"Tip": "Tip",
"Toggle DevTools for Active Tab": "Toggle DevTools for Active Tab",
"Toggle DevTools for Zulip App": "Toggle DevTools for Zulip App",
"Toggle Do Not Disturb": "Toggle Do Not Disturb",
"Toggle Do Not Disturb": "Slå forstyr ej til eller fra",
"Toggle Full Screen": "Toggle Full Screen",
"Toggle Sidebar": "Toggle Sidebar",
"Toggle Tray Icon": "Toggle Tray Icon",
"Tools": "Tools",
"Unable to check for updates.": "Unable to check for updates.",
"Unable to download the update.": "Unable to download the update.",
"Undo": "Undo",
"Unhide": "Unhide",
"Unknown error": "Unknown error",
"Upload": "Upload",
"Use system proxy settings (requires restart)": "Use system proxy settings (requires restart)",
"View": "View",
"View Shortcuts": "View Shortcuts",
"We encountered an error while saving the update notifications.": "We encountered an error while saving the update notifications.",
"Window": "Window",
"Window Shortcuts": "Window Shortcuts",
"YES": "YES",
"Yes": "Yes",
"You are running the latest version of Zulip Desktop.\nVersion: {{{version}}}": "You are running the latest version of Zulip Desktop.\nVersion: {{{version}}}",
"You can select a maximum of 3 languages for spellchecking.": "You can select a maximum of 3 languages for spellchecking.",
"Zoom In": "Zoom In",
"Zoom Out": "Zoom Out",
"Zulip Help": "Zulip Help",
"keyboard shortcuts": "keyboard shortcuts",
"script": "script",
"Quit when the window is closed": "Quit when the window is closed",
"Ask where to save files before downloading": "Ask where to save files before downloading",
"Services": "Services",
"Hide": "Hide",
"Hide Others": "Hide Others",
"Unhide": "Unhide",
"AddServer": "AddServer",
"App language (requires restart)": "App language (requires restart)",
"Factory Reset Data": "Factory Reset Data",
"Reset the application, thus deleting all the connected organizations, accounts, and certificates.": "Reset the application, thus deleting all the connected organizations, accounts, and certificates.",
"On macOS, the OS spellchecker is used.": "On macOS, the OS spellchecker is used.",
"Change the language from System Preferences → Keyboard → Text → Spelling.": "Change the language from System Preferences → Keyboard → Text → Spelling.",
"Copy Link": "Copy Link",
"Copy Image": "Copy Image",
"Copy Image URL": "Copy Image URL",
"No Suggestion Found": "No Suggestion Found",
"You can select a maximum of 3 languages for spellchecking.": "You can select a maximum of 3 languages for spellchecking.",
"Spellchecker Languages": "Spellchecker Languages",
"Add to Dictionary": "Add to Dictionary",
"Look Up": "Look Up"
"{{{server}}} runs an outdated Zulip Server version {{{version}}}. It may not fully work in this app.": "{{{server}}} kører en ældre version {{{version}}}. Den virker måske ikke fuld ud med denne app."
}

View File

@@ -1,45 +1,67 @@
{
"A new update {{{version}}} has been downloaded.": "Ein neues Update {{{version}}} wurde heruntergeladen.",
"A new version {{{version}}} of Zulip Desktop is available.": "Eine neue Version {{{version}}} von Zulip Desktop ist verfügbar.",
"About": "Über",
"About Zulip": "Über Zulip",
"Actual Size": "Tatsächliche Größe",
"Add Custom Certificates": "Eigene Zertifikate hinzufügen",
"Add Organization": "Organisation hinzufügen",
"Add a Zulip organization": "Zulip-Organisation hinzufügen",
"Add custom CSS": "Eigenes CSS hinzufügen",
"Add to Dictionary": "Zum Wörterbuch hinzufügen",
"Advanced": "Erweitert",
"All the connected organizations will appear here": "Alle verbundenen Organisationen erscheinen hier",
"All the connected organizations will appear here.": "Alle verbundenen Organisationen werden hier angezeigt.",
"Always start minimized": "Immer minimiert öffnen",
"App Updates": "App Updates",
"App language (requires restart)": "Sprache der App (benötigt Neustart)",
"Appearance": "Erscheinungsbild",
"Application Shortcuts": "App-Verknüpfungen",
"Are you sure you want to disconnect this organization?": "Bist du dir sicher, dass du die Verbindung zur Organisation trennen möchtest?",
"Auto hide Menu bar": "Menü automatisch verstecken",
"Auto hide menu bar (Press Alt key to display)": "Menü automatisch verstecken (zum Anzeigen die Alt-Taste drücken)",
"Are you sure?": "Sind Sie sicher?",
"Ask where to save files before downloading": "Fragen, wo heruntergeladene Dateien gespeichert werden sollen",
"Auto hide Menu bar": "Menü automatisch verbergen",
"Auto hide menu bar (Press Alt key to display)": "Menü automatisch verbergen (zum Anzeigen die Alt-Taste drücken)",
"Available under the {{{link}}}Apache 2.0 License{{{endLink}}}": "Available under the {{{link}}}Apache 2.0 License{{{endLink}}}",
"Back": "Zurück",
"Bounce dock on new private message": "Im Dock hüpfen, wenn neue private Nachrichten eingehen",
"Certificate file": "Zertifikatsdatei",
"CSS file": "CSS-Datei",
"Cancel": "Abbrechen",
"Certificate error": "Zertifikatfehler",
"Change": "Ändern",
"Change the language from System Preferences → Keyboard → Text → Spelling.": "Ändere die Spracheinstellung über Systemeinstellungen → Tastatur → Text → Rechtschreibung.",
"Check for Updates": "Auf Updates prüfen",
"Close": "Schließen",
"Connect": "Verbinden",
"Connect to another organization": "Mit einer anderen Organisation verbinden",
"Connected organizations": "Verbundene Organisationen",
"Copy": "Kopieren",
"Copy Email Address": "Email-Addresse kopieren",
"Copy Image": "Bild kopieren",
"Copy Image URL": "Bild-URL kopieren",
"Copy Link": "Link kopieren",
"Copy Zulip URL": "Zulip-URL kopieren",
"Create a new organization": "Eine neue Organisation erstellen",
"Custom CSS file deleted": "Custom CSS file deleted",
"Cut": "Ausschneiden",
"Default download location": "Voreingestelltes Ziel für Downloads",
"Delete": "Löschen",
"Desktop App Settings": "Einstellungen für Desktop-App",
"Desktop Notifications": "Desktopbenachrichtigungen",
"Desktop Settings": "Desktop-Einstellungen",
"Disconnect": "Verbindung trennen",
"Disconnect organization": "Disconnect organization",
"Do Not Disturb": "Bitte nicht stören",
"Download App Logs": "Logdateien der App herunterladen",
"Edit": "Bearbeiten",
"Edit Shortcuts": "Tastenkürzel bearbeiten",
"Emoji & Symbols": "Emoji & Symbole",
"Enable auto updates": "Automatisch aktualisieren",
"Enable error reporting (requires restart)": "Fehlerberichte aktivieren (erfordert Neustart)",
"Enable spellchecker (requires restart)": "Rechtschreibprüfung aktivieren (erfordert Neustart)",
"Enter Full Screen": "Vollbildschirm aktivieren",
"Error saving new organization": "Error saving new organization",
"Error saving update notifications": "Error saving update notifications",
"Error: {{{error}}}\n\nThe latest version of Zulip Desktop is available at:\n{{{link}}}\nCurrent version: {{{version}}}": "Error: {{{error}}}\n\nThe latest version of Zulip Desktop is available at:\n{{{link}}}\nCurrent version: {{{version}}}",
"Factory Reset": "Alle Einstellungen auf Standardwerte zurücksetzen",
"Factory Reset Data": "Auf Werkseinstellung zurücksetzen",
"File": "Datei",
"Find accounts": "Accounts finden",
"Find accounts by email": "Accounts anhand E-Mail-Adresse finden",
@@ -48,48 +70,76 @@
"Functionality": "Funktionalität",
"General": "Allgemein",
"Get beta updates": "Auf Betaversionen aktualisieren",
"Go Back": "Zurück",
"Hard Reload": "Komplett neu laden",
"Help": "Hilfe",
"Help Center": "Hilfe-Zentrum",
"Help Center": "Hilfecenter",
"Hide": "Verbergen",
"Hide Others": "Andere verbergen",
"Hide Zulip": "Zulip verbergen",
"History": "Verlauf",
"History Shortcuts": "Kurzbefehle für Verlauf",
"Install Later": "Später installieren",
"Install and Relaunch": "Installieren und neustarten",
"It will be installed the next time you restart the application.": "It will be installed the next time you restart the application.",
"Keyboard Shortcuts": "Tastenkürzel",
"Later": "Später",
"Loading": "Laden",
"Log Out": "Abmelden",
"Log Out of Organization": "Von Organisation abmelden",
"Look Up": "Nachschlagen",
"Maintained by {{{link}}}Zulip{{{endLink}}}": "Maintained von {{{link}}}Zulip{{{endLink}}}",
"Manual Download": "Manueller Download",
"Manual proxy configuration": "Manuelle Proxy-Konfiguration",
"Minimize": "Minimieren",
"Mute all sounds from Zulip": "Alle Zulip-Klänge stummschalten",
"NO": "NEIN",
"Network": "Netzwerk",
"Network and Proxy Settings": "Netzwerk- und Proxy-Einstellungen",
"New servers added. Reload app now?": "Neue Server hinzugefügt. App jetzt erneut laden?",
"No": "Nein",
"No Suggestion Found": "Keine Vorschläge gefunden",
"No updates available.": "Keine Updates verfügbar.",
"Notification settings": "Benachrichtigungseinstellungen",
"OK": "OK",
"OR": "ODER",
"Organization URL": "URL der Organisation",
"On macOS, the OS spellchecker is used.": "In macOS wird die OS Rechtschreibprüfung verwendet.",
"Organization URL": "Organisations-URL",
"Organizations": "Organisationen",
"Paste": "Einfügen",
"Paste and Match Style": "Ohne Formatierung einfügen",
"Proxy": "Proxy",
"Proxy bypass rules": "Proxy-Ausnahmen",
"Proxy rules": "Proxy-Regeln",
"Proxy settings saved.": "Proxy-Einstellungen gespeichert.",
"Quit": "Beenden",
"Quit Zulip": "Zulip beenden",
"Quit when the window is closed": "Beim Schließen des Fensters beenden",
"Redo": "Wiederholen",
"Release Notes": "Hinweise zur Versionsfreigabe",
"Reload": "Neu laden",
"Report an Issue": "Ein Problem melden",
"Reset App Settings": "App-Einstellungen zurücksetzen",
"Reset the application, thus deleting all the connected organizations and accounts.": "Die Anwendung zurücksetzen. Dabei werden alle verbundenen Organisationen und Konten gelöscht.",
"Save": "Speichern",
"Select All": "Alles auswählen",
"Select Download Location": "Wählen Sie das Download-Ziel",
"Select file": "Datei auswählen",
"Services": "Dienste",
"Settings": "Einstellungen",
"Shortcuts": "Kurzbefehle",
"Show App Logs": "Logdateien der App anzeigen",
"Show app icon in system tray": "App-Icon in Systemleiste anzeigen",
"Show app unread badge": "Anzahl ungelesener Nachrichten in App-Icon einblenden",
"Show desktop notifications": "Desktopbenachrichtigungen anzeigen",
"Show downloaded files in file manager": "Heruntergeladene Dateien in Dateimanager anzeigen",
"Show sidebar": "Seitenleiste anzeigen",
"Show unread count badge on app icon": "Show unread count badge on app icon",
"Spellchecker Languages": "Sprachen für die Rechtschreibprüfung",
"Start app at login": "App beim Login automatisch starten",
"Switch to Next Organization": "Zur nächsten Organisation wechseln",
"Switch to Previous Organization": "Zur vorhergehenden Organisation wechseln",
"The custom CSS previously set is deleted.": "The custom CSS previously set is deleted.",
"The server presented an invalid certificate for {{{origin}}}:\n\n{{{error}}}": "The server presented an invalid certificate for {{{origin}}}:\n\n{{{error}}}",
"The update will be downloaded in the background. You will be notified when it is ready to be installed.": "The update will be downloaded in the background. You will be notified when it is ready to be installed.",
"There was an error while saving the new organization. You may have to add your previous organizations again.": "There was an error while saving the new organization. You may have to add your previous organizations again.",
"These desktop app shortcuts extend the Zulip webapp's": "Dies sind zusätzliche Kurzbefehle in der Desktop-App gegenüber der Web-App",
"This will delete all application data including all added accounts and preferences": "Hiermit werden alle Anwendungsdaten einschließlich aller Accounts und Einstellungen gelöscht",
"Tip": "Tipp",
"Toggle DevTools for Active Tab": "Entwickler-Tools für aktiven Tab umschalten",
"Toggle DevTools for Zulip App": "Entwickler-Tools für Zulip-App umschalten",
@@ -98,37 +148,24 @@
"Toggle Sidebar": "Seitenleiste umschalten",
"Toggle Tray Icon": "Tray-Icon umschalten",
"Tools": "Extras",
"Unable to check for updates.": "Unable to check for updates.",
"Unable to download the update.": "Unable to download the update.",
"Undo": "Rückgängig",
"Unhide": "Nicht mehr verbergen",
"Unknown error": "Unknown error",
"Upload": "Hochladen",
"Use system proxy settings (requires restart)": "Systemweite Proxy-Einstellungen verwenden (erfordert Neustart)",
"View": "Ansicht",
"View Shortcuts": "Tastenkürzel anzeigen",
"We encountered an error while saving the update notifications.": "We encountered an error while saving the update notifications.",
"Window": "Fenster",
"Window Shortcuts": "Kurzbefehle für Fenster",
"YES": "JA",
"Yes": "Ja",
"You are running the latest version of Zulip Desktop.\nVersion: {{{version}}}": "You are running the latest version of Zulip Desktop.\nVersion: {{{version}}}",
"You can select a maximum of 3 languages for spellchecking.": "Du kannst höchstens 3 Sprachen für die Rechtschreibprüfung auswählen.",
"Zoom In": "Vergrößern",
"Zoom Out": "Verkleinern",
"Zulip Help": "Hilfe zu Zulip",
"keyboard shortcuts": "Tastenkürzel",
"script": "Skript",
"Quit when the window is closed": "Beim Schließen des Fensters beenden",
"Ask where to save files before downloading": "Fragen, wo heruntergeladene Dateien gespeichert werden sollen",
"Services": "Dienste",
"Hide": "Verbergen",
"Hide Others": "Andere verbergen",
"Unhide": "Nicht mehr verbergen",
"AddServer": "ServerHinzufügen",
"App language (requires restart)": "Sprache der App (benötigt Neustart)",
"Factory Reset Data": "Auf Werkseinstellung zurücksetzen",
"Reset the application, thus deleting all the connected organizations, accounts, and certificates.": "Die App wird zurückgesetzt, somit werden alle verbundenen Organisationen, Konten und Zertifikate gelöscht.",
"On macOS, the OS spellchecker is used.": "In macOS wird die OS Rechtschreibprüfung verwendet.",
"Change the language from System Preferences → Keyboard → Text → Spelling.": "Ändere die Spracheinstellung über Systemeinstellungen → Tastatur → Text → Rechtschreibung.",
"Copy Link": "Link kopieren",
"Copy Image": "Bild kopieren",
"Copy Image URL": "Bild-URL kopieren",
"No Suggestion Found": "Keine Vorschläge gefunden",
"You can select a maximum of 3 languages for spellchecking.": "Du kannst höchstens 3 Sprachen für die Rechtschreibprüfung auswählen.",
"Spellchecker Languages": "Sprachen für die Rechtschreibprüfung",
"Add to Dictionary": "Zum Wörterbuch hinzufügen",
"Look Up": "Nachschlagen"
"{{{server}}} runs an outdated Zulip Server version {{{version}}}. It may not fully work in this app.": "Auf {{{server}}} läuft die nicht mehr aktuelle Version {{{version}}} von Zulip Server. Es kann sein, dass diese Anwendung damit nicht vollständig funktioniert."
}

View File

@@ -1,134 +1,171 @@
{
"About Zulip": "About Zulip",
"Actual Size": "Actual Size",
"Add Custom Certificates": "Add Custom Certificates",
"Add Organization": "Add Organization",
"Add a Zulip organization": "Add a Zulip organization",
"Add custom CSS": "Add custom CSS",
"Advanced": "Advanced",
"All the connected organizations will appear here": "All the connected organizations will appear here",
"Always start minimized": "Always start minimized",
"App Updates": "App Updates",
"Appearance": "Appearance",
"Application Shortcuts": "Application Shortcuts",
"Are you sure you want to disconnect this organization?": "Are you sure you want to disconnect this organization?",
"Auto hide Menu bar": "Auto hide Menu bar",
"Auto hide menu bar (Press Alt key to display)": "Auto hide menu bar (Press Alt key to display)",
"Back": "Back",
"Bounce dock on new private message": "Bounce dock on new private message",
"Certificate file": "Certificate file",
"Change": "Change",
"Check for Updates": "Check for Updates",
"Close": "Close",
"Connect": "Connect",
"Connect to another organization": "Connect to another organization",
"Connected organizations": "Connected organizations",
"Copy": "Copy",
"Copy Zulip URL": "Copy Zulip URL",
"Create a new organization": "Create a new organization",
"Cut": "Cut",
"Default download location": "Default download location",
"Delete": "Delete",
"Desktop App Settings": "Desktop App Settings",
"Desktop Notifications": "Desktop Notifications",
"Desktop Settings": "Desktop Settings",
"Disconnect": "Disconnect",
"Download App Logs": "Download App Logs",
"Edit": "Edit",
"Edit Shortcuts": "Edit Shortcuts",
"Enable auto updates": "Enable auto updates",
"Enable error reporting (requires restart)": "Enable error reporting (requires restart)",
"Enable spellchecker (requires restart)": "Enable spellchecker (requires restart)",
"Factory Reset": "Factory Reset",
"File": "File",
"Find accounts": "Find accounts",
"Find accounts by email": "Find accounts by email",
"Flash taskbar on new message": "Flash taskbar on new message",
"Forward": "Forward",
"Functionality": "Functionality",
"General": "General",
"Get beta updates": "Get beta updates",
"Hard Reload": "Hard Reload",
"Help": "Help",
"Help Center": "Help Center",
"History": "History",
"History Shortcuts": "History Shortcuts",
"Keyboard Shortcuts": "Keyboard Shortcuts",
"Log Out": "Log Out",
"Log Out of Organization": "Log Out of Organization",
"Manual proxy configuration": "Manual proxy configuration",
"Minimize": "Minimize",
"Mute all sounds from Zulip": "Mute all sounds from Zulip",
"NO": "NO",
"Network": "Network",
"OR": "OR",
"Organization URL": "Organization URL",
"Organizations": "Organizations",
"Paste": "Paste",
"Paste and Match Style": "Paste and Match Style",
"A new update {{{version}}} has been downloaded.": "A new update {{{version}}} has been downloaded.",
"A new version {{{version}}} of Zulip Desktop is available.": "A new version {{{version}}} of Zulip Desktop is available.",
"About": "About",
"About Zulip": "Σχετικά με το Zulip",
"Actual Size": "Πραγματικό μέγεθος",
"Add Organization": "Προσθήκη Οργανισμού",
"Add a Zulip organization": "Προσθήκη οργανισμού Zulip",
"Add custom CSS": "Προσθήκη προσαρμοσμένης CSS",
"Add to Dictionary": "Add to Dictionary",
"Advanced": "Για προχωρημένους",
"All the connected organizations will appear here.": "Όλοι οι συνδεδεμένοι οργανισμοί θα εμφανίζονται εδώ.",
"Always start minimized": "Να ξεκινά πάντα ελαχιστοποιημένο",
"App Updates": "Ενημερώσεις Εφαρμογής",
"App language (requires restart)": "Γλώσσα εφαρμογής (χρειάζεται επανεκκίνηση)",
"Appearance": "Εμφάνιση",
"Application Shortcuts": "Συντομεύσεις εφαρμογής",
"Are you sure you want to disconnect this organization?": "Είστε σίγουροι ότι θέλετε να αποσυνδέσετε αυτό τον οργανισμό;",
"Are you sure?": "Are you sure?",
"Ask where to save files before downloading": "Να ερωτούμαι πού να αποθηκευτούν τα αρχεία προτού κατέβουν.",
"Auto hide Menu bar": "Αυτόματη απόκρυψη γραμμής Μενού",
"Auto hide menu bar (Press Alt key to display)": "Αυτόματη απόκρυψη γραμμής Μενού (Πατήστε Alt για να εμφανιστεί)",
"Available under the {{{link}}}Apache 2.0 License{{{endLink}}}": "Available under the {{{link}}}Apache 2.0 License{{{endLink}}}",
"Back": "Πίσω",
"Bounce dock on new private message": "Να χοροπηδάει το σχετικό εικονίδιο κατά τη λήψη ιδιωτικού μηνύματος",
"CSS file": "CSS file",
"Cancel": "Ακύρωση",
"Certificate error": "Certificate error",
"Change": "Αλλαγή",
"Change the language from System Preferences → Keyboard → Text → Spelling.": "Αλλάξτε τη γλώσσα από τις Επιλογές Συστήματος → Πληκτρολόγιο → Κείμενο → Γραφή",
"Check for Updates": "Έλεγχος για Ενημερώσεις",
"Close": "Κλείσιμο",
"Connect": "Σύνδεση",
"Connect to another organization": "Σύνδεση με άλλο οργανισμό",
"Connected organizations": "Συνδεδεμένοι οργανισμοί",
"Copy": "Αντιγραφή",
"Copy Email Address": "Copy Email Address",
"Copy Image": "Copy Image",
"Copy Image URL": "Copy Image URL",
"Copy Link": "Copy Link",
"Copy Zulip URL": "Αντιγραφή διεύθυνσης URL Zulip",
"Create a new organization": "Δημιουργία νέου οργανισμού",
"Custom CSS file deleted": "Custom CSS file deleted",
"Cut": "Αποκοπή",
"Default download location": "Προεπιλεγμένη τοποθεσία λήψης",
"Delete": "Διαγραφή",
"Desktop Notifications": "Ειδοποιήσεις στην Επιφάνεια Εργασίας",
"Desktop Settings": "Ρυθμίσεις Επιφάνειας Εργασίας",
"Disconnect": "Αποσύνδεση",
"Disconnect organization": "Disconnect organization",
"Do Not Disturb": "Do Not Disturb",
"Download App Logs": "Λήψη Logs Εφαρμογής",
"Edit": "Επεξεργασία",
"Edit Shortcuts": "Επεξεργασία Συντομεύσεων",
"Emoji & Symbols": "Φατσούλες Ιμότζι και Σύμβολα",
"Enable auto updates": "Ενεργοποίηση αυτόματων ενημερώσεων",
"Enable error reporting (requires restart)": "Ενεργοποίηση αναφοράς λαθών (χρειάζεται επανεκκίνηση)",
"Enable spellchecker (requires restart)": "Ενεργοποίηση ελέγχου ορθογραφίας (χρειάζεται επανεκκίνηση)",
"Enter Full Screen": "Μετάβαση σε Πλήρη Οθόνη",
"Error saving new organization": "Error saving new organization",
"Error saving update notifications": "Error saving update notifications",
"Error: {{{error}}}\n\nThe latest version of Zulip Desktop is available at:\n{{{link}}}\nCurrent version: {{{version}}}": "Error: {{{error}}}\n\nThe latest version of Zulip Desktop is available at:\n{{{link}}}\nCurrent version: {{{version}}}",
"Factory Reset": "Επαναφορά Εργοστασιακών Ρυθμίσεων",
"Factory Reset Data": "Επαναφορά εργοστασιακών ρυθμίσεων - Δεδομένα",
"File": "Αρχείο",
"Find accounts": "Εϋρεση λογαριασμών",
"Find accounts by email": "Εύρεση λογαριασμών βάσει email",
"Flash taskbar on new message": "Αναλαμπή γραμμής εργασιών κατά τη λήψη νέου μηνύματος",
"Forward": "Μπροστά",
"Functionality": "Λειτουργία",
"General": "Γενικά",
"Get beta updates": "Λήψη beta - δοκιμαστικών ενημερώσεων",
"Go Back": "Go Back",
"Hard Reload": "Ολική επαναφόρτωση",
"Help": "Βοήθεια",
"Help Center": "Κέντρο Βοήθειας",
"Hide": "Απόκρυψη",
"Hide Others": "Απόκρυψη των υπολοίπων",
"Hide Zulip": "Απόκρυψη του Zulip",
"History": "Ιστορικό",
"History Shortcuts": "Συντομεύσεις Ιστορικού",
"Install Later": "Install Later",
"Install and Relaunch": "Install and Relaunch",
"It will be installed the next time you restart the application.": "It will be installed the next time you restart the application.",
"Keyboard Shortcuts": "Συντομεύσεις Πληκτρολογίου",
"Later": "Later",
"Loading": "Loading",
"Log Out": "Αποσύνδεση",
"Log Out of Organization": "Αποσύνδεση από Οργανισμό",
"Look Up": "Look Up",
"Maintained by {{{link}}}Zulip{{{endLink}}}": "Maintained by {{{link}}}Zulip{{{endLink}}}",
"Manual Download": "Manual Download",
"Manual proxy configuration": "Χειροκίνητη παραμετροποίηση proxy",
"Minimize": "Ελαχιστοποίηση",
"Mute all sounds from Zulip": "Σίγαση όλων των ήχων του Zulip",
"Network": "Δίκτυο",
"Network and Proxy Settings": "Ρυθμίσεις Δικτύου και Proxy",
"New servers added. Reload app now?": "New servers added. Reload app now?",
"No": "No",
"No Suggestion Found": "No Suggestion Found",
"No updates available.": "No updates available.",
"Notification settings": "Notification settings",
"OK": "OK",
"OR": "Ή",
"On macOS, the OS spellchecker is used.": "Στο macOS, χρησιμοποιείται ο έλεγχος ορθογραφίας του λειτουργικού συστήματος.",
"Organization URL": "URL Οργανισμού",
"Organizations": "Οργανισμοί",
"Paste": "Επικόλληση",
"Paste and Match Style": "Επικόλληση και υιοθέτηση στυλ προορισμού",
"Proxy": "Proxy",
"Proxy bypass rules": "Proxy bypass rules",
"Proxy rules": "Proxy rules",
"Quit": "Quit",
"Quit Zulip": "Quit Zulip",
"Redo": "Redo",
"Release Notes": "Release Notes",
"Reload": "Reload",
"Report an Issue": "Report an Issue",
"Save": "Save",
"Select All": "Select All",
"Settings": "Settings",
"Shortcuts": "Shortcuts",
"Show App Logs": "Show App Logs",
"Show app icon in system tray": "Show app icon in system tray",
"Show app unread badge": "Show app unread badge",
"Show desktop notifications": "Show desktop notifications",
"Show downloaded files in file manager": "Show downloaded files in file manager",
"Show sidebar": "Show sidebar",
"Start app at login": "Start app at login",
"Switch to Next Organization": "Switch to Next Organization",
"Switch to Previous Organization": "Switch to Previous Organization",
"Proxy bypass rules": "Κανόνες παράκαμψης Proxy",
"Proxy rules": "Κανόνες Proxy",
"Proxy settings saved.": "Proxy settings saved.",
"Quit": "Έξοδος",
"Quit Zulip": "Έξοδος από Zulip",
"Quit when the window is closed": "Έξοδος όταν κλείνει το παράθυρο",
"Redo": "Ακύρωση αναίρεσης",
"Release Notes": "Σημειώσεις έκδοσης",
"Reload": "Επαναφόρτωση",
"Report an Issue": "Αναφορά ενός προβλήματος",
"Reset App Settings": "Επαναφορά Ρυθμίσεων Εφαρμογής",
"Reset the application, thus deleting all the connected organizations and accounts.": "Επαναφορά της εφαρμογής, με διαγραφή όλων των συνδεδεμένων οργανισμών και λογαριασμών.",
"Save": "Αποθήκευση",
"Select All": "Επιλογή Όλων",
"Select Download Location": "Select Download Location",
"Select file": "Select file",
"Services": "Υπηρεσίες",
"Settings": "Ρυθμίσεις",
"Shortcuts": "Συντομεύσεις",
"Show app icon in system tray": "Εμφάνιση εικονιδίου στη γραμμή εργασιών",
"Show desktop notifications": "Εμφάνιση ειδοποιήσεων στην Επιφάνεια Εργασίας",
"Show sidebar": "Εμφάνιση πλευρικής γραμμής εργαλείων",
"Show unread count badge on app icon": "Show unread count badge on app icon",
"Spellchecker Languages": "Γλώσσες Ορθογραφικού Ελέγχου",
"Start app at login": "Έναρξη εφαρμογής κατά τη σύνδεση",
"Switch to Next Organization": "Μετάβαση σε Επόμενο Οργανισμό",
"Switch to Previous Organization": "Μετάβαση σε Προηγούμενο Οργανισμό",
"The custom CSS previously set is deleted.": "The custom CSS previously set is deleted.",
"The server presented an invalid certificate for {{{origin}}}:\n\n{{{error}}}": "The server presented an invalid certificate for {{{origin}}}:\n\n{{{error}}}",
"The update will be downloaded in the background. You will be notified when it is ready to be installed.": "The update will be downloaded in the background. You will be notified when it is ready to be installed.",
"There was an error while saving the new organization. You may have to add your previous organizations again.": "There was an error while saving the new organization. You may have to add your previous organizations again.",
"These desktop app shortcuts extend the Zulip webapp's": "These desktop app shortcuts extend the Zulip webapp's",
"This will delete all application data including all added accounts and preferences": "This will delete all application data including all added accounts and preferences",
"Tip": "Tip",
"Tip": "Συμβουλή",
"Toggle DevTools for Active Tab": "Toggle DevTools for Active Tab",
"Toggle DevTools for Zulip App": "Toggle DevTools for Zulip App",
"Toggle Do Not Disturb": "Toggle Do Not Disturb",
"Toggle Full Screen": "Toggle Full Screen",
"Toggle Sidebar": "Toggle Sidebar",
"Toggle Tray Icon": "Toggle Tray Icon",
"Tools": "Tools",
"Undo": "Undo",
"Upload": "Upload",
"Use system proxy settings (requires restart)": "Use system proxy settings (requires restart)",
"View": "View",
"View Shortcuts": "View Shortcuts",
"Window": "Window",
"Window Shortcuts": "Window Shortcuts",
"YES": "YES",
"Zoom In": "Zoom In",
"Zoom Out": "Zoom Out",
"Zulip Help": "Zulip Help",
"keyboard shortcuts": "keyboard shortcuts",
"Toggle Full Screen": "Ενεργοποίηση/ Απενεργοποίηση Πλήρους Οθόνης",
"Toggle Sidebar": "Εμφάνιση/Απόκρυψη πλευρικής γραμμής εργαλείων",
"Toggle Tray Icon": "Εμφάνιση/Απόκρυψη εικονιδίου γραμμής εργασιών",
"Tools": "Εργαλεία",
"Unable to check for updates.": "Unable to check for updates.",
"Unable to download the update.": "Unable to download the update.",
"Undo": "Αναίρεση",
"Unhide": "Επανεμφάνιση",
"Unknown error": "Unknown error",
"Upload": "Ανέβασμα",
"Use system proxy settings (requires restart)": "Χρήση ρυθμίσεων proxy συστήματος (χρειάζεται επανεκκίνηση)",
"View": "Προβολή",
"View Shortcuts": "Εμφάνιση Συντομεύσεων",
"We encountered an error while saving the update notifications.": "We encountered an error while saving the update notifications.",
"Window": "Παράθυρο",
"Window Shortcuts": "Συντομεύσεις Παραθύρου",
"Yes": "Yes",
"You are running the latest version of Zulip Desktop.\nVersion: {{{version}}}": "You are running the latest version of Zulip Desktop.\nVersion: {{{version}}}",
"You can select a maximum of 3 languages for spellchecking.": "Μπορούν να επιλεγούν μέχρι 3 γλώσσες ορθογραφικού ελέγχου.",
"Zoom In": "Ζουμ εγγύτερα",
"Zoom Out": "Ζουμ μακρύτερα",
"keyboard shortcuts": "συντομεύσεις πληκτρολογίου",
"script": "script",
"Quit when the window is closed": "Quit when the window is closed",
"Ask where to save files before downloading": "Ask where to save files before downloading",
"Services": "Services",
"Hide": "Hide",
"Hide Others": "Hide Others",
"Unhide": "Unhide",
"AddServer": "AddServer",
"App language (requires restart)": "App language (requires restart)",
"Factory Reset Data": "Factory Reset Data",
"Reset the application, thus deleting all the connected organizations, accounts, and certificates.": "Reset the application, thus deleting all the connected organizations, accounts, and certificates.",
"On macOS, the OS spellchecker is used.": "On macOS, the OS spellchecker is used.",
"Change the language from System Preferences → Keyboard → Text → Spelling.": "Change the language from System Preferences → Keyboard → Text → Spelling.",
"Copy Link": "Copy Link",
"Copy Image": "Copy Image",
"Copy Image URL": "Copy Image URL",
"No Suggestion Found": "No Suggestion Found",
"You can select a maximum of 3 languages for spellchecking.": "You can select a maximum of 3 languages for spellchecking.",
"Spellchecker Languages": "Spellchecker Languages",
"Add to Dictionary": "Add to Dictionary",
"Look Up": "Look Up"
"{{{server}}} runs an outdated Zulip Server version {{{version}}}. It may not fully work in this app.": "{{{server}}} τρέχει μία παρωχημένη έκδοση του Zulip Server {{{version}}}. Ενδεχομένως να μη λειτουργεί πλήρως σε αυτή την εφαρμογή."
}

View File

@@ -1,45 +1,67 @@
{
"A new update {{{version}}} has been downloaded.": "A new update {{{version}}} has been downloaded.",
"A new version {{{version}}} of Zulip Desktop is available.": "A new version {{{version}}} of Zulip Desktop is available.",
"About": "About",
"About Zulip": "About Zulip",
"Actual Size": "Actual Size",
"Add Custom Certificates": "Add Custom Certificates",
"Add Organization": "Add Organization",
"Add a Zulip organization": "Add a Zulip organization",
"Add custom CSS": "Add custom CSS",
"Add to Dictionary": "Add to Dictionary",
"Advanced": "Advanced",
"All the connected organizations will appear here": "All the connected organizations will appear here",
"All the connected organizations will appear here.": "All the connected organizations will appear here.",
"Always start minimized": "Always start minimized",
"App Updates": "App Updates",
"App language (requires restart)": "App language (requires restart)",
"Appearance": "Appearance",
"Application Shortcuts": "Application Shortcuts",
"Are you sure you want to disconnect this organization?": "Are you sure you want to disconnect this organization?",
"Are you sure?": "Are you sure?",
"Ask where to save files before downloading": "Ask where to save files before downloading",
"Auto hide Menu bar": "Auto hide Menu bar",
"Auto hide menu bar (Press Alt key to display)": "Auto hide menu bar (Press Alt key to display)",
"Available under the {{{link}}}Apache 2.0 License{{{endLink}}}": "Available under the {{{link}}}Apache 2.0 License{{{endLink}}}",
"Back": "Back",
"Bounce dock on new private message": "Bounce dock on new private message",
"Certificate file": "Certificate file",
"CSS file": "CSS file",
"Cancel": "Cancel",
"Certificate error": "Certificate error",
"Change": "Change",
"Change the language from System Preferences → Keyboard → Text → Spelling.": "Change the language from System Preferences → Keyboard → Text → Spelling.",
"Check for Updates": "Check for Updates",
"Close": "Close",
"Connect": "Connect",
"Connect to another organization": "Connect to another organization",
"Connected organizations": "Connected organizations",
"Copy": "Copy",
"Copy Email Address": "Copy Email Address",
"Copy Image": "Copy Image",
"Copy Image URL": "Copy Image URL",
"Copy Link": "Copy Link",
"Copy Zulip URL": "Copy Zulip URL",
"Create a new organization": "Create a new organization",
"Custom CSS file deleted": "Custom CSS file deleted",
"Cut": "Cut",
"Default download location": "Default download location",
"Delete": "Delete",
"Desktop App Settings": "Desktop App Settings",
"Desktop Notifications": "Desktop Notifications",
"Desktop Settings": "Desktop Settings",
"Disconnect": "Disconnect",
"Disconnect organization": "Disconnect organization",
"Do Not Disturb": "Do Not Disturb",
"Download App Logs": "Download App Logs",
"Edit": "Edit",
"Edit Shortcuts": "Edit Shortcuts",
"Emoji & Symbols": "Emoji & Symbols",
"Enable auto updates": "Enable auto updates",
"Enable error reporting (requires restart)": "Enable error reporting (requires restart)",
"Enable spellchecker (requires restart)": "Enable spellchecker (requires restart)",
"Enter Full Screen": "Enter Full Screen",
"Error saving new organization": "Error saving new organization",
"Error saving update notifications": "Error saving update notifications",
"Error: {{{error}}}\n\nThe latest version of Zulip Desktop is available at:\n{{{link}}}\nCurrent version: {{{version}}}": "Error: {{{error}}}\n\nThe latest version of Zulip Desktop is available at:\n{{{link}}}\nCurrent version: {{{version}}}",
"Factory Reset": "Factory Reset",
"Factory Reset Data": "Factory Reset Data",
"File": "File",
"Find accounts": "Find accounts",
"Find accounts by email": "Find accounts by email",
@@ -48,20 +70,39 @@
"Functionality": "Functionality",
"General": "General",
"Get beta updates": "Get beta updates",
"Go Back": "Go Back",
"Hard Reload": "Hard Reload",
"Help": "Help",
"Help Center": "Help Center",
"Hide": "Hide",
"Hide Others": "Hide Others",
"Hide Zulip": "Hide Zulip",
"History": "History",
"History Shortcuts": "History Shortcuts",
"Install Later": "Install Later",
"Install and Relaunch": "Install and Relaunch",
"It will be installed the next time you restart the application.": "It will be installed the next time you restart the application.",
"Keyboard Shortcuts": "Keyboard Shortcuts",
"Later": "Later",
"Loading": "Loading",
"Log Out": "Log Out",
"Log Out of Organization": "Log Out of Organization",
"Look Up": "Look Up",
"Maintained by {{{link}}}Zulip{{{endLink}}}": "Maintained by {{{link}}}Zulip{{{endLink}}}",
"Manual Download": "Manual Download",
"Manual proxy configuration": "Manual proxy configuration",
"Minimize": "Minimize",
"Mute all sounds from Zulip": "Mute all sounds from Zulip",
"NO": "NO",
"Network": "Network",
"Network and Proxy Settings": "Network and Proxy Settings",
"New servers added. Reload app now?": "New servers added. Reload app now?",
"No": "No",
"No Suggestion Found": "No Suggestion Found",
"No updates available.": "No updates available.",
"Notification settings": "Notification settings",
"OK": "OK",
"OR": "OR",
"On macOS, the OS spellchecker is used.": "On macOS, the OS spellchecker is used.",
"Organization URL": "Organization URL",
"Organizations": "Organizations",
"Paste": "Paste",
@@ -69,30 +110,36 @@
"Proxy": "Proxy",
"Proxy bypass rules": "Proxy bypass rules",
"Proxy rules": "Proxy rules",
"Proxy settings saved.": "Proxy settings saved.",
"Quit": "Quit",
"Quit Zulip": "Quit Zulip",
"Quit when the window is closed": "Quit when the window is closed",
"Redo": "Redo",
"Release Notes": "Release Notes",
"Reload": "Reload",
"Report an Issue": "Report an Issue",
"Reset App Data": "Reset App Data",
"Reset App Settings": "Reset App Settings",
"Reset Application Data": "Reset Application Data",
"Reset the application, thus deleting all the connected organizations and accounts.": "Reset the application, thus deleting all the connected organizations and accounts.",
"Save": "Save",
"Select All": "Select All",
"Select Download Location": "Select Download Location",
"Select file": "Select file",
"Services": "Services",
"Settings": "Settings",
"Shortcuts": "Shortcuts",
"Show App Logs": "Show App Logs",
"Show app icon in system tray": "Show app icon in system tray",
"Show app unread badge": "Show app unread badge",
"Show desktop notifications": "Show desktop notifications",
"Show downloaded files in file manager": "Show downloaded files in file manager",
"Show sidebar": "Show sidebar",
"Show unread count badge on app icon": "Show unread count badge on app icon",
"Spellchecker Languages": "Spellchecker Languages",
"Start app at login": "Start app at login",
"Switch to Next Organization": "Switch to Next Organization",
"Switch to Previous Organization": "Switch to Previous Organization",
"The custom CSS previously set is deleted.": "The custom CSS previously set is deleted.",
"The server presented an invalid certificate for {{{origin}}}:\n\n{{{error}}}": "The server presented an invalid certificate for {{{origin}}}:\n\n{{{error}}}",
"The update will be downloaded in the background. You will be notified when it is ready to be installed.": "The update will be downloaded in the background. You will be notified when it is ready to be installed.",
"There was an error while saving the new organization. You may have to add your previous organizations again.": "There was an error while saving the new organization. You may have to add your previous organizations again.",
"These desktop app shortcuts extend the Zulip webapp's": "These desktop app shortcuts extend the Zulip webapp's",
"This will delete all application data including all added accounts and preferences": "This will delete all application data including all added accounts and preferences",
"Tip": "Tip",
"Toggle DevTools for Active Tab": "Toggle DevTools for Active Tab",
"Toggle DevTools for Zulip App": "Toggle DevTools for Zulip App",
@@ -101,19 +148,24 @@
"Toggle Sidebar": "Toggle Sidebar",
"Toggle Tray Icon": "Toggle Tray Icon",
"Tools": "Tools",
"Unable to check for updates.": "Unable to check for updates.",
"Unable to download the update.": "Unable to download the update.",
"Undo": "Undo",
"Unhide": "Unhide",
"Unknown error": "Unknown error",
"Upload": "Upload",
"Use system proxy settings (requires restart)": "Use system proxy settings (requires restart)",
"View": "View",
"View Shortcuts": "View Shortcuts",
"We encountered an error while saving the update notifications.": "We encountered an error while saving the update notifications.",
"Window": "Window",
"Window Shortcuts": "Window Shortcuts",
"YES": "YES",
"Yes": "Yes",
"You are running the latest version of Zulip Desktop.\nVersion: {{{version}}}": "You are running the latest version of Zulip Desktop.\nVersion: {{{version}}}",
"You can select a maximum of 3 languages for spellchecking.": "You can select a maximum of 3 languages for spellchecking.",
"Zoom In": "Zoom In",
"Zoom Out": "Zoom Out",
"Zulip Help": "Zulip Help",
"keyboard shortcuts": "keyboard shortcuts",
"script": "script",
"Quit when the window is closed": "Quit when the window is closed",
"Ask where to save files before downloading": "Ask where to save files before downloading"
"{{{server}}} runs an outdated Zulip Server version {{{version}}}. It may not fully work in this app.": "{{{server}}} runs an outdated Zulip Server version {{{version}}}. It may not fully work in this app."
}

View File

@@ -1,45 +1,67 @@
{
"A new update {{{version}}} has been downloaded.": "A new update {{{version}}} has been downloaded.",
"A new version {{{version}}} of Zulip Desktop is available.": "A new version {{{version}}} of Zulip Desktop is available.",
"About": "About",
"About Zulip": "About Zulip",
"Actual Size": "Actual Size",
"Add Custom Certificates": "Add Custom Certificates",
"Add Organization": "Add Organisation",
"Add a Zulip organization": "Add a Zulip organisation",
"Add custom CSS": "Add custom CSS",
"Add to Dictionary": "Add to Dictionary",
"Advanced": "Advanced",
"All the connected organizations will appear here": "All the connected organisations will appear here",
"All the connected organizations will appear here.": "All the connected organisations will appear here.",
"Always start minimized": "Always start minimized",
"App Updates": "App Updates",
"App language (requires restart)": "App language (requires restart)",
"Appearance": "Appearance",
"Application Shortcuts": "Application Shortcuts",
"Are you sure you want to disconnect this organization?": "Are you sure you want to disconnect this organisation?",
"Are you sure?": "Are you sure?",
"Ask where to save files before downloading": "Ask where to save files before downloading",
"Auto hide Menu bar": "Auto hide Menu bar",
"Auto hide menu bar (Press Alt key to display)": "Auto hide menu bar (Press Alt key to display)",
"Available under the {{{link}}}Apache 2.0 License{{{endLink}}}": "Available under the {{{link}}}Apache 2.0 License{{{endLink}}}",
"Back": "Back",
"Bounce dock on new private message": "Bounce dock on new private message",
"Certificate file": "Certificate file",
"CSS file": "CSS file",
"Cancel": "Cancel",
"Certificate error": "Certificate error",
"Change": "Change",
"Change the language from System Preferences → Keyboard → Text → Spelling.": "Change the language from System Preferences → Keyboard → Text → Spelling.",
"Check for Updates": "Check for Updates",
"Close": "Close",
"Connect": "Connect",
"Connect to another organization": "Connect to another organisation",
"Connected organizations": "Connected organisations",
"Copy": "Copy",
"Copy Email Address": "Copy Email Address",
"Copy Image": "Copy Image",
"Copy Image URL": "Copy Image URL",
"Copy Link": "Copy Link",
"Copy Zulip URL": "Copy Zulip URL",
"Create a new organization": "Create a new organisation",
"Custom CSS file deleted": "Custom CSS file deleted",
"Cut": "Cut",
"Default download location": "Default download location",
"Delete": "Delete",
"Desktop App Settings": "Desktop App Settings",
"Desktop Notifications": "Desktop Notifications",
"Desktop Settings": "Desktop Settings",
"Disconnect": "Disconnect",
"Disconnect organization": "Disconnect organisation",
"Do Not Disturb": "Do Not Disturb",
"Download App Logs": "Download App Logs",
"Edit": "Edit",
"Edit Shortcuts": "Edit Shortcuts",
"Emoji & Symbols": "Emoji & Symbols",
"Enable auto updates": "Enable auto updates",
"Enable error reporting (requires restart)": "Enable error reporting (requires restart)",
"Enable spellchecker (requires restart)": "Enable spellchecker (requires restart)",
"Enter Full Screen": "Enter Full Screen",
"Error saving new organization": "Error saving new organisation",
"Error saving update notifications": "Error saving update notifications",
"Error: {{{error}}}\n\nThe latest version of Zulip Desktop is available at:\n{{{link}}}\nCurrent version: {{{version}}}": "Error: {{{error}}}\n\nThe latest version of Zulip Desktop is available at:\n{{{link}}}\nCurrent version: {{{version}}}",
"Factory Reset": "Factory Reset",
"Factory Reset Data": "Factory Reset Data",
"File": "File",
"Find accounts": "Find accounts",
"Find accounts by email": "Find accounts by email",
@@ -48,20 +70,39 @@
"Functionality": "Functionality",
"General": "General",
"Get beta updates": "Get beta updates",
"Go Back": "Go Back",
"Hard Reload": "Hard Reload",
"Help": "Help",
"Help Center": "Help Center",
"Hide": "Hide",
"Hide Others": "Hide Others",
"Hide Zulip": "Hide Zulip",
"History": "History",
"History Shortcuts": "History Shortcuts",
"Install Later": "Install Later",
"Install and Relaunch": "Install and Relaunch",
"It will be installed the next time you restart the application.": "It will be installed the next time you restart the application.",
"Keyboard Shortcuts": "Keyboard Shortcuts",
"Later": "Later",
"Loading": "Loading",
"Log Out": "Log Out",
"Log Out of Organization": "Log Out of Organisation",
"Look Up": "Look Up",
"Maintained by {{{link}}}Zulip{{{endLink}}}": "Maintained by {{{link}}}Zulip{{{endLink}}}",
"Manual Download": "Manual Download",
"Manual proxy configuration": "Manual proxy configuration",
"Minimize": "Minimize",
"Mute all sounds from Zulip": "Mute all sounds from Zulip",
"NO": "NO",
"Network": "Network",
"Network and Proxy Settings": "Network and Proxy Settings",
"New servers added. Reload app now?": "New servers added. Reload app now?",
"No": "No",
"No Suggestion Found": "No Suggestion Found",
"No updates available.": "No updates available.",
"Notification settings": "Notification settings",
"OK": "OK",
"OR": "OR",
"On macOS, the OS spellchecker is used.": "On macOS, the OS spellchecker is used.",
"Organization URL": "Organisation URL",
"Organizations": "Organisations",
"Paste": "Paste",
@@ -69,27 +110,36 @@
"Proxy": "Proxy",
"Proxy bypass rules": "Proxy bypass rules",
"Proxy rules": "Proxy rules",
"Proxy settings saved.": "Proxy settings saved.",
"Quit": "Quit",
"Quit Zulip": "Quit Zulip",
"Quit when the window is closed": "Quit when the window is closed",
"Redo": "Redo",
"Release Notes": "Release Notes",
"Reload": "Reload",
"Report an Issue": "Report an Issue",
"Reset App Settings": "Reset App Settings",
"Reset the application, thus deleting all the connected organizations and accounts.": "Reset the application, thus deleting all the connected organisations and accounts.",
"Save": "Save",
"Select All": "Select All",
"Select Download Location": "Select Download Location",
"Select file": "Select file",
"Services": "Services",
"Settings": "Settings",
"Shortcuts": "Shortcuts",
"Show App Logs": "Show App Logs",
"Show app icon in system tray": "Show app icon in system tray",
"Show app unread badge": "Show app unread badge",
"Show desktop notifications": "Show desktop notifications",
"Show downloaded files in file manager": "Show downloaded files in file manager",
"Show sidebar": "Show sidebar",
"Show unread count badge on app icon": "Show unread count badge on app icon",
"Spellchecker Languages": "Spellchecker Languages",
"Start app at login": "Start app at login",
"Switch to Next Organization": "Switch to Next Organisation",
"Switch to Previous Organization": "Switch to Previous Organisation",
"The custom CSS previously set is deleted.": "The custom CSS previously set is deleted.",
"The server presented an invalid certificate for {{{origin}}}:\n\n{{{error}}}": "The server presented an invalid certificate for {{{origin}}}:\n\n{{{error}}}",
"The update will be downloaded in the background. You will be notified when it is ready to be installed.": "The update will be downloaded in the background. You will be notified when it is ready to be installed.",
"There was an error while saving the new organization. You may have to add your previous organizations again.": "There was an error while saving the new organisation. You may have to add your previous organisations again.",
"These desktop app shortcuts extend the Zulip webapp's": "These desktop app shortcuts extend the Zulip webapp's",
"This will delete all application data including all added accounts and preferences": "This will delete all application data including all added accounts and preferences",
"Tip": "Tip",
"Toggle DevTools for Active Tab": "Toggle DevTools for Active Tab",
"Toggle DevTools for Zulip App": "Toggle DevTools for Zulip App",
@@ -98,37 +148,24 @@
"Toggle Sidebar": "Toggle Sidebar",
"Toggle Tray Icon": "Toggle Tray Icon",
"Tools": "Tools",
"Unable to check for updates.": "Unable to check for updates.",
"Unable to download the update.": "Unable to download the update.",
"Undo": "Undo",
"Unhide": "Unhide",
"Unknown error": "Unknown error",
"Upload": "Upload",
"Use system proxy settings (requires restart)": "Use system proxy settings (requires restart)",
"View": "View",
"View Shortcuts": "View Shortcuts",
"We encountered an error while saving the update notifications.": "We encountered an error while saving the update notifications.",
"Window": "Window",
"Window Shortcuts": "Window Shortcuts",
"YES": "YES",
"Yes": "Yes",
"You are running the latest version of Zulip Desktop.\nVersion: {{{version}}}": "You are running the latest version of Zulip Desktop.\nVersion: {{{version}}}",
"You can select a maximum of 3 languages for spellchecking.": "You can select a maximum of 3 languages for spellchecking.",
"Zoom In": "Zoom In",
"Zoom Out": "Zoom Out",
"Zulip Help": "Zulip Help",
"keyboard shortcuts": "keyboard shortcuts",
"script": "script",
"Quit when the window is closed": "Quit when the window is closed",
"Ask where to save files before downloading": "Ask where to save files before downloading",
"Services": "Services",
"Hide": "Hide",
"Hide Others": "Hide Others",
"Unhide": "Unhide",
"AddServer": "AddServer",
"App language (requires restart)": "App language (requires restart)",
"Factory Reset Data": "Factory Reset Data",
"Reset the application, thus deleting all the connected organizations, accounts, and certificates.": "Reset the application, thus deleting all the connected organisations, accounts, and certificates.",
"On macOS, the OS spellchecker is used.": "On macOS, the OS spellchecker is used.",
"Change the language from System Preferences → Keyboard → Text → Spelling.": "Change the language from System Preferences → Keyboard → Text → Spelling.",
"Copy Link": "Copy Link",
"Copy Image": "Copy Image",
"Copy Image URL": "Copy Image URL",
"No Suggestion Found": "No Suggestion Found",
"You can select a maximum of 3 languages for spellchecking.": "You can select a maximum of 3 languages for spellchecking.",
"Spellchecker Languages": "Spellchecker Languages",
"Add to Dictionary": "Add to Dictionary",
"Look Up": "Look Up"
"{{{server}}} runs an outdated Zulip Server version {{{version}}}. It may not fully work in this app.": "{{{server}}} runs an outdated Zulip Server version {{{version}}}. It may not fully work in this app."
}

View File

@@ -1,134 +1,171 @@
{
"About Zulip": "Acerca de Zulip",
"A new update {{{version}}} has been downloaded.": "Se descargó la actualización {{{version}}}.",
"A new version {{{version}}} of Zulip Desktop is available.": "Hay una actualización disponible {{{version}}} para la aplicación de escritorio de Zulip.",
"About": "Más información",
"About Zulip": "Sobre Zulip",
"Actual Size": "Tamaño actual",
"Add Custom Certificates": "Añadir certificados personalizados",
"Add Organization": "Añadir organización",
"Add a Zulip organization": "Añadir una organización de Zulip",
"Add custom CSS": "Añadir CSS personalizado",
"Add Organization": "Agregar organización",
"Add a Zulip organization": "Agragar una organización de Zulip",
"Add custom CSS": "Agregar CSS personalizado",
"Add to Dictionary": "Añadir al diccionario",
"Advanced": "Avanzado",
"All the connected organizations will appear here": "Todas las organizaciones conectadas aparecerán aquí",
"Always start minimized": "Iniciar siempre minimizado",
"App Updates": "Actualizaciones de la aplicación",
"All the connected organizations will appear here.": "Las organizaciones conectadas aparecerán aquí.",
"Always start minimized": "Inicializar minimizado",
"App Updates": "Actualizaciones de aplicación",
"App language (requires restart)": "Idioma (Requiere reiniciar aplicación)",
"Appearance": "Apariencia",
"Application Shortcuts": "Atajos de la aplicación",
"Are you sure you want to disconnect this organization?": "Estas seguro de desconectar esta organización?",
"Auto hide Menu bar": "Ocultar la barra de menú automáticamente",
"Auto hide menu bar (Press Alt key to display)": "Ocultar la barra de menú automáticamente (mantén tecla Alt para mostrar)",
"Application Shortcuts": "Atajos",
"Are you sure you want to disconnect this organization?": "¿Seguro que quieres desconectarte de esta organización?",
"Are you sure?": "Estás seguro?",
"Ask where to save files before downloading": "Preguntar dónde guardar archivos antes de descargarlos",
"Auto hide Menu bar": "Esconder barra de menú automaticamente",
"Auto hide menu bar (Press Alt key to display)": "Esconder barra de menú automáticamente (Aparece al presionar Alt)",
"Available under the {{{link}}}Apache 2.0 License{{{endLink}}}": "Disponible bajo la licencia {{{link}}}Apache 2.0 {{{endLink}}}",
"Back": "Atrás",
"Bounce dock on new private message": "Rebotar dock cuando se reciba un nuevo mensaje privado",
"Certificate file": "Archivo de certificado",
"Bounce dock on new private message": "Mostrar barra de herramientas al recibir un mensaje privado",
"CSS file": "Archivo CSS",
"Cancel": "Cancelar",
"Certificate error": "Certificar error",
"Change": "Cambiar",
"Check for Updates": "Comprobar actualizaciones",
"Change the language from System Preferences → Keyboard → Text → Spelling.": "Cambia el lenguaje desde Preferencias del sistema → Teclado → Texto → Escritura.",
"Check for Updates": "Buscar actualizaciones",
"Close": "Cerrar",
"Connect": "Conectar",
"Connect to another organization": "Conectar a otra organización",
"Connected organizations": "Organizaciones conectada",
"Connect to another organization": "Conectarse a otra organización",
"Connected organizations": "Organizaciones conectadas",
"Copy": "Copiar",
"Copy Email Address": "Copiar dirección de correo",
"Copy Image": "Copiar imagen",
"Copy Image URL": "Copiar URL de la imagen",
"Copy Link": "Copiar enlace",
"Copy Zulip URL": "Copiar URL de Zulip",
"Create a new organization": "Crear una nueva organización",
"Custom CSS file deleted": "Se eliminó el archivo CSS personalizado",
"Cut": "Cortar",
"Default download location": "Ubicación por defecto de descargas",
"Delete": "Eliminar",
"Desktop App Settings": "Ajustes de la aplicación de escritorio",
"Default download location": "Ubicación de descargas predeterminada",
"Delete": "Borrar",
"Desktop Notifications": "Notificaciones de escritorio",
"Desktop Settings": "Ajustes de escritorio",
"Desktop Settings": "Configuración de escritorio",
"Disconnect": "Desconectar",
"Disconnect organization": "Desconectarse de esta organización",
"Do Not Disturb": "No molestar",
"Download App Logs": "Descargar registros de la aplicación",
"Edit": "Editar",
"Edit Shortcuts": "Editar atajos",
"Edit Shortcuts": "Editar Atajos",
"Emoji & Symbols": "Símbolos y Emojis",
"Enable auto updates": "Activar actualizaciones automáticas",
"Enable error reporting (requires restart)": "Activar reporte de fallos (necesita reinicio)",
"Enable spellchecker (requires restart)": "Activar corrector ortográfico (necesita reinicio)",
"Factory Reset": "Reinicio de fábrica",
"Enable error reporting (requires restart)": "Activar reportes de errores (Requiere reiniciar aplicación)",
"Enable spellchecker (requires restart)": "Subrayar errores de escritura (Requiere reiniciar aplicación)",
"Enter Full Screen": "Activar pantalla completa",
"Error saving new organization": "Ocurrió un error al guardar la nueva organización",
"Error saving update notifications": "Ocurrió un error al guardar las notificaciones de actualización",
"Error: {{{error}}}\n\nThe latest version of Zulip Desktop is available at:\n{{{link}}}\nCurrent version: {{{version}}}": "Error: {{{error}}}\n\nLa última versión de la aplicación de escritorio de Zulip está disponible en:\n{{{link}}}\nVersión actual: {{{version}}} ",
"Factory Reset": "Reinicio de Fábrica",
"Factory Reset Data": "Datos del Reinicio de Fábrica",
"File": "Archivo",
"Find accounts": "Encontrar cuentas",
"Find accounts by email": "Encontrar cuentas por correo electrónico",
"Flash taskbar on new message": "Hacer que la barra de tareas parpadee cuando se reciba un mensaje nuevo",
"Forward": "Reenviar",
"Find accounts": "Buscar cuentas",
"Find accounts by email": "Buscar cuentas por correo",
"Flash taskbar on new message": "Mostrar barra de tareas al recibir un mensaje",
"Forward": "Avanzar",
"Functionality": "Funcionalidad",
"General": "General",
"Get beta updates": "Obtener actualizaciones beta",
"Hard Reload": "Recarga forzosa",
"Get beta updates": "Recibir actualizaciones en beta",
"Go Back": "Volver atrás",
"Hard Reload": "Forzar Reinicio",
"Help": "Ayuda",
"Help Center": "Centro de ayuda",
"Hide": "Esconder",
"Hide Others": "Esconder otros",
"Hide Zulip": "Minimizar Zulip",
"History": "Historial",
"History Shortcuts": "Atajos del historial",
"History Shortcuts": "Historial de atajos",
"Install Later": "Instalar luego",
"Install and Relaunch": "Instalar y reiniciar aplicación",
"It will be installed the next time you restart the application.": "Se instalará la próxima vez que inicies la aplicación.",
"Keyboard Shortcuts": "Atajos de teclado",
"Later": "Luego",
"Loading": "Cargando",
"Log Out": "Cerrar sesión",
"Log Out of Organization": "Cerrar sesión de organización",
"Manual proxy configuration": "Configuración de proxy manual",
"Log Out of Organization": "Cerrar sesión en esta organización",
"Look Up": "Consultar",
"Maintained by {{{link}}}Zulip{{{endLink}}}": "Mantenido por {{{link}}}Zulip{{{endLink}}}",
"Manual Download": "Descargar Manualmente",
"Manual proxy configuration": "Configurar proxy manualmente",
"Minimize": "Minimizar",
"Mute all sounds from Zulip": "Silenciar todos los sonidos de Zulip",
"NO": "NO",
"Network": "Red",
"Network and Proxy Settings": "Configuración de Redes y Proxy",
"New servers added. Reload app now?": "Se agregaron nuevos servidores. ¿Reiniciar aplicación ahora?",
"No": "No",
"No Suggestion Found": "No se encontraron sugerencias",
"No updates available.": "No hay actualizaciones disponibles.",
"Notification settings": "Configuraciones de notificación",
"OK": "OK",
"OR": "O",
"Organization URL": "URL de la organización",
"On macOS, the OS spellchecker is used.": "En macOS, se utiliza el corrector del sistema.",
"Organization URL": "Link de la organización",
"Organizations": "Organizaciones",
"Paste": "Pegar",
"Paste and Match Style": "Pegar y mantener estilo",
"Proxy": "Proxy",
"Proxy bypass rules": "Reglas para ignorar proxy",
"Proxy rules": "Reglas del proxy",
"Proxy settings saved.": "Se guardó la configuración de Proxy.",
"Quit": "Cerrar",
"Quit Zulip": "Cerrar Zulip",
"Quit when the window is closed": "Cerrar aplicación al cerrar la ventana",
"Redo": "Rehacer",
"Release Notes": "Notas de la versión",
"Reload": "Recargar",
"Report an Issue": "Informar de un error",
"Report an Issue": "Reportar un problema ",
"Reset App Settings": "Restaurar configuración de la aplicación",
"Reset the application, thus deleting all the connected organizations and accounts.": "Restaurar la aplicación eliminando todas las cuentas y organizaciones conectadas.",
"Save": "Guardar",
"Select All": "Seleccionar todo",
"Settings": "Ajustes",
"Shortcuts": "Atajos de teclado",
"Show App Logs": "Mostrar registros de la aplicación",
"Show app icon in system tray": "Mostrar un icono de la aplicación en la bandeja del sistema",
"Show app unread badge": "Mostrar un globo en el icono si hay mensajes sin leer",
"Select Download Location": "Seleccionar ubicación de Descargas",
"Select file": "Seleccionar archivo",
"Services": "Servicios",
"Settings": "Configuración",
"Shortcuts": "Atajos",
"Show app icon in system tray": "Mostrar ícono de la aplicación en la bandeja del sistema",
"Show desktop notifications": "Mostrar notificaciones de escritorio",
"Show downloaded files in file manager": "Mostrar archivos descargados en el explorador",
"Show sidebar": "Mostrar barra lateral",
"Start app at login": "Lanzar aplicación al inicio",
"Switch to Next Organization": "Cambiar a la siguiente organización",
"Switch to Previous Organization": "Cambiar a la anterior organización",
"These desktop app shortcuts extend the Zulip webapp's": "Estos atajos de la aplicación de escritorio extienden los ya existentes en Zulip",
"This will delete all application data including all added accounts and preferences": "Esto borrará todos los datos de la aplicación, incluyendo cuentas añadidas y preferencia",
"Tip": "Consej",
"Toggle DevTools for Active Tab": "Activar/desactivar herramientas de desarrollador para la pestaña activa",
"Toggle DevTools for Zulip App": "Activar/desactivar herramientas de desarrollador para la aplicación de Zulip",
"Toggle Do Not Disturb": "Activar/desactivar no molestar",
"Toggle Full Screen": "Activar/desactivar pantalla completa",
"Toggle Sidebar": "Activar/desactivar barra lateral",
"Toggle Tray Icon": "Activar/desactivar icono en bandeja del sistema",
"Show unread count badge on app icon": "Show unread count badge on app icon",
"Spellchecker Languages": "Idiomas a verificar por el corrector",
"Start app at login": "Lanzar aplicación al iniciar sistema",
"Switch to Next Organization": "Pasar a la siguiente organización",
"Switch to Previous Organization": "Volver a la organización anterior",
"The custom CSS previously set is deleted.": "Se eliminó el CSS personalizado establecido previamente.",
"The server presented an invalid certificate for {{{origin}}}:\n\n{{{error}}}": "El servidor presentó un certificado inválido para {{{origin}}}:\n\n{{{error}}}",
"The update will be downloaded in the background. You will be notified when it is ready to be installed.": "La actualización se descargará en segundo plano. Se notificará cuando esté lista para su instalación.",
"There was an error while saving the new organization. You may have to add your previous organizations again.": "Ocurrió un error mientras se guardaba la nueva organización. Se recomienda volver a agregar las organizaciones anteriores.",
"These desktop app shortcuts extend the Zulip webapp's": "Los atajos de la aplicación son los mismos que al utilizar Zulip en el navegador",
"Tip": "Tip",
"Toggle DevTools for Active Tab": "Activar o desactivar herramientas de desarrollador en la pestaña seleccionada",
"Toggle DevTools for Zulip App": "Activar o desactivar herramientas de desarrollador en toda la aplicación",
"Toggle Do Not Disturb": "Activar o desactivar no Molestar",
"Toggle Full Screen": "Activar o desactivar pantalla completa",
"Toggle Sidebar": "Activar o desactivar barra lateral",
"Toggle Tray Icon": "Activar o desactivar ícono en barra de herramientas",
"Tools": "Herramientas",
"Unable to check for updates.": "No se pudieron buscar actualizaciones.",
"Unable to download the update.": "No se pudo descargar la actualización",
"Undo": "Deshacer",
"Unhide": "Mostrar",
"Unknown error": "Error desconocido",
"Upload": "Subir",
"Use system proxy settings (requires restart)": "Usar ajustes de proxy del sistema (necesita reinicio)",
"Use system proxy settings (requires restart)": "Usar configuración de proxy del sistema (Requiere reiniciar aplicación)",
"View": "Ver",
"View Shortcuts": "Ver atajos",
"We encountered an error while saving the update notifications.": "Se encontró un error mientras se guardaban las notificaciones de actualización.",
"Window": "Ventana",
"Window Shortcuts": "Atajos de ventana",
"YES": "SÍ",
"Yes": "Sí",
"You are running the latest version of Zulip Desktop.\nVersion: {{{version}}}": "Tienes la última versión de la aplicación de escritorio de Zulip.\nVersion: {{{version}}}",
"You can select a maximum of 3 languages for spellchecking.": "Se pueden seleccionar hasta 3 idiomas para la verificación ortográfica",
"Zoom In": "Aumentar zoom",
"Zoom Out": "Reducir zoom",
"Zulip Help": "Ayuda sobre Zulip",
"keyboard shortcuts": "atajos de teclado",
"Zoom Out": "Reducir zoom ",
"keyboard shortcuts": "Atajos de teclado",
"script": "script",
"Quit when the window is closed": "Salir cuando la ventana se cierre",
"Ask where to save files before downloading": "Preguntar dónde guardar los archivos antes de descargar",
"Services": "Servicios",
"Hide": "Ocultar",
"Hide Others": "Ocultar otros",
"Unhide": "Dejar de ocultar",
"AddServer": "AddServer",
"App language (requires restart)": "Idioma de la aplicación (requiere reinicio)",
"Factory Reset Data": "Factory Reset Data",
"Reset the application, thus deleting all the connected organizations, accounts, and certificates.": "Reinicia la aplicación, borrando todas las organizaciones, cuentas y certificados conectados.",
"On macOS, the OS spellchecker is used.": "En macOS se utiliza la verificación ortográfica del sistema operativo.",
"Change the language from System Preferences → Keyboard → Text → Spelling.": "Modifica el idioma en Preferencias del sistema → Teclado → Texto → Ortografía.",
"Copy Link": "Copiar enlace",
"Copy Image": "Copiar imagen",
"Copy Image URL": "Copiar URL de la imagen",
"No Suggestion Found": "No se encontró ninguna sugerencia",
"You can select a maximum of 3 languages for spellchecking.": "Puedes elegir un máximo de 3 idiomas para la verificación ortográfica.",
"Spellchecker Languages": "Idiomas de verificación ortográfica",
"Add to Dictionary": "Añadir al diccionario",
"Look Up": "Consultar"
"{{{server}}} runs an outdated Zulip Server version {{{version}}}. It may not fully work in this app.": "El servidor {{{server}}} se ejecuta en la versión {{{version}}}, la cual está desactuzliada. Su funcionamiento puede ser inesperado."
}

171
public/translations/eu.json Normal file
View File

@@ -0,0 +1,171 @@
{
"A new update {{{version}}} has been downloaded.": "A new update {{{version}}} has been downloaded.",
"A new version {{{version}}} of Zulip Desktop is available.": "A new version {{{version}}} of Zulip Desktop is available.",
"About": "About",
"About Zulip": "Zulip-i buruz",
"Actual Size": "Egungo tamaina",
"Add Organization": "Gehitu erakundea",
"Add a Zulip organization": "Gehitu Zulip erakunde bat",
"Add custom CSS": "Add custom CSS",
"Add to Dictionary": "Add to Dictionary",
"Advanced": "Aurreratua",
"All the connected organizations will appear here.": "All the connected organizations will appear here.",
"Always start minimized": "Always start minimized",
"App Updates": "App Updates",
"App language (requires restart)": "App language (requires restart)",
"Appearance": "Itxura",
"Application Shortcuts": "Application Shortcuts",
"Are you sure you want to disconnect this organization?": "Are you sure you want to disconnect this organization?",
"Are you sure?": "Are you sure?",
"Ask where to save files before downloading": "Ask where to save files before downloading",
"Auto hide Menu bar": "Auto hide Menu bar",
"Auto hide menu bar (Press Alt key to display)": "Auto hide menu bar (Press Alt key to display)",
"Available under the {{{link}}}Apache 2.0 License{{{endLink}}}": "Available under the {{{link}}}Apache 2.0 License{{{endLink}}}",
"Back": "Itzuli",
"Bounce dock on new private message": "Bounce dock on new private message",
"CSS file": "CSS file",
"Cancel": "Cancel",
"Certificate error": "Certificate error",
"Change": "Aldatu",
"Change the language from System Preferences → Keyboard → Text → Spelling.": "Change the language from System Preferences → Keyboard → Text → Spelling.",
"Check for Updates": "Check for Updates",
"Close": "Itxi",
"Connect": "Konektatu",
"Connect to another organization": "Connect to another organization",
"Connected organizations": "Connected organizations",
"Copy": "Kopiatu",
"Copy Email Address": "Copy Email Address",
"Copy Image": "Copy Image",
"Copy Image URL": "Copy Image URL",
"Copy Link": "Copy Link",
"Copy Zulip URL": "Kopiatu Zulip URL-a",
"Create a new organization": "Sortu erakunde berriia",
"Custom CSS file deleted": "Custom CSS file deleted",
"Cut": "Moztu",
"Default download location": "Default download location",
"Delete": "Desegin",
"Desktop Notifications": "Mahaigaineko jakinarazpenak",
"Desktop Settings": "Desktop Settings",
"Disconnect": "Deskonektatu",
"Disconnect organization": "Disconnect organization",
"Do Not Disturb": "Do Not Disturb",
"Download App Logs": "Download App Logs",
"Edit": "Editatu",
"Edit Shortcuts": "Edit Shortcuts",
"Emoji & Symbols": "Emoji & Symbols",
"Enable auto updates": "Enable auto updates",
"Enable error reporting (requires restart)": "Enable error reporting (requires restart)",
"Enable spellchecker (requires restart)": "Enable spellchecker (requires restart)",
"Enter Full Screen": "Enter Full Screen",
"Error saving new organization": "Error saving new organization",
"Error saving update notifications": "Error saving update notifications",
"Error: {{{error}}}\n\nThe latest version of Zulip Desktop is available at:\n{{{link}}}\nCurrent version: {{{version}}}": "Error: {{{error}}}\n\nThe latest version of Zulip Desktop is available at:\n{{{link}}}\nCurrent version: {{{version}}}",
"Factory Reset": "Factory Reset",
"Factory Reset Data": "Factory Reset Data",
"File": "File",
"Find accounts": "Find accounts",
"Find accounts by email": "Find accounts by email",
"Flash taskbar on new message": "Flash taskbar on new message",
"Forward": "Forward",
"Functionality": "Functionality",
"General": "Orokorra",
"Get beta updates": "Get beta updates",
"Go Back": "Go Back",
"Hard Reload": "Hard Reload",
"Help": "Laguntza",
"Help Center": "Laguntza gunea\n",
"Hide": "Hide",
"Hide Others": "Hide Others",
"Hide Zulip": "Hide Zulip",
"History": "Historia",
"History Shortcuts": "History Shortcuts",
"Install Later": "Install Later",
"Install and Relaunch": "Install and Relaunch",
"It will be installed the next time you restart the application.": "It will be installed the next time you restart the application.",
"Keyboard Shortcuts": "Keyboard Shortcuts",
"Later": "Later",
"Loading": "Loading",
"Log Out": "Log Out",
"Log Out of Organization": "Log Out of Organization",
"Look Up": "Look Up",
"Maintained by {{{link}}}Zulip{{{endLink}}}": "Maintained by {{{link}}}Zulip{{{endLink}}}",
"Manual Download": "Manual Download",
"Manual proxy configuration": "Manual proxy configuration",
"Minimize": "Minimize",
"Mute all sounds from Zulip": "Mute all sounds from Zulip",
"Network": "Sarea",
"Network and Proxy Settings": "Network and Proxy Settings",
"New servers added. Reload app now?": "New servers added. Reload app now?",
"No": "No",
"No Suggestion Found": "No Suggestion Found",
"No updates available.": "No updates available.",
"Notification settings": "Notification settings",
"OK": "OK",
"OR": "EDO",
"On macOS, the OS spellchecker is used.": "On macOS, the OS spellchecker is used.",
"Organization URL": "Erakundearen URL-a",
"Organizations": "Erakundeak",
"Paste": "Itsatsi",
"Paste and Match Style": "Paste and Match Style",
"Proxy": "Proxy",
"Proxy bypass rules": "Proxy bypass rules",
"Proxy rules": "Proxy rules",
"Proxy settings saved.": "Proxy settings saved.",
"Quit": "Irten",
"Quit Zulip": "Quit Zulip",
"Quit when the window is closed": "Quit when the window is closed",
"Redo": "Redo",
"Release Notes": "Release Notes",
"Reload": "Reload",
"Report an Issue": "Report an Issue",
"Reset App Settings": "Reset App Settings",
"Reset the application, thus deleting all the connected organizations and accounts.": "Reset the application, thus deleting all the connected organizations and accounts.",
"Save": "Gorde",
"Select All": "Select All",
"Select Download Location": "Select Download Location",
"Select file": "Select file",
"Services": "Services",
"Settings": "Settings",
"Shortcuts": "Shortcuts",
"Show app icon in system tray": "Show app icon in system tray",
"Show desktop notifications": "Show desktop notifications",
"Show sidebar": "Show sidebar",
"Show unread count badge on app icon": "Show unread count badge on app icon",
"Spellchecker Languages": "Spellchecker Languages",
"Start app at login": "Start app at login",
"Switch to Next Organization": "Switch to Next Organization",
"Switch to Previous Organization": "Switch to Previous Organization",
"The custom CSS previously set is deleted.": "The custom CSS previously set is deleted.",
"The server presented an invalid certificate for {{{origin}}}:\n\n{{{error}}}": "The server presented an invalid certificate for {{{origin}}}:\n\n{{{error}}}",
"The update will be downloaded in the background. You will be notified when it is ready to be installed.": "The update will be downloaded in the background. You will be notified when it is ready to be installed.",
"There was an error while saving the new organization. You may have to add your previous organizations again.": "There was an error while saving the new organization. You may have to add your previous organizations again.",
"These desktop app shortcuts extend the Zulip webapp's": "These desktop app shortcuts extend the Zulip webapp's",
"Tip": "Tip",
"Toggle DevTools for Active Tab": "Toggle DevTools for Active Tab",
"Toggle DevTools for Zulip App": "Toggle DevTools for Zulip App",
"Toggle Do Not Disturb": "Toggle Do Not Disturb",
"Toggle Full Screen": "Toggle Full Screen",
"Toggle Sidebar": "Toggle Sidebar",
"Toggle Tray Icon": "Toggle Tray Icon",
"Tools": "Tools",
"Unable to check for updates.": "Unable to check for updates.",
"Unable to download the update.": "Unable to download the update.",
"Undo": "Desegin",
"Unhide": "Unhide",
"Unknown error": "Unknown error",
"Upload": "Igo",
"Use system proxy settings (requires restart)": "Use system proxy settings (requires restart)",
"View": "Ikusi",
"View Shortcuts": "View Shortcuts",
"We encountered an error while saving the update notifications.": "We encountered an error while saving the update notifications.",
"Window": "Window",
"Window Shortcuts": "Window Shortcuts",
"Yes": "Yes",
"You are running the latest version of Zulip Desktop.\nVersion: {{{version}}}": "You are running the latest version of Zulip Desktop.\nVersion: {{{version}}}",
"You can select a maximum of 3 languages for spellchecking.": "You can select a maximum of 3 languages for spellchecking.",
"Zoom In": "Zoom In",
"Zoom Out": "Zoom Out",
"keyboard shortcuts": "keyboard shortcuts",
"script": "script",
"{{{server}}} runs an outdated Zulip Server version {{{version}}}. It may not fully work in this app.": "{{{server}}} runs an outdated Zulip Server version {{{version}}}. It may not fully work in this app."
}

View File

@@ -1,134 +1,171 @@
{
"About Zulip": "درباره Zulip ",
"A new update {{{version}}} has been downloaded.": "A new update {{{version}}} has been downloaded.",
"A new version {{{version}}} of Zulip Desktop is available.": "A new version {{{version}}} of Zulip Desktop is available.",
"About": "About",
"About Zulip": "درباره زولیپ",
"Actual Size": "اندازه واقعی",
"Add Custom Certificates": "اضافه کردن مجوز دلخواه",
"Add Organization": "اضافه کردن سازمان",
"Add a Zulip organization": "اضافه کردن سازمان Zulip",
"Add a Zulip organization": "اضافه کردن سازمان زولیپ",
"Add custom CSS": "اضافه کردن CSS دلخواه",
"Add to Dictionary": "Add to Dictionary",
"Advanced": "پیشرفته",
"All the connected organizations will appear here": "همه سازمان‌های متصل شده اینجا نمایش داده می‌شوند",
"All the connected organizations will appear here.": "همه سازمان‌های مرتبط در اینجا ظاهر می‌شوند.",
"Always start minimized": "همواره به صورت کوچک شده اجرا شو",
"App Updates": "به‌روزرسانی‌های برنامه",
"App language (requires restart)": "زبان برنامه (نیاز به راه اندازی مجدد)",
"Appearance": "شمایل",
"Application Shortcuts": "میانبرهای برنامه",
"Are you sure you want to disconnect this organization?": "آیا از قطع ارتباط از سازمان اطمینان دارید؟",
"Are you sure?": "Are you sure?",
"Ask where to save files before downloading": "قبل از دانلود بپرس که کجا ذخیره شود.",
"Auto hide Menu bar": "مخفی‌سازی خودکار نوار منو",
"Auto hide menu bar (Press Alt key to display)": "مخفی‌سازی خودکار نوار منو (برای نمایش دکمه Alt را بزنید)",
"Available under the {{{link}}}Apache 2.0 License{{{endLink}}}": "Available under the {{{link}}}Apache 2.0 License{{{endLink}}}",
"Back": "عقب",
"Bounce dock on new private message": "Bounce dock on new private message",
"Certificate file": "فایل مجوز",
"Bounce dock on new private message": "جهش پرش در پیام خصوصی جدید",
"CSS file": "CSS file",
"Cancel": "لغو کردن",
"Certificate error": "Certificate error",
"Change": "تغییر دادن",
"Change the language from System Preferences → Keyboard → Text → Spelling.": "زبان را از اولویت‌ها ← صفحه کلید ← متن ← املا تغییر دهید.",
"Check for Updates": "بررسی برای به‌روز‌رسانی",
"Close": "بستن",
"Connect": "اتصال",
"Connect to another organization": "اتصال به یک سازمان دیگر",
"Connected organizations": "سازمان‌های وصل شده",
"Connected organizations": "سازمان‌های وصلشده",
"Copy": "رونوشت",
"Copy Zulip URL": "رونوشت از Zulip URL",
"Copy Email Address": "Copy Email Address",
"Copy Image": "Copy Image",
"Copy Image URL": "Copy Image URL",
"Copy Link": "Copy Link",
"Copy Zulip URL": "کپی از URL زولیپ",
"Create a new organization": "ایجاد سازمان جدید",
"Custom CSS file deleted": "Custom CSS file deleted",
"Cut": "بریدن",
"Default download location": "محل پیش‌فرض دانلود",
"Delete": "حذف",
"Desktop App Settings": "Desktop App Settings",
"Desktop Notifications": "اطلاع‌رسانی‌های دسکتاپ",
"Desktop Settings": "تنظیمات دسکتاپ",
"Disconnect": "Disconnect",
"Download App Logs": "Download App Logs",
"Disconnect": "قطع اتصال",
"Disconnect organization": "Disconnect organization",
"Do Not Disturb": "Do Not Disturb",
"Download App Logs": "دانلود لاگ های اپلیکیشن",
"Edit": "ویرایش",
"Edit Shortcuts": "ویرایش میانبرها",
"Enable auto updates": "Enable auto updates",
"Enable error reporting (requires restart)": "Enable error reporting (requires restart)",
"Enable spellchecker (requires restart)": "Enable spellchecker (requires restart)",
"Factory Reset": "Factory Reset",
"Emoji & Symbols": "ایموجی ها و نمادها",
"Enable auto updates": "فعال کردن بروزرسانی خودکار",
"Enable error reporting (requires restart)": "فعال کردن گزارش خطا (نیاز به راه اندازی مجدد)",
"Enable spellchecker (requires restart)": "فعال کردن غلط‌گیر املا (نیاز به راه‌اندازی مجدد)",
"Enter Full Screen": "ورود به حالت تمام صفحه",
"Error saving new organization": "Error saving new organization",
"Error saving update notifications": "Error saving update notifications",
"Error: {{{error}}}\n\nThe latest version of Zulip Desktop is available at:\n{{{link}}}\nCurrent version: {{{version}}}": "Error: {{{error}}}\n\nThe latest version of Zulip Desktop is available at:\n{{{link}}}\nCurrent version: {{{version}}}",
"Factory Reset": "تنظیم مجدد کارخانه",
"Factory Reset Data": "بازگشت به تنظیمات کارخانه",
"File": "فایل",
"Find accounts": "پیدا کردن حساب های کاربری ",
"Find accounts by email": "Find accounts by email",
"Flash taskbar on new message": "Flash taskbar on new message",
"Forward": "Forward",
"Functionality": "Functionality",
"Find accounts": "پیدا کردن حسابهای کاربری ",
"Find accounts by email": "اکانت ها را از طریق ایمیل پیدا کنید",
"Flash taskbar on new message": "فلش نوار وظیفه در پیام جدید",
"Forward": "رفتن به جلو",
"Functionality": "عملکرد",
"General": "عمومی",
"Get beta updates": "Get beta updates",
"Hard Reload": "Hard Reload",
"Get beta updates": "دریافت بروز رسانی بتا",
"Go Back": "Go Back",
"Hard Reload": "بارگذاری مجدد",
"Help": "کمک",
"Help Center": "مرکز کمک",
"Help Center": "مرکز کمک‌رسانی",
"Hide": "مخفی کردن",
"Hide Others": "پنهان کردن دیگران",
"Hide Zulip": "پنهان کردن زولیپ",
"History": "تاریخچه ",
"History Shortcuts": "تاریخچه میانبرها",
"Install Later": "Install Later",
"Install and Relaunch": "Install and Relaunch",
"It will be installed the next time you restart the application.": "It will be installed the next time you restart the application.",
"Keyboard Shortcuts": "میانبرهای صفحه‌کلید",
"Later": "Later",
"Loading": "Loading",
"Log Out": "خروج",
"Log Out of Organization": "Log Out of Organization",
"Manual proxy configuration": "Manual proxy configuration",
"Minimize": "Minimize",
"Mute all sounds from Zulip": "Mute all sounds from Zulip",
"NO": "NO",
"Network": "Network",
"OR": "یا",
"Organization URL": "URL سازمان",
"Organizations": "Organizations",
"Paste": "Paste",
"Paste and Match Style": "Paste and Match Style",
"Proxy": "Proxy",
"Proxy bypass rules": "Proxy bypass rules",
"Proxy rules": "Proxy rules",
"Quit": "Quit",
"Quit Zulip": "Quit Zulip",
"Redo": "Redo",
"Release Notes": "Release Notes",
"Reload": "Reload",
"Report an Issue": "Report an Issue",
"Save": "ذخیره",
"Select All": "Select All",
"Settings": "تنظیمات",
"Shortcuts": "Shortcuts",
"Show App Logs": "Show App Logs",
"Show app icon in system tray": "Show app icon in system tray",
"Show app unread badge": "Show app unread badge",
"Show desktop notifications": "Show desktop notifications",
"Show downloaded files in file manager": "Show downloaded files in file manager",
"Show sidebar": "Show sidebar",
"Start app at login": "Start app at login",
"Switch to Next Organization": "Switch to Next Organization",
"Switch to Previous Organization": "Switch to Previous Organization",
"These desktop app shortcuts extend the Zulip webapp's": "These desktop app shortcuts extend the Zulip webapp's",
"This will delete all application data including all added accounts and preferences": "This will delete all application data including all added accounts and preferences",
"Tip": "Tip",
"Toggle DevTools for Active Tab": "Toggle DevTools for Active Tab",
"Toggle DevTools for Zulip App": "Toggle DevTools for Zulip App",
"Toggle Do Not Disturb": "Toggle Do Not Disturb",
"Toggle Full Screen": "Toggle Full Screen",
"Toggle Sidebar": "Toggle Sidebar",
"Toggle Tray Icon": "Toggle Tray Icon",
"Tools": "Tools",
"Undo": "Undo",
"Upload": "Upload",
"Use system proxy settings (requires restart)": "Use system proxy settings (requires restart)",
"View": "View",
"View Shortcuts": "View Shortcuts",
"Window": "Window",
"Window Shortcuts": "Window Shortcuts",
"YES": "YES",
"Zoom In": "Zoom In",
"Zoom Out": "Zoom Out",
"Zulip Help": "Zulip Help",
"keyboard shortcuts": "keyboard shortcuts",
"script": "script",
"Quit when the window is closed": "Quit when the window is closed",
"Ask where to save files before downloading": "Ask where to save files before downloading",
"Services": "Services",
"Hide": "Hide",
"Hide Others": "Hide Others",
"Unhide": "Unhide",
"AddServer": "AddServer",
"App language (requires restart)": "App language (requires restart)",
"Factory Reset Data": "Factory Reset Data",
"Reset the application, thus deleting all the connected organizations, accounts, and certificates.": "Reset the application, thus deleting all the connected organizations, accounts, and certificates.",
"On macOS, the OS spellchecker is used.": "On macOS, the OS spellchecker is used.",
"Change the language from System Preferences → Keyboard → Text → Spelling.": "Change the language from System Preferences → Keyboard → Text → Spelling.",
"Copy Link": "Copy Link",
"Copy Image": "Copy Image",
"Copy Image URL": "Copy Image URL",
"Log Out of Organization": "خروج از سازمان",
"Look Up": "Look Up",
"Maintained by {{{link}}}Zulip{{{endLink}}}": "Maintained by {{{link}}}Zulip{{{endLink}}}",
"Manual Download": "Manual Download",
"Manual proxy configuration": "پیکربندی دستی پروکسی",
"Minimize": "کوچک کردن",
"Mute all sounds from Zulip": "غیرفعال کردن همه صداها در زولیپ",
"Network": "شبکه",
"Network and Proxy Settings": "تنظیمات شبکه و پروکسی",
"New servers added. Reload app now?": "New servers added. Reload app now?",
"No": "نه",
"No Suggestion Found": "No Suggestion Found",
"You can select a maximum of 3 languages for spellchecking.": "You can select a maximum of 3 languages for spellchecking.",
"Spellchecker Languages": "Spellchecker Languages",
"Add to Dictionary": "Add to Dictionary",
"Look Up": "Look Up"
"No updates available.": "No updates available.",
"Notification settings": "تنظیمات اطلاع‌رسانی",
"OK": "باشه ",
"OR": "یا",
"On macOS, the OS spellchecker is used.": "در macOS از غلط‌گیر املای سیستم‌عامل استفاده می‌شود.",
"Organization URL": "URL سازمان",
"Organizations": "سازمان‌ها",
"Paste": "جایگذاری",
"Paste and Match Style": "جایگذاری و تطابق استایل",
"Proxy": "پروکسی",
"Proxy bypass rules": "قوانین دور زدن پروکسی",
"Proxy rules": "قوانین پروکسی",
"Proxy settings saved.": "Proxy settings saved.",
"Quit": "خروج",
"Quit Zulip": "خروج از زولیپ",
"Quit when the window is closed": "وقتی پنجره بسته است از آن خارج شوید",
"Redo": "اجرای دوباره",
"Release Notes": "یادداشت‌های انتشار",
"Reload": "بارگذاری مجدد",
"Report an Issue": "گزارش یک مشکل",
"Reset App Settings": "بازنشانی تنظیمات برنامه",
"Reset the application, thus deleting all the connected organizations and accounts.": "برنامه را بازنشانی کنید، بنابراین تمام سازمان ها و حساب های متصل حذف می شوند.",
"Save": "ذخیره",
"Select All": "انتخاب همه",
"Select Download Location": "Select Download Location",
"Select file": "Select file",
"Services": "خدمات",
"Settings": "تنظیمات",
"Shortcuts": "میانبرها",
"Show app icon in system tray": "نمایش نماد برنامه در ناحیه اعلان سیستم",
"Show desktop notifications": "نمایش اعلان های دسکتاپ",
"Show sidebar": "نمایش ستون کناری",
"Show unread count badge on app icon": "Show unread count badge on app icon",
"Spellchecker Languages": "غلط یاب املایی زبان‌ها",
"Start app at login": "برنامه را در هنگام ورود شروع کنید",
"Switch to Next Organization": "جابجایی به سازمان بعدی",
"Switch to Previous Organization": "جابجایی به سازمان قبلی",
"The custom CSS previously set is deleted.": "The custom CSS previously set is deleted.",
"The server presented an invalid certificate for {{{origin}}}:\n\n{{{error}}}": "The server presented an invalid certificate for {{{origin}}}:\n\n{{{error}}}",
"The update will be downloaded in the background. You will be notified when it is ready to be installed.": "The update will be downloaded in the background. You will be notified when it is ready to be installed.",
"There was an error while saving the new organization. You may have to add your previous organizations again.": "There was an error while saving the new organization. You may have to add your previous organizations again.",
"These desktop app shortcuts extend the Zulip webapp's": "این میانبرهای برنامه دسکتاپ، برنامه وب زولیپ را گسترش می دهند",
"Tip": "نکته",
"Toggle DevTools for Active Tab": "تغییر ابزارهای توسعه برای تب فعال",
"Toggle DevTools for Zulip App": "تغییر ابزارهای توسعه برای اپلیکیشن زولیپ",
"Toggle Do Not Disturb": "تغییر حالت مزاحم نشو",
"Toggle Full Screen": "تغییر حالت تمام صفحه",
"Toggle Sidebar": "تغییر نوار کناری",
"Toggle Tray Icon": "تغییر آیکون کازیه",
"Tools": "ابزارها",
"Unable to check for updates.": "Unable to check for updates.",
"Unable to download the update.": "Unable to download the update.",
"Undo": "بازگشت به عقب",
"Unhide": "ظاهر کردن",
"Unknown error": "Unknown error",
"Upload": "آپلود",
"Use system proxy settings (requires restart)": "استفاده از تنظیمات پراکسی سیستم (نیاز به راه اندازی مجدد)",
"View": "مشاهده",
"View Shortcuts": "مشاهده میانبرها",
"We encountered an error while saving the update notifications.": "We encountered an error while saving the update notifications.",
"Window": "پنجره",
"Window Shortcuts": "میانبرهای پنجره",
"Yes": "Yes",
"You are running the latest version of Zulip Desktop.\nVersion: {{{version}}}": "You are running the latest version of Zulip Desktop.\nVersion: {{{version}}}",
"You can select a maximum of 3 languages for spellchecking.": "شما می توانید حداکثر 3 زبان را برای بررسی املا انتخاب کنید.",
"Zoom In": "بزرگنمایی",
"Zoom Out": "کوچک نمایی",
"keyboard shortcuts": "میانبرهای صفحه کلید",
"script": "script",
"{{{server}}} runs an outdated Zulip Server version {{{version}}}. It may not fully work in this app.": "{{{server}}} نسخه {{{version}}} سرور زولیپ قدیمی را اجرا می‌کند. ممکن است به طور کامل در این برنامه کار نکند."
}

View File

@@ -1,134 +1,171 @@
{
"A new update {{{version}}} has been downloaded.": "A new update {{{version}}} has been downloaded.",
"A new version {{{version}}} of Zulip Desktop is available.": "A new version {{{version}}} of Zulip Desktop is available.",
"About": "About",
"About Zulip": "Tietoa Zulipista",
"Actual Size": "Varsinainen koko",
"Add Custom Certificates": "Lisää omia sertifikaatteja",
"Actual Size": "Alkuperäinen koko",
"Add Organization": "Lisää organisaatio",
"Add a Zulip organization": "Lisää Zulip-organisaatio",
"Add custom CSS": "Lisää oma CSS",
"Advanced": "Edistynyt",
"All the connected organizations will appear here": "All the connected organizations will appear here",
"Add to Dictionary": "Add to Dictionary",
"Advanced": "Lisäasetukset",
"All the connected organizations will appear here.": "Kaikki yhdistetyt organisaatiot näkyvät täällä.",
"Always start minimized": "Aloita aina pienennettynä",
"App Updates": "Sovellspäivitykset",
"App Updates": "Sovelluspäivitykset",
"App language (requires restart)": "Sovelluksen kieli (uudelleenkäynnistys tarvitaan)",
"Appearance": "Ulkonäkö",
"Application Shortcuts": "Sovellusoikotiet",
"Are you sure you want to disconnect this organization?": "Are you sure you want to disconnect this organization?",
"Auto hide Menu bar": "Auto hide Menu bar",
"Auto hide menu bar (Press Alt key to display)": "Auto hide menu bar (Press Alt key to display)",
"Back": "Back",
"Application Shortcuts": "Sovelluksen pikanäppäimet",
"Are you sure you want to disconnect this organization?": "Oletko varma että haluat katkaista yhteyden tähän organisaatioon?",
"Are you sure?": "Are you sure?",
"Ask where to save files before downloading": "Kysy ennen lataamista, minne tiedostot tallennetaan",
"Auto hide Menu bar": "Piilota automaattisesti Menu-valikko",
"Auto hide menu bar (Press Alt key to display)": "Piilota automaattisesti Menu-valikko (Näytä painamalla Alt-näppäintä)",
"Available under the {{{link}}}Apache 2.0 License{{{endLink}}}": "Available under the {{{link}}}Apache 2.0 License{{{endLink}}}",
"Back": "Takaisin",
"Bounce dock on new private message": "Bounce dock on new private message",
"Certificate file": "Certificate file",
"CSS file": "CSS file",
"Cancel": "Peruuta",
"Certificate error": "Certificate error",
"Change": "Muuta",
"Check for Updates": "Check for Updates",
"Change the language from System Preferences → Keyboard → Text → Spelling.": "Change the language from System Preferences → Keyboard → Text → Spelling.",
"Check for Updates": "Tarkista päivitykset",
"Close": "Sulje",
"Connect": "Yhdistä",
"Connect to another organization": "Connect to another organization",
"Connected organizations": "Connected organizations",
"Connect to another organization": "Yhdistä toiseen organisaatioon",
"Connected organizations": "Yhdistetyt organisaatiot",
"Copy": "Kopioi",
"Copy Email Address": "Copy Email Address",
"Copy Image": "Kopioi kuva",
"Copy Image URL": "Kopioi kuvan URL",
"Copy Link": "Kopioi linkki",
"Copy Zulip URL": "Kopioi Zulip-URL",
"Create a new organization": "Luo uusi organisaatio",
"Custom CSS file deleted": "Custom CSS file deleted",
"Cut": "Leikkaa",
"Default download location": "Default download location",
"Default download location": "Tallennuksen oletushakemisto",
"Delete": "Poista",
"Desktop App Settings": "Desktop App Settings",
"Desktop Notifications": "Desktop Notifications",
"Desktop Settings": "Desktop Settings",
"Disconnect": "Katkaise",
"Download App Logs": "Download App Logs",
"Desktop Notifications": "Työpöydän ilmoitukset",
"Desktop Settings": "Työpöytä asetukset",
"Disconnect": "Katkaise yhteys",
"Disconnect organization": "Disconnect organization",
"Do Not Disturb": "Do Not Disturb",
"Download App Logs": "Lataushistoria",
"Edit": "Muokkaa",
"Edit Shortcuts": "Edit Shortcuts",
"Enable auto updates": "Enable auto updates",
"Enable error reporting (requires restart)": "Enable error reporting (requires restart)",
"Enable spellchecker (requires restart)": "Enable spellchecker (requires restart)",
"Factory Reset": "Factory Reset",
"Edit Shortcuts": "Muokkauksen pikanäppäimet",
"Emoji & Symbols": "Emojit ja symbolit",
"Enable auto updates": "Salli automaattiset päivitykset",
"Enable error reporting (requires restart)": "Ota virheraportointi käyttöön (uudelleenkäynnistys tarvitaan) ",
"Enable spellchecker (requires restart)": "Ota oikoluku käyttöön (uudelleenkäynnistys tarvitaan)",
"Enter Full Screen": "Vaihda koko näytön tilaan",
"Error saving new organization": "Error saving new organization",
"Error saving update notifications": "Error saving update notifications",
"Error: {{{error}}}\n\nThe latest version of Zulip Desktop is available at:\n{{{link}}}\nCurrent version: {{{version}}}": "Error: {{{error}}}\n\nThe latest version of Zulip Desktop is available at:\n{{{link}}}\nCurrent version: {{{version}}}",
"Factory Reset": "Tehdasasetusten palautus",
"Factory Reset Data": "Tehdasasetusten palautustiedot",
"File": "Tiedosto",
"Find accounts": "Löydä tilit",
"Find accounts by email": "Find accounts by email",
"Flash taskbar on new message": "Flash taskbar on new message",
"Forward": "Forward",
"Functionality": "Functionality",
"General": "General",
"Get beta updates": "Get beta updates",
"Hard Reload": "Hard Reload",
"Find accounts": "Etsi tilejä",
"Find accounts by email": "Etsi tilejä sähköpostilla",
"Flash taskbar on new message": "Vilkuta tehtäväpalkkia uuden viestin saapuessa",
"Forward": "Eteenpäin",
"Functionality": "Ominaisuus",
"General": "Yleiset",
"Get beta updates": "Tilaa beta-päivitykset",
"Go Back": "Go Back",
"Hard Reload": "Täysi uudelleenlataus",
"Help": "Ohje",
"Help Center": "Tukikeskus",
"History": "History",
"History Shortcuts": "History Shortcuts",
"Keyboard Shortcuts": "Keyboard Shortcuts",
"Log Out": "Log Out",
"Log Out of Organization": "Log Out of Organization",
"Manual proxy configuration": "Manual proxy configuration",
"Minimize": "Minimize",
"Mute all sounds from Zulip": "Mute all sounds from Zulip",
"NO": "EI",
"Network": "Network",
"Hide": "Piilota",
"Hide Others": "Piilota muut",
"Hide Zulip": "Piilota Zulip",
"History": "Historia",
"History Shortcuts": "Historian pikanäppäimet",
"Install Later": "Install Later",
"Install and Relaunch": "Install and Relaunch",
"It will be installed the next time you restart the application.": "It will be installed the next time you restart the application.",
"Keyboard Shortcuts": "Pikanäppäimet",
"Later": "Later",
"Loading": "Loading",
"Log Out": "Kirjaudu ulos",
"Log Out of Organization": "Kirjaudu ulos organisaatiosta",
"Look Up": "Look Up",
"Maintained by {{{link}}}Zulip{{{endLink}}}": "Maintained by {{{link}}}Zulip{{{endLink}}}",
"Manual Download": "Manual Download",
"Manual proxy configuration": "Manualiset välityspalvelin-asetukset",
"Minimize": "Pienennä",
"Mute all sounds from Zulip": "Mykistä kaikki Zulip-äänet",
"Network": "Verkko",
"Network and Proxy Settings": "Verkon ja välipalvelimen asetukset",
"New servers added. Reload app now?": "New servers added. Reload app now?",
"No": "Ei",
"No Suggestion Found": "Ei ehdotuksia",
"No updates available.": "No updates available.",
"Notification settings": "Ilmoitusasetukset",
"OK": "OK",
"OR": "TAI",
"On macOS, the OS spellchecker is used.": "On macOS, the OS spellchecker is used.",
"Organization URL": "Organisaation URL",
"Organizations": "Organisaatiot",
"Paste": "Liitä",
"Paste and Match Style": "Liitä ja täsmää tyylit",
"Proxy": "Välipalvelin",
"Proxy bypass rules": "Proxy bypass rules",
"Proxy rules": "Proxy rules",
"Proxy": "Välityspalvelin",
"Proxy bypass rules": "Välityspalvelimen ohituksen säännöt",
"Proxy rules": "Välityspalvelimen-säännöt",
"Proxy settings saved.": "Proxy settings saved.",
"Quit": "Lopeta",
"Quit Zulip": "Lopeta Zulip",
"Redo": "Toista",
"Release Notes": "Release Notes",
"Quit when the window is closed": "Sulje sovellus, kun ikkuna suljetaan",
"Redo": "Tee uudelleen",
"Release Notes": "Julkaisutiedot",
"Reload": "Lataa uudelleen",
"Report an Issue": "Report an Issue",
"Report an Issue": "Raportoi ongelmasta",
"Reset App Settings": "Nollaa asetukset",
"Reset the application, thus deleting all the connected organizations and accounts.": "Nollaa sovelluksen, ja poistaa kaikki liitetyt organisaatiot ja tilit.",
"Save": "Tallenna",
"Select All": "Valitse kaikki",
"Select Download Location": "Select Download Location",
"Select file": "Select file",
"Services": "Services",
"Settings": "Asetukset",
"Shortcuts": "Oikopolut",
"Show App Logs": "Show App Logs",
"Show app icon in system tray": "Show app icon in system tray",
"Show app unread badge": "Show app unread badge",
"Show desktop notifications": "Show desktop notifications",
"Show downloaded files in file manager": "Show downloaded files in file manager",
"Show sidebar": "Show sidebar",
"Start app at login": "Start app at login",
"Switch to Next Organization": "Switch to Next Organization",
"Switch to Previous Organization": "Switch to Previous Organization",
"These desktop app shortcuts extend the Zulip webapp's": "These desktop app shortcuts extend the Zulip webapp's",
"This will delete all application data including all added accounts and preferences": "This will delete all application data including all added accounts and preferences",
"Show app icon in system tray": "Näytä sovellus ilmoituspaneelissa",
"Show desktop notifications": "Näytä työpöytäilmoitukset",
"Show sidebar": "Näytä sivupaneeli",
"Show unread count badge on app icon": "Show unread count badge on app icon",
"Spellchecker Languages": "Oikoluvun kielet",
"Start app at login": "Käynnistä sovellus sisäänkirjauduttaessa",
"Switch to Next Organization": "Vaihda seuraavaan organisaatioon",
"Switch to Previous Organization": "Vaihda edelliseen organisaatioon",
"The custom CSS previously set is deleted.": "The custom CSS previously set is deleted.",
"The server presented an invalid certificate for {{{origin}}}:\n\n{{{error}}}": "The server presented an invalid certificate for {{{origin}}}:\n\n{{{error}}}",
"The update will be downloaded in the background. You will be notified when it is ready to be installed.": "The update will be downloaded in the background. You will be notified when it is ready to be installed.",
"There was an error while saving the new organization. You may have to add your previous organizations again.": "There was an error while saving the new organization. You may have to add your previous organizations again.",
"These desktop app shortcuts extend the Zulip webapp's": "Nämä työpöytäsovelluksen pikanäppäimet laajentavat Zulip web-sovelluksen ",
"Tip": "Vinkki",
"Toggle DevTools for Active Tab": "Toggle DevTools for Active Tab",
"Toggle DevTools for Zulip App": "Toggle DevTools for Zulip App",
"Toggle Do Not Disturb": "Toggle Do Not Disturb",
"Toggle Full Screen": "Toggle Full Screen",
"Toggle Sidebar": "Toggle Sidebar",
"Toggle Tray Icon": "Toggle Tray Icon",
"Toggle DevTools for Active Tab": "Kehitystyökalut / aktiivinen ikkuna",
"Toggle DevTools for Zulip App": "Kehitystyökalut / Zulip sovellus",
"Toggle Do Not Disturb": "Vaihda Älä häiritse -tilaa",
"Toggle Full Screen": "Vaihda koko ruudun tilaa",
"Toggle Sidebar": "Näytä/piilota sivupalkki",
"Toggle Tray Icon": "Vaihda Tray-kuvaketta",
"Tools": "Työkalut",
"Unable to check for updates.": "Unable to check for updates.",
"Unable to download the update.": "Unable to download the update.",
"Undo": "Peru",
"Upload": "Upload",
"Use system proxy settings (requires restart)": "Use system proxy settings (requires restart)",
"Unhide": "Näytä",
"Unknown error": "Unknown error",
"Upload": "Lähetä tiedosto",
"Use system proxy settings (requires restart)": "Käytä järjestelmän välityspalvelimen asetuksia (uudelleenkäynnistys tarvitaan)",
"View": "Näytä",
"View Shortcuts": "View Shortcuts",
"View Shortcuts": "Katselun pikanäppäimet",
"We encountered an error while saving the update notifications.": "We encountered an error while saving the update notifications.",
"Window": "Ikkuna",
"Window Shortcuts": "Window Shortcuts",
"YES": "KYLLÄ",
"Zoom In": "Zoom In",
"Zoom Out": "Zoom Out",
"Zulip Help": "Zulip Help",
"keyboard shortcuts": "keyboard shortcuts",
"Window Shortcuts": "Näkymän pikanäppäimet",
"Yes": "Kyllä",
"You are running the latest version of Zulip Desktop.\nVersion: {{{version}}}": "You are running the latest version of Zulip Desktop.\nVersion: {{{version}}}",
"You can select a maximum of 3 languages for spellchecking.": "Voit valita oikolukua varten enintään 3 kieltä.",
"Zoom In": "Lähennä",
"Zoom Out": "Loitonna",
"keyboard shortcuts": "Pikanäppäimet",
"script": "script",
"Quit when the window is closed": "Quit when the window is closed",
"Ask where to save files before downloading": "Ask where to save files before downloading",
"Services": "Services",
"Hide": "Hide",
"Hide Others": "Hide Others",
"Unhide": "Unhide",
"AddServer": "AddServer",
"App language (requires restart)": "App language (requires restart)",
"Factory Reset Data": "Factory Reset Data",
"Reset the application, thus deleting all the connected organizations, accounts, and certificates.": "Reset the application, thus deleting all the connected organizations, accounts, and certificates.",
"On macOS, the OS spellchecker is used.": "On macOS, the OS spellchecker is used.",
"Change the language from System Preferences → Keyboard → Text → Spelling.": "Change the language from System Preferences → Keyboard → Text → Spelling.",
"Copy Link": "Copy Link",
"Copy Image": "Copy Image",
"Copy Image URL": "Copy Image URL",
"No Suggestion Found": "No Suggestion Found",
"You can select a maximum of 3 languages for spellchecking.": "You can select a maximum of 3 languages for spellchecking.",
"Spellchecker Languages": "Spellchecker Languages",
"Add to Dictionary": "Add to Dictionary",
"Look Up": "Look Up"
"{{{server}}} runs an outdated Zulip Server version {{{version}}}. It may not fully work in this app.": "{{{server}}} käyttää vanhentutta versiota Zulipista: {{{version}}}. Se ei välttämättä toimi tämän sovelluksen kanssa yhteen."
}

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