offspot / imager-service

Create Kiwix Hotspot microSD cards online
https://imager.kiwix.org/
GNU General Public License v3.0
14 stars 6 forks source link

Where do we store landing page instructions? #75

Closed Popolechien closed 5 years ago

Popolechien commented 5 years ago

I set up a card in Arabic and the landing page is in French (see image). Since regional settings allow us to select various languages, it would be good to have the corresponding landing text onscreen. My question at this stage is where is this text stored, so I can easily copy and send it to native speakers? (I realize the question might as well go to framagit/installer, but so be it)

landing hotspot

rgaudin commented 5 years ago

It's located at https://framagit.org/ideascube/kiwix-hotspot/blob/master/ansiblecube/roles/captive_portal/templates/cap.py.j2

Translatable part:

TRANSLATIONS = {
    "fr": {
        "banner": u"Bienvenue sur «<em>{{ hotspot_name }}</em>» "
        u"(<a href=\"http://{{ fqdn }}/\">{{ fqdn }}</a>)",
        "title": u"<em>{{ project_name }}</em> est une ressource de "
        u"contenus libres d'accès.",
        "reminder": u"Merci de vous rappeler des points suivants :",
        "access": u"L'accès à ces contenus ne se fait "
        u"<strong>qu'à travers <em>http://{{ fqdn }}/</em></strong>. "
        u"<u>Souvenez-vous en !</u>",
        "internet": u"Cette ressource peut fournir un accès à Internet. "
        u"Dans ce cas, il faudra vous <em>identifier</em> pour y accèder.",
        "prompt": u"Cette page vous sera alors présenté <strong>après 15mn</strong> "
        u"d'inactivité.",
        "https": u"Surfant sur un site sécurisé, le navigateur pourrait vous afficher "
        u"un <em>avertissement de sécurité</em> au lieu d'afficher cette page. "
        u"Ouvrez-en simplement une nouvelle "
        u"sur un site non-sécurisé et identifiez-vous à nouveau.",
        "go_button": u"Aller à {{ fqdn }}",
        "internet_button": u"M'identifier et accèder à Internet",
    },
    "en": {
        "banner": u"Entering “<em>{{ hotspot_name }}</em>” "
        u"(<a href=\"http://{{ fqdn }}/\">{{ fqdn }}</a>)",
        "title": u"<em>{{ project_name }}</em> is a free-to-use, content-enabled box.",
        "reminder": u"Please, keep the following in mind:",
        "access": u"Access to this box's content is done "
        u"<strong>solely via <em>http://{{ fqdn }}/</em></strong>. "
        u"<u>Remember-it !</u>",
        "internet": u"This box may also provide access to Internet. "
        u"You need to <em>log-in</em> to the network to access it.",
        "prompt": u"You will then be prompted with this page <strong>after "
        u"every 15mn</strong> of inactivity.",
        "https": u"When browsing a secure website, your browser might display "
        u"a <em>Security Warning</em> instead of displaying this page. "
        u"Just open a new page onto a non-secure website to log-in again.",
        "go_button": u"Go to {{ fqdn }}",
        "internet_button": u"Log me in and access Internet",
    },
}