Skip to content

Commit

Permalink
Rename Slack occurrences
Browse files Browse the repository at this point in the history
Signed-off-by: Edward Ly <[email protected]>
  • Loading branch information
edward-ly committed Jul 4, 2024
1 parent ae316bf commit e18ecd3
Show file tree
Hide file tree
Showing 147 changed files with 1,544 additions and 1,544 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/node-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ on:
- webpack.js

env:
APP_NAME: integration_slack
APP_NAME: integration_zulip

jobs:
build:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/phpunit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ on:
- tests/**

env:
APP_NAME: integration_slack
APP_NAME: integration_zulip

jobs:
php:
Expand Down
6 changes: 3 additions & 3 deletions .tx/config
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
host = https://www.transifex.com
lang_map = cs_CZ: cs, fi_FI: fi, hu_HU: hu, nb_NO: nb, sk_SK: sk, th_TH: th, ja_JP: ja, bg_BG: bg

[o:nextcloud:p:nextcloud:r:integration_slack]
file_filter = translationfiles/<lang>/integration_slack.po
source_file = translationfiles/templates/integration_slack.pot
[o:nextcloud:p:nextcloud:r:integration_zulip]
file_filter = translationfiles/<lang>/integration_zulip.po
source_file = translationfiles/templates/integration_zulip.pot
source_lang = en
type = PO

14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
# Slack integration into Nextcloud
# Zulip integration into Nextcloud

This integration is helpful in sending files to your Slack workspace as original
This integration is helpful in sending files to your Zulip workspace as original
files, public links to the files or as internal Nextcloud links.

## 🔧 Configuration

### User settings

The account configuration happens in the "Connected accounts" user settings section.
It requires you to authenticate your Slack account and allow the required permissions
It requires you to authenticate your Zulip account and allow the required permissions
for the app to work nicely.

A link to the "Connected accounts" user settings section will be displayed when sending
a file to a Slack channel/chat for users who didn't configure a Slack account. The context menu
a file to a Zulip channel/chat for users who didn't configure a Zulip account. The context menu
to send a file can be accessed by right clicking on the file/folder to be shared or selecting them
and clicking on the "Actions" button.

### Admin settings

There is a "Connected accounts" **admin** settings section for you (the admin) to set the OAuth
authentication keys (Client ID and Client Secret) of your Slack app for all the users to use.
authentication keys (Client ID and Client Secret) of your Zulip app for all the users to use.

You can head over to [this website](https://api.slack.com/apps) to create a Slack app.
You can head over to [this website](https://api.zulip.com/apps) to create a Zulip app.
After your app is created, go to "OAuth & Permissions" section (address looks like this:
`https://api.slack.com/apps/YOUR_APP_ID/oauth`) and set the "Redirect URL" as shown on the
`https://api.zulip.com/apps/YOUR_APP_ID/oauth`) and set the "Redirect URL" as shown on the
Nextcloud Admin settings.<br>
This is also the place where you can enable token rotation, in which case your access
token would be regularly changed with a refresh token. This integration supports
Expand Down
28 changes: 14 additions & 14 deletions appinfo/info.xml
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
<?xml version="1.0"?>
<info>
<id>integration_slack</id>
<name>Slack Integration</name>
<summary>Integration of Slack</summary>
<description><![CDATA[Slack integration lets you send files to Slack from Nextcloud Files.]]></description>
<id>integration_zulip</id>
<name>Zulip Integration</name>
<summary>Integration of Zulip</summary>
<description><![CDATA[Zulip integration lets you send files to Zulip from Nextcloud Files.]]></description>
<version>1.1.0</version>
<licence>agpl</licence>
<author>Anupam Kumar</author>
<namespace>Slack</namespace>
<namespace>Zulip</namespace>
<documentation>
<developer>https://github.com/nextcloud/integration_slack</developer>
<developer>https://github.com/nextcloud/integration_zulip</developer>
</documentation>
<category>integration</category>
<website>https://github.com/nextcloud/integration_slack</website>
<bugs>https://github.com/nextcloud/integration_slack/issues</bugs>
<screenshot>https://raw.githubusercontent.com/nextcloud/integration_slack/main/img/screenshot1.png</screenshot>
<screenshot>https://raw.githubusercontent.com/nextcloud/integration_slack/main/img/screenshot2.png</screenshot>
<website>https://github.com/nextcloud/integration_zulip</website>
<bugs>https://github.com/nextcloud/integration_zulip/issues</bugs>
<screenshot>https://raw.githubusercontent.com/nextcloud/integration_zulip/main/img/screenshot1.png</screenshot>
<screenshot>https://raw.githubusercontent.com/nextcloud/integration_zulip/main/img/screenshot2.png</screenshot>
<dependencies>
<nextcloud min-version="28" max-version="29"/>
</dependencies>
<settings>
<admin>OCA\Slack\Settings\Admin</admin>
<admin-section>OCA\Slack\Settings\AdminSection</admin-section>
<personal>OCA\Slack\Settings\Personal</personal>
<personal-section>OCA\Slack\Settings\PersonalSection</personal-section>
<admin>OCA\Zulip\Settings\Admin</admin>
<admin-section>OCA\Zulip\Settings\AdminSection</admin-section>
<personal>OCA\Zulip\Settings\Personal</personal>
<personal-section>OCA\Zulip\Settings\PersonalSection</personal-section>
</settings>
</info>
12 changes: 6 additions & 6 deletions appinfo/routes.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* Nextcloud - Slack
* Nextcloud - Zulip
*
* This file is licensed under the Affero General Public License version 3 or
* later. See the COPYING file.
Expand All @@ -20,11 +20,11 @@
['name' => 'config#setAdminConfig', 'url' => '/admin-config', 'verb' => 'PUT'],
['name' => 'config#popupSuccessPage', 'url' => '/popup-success', 'verb' => 'GET'],

['name' => 'slackAPI#sendMessage', 'url' => '/sendMessage', 'verb' => 'POST'],
['name' => 'slackAPI#sendPublicLinks', 'url' => '/sendPublicLinks', 'verb' => 'POST'],
['name' => 'slackAPI#sendFile', 'url' => '/sendFile', 'verb' => 'POST'],
['name' => 'slackAPI#getChannels', 'url' => '/channels', 'verb' => 'GET'],
['name' => 'slackAPI#getUserAvatar', 'url' => '/users/{slackUserId}/image', 'verb' => 'GET'],
['name' => 'zulipAPI#sendMessage', 'url' => '/sendMessage', 'verb' => 'POST'],
['name' => 'zulipAPI#sendPublicLinks', 'url' => '/sendPublicLinks', 'verb' => 'POST'],
['name' => 'zulipAPI#sendFile', 'url' => '/sendFile', 'verb' => 'POST'],
['name' => 'zulipAPI#getChannels', 'url' => '/channels', 'verb' => 'GET'],
['name' => 'zulipAPI#getUserAvatar', 'url' => '/users/{zulipUserId}/image', 'verb' => 'GET'],

['name' => 'files#getFileImage', 'url' => '/preview', 'verb' => 'GET'],
]
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "nextcloud/integration_slack",
"name": "nextcloud/integration_zulip",
"authors": [
{
"name": "Anupam Kumar",
Expand Down Expand Up @@ -47,7 +47,7 @@
},
"autoload": {
"psr-4": {
"OCA\\Slack\\": "lib/"
"OCA\\Zulip\\": "lib/"
}
},
"autoload-dev": {
Expand Down
2 changes: 1 addition & 1 deletion l10n/af.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
OC.L10N.register(
"integration_slack",
"integration_zulip",
{
"Client ID" : "Klant-ID",
"Files" : "Lêer ",
Expand Down
60 changes: 30 additions & 30 deletions l10n/ar.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
OC.L10N.register(
"integration_slack",
"integration_zulip",
{
"Could not encrypt client secret" : "تعذّر تشفير \"سر العميل\" client secret",
"Invalid client secret" : "سر العميل غير صحيح",
Expand All @@ -9,32 +9,32 @@ OC.L10N.register(
"Bad credentials" : "حيثيّات الدخول credentials غير صحيحة",
"OAuth access token refused" : "أمَاَرَة token مرفوضة",
"Connected accounts" : "حسابات مترابطة",
"Slack Integration" : "مُكاملة Slack",
"Integration of Slack" : "المُكاملة مع Slack",
"Slack integration lets you send files to Slack from Nextcloud Files." : "مُكاملة Slack تُمكِّنُك من إرسال ملفات إلى Slack من ملفات نكست كلاود.",
"Slack integration" : "مُكاملة Slack",
"To allow your Nextcloud users to use OAuth to authenticate to the Slack app, and set the ID and secret here." : "لتمكين مستخدمي نكست كلاود عندك من استعمال التصديق المفتوح OAuth للتحقق من الهوية مع تطبيق Slack، و تعيين المُعرِّف و كلمة السر هنا.",
"Link to create a Slack application" : "رابط لإنشاء تطبيق Slack",
"Make sure you set the \"Redirect URI\" in the \"OAuth & Permissions\" section of your Slack app settings to" : "تأكد من تعيين \"إعادة توجيه URI\" في قسم \"التصديق المفتوح و الأذونات OAuth & Permissions\" في إعدادات تطبيق Slack إلى",
"Put the \"Client ID\" and \"Client secret\" below. Your Nextcloud users will then see a \"Connect to Slack\" button in their personal settings." : "ضع \"معرّف العميل\" و \"سر العميل\" أدناه. سيرى مستخدمو نكست كلاود بعد ذلك زر \"التوصيل إلى سلاك Connect to Slack\" في إعداداتهم الشخصية.",
"Zulip Integration" : "مُكاملة Zulip",
"Integration of Zulip" : "المُكاملة مع Zulip",
"Zulip integration lets you send files to Zulip from Nextcloud Files." : "مُكاملة Zulip تُمكِّنُك من إرسال ملفات إلى Zulip من ملفات نكست كلاود.",
"Zulip integration" : "مُكاملة Zulip",
"To allow your Nextcloud users to use OAuth to authenticate to the Zulip app, and set the ID and secret here." : "لتمكين مستخدمي نكست كلاود عندك من استعمال التصديق المفتوح OAuth للتحقق من الهوية مع تطبيق Zulip، و تعيين المُعرِّف و كلمة السر هنا.",
"Link to create a Zulip application" : "رابط لإنشاء تطبيق Zulip",
"Make sure you set the \"Redirect URI\" in the \"OAuth & Permissions\" section of your Zulip app settings to" : "تأكد من تعيين \"إعادة توجيه URI\" في قسم \"التصديق المفتوح و الأذونات OAuth & Permissions\" في إعدادات تطبيق Zulip إلى",
"Put the \"Client ID\" and \"Client secret\" below. Your Nextcloud users will then see a \"Connect to Zulip\" button in their personal settings." : "ضع \"معرّف العميل\" و \"سر العميل\" أدناه. سيرى مستخدمو نكست كلاود بعد ذلك زر \"التوصيل إلى سلاك Connect to Zulip\" في إعداداتهم الشخصية.",
"In the same \"OAuth & Permissions\" section, token rotation can be enabled. If enabled, your access token would be regularly refreshed with a refresh token. This is handled automatically." : "في نفس قسم \"التصديق المفتوح و الأذونات OAuth & Permissions\"، يمكن تمكين تدوير الأَمَارَة token rotation. إذا تم تمكينه، فسيتم تحديث أَمَارَة الوصول access token عندك بانتظام بأَمَارَة تحديث refresh token. يتم التعامل مع هذا تلقائيّاً.",
"Client ID" : "مُعرّف العميل",
"ID of your Slack application" : "مُعرِّف ID لتطبيق Slack عندك",
"ID of your Zulip application" : "مُعرِّف ID لتطبيق Zulip عندك",
"Application secret" : "كلمة سر التطبيق",
"Client secret of your Slack application" : "\"سر العميل\" client secret لتطبيق Slack عندك",
"Client secret of your Zulip application" : "\"سر العميل\" client secret لتطبيق Zulip عندك",
"Use a popup to authenticate" : "إستخدم النافذة المنبثقة للتعريف عن نفسك ",
"Slack admin options saved" : "تمّ حفظ خيارات مشرف Slack",
"Failed to save Slack admin options" : "تعذّر حفظ خيارات مشرف Slack",
"Zulip admin options saved" : "تمّ حفظ خيارات مشرف Zulip",
"Failed to save Zulip admin options" : "تعذّر حفظ خيارات مشرف Zulip",
"The admin must fill in client ID and client secret for you to continue from here" : "يجب على المشرف ملء خانات \"مُعرّف العميل\" client ID و \"سر العميل\" client secret لك كي تستمر.",
"Connect to Slack" : "التوصيل إلى Slack",
"Connect to Zulip" : "التوصيل إلى Zulip",
"Connected as" : "متصل كـ",
"Disconnect from Slack" : "قطع الاتصال مع Slack",
"Add file action to send files to Slack" : "إضافة إجراء على ملف لإرسال ملفات إلى Slack",
"Successfully connected to Slack!" : "تمّ التوصيل مع Slack بنجاحٍ!",
"Error connecting to Slack:" : "خطأ في التوصيل مع Slack:",
"Slack options saved" : "تمّ حفظ خيارات Slack",
"Disconnect from Zulip" : "قطع الاتصال مع Zulip",
"Add file action to send files to Zulip" : "إضافة إجراء على ملف لإرسال ملفات إلى Zulip",
"Successfully connected to Zulip!" : "تمّ التوصيل مع Zulip بنجاحٍ!",
"Error connecting to Zulip:" : "خطأ في التوصيل مع Zulip:",
"Zulip options saved" : "تمّ حفظ خيارات Zulip",
"Invalid access token" : "أَمَارَة وصول token غير صحيحة",
"Failed to save Slack options" : "تعذّر حفظ خيارات Slack",
"Failed to save Zulip options" : "تعذّر حفظ خيارات Zulip",
"Files" : "الملفّات",
"Remove file from list" : "حذف ملف من القائمة",
"Conversation" : "محادثة",
Expand All @@ -50,21 +50,21 @@ OC.L10N.register(
"Message to send with the files" : "كلمة المرور",
"View only" : "للعرض فقط",
"Edit" : "تحرير",
"Failed to load Slack channels" : "تعذّر تحميل قنوات Slack",
"_Send file to Slack_::_Send files to Slack_" : ["إرسال ملف إلى Slack","إرسال ملف إلى Slack","إرسال ملفين إلى Slack","إرسال ملفات إلى Slack","إرسال ملفات إلى Slack","إرسال ملفات إلى Slack"],
"_Send link to Slack_::_Send links to Slack_" : ["إرسال رابط إلى Slack","إرسال رابط إلى Slack","إرسال رابطين إلى Slack","إرسال روابط إلى Slack","إرسال روابط إلى Slack","إرسال روابط إلى Slack"],
"Failed to load Zulip channels" : "تعذّر تحميل قنوات Zulip",
"_Send file to Zulip_::_Send files to Zulip_" : ["إرسال ملف إلى Zulip","إرسال ملف إلى Zulip","إرسال ملفين إلى Zulip","إرسال ملفات إلى Zulip","إرسال ملفات إلى Zulip","إرسال ملفات إلى Zulip"],
"_Send link to Zulip_::_Send links to Zulip_" : ["إرسال رابط إلى Zulip","إرسال رابط إلى Zulip","إرسال رابطين إلى Zulip","إرسال روابط إلى Zulip","إرسال روابط إلى Zulip","إرسال روابط إلى Zulip"],
"_Send file_::_Send files_" : ["إرسال ملفات","إرسال ملف","إرسال ملفات","إرسال ملفات","إرسال ملفات","إرسال ملفات"],
"_Send link_::_Send links_" : ["إرسال روابط","إرسال رابط","إرسال روابط","إرسال روابط","إرسال روابط","إرسال روابط"],
"Send files to Slack" : "إرسال ملفات إلى Slack",
"Failed to send {name} to {channelName} on Slack" : "تعذّر إرسال {name} إلى {channelName} على Slack",
"Send files to Zulip" : "إرسال ملفات إلى Zulip",
"Failed to send {name} to {channelName} on Zulip" : "تعذّر إرسال {name} إلى {channelName} على Zulip",
"_A link to {fileName} was sent to {channelName}_::_All of the {number} links were sent to {channelName}_" : ["كل الـ {number} روابط تمّ إرسالها إلى {channelName}","كل الـ {number} روابط تمّ إرسالها إلى {channelName}","كل الـ {number} روابط تمّ إرسالها إلى {channelName}","كل الـ {number} روابط تمّ إرسالها إلى {channelName}","كل الـ {number} روابط تمّ إرسالها إلى {channelName}","كل الـ {number} روابط تمّ إرسالها إلى {channelName}"],
"Failed to send links to Slack" : "تعذّر إرسال روابط إلى Slack",
"Failed to send links to Zulip" : "تعذّر إرسال روابط إلى Zulip",
"_Failed to send the internal link to {channelName}_::_Failed to send internal links to {channelName}_" : ["تعذّر إرسال روابط داخلية إلى {channelName}","تعذّر إرسال روابط داخلية إلى {channelName}","تعذّر إرسال روابط داخلية إلى {channelName}","تعذّر إرسال روابط داخلية إلى {channelName}","تعذّر إرسال روابط داخلية إلى {channelName}","تعذّر إرسال روابط داخلية إلى {channelName}"],
"_{fileName} was successfully sent to {channelName}_::_All of the {number} files were sent to {channelName}_" : ["كل الـ {number} ملفات تمّ إرسالها إلى {channelName}","كل الـ {number} ملفات تمّ إرسالها إلى {channelName}","كل الـ {number} ملفات تمّ إرسالها إلى {channelName}","كل الـ {number} ملفات تمّ إرسالها إلى {channelName}","كل الـ {number} ملفات تمّ إرسالها إلى {channelName}","كل الـ {number} ملفات تمّ إرسالها إلى {channelName}"],
"Sign in with Slack" : "تسجيل الدخول باستعمال Slack",
"Failed to open Slack OAuth popup window, please allow popups" : "فشل فتح نافذة Slack OAuth المنبثقة> يُرجى السماح بالنوافذ المنبثقة",
"Failed to save Slack OAuth state" : "فشل حفظ حالة Slack OAuth",
"You need to connect a Slack app before using the Slack integration." : "تحتاج إلى توصيل تطبيق Slack قبل استخدام مكاملة Slack.",
"Sign in with Zulip" : "تسجيل الدخول باستعمال Zulip",
"Failed to open Zulip OAuth popup window, please allow popups" : "فشل فتح نافذة Zulip OAuth المنبثقة> يُرجى السماح بالنوافذ المنبثقة",
"Failed to save Zulip OAuth state" : "فشل حفظ حالة Zulip OAuth",
"You need to connect a Zulip app before using the Zulip integration." : "تحتاج إلى توصيل تطبيق Zulip قبل استخدام مكاملة Zulip.",
"Do you want to go to your \"Connect accounts\" personal settings?" : "هل تريد الانتقال إلى الإعدادات الشخصية \"ربط الحسابات\"؟",
"Go to settings" : "اذهب للاعدادات",
"Upload files" : "رفع ملفات",
Expand Down
Loading

0 comments on commit e18ecd3

Please sign in to comment.