Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 18 additions & 19 deletions lib/l10n/app_en.arb
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
{
"moduleCentralassociation": "Centralassociation",
"moduleCentralassociationDescription": "Aggregator of association links",
"adminAccountTypes": "Account types",
"adminAdd": "Add",
"adminAddAssociation": "Add association",
Expand Down Expand Up @@ -783,6 +781,8 @@
"moduleBookingDescription": "Book a room",
"moduleCalendar": "Calendar",
"moduleCalendarDescription": "View the calendar of events",
"moduleCentralassociation": "Centralassociation",
"moduleCentralassociationDescription": "Aggregator of association links",
"moduleCentralisation": "Centralisation",
"moduleCentralisationDescription": "Viw all links",
"moduleCinema": "Cinema",
Expand Down Expand Up @@ -842,6 +842,7 @@
"paiementAccessPage": "Access the page",
"paiementAdd": "Add",
"paiementAddedSeller": "Seller added",
"paiementAddFunds": "Add Funds",
"paiementAddingSellerError": "Error while adding seller",
"paiementAddingStoreError": "Error while adding the store",
"paiementAddSeller": "Add seller",
Expand Down Expand Up @@ -871,6 +872,9 @@
"paiementCanSeeHistory": "Can view history",
"paiementCantLaunchURL": "Can't open link",
"paiementClose": "Close",
"paiementCompletePayment": "Complete payment",
"paiementConfirmPayment": "Confirm Payment",
"paiementConfirmYourPurchase": "Confirm your purchase",
"paiementCreate": "Create",
"paiementCreateInvoice": "Create new invoice",
"paiementDecline": "Decline",
Expand Down Expand Up @@ -923,6 +927,8 @@
"paiementGetTransactionsError": "Error while retrieving transactions: ",
"paiementHandOver": "Handover",
"paiementHistory": "History",
"paiementHurryUp": "Hurry up!",
"paiementInsufficientFunds": "Insufficient Funds",
"paiementInvoiceCreatedSuccessfully": "Invoice created successfully",
"paiementInvoices": "Invoices",
"paiementInvoicesPerPage": "{quantity} invoices/page",
Expand Down Expand Up @@ -959,15 +965,15 @@
"paiementPaid": "Paid",
"paiementPay": "Pay",
"paiementPayment": "Payment",
"paiementPaymentCanceled": "Payment canceled",
"paiementPaymentRequest": "Payment request",
"paiementPaymentRequestAccepted": "Payment request accepted",
"paiementPaymentRequestError": "Error processing payment request",
"paiementPaymentRequestRefused": "Payment request refused",
"paiementPaymentSuccessful": "Payment successful!",
"paiementPayWithHA": "Pay with HelloAsso",
"paiementPending": "Pending",
"paiementPersonalBalance": "Personal balance",
"paiementAddFunds": "Add Funds",
"paiementInsufficientFunds": "Insufficient Funds",
"paiementTimeRemaining": "Time Remaining",
"paiementHurryUp": "Hurry up!",
"paiementCompletePayment": "Complete payment",
"paiementConfirmPayment": "Confirm Payment",
"paiementPleaseAcceptPopup": "Please allow popups",
"paiementPleaseAcceptTOS": "Please accept the Terms of Service.",
"paiementPleaseAddDevice": "Please add this device to pay",
Expand All @@ -981,6 +987,7 @@
"paiementRefund": "Refund",
"paiementRefundAction": "Refund",
"paiementRefundedThe": "Refunded on",
"paiementRefuse": "Refuse",
"paiementRevokeDevice": "Revoke device?",
"paiementRevokeDeviceDescription": "You will no longer be able to use this device for payments",
"paiementRightsOf": "Rights of",
Expand Down Expand Up @@ -1014,20 +1021,11 @@
}
},
"paiementSuccededTransaction": "Successful payment",
"paiementConfirmYourPurchase": "Confirm your purchase",
"paiementYourBalance": "Your balance",
"paiementPaymentSuccessful": "Payment successful!",
"paiementPaymentCanceled": "Payment canceled",
"paiementPaymentRequest": "Payment request",
"paiementPaymentRequestAccepted": "Payment request accepted",
"paiementPaymentRequestRefused": "Payment request refused",
"paiementPaymentRequestError": "Error processing payment request",
"paiementAccept": "Accept",
"paiementRefuse": "Refuse",
"paiementSuccessfullyAddedStore": "Store successfully added",
"paiementSuccessfullyModifiedStore": "Store successfully updated",
"paiementThe": "The",
"paiementThisDevice": "(this device)",
"paiementTimeRemaining": "Time Remaining",
"paiementTopUp": "Top-up",
"paiementTopUpAction": "Top-up",
"paiementTotalDuringPeriod": "Total during the period",
Expand All @@ -1042,6 +1040,7 @@
"paiementUnknownDevice": "Unknown device",
"paiementValidUntil": "Valid until",
"paiementYouAreTransferingStructureTo": "You are about to transfer the structure to ",
"paiementYourBalance": "Your balance",
"phAdd": "Add",
"phAdded": "Added",
"phAddingFileError": "Add error",
Expand Down Expand Up @@ -1655,4 +1654,4 @@
"voteVoteSuccess": "Vote recorded",
"voteWarning": "Warning",
"voteWarningMessage": "Selection will not be saved.\nDo you want to continue?"
}
}
37 changes: 18 additions & 19 deletions lib/l10n/app_fr.arb
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
{
"moduleCentralassociation": "Centralassociation",
"moduleCentralassociationDescription": "Agrégateur des liens des associations",
"adminAccountTypes": "Types de compte",
"adminAdd": "Ajouter",
"adminAddAssociation": "Ajouter une association",
Expand Down Expand Up @@ -791,6 +789,8 @@
"moduleBookingDescription": "Gérer les réservations, les salles et les managers",
"moduleCalendar": "Calendrier",
"moduleCalendarDescription": "Consulter les événements et les activités",
"moduleCentralassociation": "Centralassociation",
"moduleCentralassociationDescription": "Agrégateur des liens des associations",
"moduleCentralisation": "Centralisation",
"moduleCentralisationDescription": "Gérer la centralisation des données",
"moduleCinema": "Cinéma",
Expand Down Expand Up @@ -850,6 +850,7 @@
"paiementAccessPage": "Accéder à la page",
"paiementAdd": "Ajouter",
"paiementAddedSeller": "Vendeur ajouté",
"paiementAddFunds": "Ajouter des fonds",
"paiementAddingSellerError": "Erreur lors de l'ajout du vendeur",
"paiementAddingStoreError": "Erreur lors de l'ajout du magasin",
"paiementAddSeller": "Ajouter un vendeur",
Expand Down Expand Up @@ -879,6 +880,9 @@
"paiementCanSeeHistory": "Peut voir l'historique",
"paiementCantLaunchURL": "Impossible d'ouvrir le lien",
"paiementClose": "Fermer",
"paiementCompletePayment": "Finaliser le paiement",
"paiementConfirmPayment": "Confirmer le paiement",
"paiementConfirmYourPurchase": "Confirmer votre achat",
"paiementCreate": "Créer",
"paiementCreateInvoice": "Créer une facture",
"paiementDecline": "Refuser",
Expand Down Expand Up @@ -931,6 +935,8 @@
"paiementGetTransactionsError": "Erreur lors de la récupération des transactions : ",
"paiementHandOver": "Passation",
"paiementHistory": "Historique",
"paiementHurryUp": "Dépêchez-vous !",
"paiementInsufficientFunds": "Fonds insuffisants",
"paiementInvoiceCreatedSuccessfully": "Facture créée avec succès",
"paiementInvoices": "Factures",
"paiementInvoicesPerPage": "{quantity} factures/page",
Expand Down Expand Up @@ -967,15 +973,15 @@
"paiementPaid": "Payé",
"paiementPay": "Payer",
"paiementPayment": "Paiement",
"paiementPaymentCanceled": "Paiement annulé",
"paiementPaymentRequest": "Demande de paiement",
"paiementPaymentRequestAccepted": "Demande de paiement acceptée",
"paiementPaymentRequestError": "Erreur lors du traitement de la demande",
"paiementPaymentRequestRefused": "Demande de paiement refusée",
"paiementPaymentSuccessful": "Paiement réussi !",
"paiementPayWithHA": "Payer avec HelloAsso",
"paiementPending": "En attente",
"paiementPersonalBalance": "Solde personnel",
"paiementAddFunds": "Ajouter des fonds",
"paiementInsufficientFunds": "Fonds insuffisants",
"paiementTimeRemaining": "Temps restant",
"paiementHurryUp": "Dépêchez-vous !",
"paiementCompletePayment": "Finaliser le paiement",
"paiementConfirmPayment": "Confirmer le paiement",
"paiementPleaseAcceptPopup": "Veuillez autoriser les popups",
"paiementPleaseAcceptTOS": "Veuillez accepter les Conditions Générales d'Utilisation.",
"paiementPleaseAddDevice": "Veuillez ajouter cet appareil pour payer",
Expand All @@ -989,6 +995,7 @@
"paiementRefund": "Remboursement",
"paiementRefundAction": "Rembourser",
"paiementRefundedThe": "Remboursé le",
"paiementRefuse": "Refuser",
"paiementRevokeDevice": "Révoquer l'appareil ?",
"paiementRevokeDeviceDescription": "Vous ne pourrez plus utiliser cet appareil pour les paiements",
"paiementRightsOf": "Droits de",
Expand Down Expand Up @@ -1022,20 +1029,11 @@
}
},
"paiementSuccededTransaction": "Paiement réussi",
"paiementConfirmYourPurchase": "Confirmer votre achat",
"paiementYourBalance": "Votre solde",
"paiementPaymentSuccessful": "Paiement réussi !",
"paiementPaymentCanceled": "Paiement annulé",
"paiementPaymentRequest": "Demande de paiement",
"paiementPaymentRequestAccepted": "Demande de paiement acceptée",
"paiementPaymentRequestRefused": "Demande de paiement refusée",
"paiementPaymentRequestError": "Erreur lors du traitement de la demande",
"paiementAccept": "Accepter",
"paiementRefuse": "Refuser",
"paiementSuccessfullyAddedStore": "Magasin ajoutée avec succès",
"paiementSuccessfullyModifiedStore": "Magasin modifiée avec succès",
"paiementThe": "Le",
"paiementThisDevice": "(cet appareil)",
"paiementTimeRemaining": "Temps restant",
"paiementTopUp": "Recharge",
"paiementTopUpAction": "Recharger",
"paiementTotalDuringPeriod": "Total sur la période",
Expand All @@ -1050,6 +1048,7 @@
"paiementUnknownDevice": "Appareil inconnu",
"paiementValidUntil": "Valide jusqu'à",
"paiementYouAreTransferingStructureTo": "Vous êtes sur le point de transférer la structure à ",
"paiementYourBalance": "Votre solde",
"phAdd": "Ajouter",
"phAdded": "Ajouté",
"phAddingFileError": "Erreur d'ajout",
Expand Down Expand Up @@ -1662,4 +1661,4 @@
"voteVoteSuccess": "Vote enregistré",
"voteWarning": "Attention",
"voteWarningMessage": "La sélection ne sera pas sauvegardée.\nVoulez-vous continuer ?"
}
}
29 changes: 29 additions & 0 deletions lib/l10n/sort_arb.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import 'dart:convert';
import 'dart:io';

void main() async {
final fileNames = ["app_en.arb", "app_fr.arb"];

for (final fileName in fileNames) {
final file = File("lib/l10n/$fileName");
final content =
jsonDecode(await file.readAsString()) as Map<String, dynamic>;

final sortedKeys = content.keys.toList()
..sort((a, b) {
final keyA =
a.toLowerCase().replaceAll("@", "") +
(a.startsWith("@") ? "a" : "");
final keyB =
b.toLowerCase().replaceAll("@", "") +
(b.startsWith("@") ? "a" : "");
return keyA.compareTo(keyB);
});

final sortedContent = {for (final key in sortedKeys) key: content[key]};

await file.writeAsString(
const JsonEncoder.withIndent(' ').convert(sortedContent),
);
}
}
20 changes: 0 additions & 20 deletions lib/l10n/sort_arb.py

This file was deleted.

3 changes: 3 additions & 0 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ version: 3.0.0+197

minimal_hyperion_version: 6.0.0

scripts:
sort-arb: dart run .\lib\l10n\sort_arb.dart

environment:
sdk: ^3.10.0
flutter: ^3.38.6
Expand Down
Loading