pupupu

simple static CMS for crappy servers
git clone https://git.ce9e.org/pupupu.git

commit
746080eb9e11fe75b6fb01e64f46bcedc55e79bc
parent
de2800ec8b17d9fdd97151203fbdf3713ad08f9f
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2018-10-20 20:39
add script to extract messages

Diffstat

A extractmessages.sh 8 ++++++++

1 files changed, 8 insertions, 0 deletions


diff --git a/extractmessages.sh b/extractmessages.sh

@@ -0,0 +1,8 @@
   -1     1 #!/bin/sh
   -1     2 extract() {
   -1     3     grep -oh "\<trans('[^']*" *.php | sed "s/trans('//"
   -1     4     grep -oh "\<trans('[^']*" static/*.js | sed "s/trans('//"
   -1     5     grep -oh "[^']*'|trans\>" templates/* | sed "s/'|trans//"
   -1     6 }
   -1     7 
   -1     8 extract | sort | uniq | sed "s/\(.*\)/'\1': ''/"