From 37b27c2501cdeb46348cc0c7e620d738b7f5e307 Mon Sep 17 00:00:00 2001 From: Strubbl <97055+Strubbl@users.noreply.github.com> Date: Wed, 25 Oct 2023 21:48:48 +0200 Subject: [PATCH] fix josm date format for HU, JA, RU, SK, sr@latin --- configs/weekly_int.yaml | 10 +++++----- weekly2all.py | 3 ++- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/configs/weekly_int.yaml b/configs/weekly_int.yaml index 64aeb93..6e3296c 100644 --- a/configs/weekly_int.yaml +++ b/configs/weekly_int.yaml @@ -32,18 +32,18 @@ josm_body: | de: * {c.publishdate_dot} **Wochennotiz**: Die wöchentliche Ausgabe der OSM-News [https://www.weeklyosm.eu/archives/{c.url_nr} #{c.post_nr}] ist nun verfügbar es: * {c.publishdate_dash} **semanarioOSM** : El resumen semanario de noticias de OSM [https://www.weeklyosm.eu/archives/{c.url_nr} #{c.post_nr}], ya está disponible fr: * {c.publishdate_slash} **hebdoOSM**: Le résumé hebdomadaire [https://www.weeklyosm.eu/archives/{c.url_nr} #{c.post_nr}] de l'actualité OpenStreetMap vient de paraître - hu: * {c.publishdate_iso} **weeklyOSM**: Az OSM heti hírösszefoglalójának [https://www.weeklyosm.eu/archives/{c.url_nr} #{c.post_nr} része] már elérhető angolul. + hu: * {c.publishdate_dotspace} **weeklyOSM**: Az OSM heti hírösszefoglalójának [https://www.weeklyosm.eu/archives/{c.url_nr} #{c.post_nr} része] már elérhető angolul. it: * {c.publishdate_dot} **Notiziario Settimanale OSM**: Il riepilogo settimanale [https://www.weeklyosm.eu/archives/{c.url_nr} N. {c.post_nr}] delle notizie su OSM è adesso disponibile - ja: * {c.publishdate_dash} **週刊OSM**: OSMニュースの1週間総まとめ。[https://www.weeklyosm.eu/archives/{c.url_nr} #{c.post_nr}]が公開されています。 + ja: * {c.publishdate_iso} **週刊OSM**: OSMニュースの1週間総まとめ。[https://www.weeklyosm.eu/archives/{c.url_nr} #{c.post_nr}]が公開されています。 ko: * {c.publishdate_iso} **주간OSM**: 이번 주의 오픈스트리트맵 관련 소식을 전해주는 주간OSM [https://www.weeklyosm.eu/archives/{c.url_nr} #{c.post_nr}호]가 올라왔습니다 lt: * {c.publishdate_iso} **weeklyOSM**: Savaitinė OSM naujienų santrauka [https://www.weeklyosm.eu/archives/{c.url_nr} #{c.post_nr}] yra prieinama anglų kalba nl: * {c.publishdate_dash} **weeklyOSM**: De wekelijkse verzameling nieuws over OSM, uitgave [https://www.weeklyosm.eu/archives/{c.url_nr} #{c.post_nr}], is nu online beschikbaar in het Engels pl: * {c.publishdate_dot} **Tygodnik OSM**: [https://www.weeklyosm.eu/archives/{c.url_nr} nr {c.post_nr}] cotygodniowego podsumowania wiadomości ze świata OSM jest już dostępny. pt: * {c.publishdate_slash} **semanárioOSM**: A edição [https://www.weeklyosm.eu/archives/{c.url_nr} #{c.post_nr}] do resumo semanal de notícias do OSM está disponível. pt_BR: * {c.publishdate_slash} **semanárioOSM**: A edição [https://www.weeklyosm.eu/archives/{c.url_nr} #{c.post_nr}] do resumo semanal de notícias do OSM está disponível. - ru: * {c.publishdate_iso} **weeklyOSM**: еженедельный обзор новостей OSM, выпуск [https://www.weeklyosm.eu/archives/{c.url_nr} #{c.post_nr}], доступен онлайн на английском и нескольких других языках - sk: * {c.publishdate_iso} **weeklyOSM**: Týždenný sumár noviniek v OSM, vydanie [https://www.weeklyosm.eu/archives/{c.url_nr} #{c.post_nr}], je už dostupný online v angličtine. - sr@latin: * {c.publishdate_iso} **weeklyOSM**: Nedeljna tura vesti iz OSM sveta, problem zaveden pod brojem [https://www.weeklyosm.eu/archives/{c.url_nr} #{c.post_nr}], od sada je dostupna na engleskom jeziku + ru: * {c.publishdate_dot} **weeklyOSM**: еженедельный обзор новостей OSM, выпуск [https://www.weeklyosm.eu/archives/{c.url_nr} #{c.post_nr}], доступен онлайн на английском и нескольких других языках + sk: * {c.publishdate_dot} **weeklyOSM**: Týždenný sumár noviniek v OSM, vydanie [https://www.weeklyosm.eu/archives/{c.url_nr} #{c.post_nr}], je už dostupný online v angličtine. + sr@latin: * {c.publishdate_dot} **weeklyOSM**: Nedeljna tura vesti iz OSM sveta, problem zaveden pod brojem [https://www.weeklyosm.eu/archives/{c.url_nr} #{c.post_nr}], od sada je dostupna na engleskom jeziku uk: * {c.publishdate_dot} **weeklyOSM**: Щотижневий огляд новин OSM, випуск [https://www.weeklyosm.eu/archives/{c.url_nr} #{c.post_nr}], доступний англійською та іншими мовами zh_CN: * {c.publishdate_iso} **weeklyOSM**:一周一次的 OSM 消息汇报,[https://www.weeklyosm.eu/archives/{c.url_nr} #{c.post_nr}]期中国华语版本已经上线。 zh_TW: * {c.publishdate_iso} **weeklyOSM**:一週一次的 OSM 消息彙報,[https://www.weeklyosm.eu/archives/{c.url_nr} #{c.post_nr}]期台灣華語版本已經上線。 diff --git a/weekly2all.py b/weekly2all.py index 91d6ead..126fdbd 100644 --- a/weekly2all.py +++ b/weekly2all.py @@ -259,6 +259,7 @@ def set_date_str(self): self.publishdate_iso = today.strftime("%Y-%m-%d") self.publishdate_slash = today.strftime("%d/%m/%Y") self.publishdate_dot = today.strftime("%d.%m.%Y") + self.publishdate_dotspace = today.strftime("%Y. %m. %d.") self.publishdate_dash = today.strftime("%d-%m-%Y") def create_texts(self): @@ -525,4 +526,4 @@ def send_stuff(self): logger.debug(f"{config}") # only show picture for first iteration: if i: config.do_show_pic = False - config.send_stuff() \ No newline at end of file + config.send_stuff()