--
--
Helios Voting Google Group
To post: helios...@googlegroups.com
To unsubscribe: helios-votin...@googlegroups.com
More: http://groups.google.com/group/helios-voting?hl=en
---
You received this message because you are subscribed to the Google Groups "Helios Voting" group.
To unsubscribe from this group and stop receiving emails from it, send an email to helios-votin...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/helios-voting/13a96b09-2e1c-41d3-bf78-beb3f43499efn%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/helios-voting/6456a2e6-5bb7-423e-be5e-f562cb2d4539n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/helios-voting/6456a2e6-5bb7-423e-be5e-f562cb2d4539n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/helios-voting/48f4024a-f53c-4edb-9b5c-c27a29a24c1dn%40googlegroups.com.
Things are not that straight forward. Some of the things on
Helios like the booth and the text on emails are not not django
translatable. Some are meant to run on the client machine or they
are just a django templates which has a sketchy way for
internationalization.
I have been working and contributing to Shirlei's fork, and although you can generate a .po file for doing the translation this only helps with the Django part.
My tip here would be to use her fork because it already has the
i18n annotation on messages, and write your own language .po file.
Then you need to rewrite the booth and the emails manually. This
is much easier than staring from
Maybe internationalization is a good feature to work on after the
big migration python 3 finishes. Having them by default on Ben's
repository would help a lot of people.
Jean
To view this discussion on the web visit https://groups.google.com/d/msgid/helios-voting/2F20E301-4E3D-4351-998A-49BCA16D9799%40gmail.com.
Hi Oleska,
I believe that bringing localization support for Ben's repo
will be the final answer to that. I can help you to do that once
phyton3 is the default and we know that we will be able to PR the
change in there.
Taking on what you mentioned, I think it is important to do
some revamp on the authentication modules part. Some problems in
there is the lack of maintenance or documentation in some default
modules (CAS for example), as well as the inability to mix and
match auth modules, thus making elections fixed on a specific
identity provider. Another issue regards not being able to stack
authentications (for example, LDAP + password, or Digital
Certificates + LDAP + Password). We had this requirement in the
past, and had to do a workaround to make it happen. Definitely not
beautiful, but functional.
We have been conducting many (100+) elections with helios,
some being very big use cases. We did twice a 142k voters and once
a 38k voter. We have now for March 2021 another one for 43k
voters. They usually run with some of our customization because
Helios on phyton2 has a performance ceiling even when run on bare
metal. So we are very excited to see it moving to python3, what
may easy a bit that.
Regarding Shirlei's modules, they are very useful when you use Helios as an institution-wide solution (LDAP) or in a multi-institution (Shibboleth) scenario. We also developed a digital certificate module (which is PRed on Shirlei's repo) and an Ethereum Smart-Contract patch that helps with keeping track on the configuration and publicizing the Bulletin-Board (not casting votes because this is the Achilles heel of blockchain voting). These were used on some of our specific elections, but can be made available to the community.
Regards,
Jean
To view this discussion on the web visit https://groups.google.com/d/msgid/helios-voting/30ea5199-862b-4834-a1ca-757d68b7ec2dn%40googlegroups.com.
Dear Oleska,
Em 01/02/2021 15:15, Oleksa Stasevych escreveu:
> I faced with the challenge, that it is completely Javascript based and
> cannot find the way to read the strings from the localisation files.
That's what I wanted to point out in here:
"Things are not that straight forward. Some of the things on Helios like
the booth and the text on emails are not not django translatable. Some
are meant to run on the client machine or they are just a django
templates which has a sketchy way for internationalization."
To use the catalog, just pull in the dynamically generated script like this:
This uses reverse URL lookup to find the URL of the JavaScript catalog view. When the catalog is loaded, your JavaScript code can use the following methods:
The gettext function behaves similarly to the standard gettext interface within your Python code:
But a dummy solution for that is having i18n directories for each
language. For example Shirlei's pt-BR could be moved one directory below
a directory called pt-BR and yours could be on uk-UA. Then whenever you
configure Helios in a localized way it will find things there.
If this is to be worked out as a new feature for Helios it would be nice
to hear from others if we are going the right direction.
Oleska,
If you have a fork where I can join and help you I would be
glad to do so. My github account is jeanmartina
Regarding your issue, did you import django.views.i18n and changed accordingly urlpatterns in urls.py?
To me a reason for django-admin makemessages -d djangojs not working is because django is not seeing you import anywhere the i18n for JavaScriptCatalog
Take a look here: https://docs.djangoproject.com/en/2.2/topics/i18n/translation/#module-django.views.i18n
Regards,
Jean
--
--
Helios Voting Google Group
To post: helios...@googlegroups.com
To unsubscribe: helios-votin...@googlegroups.com
More: http://groups.google.com/group/helios-voting?hl=en
---
You received this message because you are subscribed to the Google Groups "Helios Voting" group.
To unsubscribe from this group and stop receiving emails from it, send an email to helios-votin...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/helios-voting/15588679-2a8f-4874-9916-6f1d39a9f9f3n%40googlegroups.com.
--
--
Helios Voting Google Group
To post: helios...@googlegroups.com
To unsubscribe: helios-votin...@googlegroups.com
More: http://groups.google.com/group/helios-voting?hl=en
---
You received this message because you are subscribed to the Google Groups "Helios Voting" group.
To unsubscribe from this group and stop receiving emails from it, send an email to helios-votin...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/helios-voting/8396243a-47c2-4d9e-b669-9326353c973en%40googlegroups.com.
Hi Oleska,
Can you share the link for your repo? I am interested in taking a look on your effort for internationalization. In the next week I will have sometime to help on that.
Jean
To view this discussion on the web visit https://groups.google.com/d/msgid/helios-voting/bd3cc7d5-9167-4066-a37c-4aaadd64ad05n%40googlegroups.com.