mirror of
https://github.com/YunoHost-Apps/weblate_ynh.git
synced 2024-10-01 13:35:04 +02:00
commit
7fec5a47a8
8 changed files with 15 additions and 12 deletions
|
@ -17,7 +17,7 @@ If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/in
|
||||||
|
|
||||||
Weblate is a libre web-based translation tool with tight version control integration. It provides two user interfaces, propagation of translations across components, quality checks and automatic linking to source files.
|
Weblate is a libre web-based translation tool with tight version control integration. It provides two user interfaces, propagation of translations across components, quality checks and automatic linking to source files.
|
||||||
|
|
||||||
**Shipped version:** 4.8~ynh1
|
**Shipped version:** 4.9~ynh1
|
||||||
|
|
||||||
**Demo:** https://hosted.weblate.org/
|
**Demo:** https://hosted.weblate.org/
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,7 @@ Si vous n'avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) pour
|
||||||
|
|
||||||
Weblate est un outil de traduction libre avec une intégration étroite du contrôle de version. Il fournit deux interfaces utilisateur, la propagation des traductions entre les composants, les contrôles de qualité et la liaison automatique aux fichiers source.
|
Weblate est un outil de traduction libre avec une intégration étroite du contrôle de version. Il fournit deux interfaces utilisateur, la propagation des traductions entre les composants, les contrôles de qualité et la liaison automatique aux fichiers source.
|
||||||
|
|
||||||
**Version incluse :** 4.8~ynh1
|
**Version incluse :** 4.9~ynh1
|
||||||
|
|
||||||
**Démo :** https://hosted.weblate.org/
|
**Démo :** https://hosted.weblate.org/
|
||||||
|
|
||||||
|
|
|
@ -85,6 +85,8 @@ DATABASES = {
|
||||||
# Change connection timeout in case you get MySQL gone away error:
|
# Change connection timeout in case you get MySQL gone away error:
|
||||||
# "connect_timeout": 28800,
|
# "connect_timeout": 28800,
|
||||||
},
|
},
|
||||||
|
# Persistent connections
|
||||||
|
"CONN_MAX_AGE": 0,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -733,6 +735,8 @@ CRISPY_TEMPLATE_PACK = "bootstrap3"
|
||||||
# "weblate.checks.format.I18NextInterpolationCheck",
|
# "weblate.checks.format.I18NextInterpolationCheck",
|
||||||
# "weblate.checks.format.ESTemplateLiteralsCheck",
|
# "weblate.checks.format.ESTemplateLiteralsCheck",
|
||||||
# "weblate.checks.angularjs.AngularJSInterpolationCheck",
|
# "weblate.checks.angularjs.AngularJSInterpolationCheck",
|
||||||
|
# "weblate.checks.icu.ICUMessageFormatCheck",
|
||||||
|
# "weblate.checks.icu.ICUSourceCheck",
|
||||||
# "weblate.checks.qt.QtFormatCheck",
|
# "weblate.checks.qt.QtFormatCheck",
|
||||||
# "weblate.checks.qt.QtPluralCheck",
|
# "weblate.checks.qt.QtPluralCheck",
|
||||||
# "weblate.checks.ruby.RubyFormatCheck",
|
# "weblate.checks.ruby.RubyFormatCheck",
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
"en": "Translation platform using Git and Python",
|
"en": "Translation platform using Git and Python",
|
||||||
"fr": "Plateforme de traduction utilisant Git et Python"
|
"fr": "Plateforme de traduction utilisant Git et Python"
|
||||||
},
|
},
|
||||||
"version": "4.8~ynh1",
|
"version": "4.9~ynh1",
|
||||||
"url": "https://weblate.org",
|
"url": "https://weblate.org",
|
||||||
"upstream": {
|
"upstream": {
|
||||||
"license": "AGPL-3.0",
|
"license": "AGPL-3.0",
|
||||||
|
@ -36,8 +36,7 @@
|
||||||
"install" : [
|
"install" : [
|
||||||
{
|
{
|
||||||
"name": "domain",
|
"name": "domain",
|
||||||
"type": "domain",
|
"type": "domain"
|
||||||
"example": "domain.org"
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "path",
|
"name": "path",
|
||||||
|
@ -56,13 +55,11 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "admin",
|
"name": "admin",
|
||||||
"type": "user",
|
"type": "user"
|
||||||
"example": "johndoe"
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "password",
|
"name": "password",
|
||||||
"type": "password",
|
"type": "password"
|
||||||
"example": "Choose a password"
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "github_account",
|
"name": "github_account",
|
||||||
|
|
|
@ -12,7 +12,7 @@ pkg_dependencies="libxml2-dev libxslt-dev libfreetype6-dev libjpeg-dev libz-dev
|
||||||
libpq-dev libglib2.0-dev mailutils python-celery-common hub"
|
libpq-dev libglib2.0-dev mailutils python-celery-common hub"
|
||||||
|
|
||||||
# Weblate's version for PIP and settings file
|
# Weblate's version for PIP and settings file
|
||||||
weblate_version="4.8"
|
weblate_version="4.9"
|
||||||
|
|
||||||
debian_maj_version=$(sed 's/\..*//' /etc/debian_version)
|
debian_maj_version=$(sed 's/\..*//' /etc/debian_version)
|
||||||
|
|
||||||
|
|
|
@ -126,6 +126,8 @@ chown -R "$app": "$final_path"
|
||||||
cd "${final_path}"
|
cd "${final_path}"
|
||||||
|
|
||||||
sudo --user=$app $final_path/venv/bin/pip install --upgrade pip setuptools wheel
|
sudo --user=$app $final_path/venv/bin/pip install --upgrade pip setuptools wheel
|
||||||
|
# Tmp fix
|
||||||
|
sudo --user=$app $final_path/venv/bin/pip install --upgrade cffi==1.14
|
||||||
# Still needed with latest version of weblate?
|
# Still needed with latest version of weblate?
|
||||||
sudo --user=$app $final_path/venv/bin/pip install Weblate=="$weblate_version"
|
sudo --user=$app $final_path/venv/bin/pip install Weblate=="$weblate_version"
|
||||||
sudo --user=$app $final_path/venv/bin/pip install psycopg2-binary ruamel.yaml aeidon phply
|
sudo --user=$app $final_path/venv/bin/pip install psycopg2-binary ruamel.yaml aeidon phply
|
||||||
|
|
|
@ -34,8 +34,6 @@ db_pwd=$(ynh_app_setting_get --app="$app" --key=psqlpwd)
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Validating restoration parameters..." --weight=1
|
ynh_script_progression --message="Validating restoration parameters..." --weight=1
|
||||||
|
|
||||||
ynh_webpath_available --domain=$domain --path_url=$path_url \
|
|
||||||
|| ynh_die --message="Path not available: ${domain}${path_url}"
|
|
||||||
test ! -d $final_path \
|
test ! -d $final_path \
|
||||||
|| ynh_die --message="There is already a directory: $final_path "
|
|| ynh_die --message="There is already a directory: $final_path "
|
||||||
|
|
||||||
|
|
|
@ -170,6 +170,8 @@ upgrade() {
|
||||||
cd "${final_path}"
|
cd "${final_path}"
|
||||||
|
|
||||||
sudo --user=$app $final_path/venv/bin/pip install --upgrade pip setuptools wheel
|
sudo --user=$app $final_path/venv/bin/pip install --upgrade pip setuptools wheel
|
||||||
|
# Tmp fix
|
||||||
|
sudo --user=$app $final_path/venv/bin/pip install --upgrade cffi==1.14
|
||||||
# Still needed with latest version of weblate?
|
# Still needed with latest version of weblate?
|
||||||
sudo --user=$app $final_path/venv/bin/pip install --upgrade Weblate=="$new_version"
|
sudo --user=$app $final_path/venv/bin/pip install --upgrade Weblate=="$new_version"
|
||||||
sudo --user=$app $final_path/venv/bin/pip install psycopg2-binary ruamel.yaml aeidon phply
|
sudo --user=$app $final_path/venv/bin/pip install psycopg2-binary ruamel.yaml aeidon phply
|
||||||
|
|
Loading…
Reference in a new issue