From b0abc1b6eccaab64efd50b6117686deaaf61ea38 Mon Sep 17 00:00:00 2001 From: pxthinh Date: Sun, 26 Nov 2023 00:09:11 +0700 Subject: [PATCH 1/4] feat: update view template for settings, start, token and usage --- lang/en/tools/settings.php | 5 +++++ lang/en/tools/start.php | 8 ++++++++ lang/en/tools/token.php | 5 +++++ lang/en/tools/usage.php | 24 ++++++++++++++++++++++ resources/views/tools/settings.blade.php | 2 +- resources/views/tools/start.blade.php | 7 +++---- resources/views/tools/token.blade.php | 2 +- resources/views/tools/usage.blade.php | 26 ++++++++++++------------ 8 files changed, 60 insertions(+), 19 deletions(-) create mode 100644 lang/en/tools/settings.php create mode 100644 lang/en/tools/start.php create mode 100644 lang/en/tools/token.php create mode 100644 lang/en/tools/usage.php diff --git a/lang/en/tools/settings.php b/lang/en/tools/settings.php new file mode 100644 index 0000000..63040d1 --- /dev/null +++ b/lang/en/tools/settings.php @@ -0,0 +1,5 @@ + 'Settings for your bot šŸ¤–', +]; diff --git a/lang/en/tools/start.php b/lang/en/tools/start.php new file mode 100644 index 0000000..e563178 --- /dev/null +++ b/lang/en/tools/start.php @@ -0,0 +1,8 @@ + 'šŸ™‹šŸ» :appName šŸ¤“', + 'firstName' => 'Hey :firstName,', + 'notification' => 'I can send you notifications from your šŸ¦‘GitHub or šŸ¦ŠGitLab Repository instantly to your Telegram. +Use /menu for more options.', +]; diff --git a/lang/en/tools/token.php b/lang/en/tools/token.php new file mode 100644 index 0000000..1332a3b --- /dev/null +++ b/lang/en/tools/token.php @@ -0,0 +1,5 @@ + 'This bot token is: :token', +]; diff --git a/lang/en/tools/usage.php b/lang/en/tools/usage.php new file mode 100644 index 0000000..75299ac --- /dev/null +++ b/lang/en/tools/usage.php @@ -0,0 +1,24 @@ + [ + 'title' => 'Adding webhook (Web Address) to GitHub repositories šŸ¦‘', + 'webhookSetupSteps' => [ + '1) Redirect to Repository Settings->Webhooks->Add Webhook.', + '2) Set your Payload URL.', + '3) Set content type to \"application/x-www-form-urlencoded\".', + '4) Choose events you would like to trigger in this webhook. (Recommended: Let me select individual events, and choose any events you want).', + '5) Check Active checkbox. And click Add Webhook.', + ], + ], + 'gitlab' => [ + 'title' => 'Adding webhook (Web Address) to GitLab repositories šŸ¦Š', + 'webhookSetupSteps' => [ + '1) Redirect to Repository Settings->Webhooks->Add new webhook.', + '2) Set your Payload URL.', + '3) Choose events you would like to trigger in this webhook.', + '4) Check Enable SSL verification if you are using SSL. And click Add Webhook.', + ], + ], + 'completionMessage' => 'That it. you will receive all notifications through me šŸ¤—', +]; diff --git a/resources/views/tools/settings.blade.php b/resources/views/tools/settings.blade.php index a1a03bf..fe7a2f8 100644 --- a/resources/views/tools/settings.blade.php +++ b/resources/views/tools/settings.blade.php @@ -1 +1 @@ -Settings for your bot šŸ¤– +{!! __('tg-notifier::tools/settings.title') !!} diff --git a/resources/views/tools/start.blade.php b/resources/views/tools/start.blade.php index 3eb7f16..c533357 100644 --- a/resources/views/tools/start.blade.php +++ b/resources/views/tools/start.blade.php @@ -4,9 +4,8 @@ */ ?> -šŸ™‹šŸ» šŸ¤“ +{!! __('tg-notifier::tools/start.title', ['appName' => config('telegram-git-notifier.app.name')]) !!} -Hey , +{!! __('tg-notifier::tools/start.firstName', ['firstName' => $first_name]) !!} -I can send you notifications from your šŸ¦‘GitHub or šŸ¦ŠGitLab Repository instantly to your Telegram. -Use /menu for more options. +{!! __('tg-notifier::tools/start.notification') !!} diff --git a/resources/views/tools/token.blade.php b/resources/views/tools/token.blade.php index c150a6b..cdcf430 100644 --- a/resources/views/tools/token.blade.php +++ b/resources/views/tools/token.blade.php @@ -1 +1 @@ -This bot token is: +{!! __('tg-notifier::tools/token.title', ['token' => config('telegram-git-notifier.bot.token')]) !!} diff --git a/resources/views/tools/usage.blade.php b/resources/views/tools/usage.blade.php index 377163e..8759404 100644 --- a/resources/views/tools/usage.blade.php +++ b/resources/views/tools/usage.blade.php @@ -1,18 +1,18 @@ -Adding webhook (Web Address) to GitHub repositories šŸ¦‘ + +{!! __('tg-notifier::tools/usage.github.title') !!} -1) Redirect to Repository Settings->Webhooks->Add Webhook. -2) Set your Payload URL. -3) Set content type to "application/x-www-form-urlencoded". -4) Choose events would you like to trigger in this webhook. -(Recommended: Let me select individual events, and choose any events you want). -5) Check Active checkbox. And click Add Webhook. +@foreach($githubSetupSteps as $githubSetupStep) +{!! $githubSetupStep !!} +@endforeach ---------- -Adding webhook (Web Address) to GitLab repositories šŸ¦Š +{!! __('tg-notifier::tools/usage.gitlab.title') !!} -1) Redirect to Repository Settings->Webhooks->Add new webhook. -2) Set your Payload URL. -3) Choose events would you like to trigger in this webhook. -4) Check Enable SSL verification if you are using SSL. And click Add Webhook. +@foreach($gitlabSetupSteps as $gitlabSetupStep) +{!! $gitlabSetupStep !!} +@endforeach -That it. you will receive all notifications through me šŸ¤— +{!! __('tg-notifier::tools/usage.completionMessage') !!} From 24d14f6b6c95091f67180f2f11e3f575b6019910 Mon Sep 17 00:00:00 2001 From: pxthinh Date: Sun, 26 Nov 2023 00:10:02 +0700 Subject: [PATCH 2/4] feat: update view template for id, server set menu and about --- lang/en/tools/about.php | 6 ++++++ lang/en/tools/id.php | 5 +++++ lang/en/tools/server.php | 8 ++++++++ lang/en/tools/set_menu_cmd.php | 6 ++++++ resources/views/tools/about.blade.php | 4 ++-- resources/views/tools/id.blade.php | 2 +- resources/views/tools/server.blade.php | 18 ++++++++++++++---- resources/views/tools/set_menu_cmd.blade.php | 4 ++-- 8 files changed, 44 insertions(+), 9 deletions(-) create mode 100644 lang/en/tools/about.php create mode 100644 lang/en/tools/id.php create mode 100644 lang/en/tools/server.php create mode 100644 lang/en/tools/set_menu_cmd.php diff --git a/lang/en/tools/about.php b/lang/en/tools/about.php new file mode 100644 index 0000000..53550c5 --- /dev/null +++ b/lang/en/tools/about.php @@ -0,0 +1,6 @@ + 'Thanks for using our bot.', + 'description' => 'The bot is designed to send notifications based on GitHub and GitLab events from your repo instantly to your Telegram account.', +]; diff --git a/lang/en/tools/id.php b/lang/en/tools/id.php new file mode 100644 index 0000000..dc7ef78 --- /dev/null +++ b/lang/en/tools/id.php @@ -0,0 +1,5 @@ + 'Your id is :chat_id', +]; diff --git a/lang/en/tools/server.php b/lang/en/tools/server.php new file mode 100644 index 0000000..e4ef4ed --- /dev/null +++ b/lang/en/tools/server.php @@ -0,0 +1,8 @@ + 'Server Address : :link', + 'name' => 'Server Name : :link', + 'port' => 'Server Port : :link', + 'software' => 'Server Software : :link', +]; diff --git a/lang/en/tools/set_menu_cmd.php b/lang/en/tools/set_menu_cmd.php new file mode 100644 index 0000000..98c3660 --- /dev/null +++ b/lang/en/tools/set_menu_cmd.php @@ -0,0 +1,6 @@ + 'āœ… Menu button set successfully!', + 'restartMessage' => 'Please restart the bot to apply the changes.', +]; diff --git a/resources/views/tools/about.blade.php b/resources/views/tools/about.blade.php index 0efe8c2..933a932 100644 --- a/resources/views/tools/about.blade.php +++ b/resources/views/tools/about.blade.php @@ -1,3 +1,3 @@ -Thanks for using our bot. +{!! __('tg-notifier::tools/about.title') !!} -The bot is designed to send notifications based on GitHub and GitLab events from your repo instantly to your Telegram account. +{!! __('tg-notifier::tools/about.description') !!} diff --git a/resources/views/tools/id.blade.php b/resources/views/tools/id.blade.php index fe21c1b..9042ce6 100644 --- a/resources/views/tools/id.blade.php +++ b/resources/views/tools/id.blade.php @@ -1 +1 @@ -Your id is +{!! __('tg-notifier::tools/id.title', ['chat_id' => config('telegram-git-notifier.bot.chat_id')]) !!} diff --git a/resources/views/tools/server.blade.php b/resources/views/tools/server.blade.php index f1c8ccf..1daf427 100644 --- a/resources/views/tools/server.blade.php +++ b/resources/views/tools/server.blade.php @@ -1,4 +1,14 @@ -Server Address : -Server Name : -Server Port : -Server Software : + + +{!! __('tg-notifier::tools/server.address', ['link' => "{$serverAddr}"]) !!} +{!! __('tg-notifier::tools/server.name', ['link' => "{$serverName}"]) !!} +{!! __('tg-notifier::tools/server.port', ['link' => "{$serverPort}"]) !!} +{!! __('tg-notifier::tools/server.software', ['link' => "{$serverSoftware}"]) !!} diff --git a/resources/views/tools/set_menu_cmd.blade.php b/resources/views/tools/set_menu_cmd.blade.php index 6b22b5d..2a083cd 100644 --- a/resources/views/tools/set_menu_cmd.blade.php +++ b/resources/views/tools/set_menu_cmd.blade.php @@ -1,3 +1,3 @@ -āœ… Menu button set successfully! +{!! __('tg-notifier::tools/set_menu_cmd.title') !!} -Please restart the bot to apply the changes. +{!! __('tg-notifier::tools/set_menu_cmd.restartMessage') !!} From d672665cd268734452f8f777769d2b950d5bb0a3 Mon Sep 17 00:00:00 2001 From: pxthinh Date: Sun, 26 Nov 2023 00:11:10 +0700 Subject: [PATCH 3/4] feat: update view template for access denied and custom event --- lang/en/globals/access_denied.php | 7 +++++++ lang/en/tools/custom_event.php | 8 ++++++++ lang/en/tools/custom_event_action.php | 6 ++++++ resources/views/globals/access_denied.blade.php | 14 ++++++-------- resources/views/tools/custom_event.blade.php | 7 ++++--- .../views/tools/custom_event_action.blade.php | 4 ++-- 6 files changed, 33 insertions(+), 13 deletions(-) create mode 100644 lang/en/globals/access_denied.php create mode 100644 lang/en/tools/custom_event.php create mode 100644 lang/en/tools/custom_event_action.php diff --git a/lang/en/globals/access_denied.php b/lang/en/globals/access_denied.php new file mode 100644 index 0000000..8069db6 --- /dev/null +++ b/lang/en/globals/access_denied.php @@ -0,0 +1,7 @@ + 'šŸ”’ Access Denied to Bot šŸš«', + 'chat_id' => 'šŸ›‘ Chat ID: :chatId ', + 'message' => 'Please contact the administrator for further information, Thank You..', +]; diff --git a/lang/en/tools/custom_event.php b/lang/en/tools/custom_event.php new file mode 100644 index 0000000..b32b82e --- /dev/null +++ b/lang/en/tools/custom_event.php @@ -0,0 +1,8 @@ + 'Go to check the :link for more information about events.', + 'instruction' => 'Click and configure child events if the option has the āš™ icon.', + 'eventSelection' => 'And select an event to enable or disable notifications:', + 'documentation' => 'documentation', +]; diff --git a/lang/en/tools/custom_event_action.php b/lang/en/tools/custom_event_action.php new file mode 100644 index 0000000..939c992 --- /dev/null +++ b/lang/en/tools/custom_event_action.php @@ -0,0 +1,6 @@ + 'Setting actions for the :event event :platformIcon.', + 'actionPrompt' => 'Please select an action of this event to enable or disable notifications:', +]; diff --git a/resources/views/globals/access_denied.blade.php b/resources/views/globals/access_denied.blade.php index 0d77683..32a1f39 100644 --- a/resources/views/globals/access_denied.blade.php +++ b/resources/views/globals/access_denied.blade.php @@ -3,12 +3,10 @@ * @var $chatId string */ -$message = 'šŸ”’ Access Denied to Bot šŸš«'; +?> +{!! __('tg-notifier::globals/access_denied.title') !!} -if (!empty($chatId)) { - $message .= "\n\nšŸ›‘ Chat ID: {$chatId} \n"; -} - -$message .= 'Please contact the administrator for further information, Thank You..'; - -echo $message; +@if(!empty($chatId)) +{!! __('tg-notifier::globals/access_denied.chat_id', ['chatId' => $chatId]) !!} +@endif +{!! __('tg-notifier::globals/access_denied.message') !!} diff --git a/resources/views/tools/custom_event.blade.php b/resources/views/tools/custom_event.blade.php index a40ce49..52eefe8 100644 --- a/resources/views/tools/custom_event.blade.php +++ b/resources/views/tools/custom_event.blade.php @@ -7,8 +7,9 @@ if ($platform === 'gitlab') { $docsUrl = 'https://docs.gitlab.com/ee/user/project/integrations/webhooks.html'; } +$documentation = __('tg-notifier::tools/custom_event.documentation'); ?> -Go to check the documentation for more information about events. +{!! __('tg-notifier::tools/custom_event.title', ['link' => "$platform $documentation"]) !!} --- -Click and configure child events if the option has the āš™ icon. -And select an event to enable or disable notifications: +{!! __('tg-notifier::tools/custom_event.instruction') !!} +{!! __('tg-notifier::tools/custom_event.eventSelection') !!} diff --git a/resources/views/tools/custom_event_action.blade.php b/resources/views/tools/custom_event_action.blade.php index 297aff0..8211a78 100644 --- a/resources/views/tools/custom_event_action.blade.php +++ b/resources/views/tools/custom_event_action.blade.php @@ -9,5 +9,5 @@ $platformIcon = 'šŸ¦Š'; } ?> -Setting actions for the event . -Please select an action of this event to enable or disable notifications: +{!! __('tg-notifier::tools/custom_event_action.title', ['event' => $event, 'platformIcon' => $platformIcon]) !!} +{!! __('tg-notifier::tools/custom_event_action.actionPrompt') !!} From ffb45ba3818b5ffd0795d5f02707e99b9ca572e5 Mon Sep 17 00:00:00 2001 From: pxthinh Date: Sun, 26 Nov 2023 00:37:58 +0700 Subject: [PATCH 4/4] feat: update multiple lang --- lang/de/globals/access_denied.php | 7 +++++++ lang/de/tools/about.php | 6 ++++++ lang/de/tools/custom_event.php | 8 ++++++++ lang/de/tools/custom_event_action.php | 6 ++++++ lang/de/tools/id.php | 5 +++++ lang/de/tools/menu.php | 17 +++++++++++++++++ lang/de/tools/server.php | 8 ++++++++ lang/de/tools/set_menu_cmd.php | 6 ++++++ lang/de/tools/settings.php | 5 +++++ lang/de/tools/start.php | 8 ++++++++ lang/de/tools/token.php | 5 +++++ lang/de/tools/usage.php | 24 ++++++++++++++++++++++++ lang/ja/globals/access_denied.php | 7 +++++++ lang/ja/tools/about.php | 6 ++++++ lang/ja/tools/custom_event.php | 7 +++++++ lang/ja/tools/custom_event_action.php | 6 ++++++ lang/ja/tools/id.php | 5 +++++ lang/ja/tools/menu.php | 17 +++++++++++++++++ lang/ja/tools/server.php | 8 ++++++++ lang/ja/tools/set_menu_cmd.php | 6 ++++++ lang/ja/tools/settings.php | 5 +++++ lang/ja/tools/start.php | 8 ++++++++ lang/ja/tools/token.php | 5 +++++ lang/ja/tools/usage.php | 24 ++++++++++++++++++++++++ lang/vi/globals/access_denied.php | 7 +++++++ lang/vi/tools/about.php | 6 ++++++ lang/vi/tools/custom_event.php | 7 +++++++ lang/vi/tools/custom_event_action.php | 6 ++++++ lang/vi/tools/id.php | 5 +++++ lang/vi/tools/menu.php | 17 +++++++++++++++++ lang/vi/tools/server.php | 8 ++++++++ lang/vi/tools/set_menu_cmd.php | 6 ++++++ lang/vi/tools/settings.php | 5 +++++ lang/vi/tools/start.php | 8 ++++++++ lang/vi/tools/token.php | 5 +++++ lang/vi/tools/usage.php | 24 ++++++++++++++++++++++++ 36 files changed, 313 insertions(+) create mode 100644 lang/de/globals/access_denied.php create mode 100644 lang/de/tools/about.php create mode 100644 lang/de/tools/custom_event.php create mode 100644 lang/de/tools/custom_event_action.php create mode 100644 lang/de/tools/id.php create mode 100644 lang/de/tools/menu.php create mode 100644 lang/de/tools/server.php create mode 100644 lang/de/tools/set_menu_cmd.php create mode 100644 lang/de/tools/settings.php create mode 100644 lang/de/tools/start.php create mode 100644 lang/de/tools/token.php create mode 100644 lang/de/tools/usage.php create mode 100644 lang/ja/globals/access_denied.php create mode 100644 lang/ja/tools/about.php create mode 100644 lang/ja/tools/custom_event.php create mode 100644 lang/ja/tools/custom_event_action.php create mode 100644 lang/ja/tools/id.php create mode 100644 lang/ja/tools/menu.php create mode 100644 lang/ja/tools/server.php create mode 100644 lang/ja/tools/set_menu_cmd.php create mode 100644 lang/ja/tools/settings.php create mode 100644 lang/ja/tools/start.php create mode 100644 lang/ja/tools/token.php create mode 100644 lang/ja/tools/usage.php create mode 100644 lang/vi/globals/access_denied.php create mode 100644 lang/vi/tools/about.php create mode 100644 lang/vi/tools/custom_event.php create mode 100644 lang/vi/tools/custom_event_action.php create mode 100644 lang/vi/tools/id.php create mode 100644 lang/vi/tools/menu.php create mode 100644 lang/vi/tools/server.php create mode 100644 lang/vi/tools/set_menu_cmd.php create mode 100644 lang/vi/tools/settings.php create mode 100644 lang/vi/tools/start.php create mode 100644 lang/vi/tools/token.php create mode 100644 lang/vi/tools/usage.php diff --git a/lang/de/globals/access_denied.php b/lang/de/globals/access_denied.php new file mode 100644 index 0000000..8069db6 --- /dev/null +++ b/lang/de/globals/access_denied.php @@ -0,0 +1,7 @@ + 'šŸ”’ Access Denied to Bot šŸš«', + 'chat_id' => 'šŸ›‘ Chat ID: :chatId ', + 'message' => 'Please contact the administrator for further information, Thank You..', +]; diff --git a/lang/de/tools/about.php b/lang/de/tools/about.php new file mode 100644 index 0000000..53550c5 --- /dev/null +++ b/lang/de/tools/about.php @@ -0,0 +1,6 @@ + 'Thanks for using our bot.', + 'description' => 'The bot is designed to send notifications based on GitHub and GitLab events from your repo instantly to your Telegram account.', +]; diff --git a/lang/de/tools/custom_event.php b/lang/de/tools/custom_event.php new file mode 100644 index 0000000..b32b82e --- /dev/null +++ b/lang/de/tools/custom_event.php @@ -0,0 +1,8 @@ + 'Go to check the :link for more information about events.', + 'instruction' => 'Click and configure child events if the option has the āš™ icon.', + 'eventSelection' => 'And select an event to enable or disable notifications:', + 'documentation' => 'documentation', +]; diff --git a/lang/de/tools/custom_event_action.php b/lang/de/tools/custom_event_action.php new file mode 100644 index 0000000..939c992 --- /dev/null +++ b/lang/de/tools/custom_event_action.php @@ -0,0 +1,6 @@ + 'Setting actions for the :event event :platformIcon.', + 'actionPrompt' => 'Please select an action of this event to enable or disable notifications:', +]; diff --git a/lang/de/tools/id.php b/lang/de/tools/id.php new file mode 100644 index 0000000..dc7ef78 --- /dev/null +++ b/lang/de/tools/id.php @@ -0,0 +1,5 @@ + 'Your id is :chat_id', +]; diff --git a/lang/de/tools/menu.php b/lang/de/tools/menu.php new file mode 100644 index 0000000..fa225a2 --- /dev/null +++ b/lang/de/tools/menu.php @@ -0,0 +1,17 @@ + 'BOT MENU', + + 'start' => 'Welcome to the bot', + 'menu' => 'Show menu of the bot', + 'token' => 'Show token of the bot', + 'id' => 'Show the ID of the current chat', + 'usage' => 'Show step by step usage', + 'server' => 'To get Server Information', + 'settings' => 'Go to settings of the bot', + 'back' => 'Back', + + 'discussion' => 'šŸ—Ø Discussion', + 'source_code' => 'šŸ’  Source Code', +]; diff --git a/lang/de/tools/server.php b/lang/de/tools/server.php new file mode 100644 index 0000000..e4ef4ed --- /dev/null +++ b/lang/de/tools/server.php @@ -0,0 +1,8 @@ + 'Server Address : :link', + 'name' => 'Server Name : :link', + 'port' => 'Server Port : :link', + 'software' => 'Server Software : :link', +]; diff --git a/lang/de/tools/set_menu_cmd.php b/lang/de/tools/set_menu_cmd.php new file mode 100644 index 0000000..98c3660 --- /dev/null +++ b/lang/de/tools/set_menu_cmd.php @@ -0,0 +1,6 @@ + 'āœ… Menu button set successfully!', + 'restartMessage' => 'Please restart the bot to apply the changes.', +]; diff --git a/lang/de/tools/settings.php b/lang/de/tools/settings.php new file mode 100644 index 0000000..63040d1 --- /dev/null +++ b/lang/de/tools/settings.php @@ -0,0 +1,5 @@ + 'Settings for your bot šŸ¤–', +]; diff --git a/lang/de/tools/start.php b/lang/de/tools/start.php new file mode 100644 index 0000000..e563178 --- /dev/null +++ b/lang/de/tools/start.php @@ -0,0 +1,8 @@ + 'šŸ™‹šŸ» :appName šŸ¤“', + 'firstName' => 'Hey :firstName,', + 'notification' => 'I can send you notifications from your šŸ¦‘GitHub or šŸ¦ŠGitLab Repository instantly to your Telegram. +Use /menu for more options.', +]; diff --git a/lang/de/tools/token.php b/lang/de/tools/token.php new file mode 100644 index 0000000..1332a3b --- /dev/null +++ b/lang/de/tools/token.php @@ -0,0 +1,5 @@ + 'This bot token is: :token', +]; diff --git a/lang/de/tools/usage.php b/lang/de/tools/usage.php new file mode 100644 index 0000000..75299ac --- /dev/null +++ b/lang/de/tools/usage.php @@ -0,0 +1,24 @@ + [ + 'title' => 'Adding webhook (Web Address) to GitHub repositories šŸ¦‘', + 'webhookSetupSteps' => [ + '1) Redirect to Repository Settings->Webhooks->Add Webhook.', + '2) Set your Payload URL.', + '3) Set content type to \"application/x-www-form-urlencoded\".', + '4) Choose events you would like to trigger in this webhook. (Recommended: Let me select individual events, and choose any events you want).', + '5) Check Active checkbox. And click Add Webhook.', + ], + ], + 'gitlab' => [ + 'title' => 'Adding webhook (Web Address) to GitLab repositories šŸ¦Š', + 'webhookSetupSteps' => [ + '1) Redirect to Repository Settings->Webhooks->Add new webhook.', + '2) Set your Payload URL.', + '3) Choose events you would like to trigger in this webhook.', + '4) Check Enable SSL verification if you are using SSL. And click Add Webhook.', + ], + ], + 'completionMessage' => 'That it. you will receive all notifications through me šŸ¤—', +]; diff --git a/lang/ja/globals/access_denied.php b/lang/ja/globals/access_denied.php new file mode 100644 index 0000000..8069db6 --- /dev/null +++ b/lang/ja/globals/access_denied.php @@ -0,0 +1,7 @@ + 'šŸ”’ Access Denied to Bot šŸš«', + 'chat_id' => 'šŸ›‘ Chat ID: :chatId ', + 'message' => 'Please contact the administrator for further information, Thank You..', +]; diff --git a/lang/ja/tools/about.php b/lang/ja/tools/about.php new file mode 100644 index 0000000..53550c5 --- /dev/null +++ b/lang/ja/tools/about.php @@ -0,0 +1,6 @@ + 'Thanks for using our bot.', + 'description' => 'The bot is designed to send notifications based on GitHub and GitLab events from your repo instantly to your Telegram account.', +]; diff --git a/lang/ja/tools/custom_event.php b/lang/ja/tools/custom_event.php new file mode 100644 index 0000000..3976095 --- /dev/null +++ b/lang/ja/tools/custom_event.php @@ -0,0 +1,7 @@ + 'Go to check the :link for more information about events.', + 'instruction' => 'Click and configure child events if the option has the āš™ icon.', + 'eventSelection' => 'And select an event to enable or disable notifications:', +]; diff --git a/lang/ja/tools/custom_event_action.php b/lang/ja/tools/custom_event_action.php new file mode 100644 index 0000000..939c992 --- /dev/null +++ b/lang/ja/tools/custom_event_action.php @@ -0,0 +1,6 @@ + 'Setting actions for the :event event :platformIcon.', + 'actionPrompt' => 'Please select an action of this event to enable or disable notifications:', +]; diff --git a/lang/ja/tools/id.php b/lang/ja/tools/id.php new file mode 100644 index 0000000..dc7ef78 --- /dev/null +++ b/lang/ja/tools/id.php @@ -0,0 +1,5 @@ + 'Your id is :chat_id', +]; diff --git a/lang/ja/tools/menu.php b/lang/ja/tools/menu.php new file mode 100644 index 0000000..fa225a2 --- /dev/null +++ b/lang/ja/tools/menu.php @@ -0,0 +1,17 @@ + 'BOT MENU', + + 'start' => 'Welcome to the bot', + 'menu' => 'Show menu of the bot', + 'token' => 'Show token of the bot', + 'id' => 'Show the ID of the current chat', + 'usage' => 'Show step by step usage', + 'server' => 'To get Server Information', + 'settings' => 'Go to settings of the bot', + 'back' => 'Back', + + 'discussion' => 'šŸ—Ø Discussion', + 'source_code' => 'šŸ’  Source Code', +]; diff --git a/lang/ja/tools/server.php b/lang/ja/tools/server.php new file mode 100644 index 0000000..e4ef4ed --- /dev/null +++ b/lang/ja/tools/server.php @@ -0,0 +1,8 @@ + 'Server Address : :link', + 'name' => 'Server Name : :link', + 'port' => 'Server Port : :link', + 'software' => 'Server Software : :link', +]; diff --git a/lang/ja/tools/set_menu_cmd.php b/lang/ja/tools/set_menu_cmd.php new file mode 100644 index 0000000..98c3660 --- /dev/null +++ b/lang/ja/tools/set_menu_cmd.php @@ -0,0 +1,6 @@ + 'āœ… Menu button set successfully!', + 'restartMessage' => 'Please restart the bot to apply the changes.', +]; diff --git a/lang/ja/tools/settings.php b/lang/ja/tools/settings.php new file mode 100644 index 0000000..63040d1 --- /dev/null +++ b/lang/ja/tools/settings.php @@ -0,0 +1,5 @@ + 'Settings for your bot šŸ¤–', +]; diff --git a/lang/ja/tools/start.php b/lang/ja/tools/start.php new file mode 100644 index 0000000..e563178 --- /dev/null +++ b/lang/ja/tools/start.php @@ -0,0 +1,8 @@ + 'šŸ™‹šŸ» :appName šŸ¤“', + 'firstName' => 'Hey :firstName,', + 'notification' => 'I can send you notifications from your šŸ¦‘GitHub or šŸ¦ŠGitLab Repository instantly to your Telegram. +Use /menu for more options.', +]; diff --git a/lang/ja/tools/token.php b/lang/ja/tools/token.php new file mode 100644 index 0000000..1332a3b --- /dev/null +++ b/lang/ja/tools/token.php @@ -0,0 +1,5 @@ + 'This bot token is: :token', +]; diff --git a/lang/ja/tools/usage.php b/lang/ja/tools/usage.php new file mode 100644 index 0000000..75299ac --- /dev/null +++ b/lang/ja/tools/usage.php @@ -0,0 +1,24 @@ + [ + 'title' => 'Adding webhook (Web Address) to GitHub repositories šŸ¦‘', + 'webhookSetupSteps' => [ + '1) Redirect to Repository Settings->Webhooks->Add Webhook.', + '2) Set your Payload URL.', + '3) Set content type to \"application/x-www-form-urlencoded\".', + '4) Choose events you would like to trigger in this webhook. (Recommended: Let me select individual events, and choose any events you want).', + '5) Check Active checkbox. And click Add Webhook.', + ], + ], + 'gitlab' => [ + 'title' => 'Adding webhook (Web Address) to GitLab repositories šŸ¦Š', + 'webhookSetupSteps' => [ + '1) Redirect to Repository Settings->Webhooks->Add new webhook.', + '2) Set your Payload URL.', + '3) Choose events you would like to trigger in this webhook.', + '4) Check Enable SSL verification if you are using SSL. And click Add Webhook.', + ], + ], + 'completionMessage' => 'That it. you will receive all notifications through me šŸ¤—', +]; diff --git a/lang/vi/globals/access_denied.php b/lang/vi/globals/access_denied.php new file mode 100644 index 0000000..8069db6 --- /dev/null +++ b/lang/vi/globals/access_denied.php @@ -0,0 +1,7 @@ + 'šŸ”’ Access Denied to Bot šŸš«', + 'chat_id' => 'šŸ›‘ Chat ID: :chatId ', + 'message' => 'Please contact the administrator for further information, Thank You..', +]; diff --git a/lang/vi/tools/about.php b/lang/vi/tools/about.php new file mode 100644 index 0000000..53550c5 --- /dev/null +++ b/lang/vi/tools/about.php @@ -0,0 +1,6 @@ + 'Thanks for using our bot.', + 'description' => 'The bot is designed to send notifications based on GitHub and GitLab events from your repo instantly to your Telegram account.', +]; diff --git a/lang/vi/tools/custom_event.php b/lang/vi/tools/custom_event.php new file mode 100644 index 0000000..3976095 --- /dev/null +++ b/lang/vi/tools/custom_event.php @@ -0,0 +1,7 @@ + 'Go to check the :link for more information about events.', + 'instruction' => 'Click and configure child events if the option has the āš™ icon.', + 'eventSelection' => 'And select an event to enable or disable notifications:', +]; diff --git a/lang/vi/tools/custom_event_action.php b/lang/vi/tools/custom_event_action.php new file mode 100644 index 0000000..939c992 --- /dev/null +++ b/lang/vi/tools/custom_event_action.php @@ -0,0 +1,6 @@ + 'Setting actions for the :event event :platformIcon.', + 'actionPrompt' => 'Please select an action of this event to enable or disable notifications:', +]; diff --git a/lang/vi/tools/id.php b/lang/vi/tools/id.php new file mode 100644 index 0000000..dc7ef78 --- /dev/null +++ b/lang/vi/tools/id.php @@ -0,0 +1,5 @@ + 'Your id is :chat_id', +]; diff --git a/lang/vi/tools/menu.php b/lang/vi/tools/menu.php new file mode 100644 index 0000000..fa225a2 --- /dev/null +++ b/lang/vi/tools/menu.php @@ -0,0 +1,17 @@ + 'BOT MENU', + + 'start' => 'Welcome to the bot', + 'menu' => 'Show menu of the bot', + 'token' => 'Show token of the bot', + 'id' => 'Show the ID of the current chat', + 'usage' => 'Show step by step usage', + 'server' => 'To get Server Information', + 'settings' => 'Go to settings of the bot', + 'back' => 'Back', + + 'discussion' => 'šŸ—Ø Discussion', + 'source_code' => 'šŸ’  Source Code', +]; diff --git a/lang/vi/tools/server.php b/lang/vi/tools/server.php new file mode 100644 index 0000000..e4ef4ed --- /dev/null +++ b/lang/vi/tools/server.php @@ -0,0 +1,8 @@ + 'Server Address : :link', + 'name' => 'Server Name : :link', + 'port' => 'Server Port : :link', + 'software' => 'Server Software : :link', +]; diff --git a/lang/vi/tools/set_menu_cmd.php b/lang/vi/tools/set_menu_cmd.php new file mode 100644 index 0000000..98c3660 --- /dev/null +++ b/lang/vi/tools/set_menu_cmd.php @@ -0,0 +1,6 @@ + 'āœ… Menu button set successfully!', + 'restartMessage' => 'Please restart the bot to apply the changes.', +]; diff --git a/lang/vi/tools/settings.php b/lang/vi/tools/settings.php new file mode 100644 index 0000000..63040d1 --- /dev/null +++ b/lang/vi/tools/settings.php @@ -0,0 +1,5 @@ + 'Settings for your bot šŸ¤–', +]; diff --git a/lang/vi/tools/start.php b/lang/vi/tools/start.php new file mode 100644 index 0000000..e563178 --- /dev/null +++ b/lang/vi/tools/start.php @@ -0,0 +1,8 @@ + 'šŸ™‹šŸ» :appName šŸ¤“', + 'firstName' => 'Hey :firstName,', + 'notification' => 'I can send you notifications from your šŸ¦‘GitHub or šŸ¦ŠGitLab Repository instantly to your Telegram. +Use /menu for more options.', +]; diff --git a/lang/vi/tools/token.php b/lang/vi/tools/token.php new file mode 100644 index 0000000..1332a3b --- /dev/null +++ b/lang/vi/tools/token.php @@ -0,0 +1,5 @@ + 'This bot token is: :token', +]; diff --git a/lang/vi/tools/usage.php b/lang/vi/tools/usage.php new file mode 100644 index 0000000..75299ac --- /dev/null +++ b/lang/vi/tools/usage.php @@ -0,0 +1,24 @@ + [ + 'title' => 'Adding webhook (Web Address) to GitHub repositories šŸ¦‘', + 'webhookSetupSteps' => [ + '1) Redirect to Repository Settings->Webhooks->Add Webhook.', + '2) Set your Payload URL.', + '3) Set content type to \"application/x-www-form-urlencoded\".', + '4) Choose events you would like to trigger in this webhook. (Recommended: Let me select individual events, and choose any events you want).', + '5) Check Active checkbox. And click Add Webhook.', + ], + ], + 'gitlab' => [ + 'title' => 'Adding webhook (Web Address) to GitLab repositories šŸ¦Š', + 'webhookSetupSteps' => [ + '1) Redirect to Repository Settings->Webhooks->Add new webhook.', + '2) Set your Payload URL.', + '3) Choose events you would like to trigger in this webhook.', + '4) Check Enable SSL verification if you are using SSL. And click Add Webhook.', + ], + ], + 'completionMessage' => 'That it. you will receive all notifications through me šŸ¤—', +];