<commit_before>#!/bin/bash

# Create po files for all supported languages

for l in en-US es db_LB it_CH arq; do
    mkdir -p locale/${l}/LC_MESSAGES/
    for t in messages client; do
        if test -f ./locale/templates/LC_MESSAGES/${t}.pot; then
            if test -f ./locale/${l}/LC_MESSAGES/${t}.po; then
                msgmerge ./locale/${l}/LC_MESSAGES/${t}.po \
                    ./locale/templates/LC_MESSAGES/${t}.pot \
                    --output-file=./locale/${l}/LC_MESSAGES/${t}.po 
            else
                msginit --no-translator \
                    --input=./locale/templates/LC_MESSAGES/${t}.pot \
                    --output-file=./locale/${l}/LC_MESSAGES/${t}.po \
                    -l ${l}
            fi
            msgfmt ./locale/${l}/LC_MESSAGES/${t}.po \
                --output-file=./locale/${l}/LC_MESSAGES/${t}.mo \
                ${NULL}
        fi
    done
done<commit_msg>fix... again, for languages, I guess it's a bug in i18n-abide… well fuck firefox<commit_after>#!/bin/bash

# Create po files for all supported languages

for l in en_US es db_LB it_CH arq; do
    mkdir -p locale/${l}/LC_MESSAGES/
    for t in messages client; do
        if test -f ./locale/templates/LC_MESSAGES/${t}.pot; then
            if test -f ./locale/${l}/LC_MESSAGES/${t}.po; then
                msgmerge ./locale/${l}/LC_MESSAGES/${t}.po \
                    ./locale/templates/LC_MESSAGES/${t}.pot \
                    --output-file=./locale/${l}/LC_MESSAGES/${t}.po 
            else
                msginit --no-translator \
                    --input=./locale/templates/LC_MESSAGES/${t}.pot \
                    --output-file=./locale/${l}/LC_MESSAGES/${t}.po \
                    -l ${l}
            fi
            msgfmt ./locale/${l}/LC_MESSAGES/${t}.po \
                --output-file=./locale/${l}/LC_MESSAGES/${t}.mo \
                ${NULL}
        fi
    done
done
{'fraction_non_alphanumeric': 0.1629359708485164, 'fraction_numerical': 0.001041124414367517, 'mean_word_length': 1.411543287327478, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 1, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7355264', 'n_tokens_mistral': 627, 'n_tokens_neox': 607, 'n_words': 122}