govspeak 6.0.0 → 6.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (58) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +8 -0
  3. data/README.md +1 -45
  4. data/lib/govspeak.rb +18 -8
  5. data/lib/govspeak/blockquote_extra_quote_remover.rb +4 -3
  6. data/lib/govspeak/html_sanitizer.rb +1 -1
  7. data/lib/govspeak/post_processor.rb +25 -3
  8. data/lib/govspeak/presenters/attachment_presenter.rb +7 -194
  9. data/lib/govspeak/version.rb +1 -1
  10. data/locales/ar.yml +0 -17
  11. data/locales/be.yml +0 -17
  12. data/locales/bg.yml +0 -19
  13. data/locales/cs.yml +0 -19
  14. data/locales/cy.yml +0 -18
  15. data/locales/de.yml +0 -18
  16. data/locales/el.yml +0 -19
  17. data/locales/en.yml +0 -20
  18. data/locales/es-419.yml +0 -18
  19. data/locales/es.yml +0 -18
  20. data/locales/et.yml +0 -19
  21. data/locales/fa.yml +0 -17
  22. data/locales/fr.yml +0 -18
  23. data/locales/he.yml +0 -18
  24. data/locales/hi.yml +0 -18
  25. data/locales/hu.yml +0 -18
  26. data/locales/hy.yml +0 -18
  27. data/locales/id.yml +0 -17
  28. data/locales/it.yml +0 -18
  29. data/locales/ja.yml +0 -16
  30. data/locales/ko.yml +0 -16
  31. data/locales/lt.yml +0 -17
  32. data/locales/lv.yml +0 -17
  33. data/locales/pl.yml +0 -19
  34. data/locales/ps.yml +0 -17
  35. data/locales/pt.yml +0 -17
  36. data/locales/ro.yml +0 -19
  37. data/locales/ru.yml +0 -16
  38. data/locales/si.yml +0 -17
  39. data/locales/sr.yml +0 -18
  40. data/locales/ta.yml +0 -19
  41. data/locales/th.yml +0 -16
  42. data/locales/tr.yml +0 -17
  43. data/locales/uk.yml +0 -17
  44. data/locales/ur.yml +0 -18
  45. data/locales/uz.yml +0 -17
  46. data/locales/vi.yml +0 -17
  47. data/locales/zh-hk.yml +0 -15
  48. data/locales/zh-tw.yml +0 -15
  49. data/locales/zh.yml +0 -15
  50. data/test/blockquote_extra_quote_remover_test.rb +7 -0
  51. data/test/govspeak_attachment_link_test.rb +25 -0
  52. data/test/govspeak_attachment_test.rb +40 -0
  53. metadata +33 -35
  54. data/lib/templates/attachment.html.erb +0 -57
  55. data/locales/dr.yml +0 -20
  56. data/locales/so.yml +0 -22
  57. data/locales/sq.yml +0 -21
  58. data/test/govspeak_attachments_test.rb +0 -358
@@ -1,24 +1,6 @@
1
1
  ---
2
2
  it:
3
3
  govspeak:
4
- attachment:
5
- accessibility:
6
- full_help_html: Per richiedere il presente documento in formato diverso, ad
7
- es. in formato braille, audio o altro, scrivi a %{email} indicando il tuo
8
- indirizzo e numero di telefono nonché il titolo della pubblicazione ("%{title}")%{references}.
9
- heading: Il presente file potrebbe non essere adatto agli utenti di tecnologie
10
- d'ausilio.
11
- request_a_different_format: Richiedi un formato diverso.
12
- headings:
13
- order_a_copy: Ordina una copia
14
- order_a_copy_full: Ordina una copia della pubblicazione
15
- published: Pubblicato
16
- reference: Rif
17
- unnumbered_command_paper:
18
- unnumbered_hoc_paper:
19
- opendocument:
20
- help_html:
21
- see_more:
22
4
  contact:
23
5
  contact_form: Contattaci
24
6
  email: Email
@@ -1,22 +1,6 @@
1
1
  ---
2
2
  ja:
3
3
  govspeak:
4
- attachment:
5
- accessibility:
6
- full_help_html: この文書の点字版、音声版、その他のフォーマットをリクエストするには、%{email}に、ご住所、お電話番号、文書のタイトル
7
- ("%{title}")%{references}.をお送り下さい。
8
- heading: このファイルは支援技術のユーザーには利用できない場合があります
9
- request_a_different_format: 異なるフォーマットを要求
10
- headings:
11
- order_a_copy: コピーを注文
12
- order_a_copy_full: コピーを注文
13
- published: 掲載日
14
- reference: Ref
15
- unnumbered_command_paper:
16
- unnumbered_hoc_paper:
17
- opendocument:
18
- help_html:
19
- see_more:
20
4
  contact:
21
5
  contact_form: "連絡フォーム"
22
6
  email: Email
@@ -1,22 +1,6 @@
1
1
  ---
2
2
  ko:
3
3
  govspeak:
4
- attachment:
5
- accessibility:
6
- full_help_html: 점자, 오디오 혹은 다른 타입의 ("%{title}")%{references} 파일을 다운로드받으시려면, 주소,
7
- 전화번호, 요청하시는 자료의 제목을 명시하여, %{email} 로 이메일을 주십시오.
8
- heading: '본 파일은 지원 기술이 필요한 분들께 적합하지 않을 수 있습니다. '
9
- request_a_different_format: 다른 포맷으로 요청
10
- headings:
11
- order_a_copy: 카피 주문하기
12
- order_a_copy_full: 본 문서의 카피 주문하기
13
- published: 퍼블리시
14
- reference: 레퍼런스
15
- unnumbered_command_paper:
16
- unnumbered_hoc_paper:
17
- opendocument:
18
- help_html:
19
- see_more:
20
4
  contact:
21
5
  contact_form: "콘택트 폼"
22
6
  email: "이메일"
@@ -1,23 +1,6 @@
1
1
  ---
2
2
  lt:
3
3
  govspeak:
4
- attachment:
5
- accessibility:
6
- full_help_html: Jei norėtumėte gauti šį dokumentą kitokiu formatu (brailio,
7
- audio ar pan.), siųskite el. paštą %{email}, parašydami savo adresą, telefoną
8
- bei leidinio pavadinimą ("%{title}")%{references}.
9
- heading: Šis failas gali būti netinkamas, naudojantiems pagalbines technologijas.
10
- request_a_different_format: Paprašykite kito formato
11
- headings:
12
- order_a_copy: Užsisakykite leidinį
13
- order_a_copy_full: Užsisakykite leidinį
14
- published: Publikuota
15
- reference: Nuorodos
16
- unnumbered_command_paper:
17
- unnumbered_hoc_paper:
18
- opendocument:
19
- help_html:
20
- see_more:
21
4
  contact:
22
5
  contact_form: Parašykite mums
23
6
  email: El.paštas
@@ -1,23 +1,6 @@
1
1
  ---
2
2
  lv:
3
3
  govspeak:
4
- attachment:
5
- accessibility:
6
- full_help_html: Lai saņemtu dokumentu citā formātā, piemēram, Braila rakstā,
7
- kā audio failu vai kā citādi, lūdzu, rakstiet uz epastu %{email} un norādiet
8
- savu adresi, telefona numuru un dokumenta nosaukumu ("%{title}")%{references}.
9
- heading: Datne, iespējams, nav piemērota izmantošanai ar palīgtehnoloģijām.
10
- request_a_different_format: Pieprasīt citā formātā.
11
- headings:
12
- order_a_copy: 'Pasūtīt '
13
- order_a_copy_full: 'Pasūtīt publikāciju '
14
- published: Publicēts
15
- reference: Ref.
16
- unnumbered_command_paper:
17
- unnumbered_hoc_paper:
18
- opendocument:
19
- help_html:
20
- see_more:
21
4
  contact:
22
5
  contact_form: Saziņas forma
23
6
  email: E-pasts
@@ -1,25 +1,6 @@
1
1
  ---
2
2
  pl:
3
3
  govspeak:
4
- attachment:
5
- accessibility:
6
- full_help_html: Aby otrzymać ten dokument w innym formacie, np. w alfabecie
7
- Braille'a. w formacie audio lub w innym rodzaju pliku prosimy wysłać email
8
- na adres %{email}, podając swój adres, numer telefonu oraz tytuł interesującej
9
- Państwa publikacji ("%{title}")%{references}
10
- heading: Ten plik może nie być odpowiedni dla osób korzystających z technologii
11
- asystujących.
12
- request_a_different_format: Poproś o inny format
13
- headings:
14
- order_a_copy: Zamów kopię
15
- order_a_copy_full: Zamów kopię publikacji
16
- published: Opublikowano
17
- reference: Odsyłacz
18
- unnumbered_command_paper:
19
- unnumbered_hoc_paper:
20
- opendocument:
21
- help_html:
22
- see_more:
23
4
  contact:
24
5
  contact_form: Formularz kontaktowy
25
6
  email: Email
@@ -1,23 +1,6 @@
1
1
  ---
2
2
  ps:
3
3
  govspeak:
4
- attachment:
5
- accessibility:
6
- full_help_html: که غواړی چی دا سند په مختلف فارمت یعنی بریل، صوتی شکل کی ترلاسه
7
- کړی %{email} لطفاْ خپل ادرس، تیلیفون نمبر او د سند نوم ایمیل کړی ("%{title}")%{references}
8
- heading: دا فایل کیدای شی جی د کومکی تیکنالوژی د استعمالوونکو لپاره مناسب نه
9
- وی
10
- request_a_different_format: د یو مختلف فارمت غوښتنه وکړی
11
- headings:
12
- order_a_copy: د کاپی غوښتنه وکړی
13
- order_a_copy_full: د سند د کاپی غوښتنه وکړی
14
- published: خپور شوی
15
- reference: مواخذ
16
- unnumbered_command_paper:
17
- unnumbered_hoc_paper:
18
- opendocument:
19
- help_html:
20
- see_more:
21
4
  contact:
22
5
  contact_form: "د اړیکوپاڼه"
23
6
  email: "برښنالیک"
@@ -1,23 +1,6 @@
1
1
  ---
2
2
  pt:
3
3
  govspeak:
4
- attachment:
5
- accessibility:
6
- full_help_html: Para solicitar este documento em um formato alternativo, como
7
- braille, audio ou um formato de arquivo diferente, por favor envie um e-mail
8
- %{email} com seu endereço, número de telefone e o nome da publicação ("%{title}")%{references}.
9
- heading: Este arquivo pode não ser apropriado para usuário de tecnologia assistiva
10
- request_a_different_format: Solicitar formato diferente
11
- headings:
12
- order_a_copy: Pedir uma cópia
13
- order_a_copy_full: Pedir uma cópia da publicação
14
- published: Publicado
15
- reference: Ref
16
- unnumbered_command_paper:
17
- unnumbered_hoc_paper:
18
- opendocument:
19
- help_html:
20
- see_more:
21
4
  contact:
22
5
  contact_form: Formulário de contato
23
6
  email: E-mail
@@ -1,25 +1,6 @@
1
1
  ---
2
2
  ro:
3
3
  govspeak:
4
- attachment:
5
- accessibility:
6
- full_help_html: 'Pentru a solicita acest document într-un format alternativ
7
- (braille, audio, etc.) vă rugăm să transmiteți o solicitare pe email către
8
- %{email}, specificând adresa de corespondență, numărul dumneavoastră de telefon,
9
- precum și titlul publicației ("%{title}")%{references}.'
10
- heading: Este posibil ca acest fișier să nu fie adecvat utilizatorilor de tehnologii
11
- de asistare
12
- request_a_different_format: 'Solicită un format diferit '
13
- headings:
14
- order_a_copy: Comandă o copie
15
- order_a_copy_full: 'Comandă o copie a publicației '
16
- published: 'Data publicării '
17
- reference: 'Referință '
18
- unnumbered_command_paper:
19
- unnumbered_hoc_paper:
20
- opendocument:
21
- help_html:
22
- see_more:
23
4
  contact:
24
5
  contact_form: Formular de contact
25
6
  email: Email
@@ -1,22 +1,6 @@
1
1
  ---
2
2
  ru:
3
3
  govspeak:
4
- attachment:
5
- accessibility:
6
- full_help_html: Получить данный документ в ином формате (шрифт Брайля, аудиоформат)
7
- heading: Данный документ может быть не доступен лицам, использующим вспомогательные
8
- технологии
9
- request_a_different_format: Получить в другом формате
10
- headings:
11
- order_a_copy: Заказать копию
12
- order_a_copy_full: Заказать копию публикации
13
- published: Опубликовано
14
- reference: Ссылка
15
- unnumbered_command_paper:
16
- unnumbered_hoc_paper:
17
- opendocument:
18
- help_html:
19
- see_more:
20
4
  contact:
21
5
  contact_form: "Контактная форма"
22
6
  email: "Электронный адрес"
@@ -1,23 +1,6 @@
1
1
  ---
2
2
  si:
3
3
  govspeak:
4
- attachment:
5
- accessibility:
6
- full_help_html: මෙම ලේඛනය බ්‍රේල්, ශබ්ද හෝ වෙනත් ආකාරයකින් ලබාගැනීමට කරුණාකර
7
- විද්‍යුත් තැපැල් මගින් විමසන්න %{email} ඔබගේ ලිපිනය, දුරකථන අංකය සහ අවශ්‍ය
8
- ලේඛනයේ නම සමග  ("%{title}")%{references}.
9
- heading: විශේෂ තාක්ෂණික සහය භාවිතා කරන්නන්ට මෙම ලේඛනය සුදුසු නොවිය හැක
10
- request_a_different_format: වෙනත් වර්ගයකින් ඉල්ලීමට
11
- headings:
12
- order_a_copy: පිටපතක් ඇනවුම් කිරීමට
13
- order_a_copy_full: ප්‍රකාශනයේ පිටපතක් ඇනවුම් කිරීමට
14
- published: පල කරනලද
15
- reference: අංකය
16
- unnumbered_command_paper:
17
- unnumbered_hoc_paper:
18
- opendocument:
19
- help_html:
20
- see_more:
21
4
  contact:
22
5
  contact_form: "තොරතුරු පෝරමය"
23
6
  email: "විද්‍යුත් තැපැල්"
@@ -1,24 +1,6 @@
1
1
  ---
2
2
  sr:
3
3
  govspeak:
4
- attachment:
5
- accessibility:
6
- full_help_html: Zahtev za dobijanje ovog dokumenta u alternativnom formatu (Brajevo
7
- pismo, zvučni zapis ili druga vrsta datoteke) molimo da uputite elektronsko
8
- pismo na %{email} uz navođenje svoje adrese i telefonskog broja, te naziva
9
- publikacije ("%{title}")%{references}.
10
- heading: Ovaj dokument nije predviđen za korisnike pomagala.
11
- request_a_different_format: Zatraži drugi format.
12
- headings:
13
- order_a_copy: Naruči primerak
14
- order_a_copy_full: Naruči primerak publikacije
15
- published: Objavljeno
16
- reference: Ref
17
- unnumbered_command_paper:
18
- unnumbered_hoc_paper:
19
- opendocument:
20
- help_html:
21
- see_more:
22
4
  contact:
23
5
  contact_form: formular za kontakt
24
6
  email: e-mail
@@ -1,25 +1,6 @@
1
1
  ---
2
2
  ta:
3
3
  govspeak:
4
- attachment:
5
- accessibility:
6
- full_help_html: பிரெய்லி,ஒலி வடிவம் அல்லது ஓர் வேறுபட்ட கோவை வடிவம் போன்ற ஓர்
7
- மாற்று வடிவில் இந்த ஆவணத்தை வேண்டிக் கொள்வதற்கு வெளியீட்டின் தலைப்புடன்
8
- ("%{title}")%{references} உங்களது முகவரி, தொலைபேசி இலக்கம் என்பவற்றையும் குறிப்பிட்டு
9
- தயவுசெய்து மின்னஞ்சல் %{email} செய்யவும்.
10
- heading: விசேட தேவை கொண்டவர்களுக்கான உறுதுணை தொழில்நுட்பத்தை உபயோகிப்பவர்களுக்கு
11
- இந்தக் கோவை பொருத்தமானதாக இல்லாதிருக்கலாம்.
12
- request_a_different_format: ஓர் வேறுபட்ட வடிவத்தை வேண்டிக்கொள்ளுதல்
13
- headings:
14
- order_a_copy: பிரதியொன்றுக்கு கட்டளையிடுதல்
15
- order_a_copy_full: வெளியீடு ஒன்றின் பிரதிக்கு கட்டளையிடுதல்
16
- published: பிரசுரிக்கப்பட்டது
17
- reference: குறிப்புரை
18
- unnumbered_command_paper:
19
- unnumbered_hoc_paper:
20
- opendocument:
21
- help_html:
22
- see_more:
23
4
  contact:
24
5
  contact_form: "தொடர்புகொள்ளல் படிவம்"
25
6
  email: "மின்னஞ்சல்"
@@ -1,22 +1,6 @@
1
1
  ---
2
2
  th:
3
3
  govspeak:
4
- attachment:
5
- accessibility:
6
- full_help_html: ต้องการเอกสารในรูปแบบอื่นเช่นอักษรเบรลล์, ไฟล์เสียง หรือไฟล์ชนิดอื่น
7
- กรุณาอีเมล์%{email}พร้อมที่อยู่, เบอร์โทรศัพท์ และหัวข้อเอกสารที่ต้องการ("%{title}")%{references}.
8
- heading: ไฟล์นี้อาจไม่เหมาะสำหรับผู้ใช้เทคโนโลยี่อำนวยความสะดวก
9
- request_a_different_format: ขอรูปแบบอื่น
10
- headings:
11
- order_a_copy: สั่งสำเนาหนึ่งชุด
12
- order_a_copy_full: สั่งสำเนาเอกสารหนึ่งชุด
13
- published: ตีพิมพ์
14
- reference: อ้างอิง
15
- unnumbered_command_paper:
16
- unnumbered_hoc_paper:
17
- opendocument:
18
- help_html:
19
- see_more:
20
4
  contact:
21
5
  contact_form: "แบบฟอร์มการติดต่อ"
22
6
  email: "อีเมล์"
@@ -1,23 +1,6 @@
1
1
  ---
2
2
  tr:
3
3
  govspeak:
4
- attachment:
5
- accessibility:
6
- full_help_html: |-
7
- Bu dosyaya farklı formatta erişim için lütfen bize adresiniz, telefon numaranız ve yayının adı ("%{title}")%{references}.
8
-  ile birlikte e-posta %{email} yoluyla ulaşın
9
- heading: Bu dosya yardımcı teknoloji kullananlar için uygun olmayabilir
10
- request_a_different_format: Dosyaya farklı formatta erişim için
11
- headings:
12
- order_a_copy: Bir kopyasını sipariş edin
13
- order_a_copy_full: Yayının bir kopyasını sipariş edin
14
- published: Yayında
15
- reference: Ref
16
- unnumbered_command_paper:
17
- unnumbered_hoc_paper:
18
- opendocument:
19
- help_html:
20
- see_more:
21
4
  contact:
22
5
  contact_form: "İletişim Formu"
23
6
  email: E-posta
@@ -1,23 +1,6 @@
1
1
  ---
2
2
  uk:
3
3
  govspeak:
4
- attachment:
5
- accessibility:
6
- full_help_html: Щоб запросити цей документ в іншому форматі, наприклад, шрифтом
7
- Брайля, аудіо тощо, будь ласка, напишіть на електронну пошту %{email}, зазначивши
8
- Вашу адресу, номер телефону та назву публікації ("%{title}")%{references}.
9
- heading: Цей файл може не бути прийнятним для користувачів допоміжних технологій.
10
- request_a_different_format: Запросити інший формат
11
- headings:
12
- order_a_copy: Замовити примірник
13
- order_a_copy_full: Замовити примірник публікації
14
- published: Опубліковано
15
- reference: Ref
16
- unnumbered_command_paper:
17
- unnumbered_hoc_paper:
18
- opendocument:
19
- help_html:
20
- see_more:
21
4
  contact:
22
5
  contact_form: "Форма зворотнього зв'язку"
23
6
  email: "Електронна пошта"
@@ -1,24 +1,6 @@
1
1
  ---
2
2
  ur:
3
3
  govspeak:
4
- attachment:
5
- accessibility:
6
- full_help_html: اس عبارت کو کسی دوسرے فارمیٹ مثلا بریل،آڈیو یا مختلف فائل ٹائپ
7
- میں حاصل کرنے کے لئے برائے مہربانی ایمیل %{email} کیجئیے، جس میں اپنا پتا،ٹیلیفون
8
- نمبراور %{title}"(%{references}") لکھئیے
9
- heading: ممکن ہےیہ فائل معاون ٹیکنالوجی استعمال کرنے والوں کے لئے موزوں نہ
10
- ہو
11
- request_a_different_format: مختلف فارمیٹ طلب کیجئیے
12
- headings:
13
- order_a_copy: کاپی منگائیے
14
- order_a_copy_full: اشاعت کی کاپی طلب کیجئیے
15
- published: شائع شدہ
16
- reference: حوالہ
17
- unnumbered_command_paper:
18
- unnumbered_hoc_paper:
19
- opendocument:
20
- help_html:
21
- see_more:
22
4
  contact:
23
5
  contact_form: "کانٹیکٹ فارم"
24
6
  email: "ای میل"
@@ -1,23 +1,6 @@
1
1
  ---
2
2
  uz:
3
3
  govspeak:
4
- attachment:
5
- accessibility:
6
- full_help_html: Bu hujjatni brayl,audio yoki boshqa formatda olish uchun quyidagi
7
- elektron manzilga %{email} jismoniy manzilingiz, telefon raqamingiz va nashr
8
- sarlavhasinini ("%{title}")%{references} kiritib xabar yuboring.
9
- heading: Bu hujjat boshqa formatlarda mavjud emas.
10
- request_a_different_format: Boshqa formatdagi hujjatni so'rash.
11
- headings:
12
- order_a_copy: Nusxa buyurtirish
13
- order_a_copy_full: Nashrning nusxasini buyurtirish
14
- published: Nashr qilindi
15
- reference: Ishora
16
- unnumbered_command_paper:
17
- unnumbered_hoc_paper:
18
- opendocument:
19
- help_html:
20
- see_more:
21
4
  contact:
22
5
  contact_form: Aloqa uchun
23
6
  email: Elektron manzil