Skip to content

Commit

Permalink
Make recent votes descriptions more individual
Browse files Browse the repository at this point in the history
  • Loading branch information
ajparsons committed Feb 15, 2024
1 parent 737e94c commit 66d1f7f
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 1 deletion.
20 changes: 20 additions & 0 deletions locale/TheyWorkForYou.pot
Original file line number Diff line number Diff line change
Expand Up @@ -1628,6 +1628,26 @@ msgid "What is this?"
msgstr ""

#: www/includes/easyparliament/templates/html/divisions/index.php:47
msgid "This list contains votes from the House of Commons."
msgstr ""

#: www/includes/easyparliament/templates/html/divisions/index.php:49
msgid "This list contains votes from the House of Lords."
msgstr ""

#: www/includes/easyparliament/templates/html/divisions/index.php:51
msgid "This list contains votes from Public Bill Committees."
msgstr ""

#: www/includes/easyparliament/templates/html/divisions/index.php:53
msgid "This list contains votes from the Scottish Parliament."
msgstr ""

#: www/includes/easyparliament/templates/html/divisions/index.php:55
msgid "This list contains votes from the Senedd."
msgstr ""

#: www/includes/easyparliament/templates/html/divisions/index.php:57
msgid ""
"This list contains votes from the House of Commons, House of Lords, Public "
"Bill Committees, Senedd, and the Scottish Parliament."
Expand Down
20 changes: 20 additions & 0 deletions locale/cy_GB.UTF-8/LC_MESSAGES/TheyWorkForYou.po
Original file line number Diff line number Diff line change
Expand Up @@ -1547,6 +1547,26 @@ msgid "What is this?"
msgstr "Beth yw hwn?"

#: www/includes/easyparliament/templates/html/divisions/index.php:47
msgid "This list contains votes from the House of Commons."
msgstr "Mae'r rhestr hon yn cynnwys pleidleisiau o Tŷ'r Arglwyddi"

#: www/includes/easyparliament/templates/html/divisions/index.php:49
msgid "This list contains votes from the House of Lords."
msgstr "Mae'r rhestr hon yn cynnwys pleidleisiau o Pwyllgorau Cyhoeddus"

#: www/includes/easyparliament/templates/html/divisions/index.php:51
msgid "This list contains votes from Public Bill Committees."
msgstr "Mae'r rhestr hon yn cynnwys pleidleisiau o Pwyllgorau Cyhoeddus"

#: www/includes/easyparliament/templates/html/divisions/index.php:53
msgid "This list contains votes from the Scottish Parliament."
msgstr "Mae'r rhestr hon yn cynnwys pleidleisiau o'r Senedd Cymru"

#: www/includes/easyparliament/templates/html/divisions/index.php:55
msgid "This list contains votes from the Senedd."
msgstr "Mae'r rhestr hon yn cynnwys pleidleisiau o'r Senedd yr Alban"

#: www/includes/easyparliament/templates/html/divisions/index.php:57
msgid "This list contains votes from the House of Commons, House of Lords, Public Bill Committees, Senedd, and the Scottish Parliament."
msgstr "Mae'r rhestr hon yn cynnwys pleidleisiau o Dŷ'r Cyffredin, Tŷ'r Arglwyddi, Pwyllgorau Cyhoeddus, Seneddau Cymru a’r Alban."

Expand Down
1 change: 1 addition & 0 deletions www/docs/divisions/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
}

$data['last_updated'] = MySociety\TheyWorkForYou\Divisions::getMostRecentDivisionDate()['latest'];
$data["houses"] = $houses;

$template = 'divisions/index';
MySociety\TheyWorkForYou\Renderer::output($template, $data);
13 changes: 12 additions & 1 deletion www/includes/easyparliament/templates/html/divisions/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,19 @@
<div class="business-section__secondary">
<div class="business-section__secondary__item">
<h3><?= gettext('What is this?') ?></h3>

<?php if ($houses == 'commons') { ?>
<p><?= gettext('This list contains votes from the House of Commons.') ?></p>
<?php } elseif ($houses == 'lords') { ?>
<p><?= gettext('This list contains votes from the House of Lords.') ?></p>
<?php } elseif ($houses == 'pbc') { ?>
<p><?= gettext('This list contains votes from Public Bill Committees.') ?></p>
<?php } elseif ($houses == 'scotland') { ?>
<p><?= gettext('This list contains votes from the Scottish Parliament.') ?></p>
<?php } elseif ($houses == 'senedd') { ?>
<p><?= gettext('This list contains votes from the Senedd.') ?></p>
<?php } else { ?>
<p><?= gettext('This list contains votes from the House of Commons, House of Lords, Public Bill Committees, Senedd, and the Scottish Parliament.') ?></p>
<?php } ?>

<p><?= gettext('Only show votes from:') ?></p>
<ul>
Expand Down

0 comments on commit 66d1f7f

Please sign in to comment.