Changeset - 9b10b2b93ba1
[Not reviewed]
i18n
0 2 0
Dennis Fink - 3 years ago 2022-01-17 10:26:49
dennis.fink@c3l.lu
Fix some translatable strings
2 files changed with 7 insertions and 37 deletions:
0 comments (0 inline, 0 general)
c3l_membership/templates/index.html
Show inline comments
 
@@ -17,55 +17,49 @@
 
          <ul class="pure-menu-list">
 
            <li class="pure-menu-item">
 
              <a href="{{ url_for("root.index", lang_code="en") }}" class="pure-menu-link">EN</a>
 
            </li>
 
            <li class="pure-menu-item">
 
              <a href="{{ url_for("root.index", lang_code="de") }}" class="pure-menu-link">DE</a>
 
            </li>
 
            <li class="pure-menu-item">
 
              <a href="{{ url_for("root.index", lang_code="lb") }}" class="pure-menu-link">LB</a>
 
            </li>
 
            <li class="pure-menu-item">
 
              <a href="{{ url_for("root.index", lang_code="fr") }}" class="pure-menu-link">FR</a>
 
            </li>
 
          </ul>
 
        </div>
 
      </div>
 
      <div class="pure-u-md-1-3"></div>
 
    </div>
 
    <div class="pure-g">
 
      <div class="pure-u-md-1-3"></div>
 
      <div class="pure-u-1-1 pure-u-md-1-3">
 
        <img src="{{ url_for('static', filename='images/logo.png') }}" class="pure-img" />
 
        <h1>{% trans %}Membership Application{% endtrans %}</h1>
 
        <h2>{% trans %}How to use this form{% endtrans %}</h2>
 
        <p>
 
          {% trans %}
 
            Fill out this form and click on "Become a member". Afterwards you will be presented with a PDF, which you have
 
            to send to info@c3l.lu or bring it to one of our next events. Print it or save it to your local hardware,
 
            because we don't save a copy on our servers for data protection reasons!
 
          {% endtrans %}
 
        </p>
 
        <p>{% trans %}Fill out this form and click on "Become a member". Afterwards you will be presented with a PDF, which you have to send to info@c3l.lu or bring it to one of our next events. Print it or save it to your local hardware, because we don't save a copy on our servers for data protection reasons!{% endtrans %}</p>
 
        {% if form.errors %}
 
          {% for fieldname, errors in form.errors.items() %}
 
            {% for error in errors %}
 
              <p>{{ fieldname }} - {{ error }}</p>
 
            {% endfor %}
 
          {% endfor %}
 
        {% endif %}
 
        <form class="pure-form pure-form-stacked" method="POST" action="/">
 
          <fieldset>
 
            {{ form.hidden_tag() }}
 
            <legend>{% trans %}Required information{% endtrans %}</legend>
 
            <div class="pure-g">
 
              <div class="pure-u-1-1">
 
                <b>{{ form.username.label }}</b>
 
                {{ form.username(required=True, class="pure-u-1-1") }}
 
              </div>
 
            </div>
 
            <div class="pure-g">
 
              <div class="pure-u-1-1">
 
                <b>{{ form.email.label }}</b>
 
                {{ form.email(required=True, class="pure-u-1-1") }}
 
              </div>
 
            </div>
 
            <div class="pure-g">
 
@@ -78,85 +72,61 @@
 
              <div class="pure-u-1-1">
 
                <b>{{ form.membership.label }}</b>
 
                {% for option in form.membership %}
 
                  <label for="{{ option.id }}" class="pure-radio pure-u-1-1">
 
                    {{ option() }} {{ option.label.text }}
 
                  </label>
 
                {% endfor %}
 
                <div class="pure-g">
 
                  <div class="pure-u-1-1">
 
                    <label for="{{ form.student.id }}" class="pure-checkbox">
 
                      {{ form.student }} {{ form.student.label.text|safe}}
 
                    </label>
 
                  </div>
 
                </div>
 
                <div class="pure-g">
 
                  <div class="pure-u-1-1">
 
                    <label for="{{ form.starving.id }}" class="pure-checkbox">
 
                      {{ form.starving }} {{ form.starving.label.text|safe}}
 
                    </label>
 
                  </div>
 
                </div>
 
                <h3>{% trans %}What's difference between the different membership options?{% endtrans %}</h3>
 
                <p>{% trans %}All the options include to following benefits:{% endtrans %}</p>
 
                <ul>
 
                  <li>
 
                    {% trans %}
 
                      Access to the <a href="https://wiki.c3l.lu/doku.php?id=organization:membership#benefits">services</a> run by us
 
                    {% endtrans %}
 
                  </li>
 
                  <li>
 
                    {% trans %}
 
                      Access to our <a href="https://wiki.c3l.lu/doku.php?id=chaosstuff:bootstrap">hackerspace: ChaosStuff</a>
 
                    {% endtrans %}
 
                  </li>
 
                  <li>{% trans %}Access to the <a href="https://wiki.c3l.lu/doku.php?id=organization:membership#benefits">services</a> run by us{% endtrans %}</li>
 
                  <li>{% trans %}Access to our <a href="https://wiki.c3l.lu/doku.php?id=chaosstuff:bootstrap">hackerspace: ChaosStuff</a>{% endtrans %}</li>
 
                </ul>
 
                <p>{% trans %}Becoming a regular member gives you these additional benefits:{% endtrans%}<p>
 
                  <ul>
 
                    <li>{% trans %}Voting rights on general assemblys{% endtrans %}</li>
 
                    <li>{% trans %}Access to our internal mailinglist{% endtrans %}</li>
 
                  </ul>
 
                  <p>
 
                    {% trans %}
 
                      You can read more on the membership <a href="https://wiki.c3l.lu/doku.php?id=organization:membership">here</a>.
 
                    {% endtrans %}
 
                  </p>
 
                  <p>{% trans %}You can read more on the membership <a href="https://wiki.c3l.lu/doku.php?id=organization:membership">here</a>.{% endtrans %}</p>
 
                  <h3>{% trans %}What are the membership fees?{% endtrans %}</h3>
 
                  <p>
 
                    {% trans regular_fee=config["REGULAR_FEE"], supporting_fee=config["SUPPORTING_FEE"] %}
 
                      The membership fee for the regular membership is {{ regular_fee }}€ per year. The membership
 
                      fee for the supporting membership is {{ supporting_fee }}€ per year. If you are a student,
 
                      all membership fees are {{ supporting_fee }}€ per year. For that please select the
 
                      corresponding option.
 
                    {% endtrans %}
 
                  </p>
 
                  <p>{% trans regular_fee=config["REGULAR_FEE"], supporting_fee=config["SUPPORTING_FEE"] %}The membership fee for the regular membership is {{ regular_fee }}€ per year. The membership fee for the supporting membership is {{ supporting_fee }}€ per year. If you are a student, all membership fees are {{ supporting_fee }}€ per year. For that please select the corresponding option.{% endtrans %}</p>
 
                  <h3>{% trans %}I cannot afford the membership?{% endtrans %}</h3>
 
                  <p>
 
                    {% trans %}
 
                      If you cannot afford the membership, please contact us via info@c3l.lu first, before filling out the
 
                      membership form. We will try to find a solution together.
 
                    {% endtrans %}
 
                  </p>
 
                  <p>{% trans %}If you cannot afford the membership, please contact us via info@c3l.lu first, before filling out the membership form. We will try to find a solution together.{% endtrans %}</p>
 
                </div>
 
                </div>
 
                <div class="pure-g">
 
                  <div class="pure-u-1-1">
 
                    <b>{{ form.payment.label }}</b>
 
                    {% for option in form.payment %}
 
                      <label for="{{ option.id }}" class="pure-radio pure-u-1-1">
 
                        {{ option() }} {{ option.label.text }}
 
                      </label>
 
                    {% endfor %}
 
                  </div>
 
                </div>
 
                <legend>{% trans %}Additional information{% endtrans %}</legend>
 
                <div class="pure-g">
 
                  <div class="pure-u-1-1">
 
                    <b>{{ form.birthday.label }}</b>
 
                    {{ form.birthday(class="pure-u-1-1") }}
 
                  </div>
 
                </div>
 
                <div class="pure-g">
 
                  <div class="pure-u-1-1">
 
                    <b>{{ form.street.label }}</b>
 
                    {{ form.street(class="pure-u-1-1") }}
 
                  </div>
c3l_membership/templates/member.html
Show inline comments
 
@@ -99,49 +99,49 @@
 
        </div>
 
        {% set bitcoin_url="bitcoin:" + config["BITCOIN_ADDRESS"] + "?amount={amount}&label=Membership Fee {year} {username}&message=Membership Fee {year} {username}".format(amount=price, year=year, username=form.username.data) %}
 
        <div><img class="btcqrcode" src="{{ qrcode(bitcoin_url) }}" /></div>
 
      </div>
 
    {% elif form.payment.data == 'ethereum' %}
 
      <div class="btccontainer">
 
        <div>
 
          <ul class="btctext">
 
            <li><b>{% trans %}Address:{% endtrans %}</b> {{ config["ETHEREUM_ADDRESS"] }}</li>
 
            <li><b>{% trans %}Label:{% endtrans %}</b> Membership Fee</li>
 
            <li><b>{% trans %}Message:{% endtrans %}</b> {{ year }} {{ form.username.data }}</li>
 
            <li><b>{% trans %}Amount:{% endtrans %}</b> {{ price }} ETH</li>
 
          </ul>
 
        </div>
 
        {% set ethereum_url=config["ETHEREUM_ADDRESS"] %}
 
        <div><img class="btcqrcode" src="{{ qrcode(ethereum_url) }}" /></div>
 
      </div>
 
    {% elif form.payment.data == 'monero' %}
 
      <div class="btccontainer">
 
        <div>
 
          <ul class="btctext">
 
            <li><b>{% trans %}Address:{% endtrans %}</b> {{ config["MONERO_ADDRESS"] }}</li>
 
            <li><b>{% trans %}Label:{% endtrans %}</b> Membership Fee</li>
 
            <li><b>{% trans %}Message:{% endtrans %}</b> {{ year }} {{ form.username.data }}</li>
 
            <li><b>{% trans %}Amount:{% endtrans %2}</b> {{ price }} XMR</li>
 
            <li><b>{% trans %}Amount:{% endtrans %}</b> {{ price }} XMR</li>
 
              </ul>
 
              </div>
 
              {% set monero_url=config["MONERO_ADDRESS"] %}
 
              <div><img class="btcqrcode" src="{{ qrcode(monero_url) }}" /></div>
 
              </div>
 
            {% elif form.payment.data == 'zcash' %}
 
              <div class="btccontainer">
 
                <div>
 
                  <ul class="btctext">
 
                    <li><b>{% trans %}Address:{% endtrans %}</b> {{ config["ZCASH_ADDRESS"] }}</li>
 
                    <li><b>{% trans %}Label:{% endtrans %}</b> Membership Fee</li>
 
                    <li><b>{% trans %}Message:{% endtrans %}</b> {{ year }} {{ form.username.data }}</li>
 
                    <li><b>{% trans %}Amount:{% endtrans %}</b> {{ price }} ZEC</li>
 
                  </ul>
 
                </div>
 
                {% set zcash_url=config["ZCASH_ADDRESS"] %}
 
                <div><img class="btcqrcode" src="{{ qrcode(zcash_url) }}" /></div>
 
              </div>
 
            {% elif form.payment.data == 'digicash' %}
 
              <div class="digicash">
 
                {% set digicash_url='https://pos.digica.sh/qrcode/generator?merchantId=CHAOSPC1&amount={amount}&transactionReference=Membership_{username}'.format(amount=price, username=form.username.data) %}
 
                <div><p>{% trans %}Pay with digicash!{% endtrans %}</p></div>
 
                <div><img src="{{ digicash_url }}" /></div>
 
              </div>
0 comments (0 inline, 0 general)