diff --git a/ALL_README.md b/ALL_README.md
new file mode 100644
index 0000000..a01b345
--- /dev/null
+++ b/ALL_README.md
@@ -0,0 +1,7 @@
+# All available README files by language
+
+- [Read the README in English](README.md)
+- [Irakurri README euskaraz](README_eu.md)
+- [Lire le README en français](README_fr.md)
+- [Le o README en galego](README_gl.md)
+- [阅读中文(简体)的 README](README_zh_Hans.md)
diff --git a/README.md b/README.md
index abedbd1..1ee460e 100644
--- a/README.md
+++ b/README.md
@@ -1,5 +1,5 @@
@@ -9,10 +9,10 @@ It shall NOT be edited by hand.
[![Install Gamja with YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=gamja)
-*[Lire ce readme en français.](./README_fr.md)*
+*[Read this README in other languages.](./ALL_README.md)*
-> *This package allows you to install Gamja quickly and simply on a YunoHost server.
-If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/install) to learn how to install it.*
+> *This package allows you to install Gamja quickly and simply on a YunoHost server.*
+> *If you don't have YunoHost, please consult [the guide](https://yunohost.org/install) to learn how to install it.*
## Overview
@@ -20,7 +20,7 @@ A simple IRC web client.
**Shipped version:** 1.0.0-beta.9~ynh1
-**Demo:** https://web.libera.chat/gamja/
+**Demo:**
## Screenshots
@@ -28,21 +28,21 @@ A simple IRC web client.
## Documentation and resources
-* Official app website:
-* Upstream app code repository:
-* YunoHost Store:
-* Report a bug:
+- Official app website:
+- Upstream app code repository:
+- YunoHost Store:
+- Report a bug:
## Developer info
-Please send your pull request to the [testing branch](https://github.com/YunoHost-Apps/gamja_ynh/tree/testing).
+Please send your pull request to the [`testing` branch](https://github.com/YunoHost-Apps/gamja_ynh/tree/testing).
-To try the testing branch, please proceed like that.
+To try the `testing` branch, please proceed like that:
-``` bash
+```bash
sudo yunohost app install https://github.com/YunoHost-Apps/gamja_ynh/tree/testing --debug
or
sudo yunohost app upgrade gamja -u https://github.com/YunoHost-Apps/gamja_ynh/tree/testing --debug
```
-**More info regarding app packaging:**
\ No newline at end of file
+**More info regarding app packaging:**
diff --git a/README_eu.md b/README_eu.md
new file mode 100644
index 0000000..f08e6bc
--- /dev/null
+++ b/README_eu.md
@@ -0,0 +1,48 @@
+
+
+# Gamja YunoHost-erako
+
+[![Integrazio maila](https://dash.yunohost.org/integration/gamja.svg)](https://dash.yunohost.org/appci/app/gamja) ![Funtzionamendu egoera](https://ci-apps.yunohost.org/ci/badges/gamja.status.svg) ![Mantentze egoera](https://ci-apps.yunohost.org/ci/badges/gamja.maintain.svg)
+
+[![Instalatu Gamja YunoHost-ekin](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=gamja)
+
+*[Irakurri README hau beste hizkuntzatan.](./ALL_README.md)*
+
+> *Pakete honek Gamja YunoHost zerbitzari batean azkar eta zailtasunik gabe instalatzea ahalbidetzen dizu.*
+> *YunoHost ez baduzu, kontsultatu [gida](https://yunohost.org/install) nola instalatu ikasteko.*
+
+## Aurreikuspena
+
+A simple IRC web client.
+
+**Paketatutako bertsioa:** 1.0.0-beta.9~ynh1
+
+**Demoa:**
+
+## Pantaila-argazkiak
+
+![Gamja(r)en pantaila-argazkia](./doc/screenshots/screenshot.png)
+
+## Dokumentazioa eta baliabideak
+
+- Aplikazioaren webgune ofiziala:
+- Jatorrizko aplikazioaren kode-gordailua:
+- YunoHost Denda:
+- Eman errore baten berri:
+
+## Garatzaileentzako informazioa
+
+Bidali `pull request`a [`testing` abarrera](https://github.com/YunoHost-Apps/gamja_ynh/tree/testing).
+
+`testing` abarra probatzeko, ondorengoa egin:
+
+```bash
+sudo yunohost app install https://github.com/YunoHost-Apps/gamja_ynh/tree/testing --debug
+edo
+sudo yunohost app upgrade gamja -u https://github.com/YunoHost-Apps/gamja_ynh/tree/testing --debug
+```
+
+**Informazio gehiago aplikazioaren paketatzeari buruz:**
diff --git a/README_fr.md b/README_fr.md
index 8b7f218..e0d4a8b 100644
--- a/README_fr.md
+++ b/README_fr.md
@@ -1,6 +1,6 @@
# Gamja pour YunoHost
@@ -9,18 +9,18 @@ It shall NOT be edited by hand.
[![Installer Gamja avec YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=gamja)
-*[Read this readme in english.](./README.md)*
+*[Lire le README dans d'autres langues.](./ALL_README.md)*
-> *Ce package vous permet d’installer Gamja rapidement et simplement sur un serveur YunoHost.
-Si vous n’avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) pour savoir comment l’installer et en profiter.*
+> *Ce package vous permet d’installer Gamja rapidement et simplement sur un serveur YunoHost.*
+> *Si vous n’avez pas YunoHost, consultez [ce guide](https://yunohost.org/install) pour savoir comment l’installer et en profiter.*
## Vue d’ensemble
A simple IRC web client.
-**Version incluse :** 1.0.0-beta.9~ynh1
+**Version incluse :** 1.0.0-beta.9~ynh1
-**Démo :** https://web.libera.chat/gamja/
+**Démo :**
## Captures d’écran
@@ -28,21 +28,21 @@ A simple IRC web client.
## Documentations et ressources
-* Site officiel de l’app :
-* Dépôt de code officiel de l’app :
-* YunoHost Store:
-* Signaler un bug :
+- Site officiel de l’app :
+- Dépôt de code officiel de l’app :
+- YunoHost Store :
+- Signaler un bug :
## Informations pour les développeurs
-Merci de faire vos pull request sur la [branche testing](https://github.com/YunoHost-Apps/gamja_ynh/tree/testing).
+Merci de faire vos pull request sur la [branche `testing`](https://github.com/YunoHost-Apps/gamja_ynh/tree/testing).
-Pour essayer la branche testing, procédez comme suit.
+Pour essayer la branche `testing`, procédez comme suit :
-``` bash
+```bash
sudo yunohost app install https://github.com/YunoHost-Apps/gamja_ynh/tree/testing --debug
ou
sudo yunohost app upgrade gamja -u https://github.com/YunoHost-Apps/gamja_ynh/tree/testing --debug
```
-**Plus d’infos sur le packaging d’applications :**
\ No newline at end of file
+**Plus d’infos sur le packaging d’applications :**
diff --git a/README_gl.md b/README_gl.md
new file mode 100644
index 0000000..9f49eff
--- /dev/null
+++ b/README_gl.md
@@ -0,0 +1,48 @@
+
+
+# Gamja para YunoHost
+
+[![Nivel de integración](https://dash.yunohost.org/integration/gamja.svg)](https://dash.yunohost.org/appci/app/gamja) ![Estado de funcionamento](https://ci-apps.yunohost.org/ci/badges/gamja.status.svg) ![Estado de mantemento](https://ci-apps.yunohost.org/ci/badges/gamja.maintain.svg)
+
+[![Instalar Gamja con YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=gamja)
+
+*[Le este README en outros idiomas.](./ALL_README.md)*
+
+> *Este paquete permíteche instalar Gamja de xeito rápido e doado nun servidor YunoHost.*
+> *Se non usas YunoHost, le a [documentación](https://yunohost.org/install) para saber como instalalo.*
+
+## Vista xeral
+
+A simple IRC web client.
+
+**Versión proporcionada:** 1.0.0-beta.9~ynh1
+
+**Demo:**
+
+## Capturas de pantalla
+
+![Captura de pantalla de Gamja](./doc/screenshots/screenshot.png)
+
+## Documentación e recursos
+
+- Web oficial da app:
+- Repositorio de orixe do código:
+- Tenda YunoHost:
+- Informar dun problema:
+
+## Info de desenvolvemento
+
+Envía a túa colaboración á [rama `testing`](https://github.com/YunoHost-Apps/gamja_ynh/tree/testing).
+
+Para probar a rama `testing`, procede deste xeito:
+
+```bash
+sudo yunohost app install https://github.com/YunoHost-Apps/gamja_ynh/tree/testing --debug
+ou
+sudo yunohost app upgrade gamja -u https://github.com/YunoHost-Apps/gamja_ynh/tree/testing --debug
+```
+
+**Máis info sobre o empaquetado da app:**
diff --git a/README_zh_Hans.md b/README_zh_Hans.md
new file mode 100644
index 0000000..ce1d748
--- /dev/null
+++ b/README_zh_Hans.md
@@ -0,0 +1,48 @@
+
+
+# YunoHost 的 Gamja
+
+[![集成程度](https://dash.yunohost.org/integration/gamja.svg)](https://dash.yunohost.org/appci/app/gamja) ![工作状态](https://ci-apps.yunohost.org/ci/badges/gamja.status.svg) ![维护状态](https://ci-apps.yunohost.org/ci/badges/gamja.maintain.svg)
+
+[![使用 YunoHost 安装 Gamja](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=gamja)
+
+*[阅读此 README 的其它语言版本。](./ALL_README.md)*
+
+> *通过此软件包,您可以在 YunoHost 服务器上快速、简单地安装 Gamja。*
+> *如果您还没有 YunoHost,请参阅[指南](https://yunohost.org/install)了解如何安装它。*
+
+## 概况
+
+A simple IRC web client.
+
+**分发版本:** 1.0.0-beta.9~ynh1
+
+**演示:**
+
+## 截图
+
+![Gamja 的截图](./doc/screenshots/screenshot.png)
+
+## 文档与资源
+
+- 官方应用网站:
+- 上游应用代码库:
+- YunoHost 商店:
+- 报告 bug:
+
+## 开发者信息
+
+请向 [`testing` 分支](https://github.com/YunoHost-Apps/gamja_ynh/tree/testing) 发送拉取请求。
+
+如要尝试 `testing` 分支,请这样操作:
+
+```bash
+sudo yunohost app install https://github.com/YunoHost-Apps/gamja_ynh/tree/testing --debug
+或
+sudo yunohost app upgrade gamja -u https://github.com/YunoHost-Apps/gamja_ynh/tree/testing --debug
+```
+
+**有关应用打包的更多信息:**
diff --git a/scripts/upgrade b/scripts/upgrade
index a9e2a59..65726c8 100644
--- a/scripts/upgrade
+++ b/scripts/upgrade
@@ -30,7 +30,13 @@ ynh_systemd_action --service_name=$app --action="stop" --log_path="systemd"
#=================================================
ynh_script_progression --message="Upgrading source files..." --weight=3
-ynh_setup_source --dest_dir="$install_dir" --keep="config.json"
+if [ "$upgrade_type" == "UPGRADE_APP" ]
+then
+ ynh_script_progression --message="Upgrading source files..." --weight=3
+
+ # Download, check integrity, uncompress and patch the source from app.src
+ ynh_setup_source --dest_dir="$install_dir" --full_replace=1 --keep="config.json"
+fi
chmod -R o-rwx "$install_dir"
chown -R $app:www-data "$install_dir"
@@ -82,7 +88,7 @@ ynh_script_progression --message="Building webircgateway..." --weight=4
mkdir -p $webircgateway_path
tempdir="$(mktemp -d)"
-ynh_setup_source --dest_dir=$tempdir --source_id="webircgateway"
+ynh_setup_source --dest_dir=$tempdir --source_id="webircgateway" --full_replace=1
pushd $tempdir
ynh_use_go
export GOPATH="$tempdir/go"