diff --git a/README.md b/README.md index be2397ae9f0..a53333df306 100644 --- a/README.md +++ b/README.md @@ -12,9 +12,10 @@ Our mission is to combine the raw stats and trends of the HTTP Archive with the The 2019 Web Almanac is available in: - [English](https://almanac.httparchive.org/en/2019/) -- [Spanish](https://almanac.httparchive.org/es/2019/) - [French](https://almanac.httparchive.org/fr/2019/) - [Japanese](https://almanac.httparchive.org/ja/2019/) +- [Simplified Chinese](https://almanac.httparchive.org/zh-CN/2019/) +- [Spanish](https://almanac.httparchive.org/es/2019/) ## Contributing diff --git a/src/config/2020.json b/src/config/2020.json index a3ebecd17e1..ca7ddc06f35 100644 --- a/src/config/2020.json +++ b/src/config/2020.json @@ -92,6 +92,12 @@ { "part": "II", "chapter": "13", + "title": "Capabilities", + "slug": "capabilities" + }, + { + "part": "II", + "chapter": "14", "title": "PWA", "slug": "pwa" } @@ -103,20 +109,20 @@ "chapters": [ { "part": "III", - "chapter": "14", + "chapter": "15", "title": "CMS", "slug": "cms" }, { "part": "III", - "chapter": "15", + "chapter": "16", "title": "Ecommerce", "slug": "ecommerce" }, { "part": "III", - "chapter": "16", - "title": "JAMstack", + "chapter": "17", + "title": "Jamstack", "slug": "jamstack" } ] @@ -127,31 +133,31 @@ "chapters": [ { "part": "IV", - "chapter": "17", + "chapter": "18", "title": "Page Weight", "slug": "page-weight" }, { "part": "IV", - "chapter": "18", + "chapter": "19", "title": "Compression", "slug": "compression" }, { "part": "IV", - "chapter": "19", + "chapter": "20", "title": "Caching", "slug": "caching" }, { "part": "IV", - "chapter": "20", + "chapter": "21", "title": "Resource Hints", "slug": "resource-hints" }, { "part": "IV", - "chapter": "21", + "chapter": "22", "title": "HTTP/2", "slug": "http2" } @@ -165,6 +171,9 @@ "authors": { "name": "Authors" }, + "designers": { + "name": "Designers" + }, "developers": { "name": "Developers" }, @@ -888,6 +897,12 @@ "github": "ipullrank", "twitter": "IPullRank" }, + "michelleoconnor": { + "name": "Michelle O'Connor", + "teams": [ + "designers" + ] + }, "MikeBishop": { "name": "Mike Bishop", "teams": [ diff --git a/src/server/language.py b/src/server/language.py index 97390afe09b..3f6fdc3320d 100644 --- a/src/server/language.py +++ b/src/server/language.py @@ -1,9 +1,8 @@ # coding=utf-8 class _Language(object): - def __init__(self, local_name, lang_code, region_code): + def __init__(self, local_name, lang_code): self._local_name = local_name self._lang_code = lang_code - self._region_code = region_code def __eq__(self, other): if isinstance(other, _Language): @@ -26,13 +25,15 @@ def lang_code(self): return self._lang_code -# Currently we are only supporting languages and not regions +# Mostly we use region-agnostic languages, but can add region where +# there are significant differences (e.g. Chinese) class Language(object): - JA = _Language('日本語', 'ja', 'JP') - EN = _Language('English', 'en', 'US') - ES = _Language('Español', 'es', 'ES') - FR = _Language('Français', 'fr', 'FR') - ZH_CN = _Language('简体中文', 'zh-CN', 'CN') + EN = _Language('English', 'en') + ES = _Language('Español', 'es') + FR = _Language('Français', 'fr') + JA = _Language('日本語', 'ja') + PT = _Language('Portuguese', 'pt') + ZH_CN = _Language('简体中文', 'zh-CN') DEFAULT_LANGUAGE = Language.EN diff --git a/src/templates/en/2019/base.html b/src/templates/en/2019/base.html index 0c84e58a394..41ad9bcf2fe 100644 --- a/src/templates/en/2019/base.html +++ b/src/templates/en/2019/base.html @@ -154,7 +154,10 @@ "cdn": "CDN", "page-weight": "Page Weight", "resource-hints": "Resource Hints", - "http2": "HTTP/2" + "http2": "HTTP/2", + "privacy": "Privacy", + "capabilities": "Capabilities", + "jamstack": "Jamstack" } %} @@ -165,7 +168,7 @@ "designers": "Designers", "developers": "Developers", "editors": "Editors", - "leads": "Leads", + "leads": "Project Leads", "reviewers": "Reviewers", "translators": "Translators", } diff --git a/src/templates/es/2019/base.html b/src/templates/es/2019/base.html index 330926cc3a3..27920352917 100644 --- a/src/templates/es/2019/base.html +++ b/src/templates/es/2019/base.html @@ -154,7 +154,10 @@ "cdn": "CDN", "page-weight": "Peso de las Páginas", "resource-hints": "Sugerencias de Recursos", - "http2": "HTTP/2" + "http2": "HTTP/2", + "privacy": "Intimidad", + "capabilities": "Capacidades", + "jamstack": "Jamstack" } %} diff --git a/src/templates/fr/2019/base.html b/src/templates/fr/2019/base.html index f8a99f51039..f25df0750ec 100644 --- a/src/templates/fr/2019/base.html +++ b/src/templates/fr/2019/base.html @@ -154,7 +154,10 @@ "cdn": "CDN", "page-weight": "Poids des pages", "resource-hints": "Indices de Ressources", - "http2": "HTTP/2" + "http2": "HTTP/2", + "privacy": "Vie Privée", + "capabilities": "Capacités", + "jamstack": "Jamstack" } %} diff --git a/src/templates/ja/2019/base.html b/src/templates/ja/2019/base.html index 5c8b2e3795d..ebd1f5557c0 100644 --- a/src/templates/ja/2019/base.html +++ b/src/templates/ja/2019/base.html @@ -154,7 +154,10 @@ "cdn": "CDN", "page-weight": "Page Weight", "resource-hints": "リソースのヒント", - "http2": "HTTP/2" + "http2": "HTTP/2", + "privacy": "プライバシー", + "capabilities": "能力", + "jamstack": "Jamstack" } %} diff --git a/src/templates/pt/2019/base.html b/src/templates/pt/2019/base.html index 26c0f9213d1..7ab62ade2ae 100644 --- a/src/templates/pt/2019/base.html +++ b/src/templates/pt/2019/base.html @@ -48,6 +48,7 @@ {% block close_the_index %}Fechar índice de conteúdos{% endblock %} {% block and %}e{% endblock %} +{% block comma %}, {% endblock %} {% block open %}Abrir{% endblock %} {% block close %}Fechar{% endblock %} @@ -74,7 +75,6 @@ {% block footer_title %}Navegação no rodapé{% endblock %} {% block copyright %}© Web Almanac. Licenciado sob Apache 2.0.{% endblock %} - {% block accessibility_statement %}Declaração de acessibilidade{% endblock %} {% block featured_chapter %}Capítulo em Destaque{% endblock %} @@ -154,7 +154,10 @@ "cdn": "CDN", "page-weight": "Peso da página", "resource-hints": "Dicas de Recursos", - "http2": "HTTP/2" + "http2": "HTTP/2", + "privacy": "Privacidade", + "capabilities": "Capacidades", + "jamstack": "Jamstack" } %} diff --git a/src/templates/zh-CN/2019/base.html b/src/templates/zh-CN/2019/base.html index 3aaf2f62d95..f93fd1f72a4 100644 --- a/src/templates/zh-CN/2019/base.html +++ b/src/templates/zh-CN/2019/base.html @@ -154,7 +154,10 @@ "cdn": "CDN", "page-weight": "页面重量", "resource-hints": "资源提示", - "http2": "HTTP/2" + "http2": "HTTP/2", + "privacy": "隐私", + "capabilities": "能力", + "jamstack": "Jamstack" } %}