15 lines
347 B
Bash
Executable File
15 lines
347 B
Bash
Executable File
#!/bin/bash
|
|
# Script to generate mo files in a temp locale folder
|
|
# Use it only for testing purpose
|
|
|
|
rm -rf locale
|
|
mkdir locale
|
|
cd po
|
|
for lang in $(ls *.po); do
|
|
lang=${lang::-3}
|
|
mkdir -p ../locale/${lang//_/-}/LC_MESSAGES
|
|
msgfmt -c -o ../locale/${lang//_/-}/LC_MESSAGES/cachyos-hello.mo $lang.po
|
|
done
|
|
cd ..
|
|
./build/cachyos-hello --dev
|