From 01adf6ac0e6fefb1c93ae68592036a379ca68b1b Mon Sep 17 00:00:00 2001
From: Laurent Mazet
Date: Fri, 7 Mar 2025 11:07:52 +0100
Subject: [PATCH] New option to check if first word cover central star (#13)
Reviewed-on: https://git.jakse.fr/trivabble/trivabble/pulls/13
Co-authored-by: Laurent Mazet
Co-committed-by: Laurent Mazet
---
bin/check-l10n-file.sh | 40 ++++++++++++++++++++++++++++++++++
l10n/po/fr/trivabble.po | 6 ++++++
public/index.html | 3 +++
public/trivabble.js | 44 ++++++++++++++++++++++++++++++++++++++
server/trivabble-server.js | 23 ++++++++++++++++++--
5 files changed, 114 insertions(+), 2 deletions(-)
create mode 100755 bin/check-l10n-file.sh
diff --git a/bin/check-l10n-file.sh b/bin/check-l10n-file.sh
new file mode 100755
index 0000000..8b91565
--- /dev/null
+++ b/bin/check-l10n-file.sh
@@ -0,0 +1,40 @@
+#!/bin/bash
+
+PODIR="l10n/po/fr"
+
+PUBDIR="public"
+
+[ "$1" ] && PODIR=$1
+[ "$2" ] && PUBDIRF=$2
+
+IFS=$'\n'
+
+function extract_from_html() {
+ awk -F '>' \
+ '/l10n/ {
+ for (i=1; i