Skip to content

Commit

Permalink
chore(news): Simplify warning message in case of request timeout
Browse files Browse the repository at this point in the history
Better to state what actually went wrong rather than trying to guess the cause
  • Loading branch information
Antiz96 committed Jul 18, 2024
1 parent 278237f commit 9e6a8d6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions po/arch-update.pot
Original file line number Diff line number Diff line change
Expand Up @@ -241,9 +241,9 @@ msgstr ""
#: src/script/arch-update.sh:362
#, sh-format
msgid ""
"Unable to retrieve recent Arch News within a reasonable time (possibly "
"because of a slow or faulty network connection)\\nPlease, look for any "
"recent news at https://archlinux.org before updating your system"
"Unable to retrieve recent Arch News within a reasonable time (request "
"timeout)\\nPlease, look for any recent news at https://archlinux.org before "
"updating your system"
msgstr ""

#: src/script/arch-update.sh:371
Expand Down
10 changes: 5 additions & 5 deletions po/fr.po
Original file line number Diff line number Diff line change
Expand Up @@ -269,12 +269,12 @@ msgstr "Recherche des Arch News récentes..."
#: src/script/arch-update.sh:362
#, sh-format
msgid ""
"Unable to retrieve recent Arch News within a reasonable time (possibly "
"because of a slow or faulty network connection)\\nPlease, look for any "
"recent news at https://archlinux.org before updating your system"
"Unable to retrieve recent Arch News within a reasonable time (request "
"timeout)\\nPlease, look for any recent news at https://archlinux.org before "
"updating your system"
msgstr ""
"Impossible de récupérer les Arch News récentes dans un délai raisonnable (possiblement "
"à cause d'une connexion réseau lente ou défectueuse)\\nVeuillez consultez les dernières "
"Impossible de récupérer les Arch News récentes dans un délai raisonnable (délai "
"d'attente de la demande dépassé)\\nVeuillez consultez les dernières "
"news à l'adresse suivante avant de mettre à jour votre système : https://archlinux.org"

#: src/script/arch-update.sh:371
Expand Down
2 changes: 1 addition & 1 deletion src/script/arch-update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ list_news() {

if [ "${news}" == "timeout" ]; then
echo
warning_msg "$(eval_gettext "Unable to retrieve recent Arch News within a reasonable time (possibly because of a slow or faulty network connection)\nPlease, look for any recent news at https://archlinux.org before updating your system")"
warning_msg "$(eval_gettext "Unable to retrieve recent Arch News within a reasonable time (request timeout)\nPlease, look for any recent news at https://archlinux.org before updating your system")"
else
if [ -z "${show_news}" ]; then
echo "${news}" | htmlq -a title a | grep ^"View:" | sed "s/View:\ //g" | head -1 > "${statedir}/current_news_check"
Expand Down

0 comments on commit 9e6a8d6

Please sign in to comment.