aboutsummaryrefslogtreecommitdiffhomepage
path: root/templates/interaction_button.php
diff options
context:
space:
mode:
authorwinter2024-12-24 17:46:51 +0000
committerwinter2024-12-24 17:46:51 +0000
commit721674973ca0a4d98cd081e9ff130c3356ddac03 (patch)
tree5caa082baa4f23bd8a88f4f268fea6d9233f6553 /templates/interaction_button.php
parentd5a57276eb27e215dd0b1bd5eb67ac26acc9575b (diff)
implement ui translations using gettext
this was horrible i don't like gettext anymore
Diffstat (limited to 'templates/interaction_button.php')
-rw-r--r--templates/interaction_button.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/templates/interaction_button.php b/templates/interaction_button.php
index ed257df..40fe392 100644
--- a/templates/interaction_button.php
+++ b/templates/interaction_button.php
@@ -1,9 +1,9 @@
<?php
$active = $active ?? false;
$tooltip = match ($action) {
- 'like' => 'Like',
- 'dislike' => 'Dislike',
- 'reshare' => 'Reshare'
+ 'like' => _('Like'),
+ 'dislike' => _('Dislike'),
+ 'reshare' => _('Reshare')
};
$icon = match ($action) {
'like' => 'favorite',