Skip to content

Commit

Permalink
change translation about valid phone numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
icrc-fdeniger committed Nov 19, 2024
1 parent 5b232de commit 4eb550a
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 19 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
/.idea/
/secrets.env
/admin/assets/i18n-override/en.json
8 changes: 4 additions & 4 deletions admin/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ ENV HCW_ADMIN_VERSION=${HCW_ADMIN_VERSION}
FROM init-layer AS i18n-layer
USER root
RUN apt update && apt install -y jq && rm -rf /var/lib/apt/lists/*
COPY assets /usr/share/nginx/html/assets/i18n
RUN /usr/share/nginx/html/assets/i18n/combine.sh
COPY assets /usr/share/nginx/html/assets/translate
RUN /usr/share/nginx/html/assets/translate/combine.sh


FROM init-layer

COPY --from=i18n-layer /usr/share/nginx/html/assets/i18n/*.json /usr/share/nginx/html/assets/i18n/
COPY --from=i18n-layer /usr/share/nginx/html/assets/i18n/*.orig /tmp/orig/
COPY --from=i18n-layer /usr/share/nginx/html/assets/translate/*.json /usr/share/nginx/html/assets/translate/
COPY --from=i18n-layer /usr/share/nginx/html/assets/translate/*.orig /tmp/orig/
9 changes: 9 additions & 0 deletions admin/assets/i18n-override/en.json.orig
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"roles": {
"doctor": "Doctor",
"requester": "Requester",
"nurse": "Requester",
"admin": "Admin",
"scheduler": "Scheduler"
}
}
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ services:
- HCW_ADMIN_VERSION=$HCW_ADMIN_VERSION
user: nginx
ports:
- "8082:8082"
- "8089:8082"
environment:
- BACKEND_URL=http://backend:1337
depends_on:
Expand Down
17 changes: 4 additions & 13 deletions doctor/assets/i18n-override/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -224,11 +224,7 @@
"et": "Tigrigna",
"sg": "Tamoul",
"ta": "Tamoul",
"ti": "Tigrigna",
"chooseTime": "Choisissez une heure",
"selectTimezone": "Sélectionner le fuseau horaire",
"chooseDate": "Choisissez une date",
"sendLinkManually": "Je veux envoyer le lien manuellement"
"ti": "Tigrigna"
},
"overlay": {
"close": "Clôturer",
Expand Down Expand Up @@ -288,8 +284,7 @@
"revoke": "Supprimer",
"cancelRevoke": "Ne pas supprimer",
"revokeConfirmTitle": "Supprimer une invitation",
"status": "Etat",
"immediately": "Immédiatement"
"status": "Etat"
},
"sideChat": {
"startTheConsultation": "Démarrer la consultation"
Expand Down Expand Up @@ -346,10 +341,7 @@
"updateTheProfile": "mettre à jour le profil",
"enablesNotification": "Cette option active l'envoi de notification SMS quand une consultation est demandée.",
"notification": "Notification",
"name": "Nom",
"whatsapp": "WhatsApp",
"sms": "SMS",
"selectLanguage": "Langue"
"name": "Nom"
},
"resetPassword": {
"changePassword": "Changement du mot de passe",
Expand Down Expand Up @@ -434,8 +426,7 @@
"terms": "les conditions d'utilisation",
"youHaveTo": "Vous devez accepter",
"description": "Conditions d'accès",
"pleaseAccept": "Vous devez accepter {{terms}} avant de pouvoir utiliser l'application",
"country": "Pays"
"pleaseAccept": "Vous devez accepter {{terms}} avant de pouvoir utiliser l'application"
},
"support": {
"thisFormAllowsYouToReportAProblem": "Ce formulaire vous permet de remonter un problème rencontré pendant l'utilisation de {{branding}}. Avant de rapporter un incident, merci de vérifier que vous utilisez bien {{branding}} dans les conditions optimales :",
Expand Down
2 changes: 1 addition & 1 deletion update-i18n-resources.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ move_files "doctor" "/usr/share/nginx/html/assets/i18n/"
move_files "patient" "/usr/share/nginx/html/assets/i18n/"
move_files "backend" "/usr/src/app/config/locales/"
# not done as admin is not yet translated.
#move_files "admin" "/usr/share/nginx/html/assets/i18n/"
move_files "admin" "/usr/share/nginx/html/assets/translate/"

0 comments on commit 4eb550a

Please sign in to comment.