Created
May 29, 2015 13:25
-
-
Save madx/a6a35396dab91f7b2955 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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