Skip to content

Instantly share code, notes, and snippets.

@madx
Created May 29, 2015 13:25
Show Gist options
  • Save madx/a6a35396dab91f7b2955 to your computer and use it in GitHub Desktop.
Save madx/a6a35396dab91f7b2955 to your computer and use it in GitHub Desktop.
#!/bin/bash
msgid() {
FLAG=0
echo msgid '"'$*'"'
}
msgstr() {
if [ $FLAG -eq 0 ]; then
echo msgstr '"'$*'"'
FLAG=1
fi
}
source $1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment