commit 4db150bc2bb708553fcc5c81c420bc2567e3ca8a
parent 256e1f7d8cb84933c06fcf6c58214ab16363261e
Author: JayVii <jayvii[AT]posteo[DOT]de>
Date: Sat, 2 Nov 2024 09:59:02 +0100
fix: describe bookmarklet usage in more detail
Diffstat:
3 files changed, 16 insertions(+), 0 deletions(-)
diff --git a/README.md b/README.md
@@ -128,6 +128,15 @@ Save the shortcut and you are good to go! When sharing text or URLs from any
app, you may now choose the newly created shortcut to send it directly to your
rememori instance.
+## FAQs
+
+1. **How do I add the bookmarklet to my Web-Browser?**
+
+Simply go to the "Account" section in Rememori and drag the button labeled
+"Rememori" under the Bookmarklet section to your browser's bookmarks toolbar:
+
+![Dragging the bookmarklet to the bookmarks toolbar](https://paste.jayvii.de/369db1fd82260da5f50b1c7865764b122fa7f5d1ac4f506d2c0dc11079556e03)
+
## Setup
Coming soon...
diff --git a/config/i18n.php b/config/i18n.php
@@ -6,6 +6,7 @@ $acceptLang = ["en", "de"];
$lang = in_array($lang, $acceptLang) ? $lang : "en";
if ($lang == "en") {
+ $GLOBALS["i18n_howto"] = "Click here to learn how to do that.";
$GLOBALS["i18n_error"] = "Error";
$GLOBALS["i18n_success"] = "Success";
$GLOBALS["i18n_unknown_error"] = "An unknown error occurred!";
@@ -44,6 +45,7 @@ if ($lang == "en") {
$GLOBALS["i18n_tokens_curr"] = "Corresponds to the password you are currently logged in with.";
}
if ($lang == "de") {
+ $GLOBALS["i18n_howto"] = "Hier klicken für eine genauere Anleitung.";
$GLOBALS["i18n_error"] = "Fehler";
$GLOBALS["i18n_success"] = "Erfolg";
$GLOBALS["i18n_unknown_error"] = "Unbekannter Fehler aufgetreten!";
diff --git a/lib/account.php b/lib/account.php
@@ -25,12 +25,17 @@ function show_account(
<h5><?php echo $GLOBALS["i18n_bookmarklet"]; ?></h5>
<p><?php echo $GLOBALS["i18n_bookmarklet_tp"]; ?></p>
<a
+ class="button"
href="<?php echo bookmarklet(); ?>"
onclick="window.alert('<?php echo $GLOBALS["i18n_bookmarklet_tp"];?>');"
title="<?php echo $GLOBALS["i18n_bookmarklet_tp"]; ?>"
>
Rememori
</a>
+ <br><br>
+ <a href="https://src.jayvii.de/pub/rememori/#faqs" target="_blank">
+ <?php echo $GLOBALS["i18n_howto"]; ?>
+ </a>
</section>
<!-- Tokens -->