Renaming extensions subdirectory for GNOME 48.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
8ed6608e27
commit
d13dfd08e5
189 changed files with 1 additions and 1 deletions
34
extensions/48/just-perfection/scripts/update-pot.sh
Executable file
34
extensions/48/just-perfection/scripts/update-pot.sh
Executable file
|
@ -0,0 +1,34 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Script to update main.pot and *.po files
|
||||
#
|
||||
# This Script is released under GPL v3 license
|
||||
# Copyright (C) 2020-2025 Javad Rahmatzadeh
|
||||
|
||||
set -e
|
||||
|
||||
# cd to the repo root
|
||||
cd "$( cd "$( dirname "$0" )" && pwd )/.."
|
||||
|
||||
find -name *.ui -o -name *.js | xargs \
|
||||
xgettext \
|
||||
--from-code=UTF-8 \
|
||||
--copyright-holder="Just Perfection" \
|
||||
--package-name="Just Perfection" \
|
||||
--package-version="3" \
|
||||
--output="po/main.pot"
|
||||
|
||||
for file in po/*.po
|
||||
do
|
||||
echo -n "Updating $(basename "$file" .po)"
|
||||
msgmerge -U "$file" po/main.pot
|
||||
|
||||
if grep --silent "#, fuzzy" "$file"; then
|
||||
fuzzy+=("$(basename "$file" .po)")
|
||||
fi
|
||||
done
|
||||
|
||||
if [[ -v fuzzy ]]; then
|
||||
echo "WARNING: Translations have unclear strings and need an update: ${fuzzy[*]}"
|
||||
fi
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue