Skip to content

Commit a32ee13

Browse files
committed
changed Adopt OpenJDK link and name to Adoptium
1 parent 0756d91 commit a32ee13

File tree

2 files changed

+13
-10
lines changed

2 files changed

+13
-10
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1111
- Support country specific locales such as Brazilian Portuguese (`pt-BR`)
1212
- Translation of messages to Brazilian Portuguese (#115, Thanks to @israelins85 for his contribution)
1313

14+
### Changed
15+
- Changed Adopt OpenJDK link and name to Adoptium
16+
1417

1518
## [3.2.0] - 2021-02-21
1619
### Added

src/universalJavaApplicationStub

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ fr)
386386
MSG_INSTALL_JAVA="Java doit être installé sur votre système.\nRendez-vous sur java.com et suivez les instructions d'installation..."
387387
MSG_LATER="Plus tard"
388388
MSG_VISIT_JAVA_DOT_COM="Java by Oracle"
389-
MSG_VISIT_ADOPTOPENJDK="Java by AdoptOpenJDK"
389+
MSG_VISIT_ADOPTIUM="Java by Adoptium"
390390
;;
391391

392392
# German
@@ -402,7 +402,7 @@ de)
402402
MSG_INSTALL_JAVA="Auf Ihrem System muss die 'Java'-Software installiert sein.\nBesuchen Sie java.com für weitere Installationshinweise."
403403
MSG_LATER="Später"
404404
MSG_VISIT_JAVA_DOT_COM="Java von Oracle"
405-
MSG_VISIT_ADOPTOPENJDK="Java von AdoptOpenJDK"
405+
MSG_VISIT_ADOPTIUM="Java von Adoptium"
406406
;;
407407

408408
# Simplified Chinese
@@ -418,7 +418,7 @@ zh)
418418
MSG_INSTALL_JAVA="你需要在Mac中安装Java运行环境!\n访问 java.com 了解如何安装。"
419419
MSG_LATER="稍后"
420420
MSG_VISIT_JAVA_DOT_COM="Java by Oracle"
421-
MSG_VISIT_ADOPTOPENJDK="Java by AdoptOpenJDK"
421+
MSG_VISIT_ADOPTIUM="Java by Adoptium"
422422
;;
423423

424424
# Spanish
@@ -434,7 +434,7 @@ es)
434434
MSG_INSTALL_JAVA="¡Necesita tener JAVA instalado en su Mac!\nVisite java.com para consultar las instrucciones para su instalación..."
435435
MSG_LATER="Más tarde"
436436
MSG_VISIT_JAVA_DOT_COM="Java de Oracle"
437-
MSG_VISIT_ADOPTOPENJDK="Java de AdoptOpenJDK"
437+
MSG_VISIT_ADOPTIUM="Java de Adoptium"
438438
;;
439439

440440
# Brazilian Portuguese
@@ -450,7 +450,7 @@ pt-BR)
450450
MSG_INSTALL_JAVA="Você precisa instalar o JAVA no seu Mac!\nPor favor, visite java.com para instruções de instalação..."
451451
MSG_LATER="Depois"
452452
MSG_VISIT_JAVA_DOT_COM="Java por Oracle"
453-
MSG_VISIT_ADOPTOPENJDK="Java por AdoptOpenJDK"
453+
MSG_VISIT_ADOPTIUM="Java por Adoptium"
454454
;;
455455

456456
# English | default
@@ -466,7 +466,7 @@ en|*)
466466
MSG_INSTALL_JAVA="You need to have JAVA installed on your Mac!\nVisit java.com for installation instructions..."
467467
MSG_LATER="Later"
468468
MSG_VISIT_JAVA_DOT_COM="Java by Oracle"
469-
MSG_VISIT_ADOPTOPENJDK="Java by AdoptOpenJDK"
469+
MSG_VISIT_ADOPTIUM="Java by Adoptium"
470470
;;
471471
esac
472472

@@ -832,21 +832,21 @@ if [ -z "${JAVACMD}" ] || [ ! -x "${JAVACMD}" ] ; then
832832
stub_logger "[EXIT 3] ${MSG_NO_SUITABLE_JAVA_EXPANDED}"
833833

834834
# display error message with AppleScript
835-
osascript -e "tell application \"System Events\" to display dialog \"${MSG_ERROR_LAUNCHING}\n\n${MSG_NO_SUITABLE_JAVA_EXPANDED}\n${MSG_NO_SUITABLE_JAVA_CHECK}\" with title \"${CFBundleName}\" buttons {\" OK \", \"${MSG_VISIT_JAVA_DOT_COM}\", \"${MSG_VISIT_ADOPTOPENJDK}\"} default button 1${DialogWithIcon}" \
835+
osascript -e "tell application \"System Events\" to display dialog \"${MSG_ERROR_LAUNCHING}\n\n${MSG_NO_SUITABLE_JAVA_EXPANDED}\n${MSG_NO_SUITABLE_JAVA_CHECK}\" with title \"${CFBundleName}\" buttons {\" OK \", \"${MSG_VISIT_JAVA_DOT_COM}\", \"${MSG_VISIT_ADOPTIUM}\"} default button 1${DialogWithIcon}" \
836836
-e "set response to button returned of the result" \
837837
-e "if response is \"${MSG_VISIT_JAVA_DOT_COM}\" then open location \"https://www.java.com/download/\"" \
838-
-e "if response is \"${MSG_VISIT_ADOPTOPENJDK}\" then open location \"https://adoptopenjdk.net/releases.html\""
838+
-e "if response is \"${MSG_VISIT_ADOPTIUM}\" then open location \"https://adoptium.net/releases.html\""
839839
# exit with error
840840
exit 3
841841

842842
else
843843
# log exit cause
844844
stub_logger "[EXIT 1] ${MSG_ERROR_LAUNCHING}"
845845
# display error message with AppleScript
846-
osascript -e "tell application \"System Events\" to display dialog \"${MSG_ERROR_LAUNCHING}\n\n${MSG_INSTALL_JAVA}\" with title \"${CFBundleName}\" buttons {\"${MSG_LATER}\", \"${MSG_VISIT_JAVA_DOT_COM}\", \"${MSG_VISIT_ADOPTOPENJDK}\"} default button 1${DialogWithIcon}" \
846+
osascript -e "tell application \"System Events\" to display dialog \"${MSG_ERROR_LAUNCHING}\n\n${MSG_INSTALL_JAVA}\" with title \"${CFBundleName}\" buttons {\"${MSG_LATER}\", \"${MSG_VISIT_JAVA_DOT_COM}\", \"${MSG_VISIT_ADOPTIUM}\"} default button 1${DialogWithIcon}" \
847847
-e "set response to button returned of the result" \
848848
-e "if response is \"${MSG_VISIT_JAVA_DOT_COM}\" then open location \"https://www.java.com/download/\"" \
849-
-e "if response is \"${MSG_VISIT_ADOPTOPENJDK}\" then open location \"https://adoptopenjdk.net/releases.html\""
849+
-e "if response is \"${MSG_VISIT_ADOPTIUM}\" then open location \"https://adoptium.net/releases.html\""
850850
# exit with error
851851
exit 1
852852
fi

0 commit comments

Comments
 (0)