changeset 3653:8642a977f244

GNU Health HMIS server: Control Center: Complete Task task #15707: Migrate getlang to Weblate
author Luis Falcon <falcon@gnuhealth.org>
date Wed, 24 Jun 2020 19:15:17 +0100
parents a56e504fc120
children 17c91af423ec
files tryton/gnuhealth-control
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/tryton/gnuhealth-control
+++ b/tryton/gnuhealth-control
@@ -24,11 +24,11 @@
 #
 ##############################################################################
 
-VERSION="3.6.4"
+VERSION="3.6.5"
 
 TRYTON_URL="https://downloads-cdn.tryton.org"
 GNUHEALTH_URL="https://ftp.gnu.org/gnu/health"
-TRANSLATE_URL="http://translate.gnusolidario.org"
+TRANSLATE_URL="http://hosted.weblate.org"
 
 TRYTON_MODULES="account account_invoice account_product company country \
     currency party product stock stock_lot purchase account_invoice_stock \
@@ -519,7 +519,7 @@
 
     cd ${GNUHEALTH_DIR}/tryton/server/modules || bailout
     message "INFO" "Retrieving language pack file for ${lang_to_install}" 
-    wget ${TRANSLATE_URL}/export/?path=/${lang_to_install}/GNUHEALTH/ -O ${lang_download_dir}/${lang_file} || bailout
+    wget ${TRANSLATE_URL}/download-language/${lang_to_install}/gnu-health/?format=zip -O ${lang_download_dir}/${lang_file} || bailout
     message "INFO" "Installing / Updating language files for ${lang_to_install} ..."
 
     ${BSDTAR} --strip-components 3 -xzf ${lang_download_dir}/${lang_file} || bailout