"Fossies" - the Fresh Open Source Software Archive

Member "sarg-2.4.0/sarg-php/update-po.sh" (30 Jan 2017, 220 Bytes) of package /linux/privat/sarg-2.4.0.tar.gz:

As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 #!/bin/sh
    3 # quick and non portable hack to update the po files from bash
    4 xgettext -o translate.this *.php
    5 for f in locale/*/LC_MESSAGES/messages.po
    6 do
    7     echo "Updating $f"
    8     msgmerge --update "$f" translate.this 
    9 done