Skip to content

Commit

Permalink
Merge pull request #77 from tanhongit/update-event-template
Browse files Browse the repository at this point in the history
fix: update menu translations
  • Loading branch information
tanhongit authored May 20, 2024
2 parents db80ffd + de1b0ef commit 4ed484e
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 10 deletions.
5 changes: 3 additions & 2 deletions lang/de/tools/menu.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@
'usage' => 'Show step by step usage',
'server' => 'To get Server Information',
'settings' => 'Go to settings of the bot',
'set_menu' => 'Set the menu of the bot',
'back' => 'Back',

'discussion' => '🗨 Discussion',
'source_code' => '💠 Source Code',
'discussion' => 'Discussion',
'source_code' => 'Source Code',
];
5 changes: 3 additions & 2 deletions lang/en/tools/menu.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@
'usage' => 'Show step by step usage',
'server' => 'To get Server Information',
'settings' => 'Go to settings of the bot',
'set_menu' => 'Set the menu of the bot',
'back' => 'Back',

'discussion' => '🗨 Discussion',
'source_code' => '💠 Source Code',
'discussion' => 'Discussion',
'source_code' => 'Source Code',
];
5 changes: 3 additions & 2 deletions lang/ja/tools/menu.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@
'usage' => 'Show step by step usage',
'server' => 'To get Server Information',
'settings' => 'Go to settings of the bot',
'set_menu' => 'Set the menu of the bot',
'back' => 'Back',

'discussion' => '🗨 Discussion',
'source_code' => '💠 Source Code',
'discussion' => 'Discussion',
'source_code' => 'Source Code',
];
5 changes: 3 additions & 2 deletions lang/vi/tools/menu.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@
'usage' => 'Show step by step usage',
'server' => 'To get Server Information',
'settings' => 'Go to settings of the bot',
'set_menu' => 'Set the menu of the bot',
'back' => 'Back',

'discussion' => '🗨 Discussion',
'source_code' => '💠 Source Code',
'discussion' => 'Discussion',
'source_code' => 'Source Code',
];
3 changes: 3 additions & 0 deletions src/Services/CommandService.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,9 @@ public static function menuCommands(): array
], [
'command' => '/settings',
'description' => __('tg-notifier::tools/menu.settings'),
], [
'command' => '/set_menu',
'description' => __('tg-notifier::tools/menu.set_menu'),
],
];
}
Expand Down
4 changes: 2 additions & 2 deletions src/Traits/Markup.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ public function menuMarkup(Telegram $telegram): array
{
return [
[
$telegram->buildInlineKeyBoardButton(__('tg-notifier::tools/menu.discussion'), config('telegram-git-notifier.author.discussion')),
$telegram->buildInlineKeyBoardButton('🗨 '.__('tg-notifier::tools/menu.discussion'), config('telegram-git-notifier.author.discussion')),
], [
$telegram->buildInlineKeyBoardButton(__('tg-notifier::tools/menu.source_code'), config('telegram-git-notifier.author.source_code')),
$telegram->buildInlineKeyBoardButton('💠 '.__('tg-notifier::tools/menu.source_code'), config('telegram-git-notifier.author.source_code')),
],
];
}
Expand Down

0 comments on commit 4ed484e

Please sign in to comment.