<feed xmlns='http://www.w3.org/2005/Atom'>
<title>slightly-better-surveys/site/thanks.html, branch dhall-substitutes</title>
<subtitle>slightly better web-based surveys than elsewhere (even encrypted!)
</subtitle>
<link rel='alternate' type='text/html' href='https://stuebinm.eu/git/slightly-better-surveys/'/>
<entry>
<title>add translation logic, locales for en and de</title>
<updated>2021-04-08T15:53:10+00:00</updated>
<author>
<name>stuebinm</name>
</author>
<published>2021-04-08T15:44:53+00:00</published>
<link rel='alternate' type='text/html' href='https://stuebinm.eu/git/slightly-better-surveys/commit/?id=3890d8ac88b2fdfa7b54d433e8e2edf2164be6f0'/>
<id>3890d8ac88b2fdfa7b54d433e8e2edf2164be6f0</id>
<content type='text'>
This adds a basic "replace fixed keys"-approach to translating the UI of
surveys. So far this works great, but for complex things it may fail for
some languages — for now I'll just  try to take care not to add any
output that puts things in the middle of sentences, which I think should
work for a simple survey thing.

The default language is still english, which is important as the
language is declared withing a survey config — i.e. if loading it fails,
it cannot be applied, and the "enter passphrase" dialog can also not
change based on locales. This could possibly be fixed by adding an
unencrypted "header" to the encrypted configs, but for now I'm not sure
if that makes a lot of sense — it may be easier to just guess based on
the browser's settings, and otherwise fall back to some specified
default language.

The "thanks for your answers"-page also has no translation so far.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This adds a basic "replace fixed keys"-approach to translating the UI of
surveys. So far this works great, but for complex things it may fail for
some languages — for now I'll just  try to take care not to add any
output that puts things in the middle of sentences, which I think should
work for a simple survey thing.

The default language is still english, which is important as the
language is declared withing a survey config — i.e. if loading it fails,
it cannot be applied, and the "enter passphrase" dialog can also not
change based on locales. This could possibly be fixed by adding an
unencrypted "header" to the encrypted configs, but for now I'm not sure
if that makes a lot of sense — it may be easier to just guess based on
the browser's settings, and otherwise fall back to some specified
default language.

The "thanks for your answers"-page also has no translation so far.
</pre>
</div>
</content>
</entry>
<entry>
<title>site: better html attributes</title>
<updated>2021-04-08T13:26:18+00:00</updated>
<author>
<name>stuebinm</name>
</author>
<published>2021-04-08T13:24:46+00:00</published>
<link rel='alternate' type='text/html' href='https://stuebinm.eu/git/slightly-better-surveys/commit/?id=b44b99592c7faf0e1984875ec5bf03be09e83f5d'/>
<id>b44b99592c7faf0e1984875ec5bf03be09e83f5d</id>
<content type='text'>
(i.e. defined charset &amp; a main tag)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
(i.e. defined charset &amp; a main tag)
</pre>
</div>
</content>
</entry>
<entry>
<title>site: add visual feedback on survey submission</title>
<updated>2021-04-07T17:27:13+00:00</updated>
<author>
<name>stuebinm</name>
</author>
<published>2021-04-07T17:27:13+00:00</published>
<link rel='alternate' type='text/html' href='https://stuebinm.eu/git/slightly-better-surveys/commit/?id=b38dc5c1e3b87753bf23a1d335aa2d6f7dc5ee01'/>
<id>b38dc5c1e3b87753bf23a1d335aa2d6f7dc5ee01</id>
<content type='text'>
After a submission, the survey will now either redirect to a "thanks for
your answers!"-site (if the POST request had status 200) or else display
some kind of error message.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
After a submission, the survey will now either redirect to a "thanks for
your answers!"-site (if the POST request had status 200) or else display
some kind of error message.
</pre>
</div>
</content>
</entry>
</feed>
