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
 
@@ -29,31 +29,25 @@
 
            </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">
 
@@ -90,61 +84,37 @@
 
                  </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>
c3l_membership/templates/member.html
Show inline comments
 
@@ -111,25 +111,25 @@
 
          </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>
0 comments (0 inline, 0 general)