...
 
Commits (2)
.PHONY: help doctor install reset-db translations
.DEFAULT_GOAL := help
help:
@echo "\033[33mUsage:\033[0m"
@echo " make [command]"
@echo ""
@echo "\033[33mAvailable commands:\033[0m"
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' Makefile | sort \
| awk 'BEGIN {FS = ":.*?## "}; {printf " \033[32m%s\033[0m___%s\n", $$1, $$2}' | column -ts___
doctor: ## Check that everything is installed to use this application
@echo "\033[1m\033[36m==> Check required dependencies\033[0m\033[21m"
@which composer >/dev/null 2>&1 && echo "\033[32mcomposer installed\033[0m" || echo "\033[31mcomposer not installed\033[0m"
@echo "\033[1m\033[36m==> Check configuration\033[0m\033[21m"
@test -s ./app/config.php && echo "\033[32mConfiguration OK\033[0m" || echo "\033[31mYou need to copy app/config.php.sample to app/config.php in order to configure your application.\033[0m"
@echo "\033[1m\033[36m==> Check optional dependencies\033[0m\033[21m"
@which msgmerge >/dev/null 2>&1 && echo "\033[32mmsgmerge installed\033[0m" || echo "\033[31mmsgmerge not installed\033[0m"
@which msgfmt >/dev/null 2>&1 && echo "\033[32mmsgfmt installed\033[0m" || echo "\033[31mmsgfmt not installed\033[0m"
@which xgettext >/dev/null 2>&1 && echo "\033[32mxgettext installed\033[0m" || echo "\033[31mxgettext not installed\033[0m"
install: ## Install the application
@echo "\033[1m\033[36m==> Install Composer dependencies\033[0m\033[21m"
@composer install
server-start: server-stop ## Launch a local server
@php -S 127.0.0.1:8000 >> ./var/log/server.log &
@echo "\033[32mServer running. (http://127.0.0.1:8000)\033[0m"
server-stop: ## Stop local server if running
@ps -aux | grep "[p]hp -S 127.0.0.1:8000" | grep -v grep | awk '{print $$2}' | xargs -r -n 1 kill
@echo "\033[32mServer stopped. (http://127.0.0.1:8000)\033[0m"
translations: locales/fr_FR/LC_MESSAGES/messages.mo locales/en_US/LC_MESSAGES/messages.mo ## Generate translations
messages.pot: app/*.php templates/*.html
[ -r $@ ] || touch $@
xgettext --package-name=LQDNCampaign --package-version=2016.1 --force-po -o $@ --keyword=__ --keyword=_ --from-code=UTF-8 $^
locales/%/LC_MESSAGES/messages.po: messages.pot
msgmerge -v -U $@ $^
locales/fr_FR/LC_MESSAGES/messages.mo: locales/fr_FR/LC_MESSAGES/messages.po
msgfmt $^ -o $@
locales/en_US/LC_MESSAGES/messages.mo: locales/en_US/LC_MESSAGES/messages.po
msgfmt $^ -o $@
#: templates/campaign.html:5 templates/intro.html:11
msgid "Act Now!"
msgstr ""
#: templates/campaign.html:12 templates/intro.html:23
msgid "Visit Us!"
msgstr ""
#: templates/feedbackform.html:4
msgid "0. Initialising the call"
msgstr ""
#: templates/feedbackform.html:5
msgid "1. Calling you"
msgstr ""
#: templates/feedbackform.html:6
msgid "2. When ready, please dial 1 on your phone"
msgstr ""
#: templates/feedbackform.html:7
msgid "3. Calling "
msgstr ""
#: templates/feedbackform.html:8
msgid "4. Connected to "
msgstr ""
#: templates/feedbackform.html:27
msgid "Phone number"
msgstr ""
#: templates/feedbackform.html:60
msgid "Feedback Form"
msgstr ""
#: templates/feedbackform.html:61
msgid ""
"Please tell us what happened if you were able to talk to someone. Your "
"feedback is important to us."
msgstr ""
#: templates/footer.html:6
msgid "This campaign is powered by the piphone"
msgstr ""
#: templates/footer.html:14
msgid "Get in touch with LQDN"
msgstr ""
#: templates/footer.html:15
msgid "Code licensed under the AGPL v3.0+"
msgstr ""
#: templates/footer.html:7
msgid ""
"The piphone is a campaigning tool developped by <a href=\"https://www."
"laquadrature.net/\" class=\"blue-grey-text text-darken-2\">La Quadrature du "
"Net</a>"
msgstr ""
#: templates/contact.html:30 templates/home.html:36
msgid "Call for free"
msgstr ""
#: templates/contact.html:36
msgid "Your phone number:"
msgstr ""
#: templates/contact.html:46
msgid "More info"
msgstr ""
#: templates/contact.html:33
msgid ""
"If you want to call for free, you must provide us with your phone number "
msgstr ""
#: templates/toolbar.html:4
msgid "Act"
msgstr ""
#: templates/toolbar.html:5
msgid "About the campaign"
msgstr ""
#: templates/toolbar.html:6
msgid "About the piphone"
msgstr ""
#: templates/sidebar.html:18
msgid "Home"
msgstr ""
#: templates/sidebar.html:19
msgid "Choose a representative to call"
msgstr ""
#: templates/sidebar.html:20 templates/argumentation.html:3
msgid "Arguments"
msgstr ""
#: templates/argumentation.html:5
msgid ""
"Those are arguments we provide you to help you convince the representative "
"you will call."
msgstr ""
#: templates/call.html:6
msgid "Reach out to "
msgstr ""
#: templates/call.html:11
msgid "Call at your expense"
msgstr ""
#: templates/call.html:12
msgid ""
"Here is the number of the selected MEP - you can either dial it from your "
"phone or push the button if any VoIP client is installed on your device."
msgstr ""
#: templates/thankyou.html:4
msgid "Thank you for your call! &lt;3"
msgstr ""
#: templates/thankyou.html:6
msgid "Call another representative"
msgstr ""
#: templates/piphone.html:4
msgid "What is the piPhone?"
msgstr ""
#: templates/piphone.html:7
msgid ""
"The piphone is a tool developped by <a href=\"https://www.laquadrature.net"
"\">La Quadrature du Net</a>, a French NGO specialised in digital rights "
"issues."
msgstr ""
#: templates/piphone.html:8
msgid ""
"Its purpose is to ease mobilisation of people toward influencing the "
"representatives elements of democracy, by removing the cost of such calls "
"and gathering all needed data."
msgstr ""
#: templates/piphone.html:11
msgid ""
"The source code is distributed under the term of the AGPL v3.0+ and is open "
"to contribution on <a href=\"https://git.laquadrature.net\">LQDN's own "
"gitlab</a>"
msgstr ""
#: templates/home.html:5
msgid "Call a representative and make your voice heard!"
msgstr ""
#: templates/home.html:40
msgid "We need your phone number to initiate the call"
msgstr ""
#: templates/campaign.html:5 templates/intro.html:11
msgid "Act Now!"
msgstr ""
#: templates/campaign.html:12 templates/intro.html:23
msgid "Visit Us!"
msgstr ""
#: templates/feedbackform.html:4
msgid "0. Initialising the call"
msgstr ""
#: templates/feedbackform.html:5
msgid "1. Calling you"
msgstr ""
#: templates/feedbackform.html:6
msgid "2. When ready, please dial 1 on your phone"
msgstr ""
#: templates/feedbackform.html:7
msgid "3. Calling "
msgstr ""
#: templates/feedbackform.html:8
msgid "4. Connected to "
msgstr ""
#: templates/feedbackform.html:27
msgid "Phone number"
msgstr ""
#: templates/feedbackform.html:60
msgid "Feedback Form"
msgstr ""
#: templates/feedbackform.html:61
msgid ""
"Please tell us what happened if you were able to talk to someone. Your "
"feedback is important to us."
msgstr ""
#: templates/footer.html:6
msgid "This campaign is powered by the piphone"
msgstr ""
#: templates/footer.html:14
msgid "Get in touch with LQDN"
msgstr ""
#: templates/footer.html:15
msgid "Code licensed under the AGPL v3.0+"
msgstr ""
#: templates/footer.html:7
msgid ""
"The piphone is a campaigning tool developped by <a href=\"https://www."
"laquadrature.net/\" class=\"blue-grey-text text-darken-2\">La Quadrature du "
"Net</a>"
msgstr ""
#: templates/contact.html:30 templates/home.html:36
msgid "Call for free"
msgstr ""
#: templates/contact.html:36
msgid "Your phone number:"
msgstr ""
#: templates/contact.html:46
msgid "More info"
msgstr ""
#: templates/contact.html:33
msgid ""
"If you want to call for free, you must provide us with your phone number "
msgstr ""
#: templates/toolbar.html:4
msgid "Act"
msgstr ""
#: templates/toolbar.html:5
msgid "About the campaign"
msgstr ""
#: templates/toolbar.html:6
msgid "About the piphone"
msgstr ""
#: templates/sidebar.html:18
msgid "Home"
msgstr ""
#: templates/sidebar.html:19
msgid "Choose a representative to call"
msgstr ""
#: templates/sidebar.html:20 templates/argumentation.html:3
msgid "Arguments"
msgstr ""
#: templates/argumentation.html:5
msgid ""
"Those are arguments we provide you to help you convince the representative "
"you will call."
msgstr ""
#: templates/call.html:6
msgid "Reach out to "
msgstr ""
#: templates/call.html:11
msgid "Call at your expense"
msgstr ""
#: templates/call.html:12
msgid ""
"Here is the number of the selected MEP - you can either dial it from your "
"phone or push the button if any VoIP client is installed on your device."
msgstr ""
#: templates/thankyou.html:4
msgid "Thank you for your call! &lt;3"
msgstr ""
#: templates/thankyou.html:6
msgid "Call another representative"
msgstr ""
#: templates/piphone.html:4
msgid "What is the piPhone?"
msgstr ""
#: templates/piphone.html:7
msgid ""
"The piphone is a tool developped by <a href=\"https://www.laquadrature.net"
"\">La Quadrature du Net</a>, a French NGO specialised in digital rights "
"issues."
msgstr ""
#: templates/piphone.html:8
msgid ""
"Its purpose is to ease mobilisation of people toward influencing the "
"representatives elements of democracy, by removing the cost of such calls "
"and gathering all needed data."
msgstr ""
#: templates/piphone.html:11
msgid ""
"The source code is distributed under the term of the AGPL v3.0+ and is open "
"to contribution on <a href=\"https://git.laquadrature.net\">LQDN's own "
"gitlab</a>"
msgstr ""
#: templates/home.html:5
msgid "Call a representative and make your voice heard!"
msgstr ""
#: templates/home.html:40
msgid "We need your phone number to initiate the call"
msgstr ""
......@@ -7,24 +7,9 @@
</div>
<div class="modal-body">
<div class="row">
<div class="col-sm-6">
<h2>{{ _("Call for free") }}</h2>
<form method="post" action="/call/{{ @contact.id }}">
<input type="text" id="contact_id" name="contact_id" hidden="hidden" value="{{ @contact.id }}">
<p>{{ _("If you want to call for free, you must provide us with your phone number (the PiPhone will call that number to initiate the communication).") }}</p>
<p>
<label for="phone">{{_("Your phone number:") }}</label>
<input type="text" name="phone" id="phone" placeholder="+33123456789001" />
</p>
<p>
{{ _('Starting with your <a href="https://en.wikipedia.org/wiki/List_of_country_calling_codes#Zones_3-4:_Europe">country code</a>, without the initial 0') }}
</p>
<input class="btn btn-default" type="submit" value="{{ _("I'm ready, call me") }}" />
</form>
</div>
<div class="col-sm-6">
<div class="col-sm-10">
<h2>{{ _("Call at your expense") }}</h2>
<p>{{ _("If you don't want to call for free, here is the number of the current MEP - you can either dial it from your phone or push the button if any VoIP client is installed on your device.") }}</p>
<p>{{ _("Here is the number of the selected MEP - you can either dial it from your phone or push the button if any VoIP client is installed on your device.") }}</p>
<a class="btn btn-default" href="tel:{{ @contact.phone }}" target="_blank">☎ {{ @contact.phone }}</a>
</div>
</div>
......