mirror of
https://github.com/GradienceTeam/Gradience.git
synced 2024-11-02 11:43:58 +00:00
03f511d109
Signed-off-by: 0xMRTT <0xMRTT@tuta.io>
10 lines
687 B
Bash
Executable file
10 lines
687 B
Bash
Executable file
#!/bin/bash
|
|
po_dir=$(dirname "$(realpath "$0")")
|
|
xgettext -f "$po_dir"/POTFILES -o "$po_dir"/AdwCustomizer.pot --add-comments=Translators --keyword=_ --keyword=C_1c,2 --from-code=UTF-8
|
|
sed -i "s/SOME DESCRIPTIVE TITLE./Gradience POT file/" "$po_dir"/AdwCustomizer.pot
|
|
sed -i "s/YEAR THE PACKAGE'S COPYRIGHT HOLDER/$(date +%Y) Gradience Team/" "$po_dir"/AdwCustomizer.pot
|
|
sed -i "s@same license as the PACKAGE package.@GNU GPLv3 license.@" "$po_dir"/AdwCustomizer.pot
|
|
sed -i "s/FIRST AUTHOR <EMAIL@ADDRESS>, YEAR./Gradience Team, $(date +%Y)./" "$po_dir"/AdwCustomizer.pot
|
|
|
|
regex="$po_dir/([a-zA-Z_]*).po"
|
|
find "$po_dir" -type f -name "*.po" | sed -rn "s:$regex:\1:p" > "$po_dir/LINGUAS"
|