Skip to content

Commit

Permalink
fix: update French and English translations (#381)
Browse files Browse the repository at this point in the history
* FR locale update + EN editing

- Added new lines, plus some editing and typography to the FR locale.
- Added the FR dayjs, not quite sure what it does nor why it wasn't added before.
- EN editing proposal:
- Added a link to the uBlacklist documentation for advanced rules (would have been helpful for me)
- Changed "blacklist" to "blocklist" as it is clearer regarding the purpose and the use of "blacklist" is now discouraged
- Changed "Initialize settings", which I found confusing, to "Reinitialize settings". "Reset settings" might also be a good choice.
- Minor typo and grammar edits.

* modify or revert some changes

---------

Co-authored-by: iorate <682043+iorate@users.noreply.github.com>
  • Loading branch information
NotaInutilis and iorate committed Nov 28, 2023
1 parent 2d0096d commit 6576f1f
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 24 deletions.
21 changes: 11 additions & 10 deletions src/locales/en.json.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ exportAsMessages('_locales/en/messages.json', {

// The helper text for the blacklist textarea.
options_blacklistHelper:
'You can use [match patterns](https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/Match_patterns) or [regular expressions](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions).',
'You can use [match patterns](https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/Match_patterns) and [regular expressions](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions).',

// The helper text to show an example rule.
// '$1' is expanded to the example.
Expand Down Expand Up @@ -148,7 +148,8 @@ exportAsMessages('_locales/en/messages.json', {
options_otherSearchEngines: 'Other search engines',

// The details for other search engines support.
options_otherSearchEnginesDescription: 'You can use this extension on the below search engines.',
options_otherSearchEnginesDescription:
'You can use this extension on the following search engines.',

// The text of the button to enable this extension on a search engine.
options_registerSearchEngine: 'Enable',
Expand Down Expand Up @@ -226,7 +227,7 @@ exportAsMessages('_locales/en/messages.json', {

// The description of the sync feature.
options_syncFeatureDescription:
'You can synchronize blacklists across your devices through a cloud.',
'You can synchronize rulesets across your devices through a cloud.',

// The text of the button to turn on sync.
options_turnOnSync: 'Turn on sync',
Expand Down Expand Up @@ -260,7 +261,7 @@ exportAsMessages('_locales/en/messages.json', {
options_syncNever: 'Never synced',

// The text that means sync is running right now.
options_syncRunning: 'Syncing...',
options_syncRunning: 'Syncing',

// The text of the button to reload the options page after settings are downloaded from a cloud.
options_syncReloadButton: 'Reload',
Expand Down Expand Up @@ -290,11 +291,11 @@ exportAsMessages('_locales/en/messages.json', {
options_subscriptionTitle: 'Subscription',

// The subscription feature.
options_subscriptionFeature: 'Subscribe to blacklists',
options_subscriptionFeature: 'Subscribe to rulesets',

// The description of the subscription feature.
options_subscriptionFeatureDescription:
'If you add a subscription, blacklists will be regularly downloaded from the specified URL.',
'If you add a subscription, rulesets will be regularly downloaded from the specified URL.',

// The text of the button to add a subscription.
options_addSubscriptionButton: 'Add a subscription',
Expand All @@ -318,7 +319,7 @@ exportAsMessages('_locales/en/messages.json', {
options_noSubscriptionsAdded: 'No subscriptions added',

// The text that means update is running right now.
options_subscriptionUpdateRunning: 'Updating...',
options_subscriptionUpdateRunning: 'Updating',

// The text of a menu item to show a subscription.
options_showSubscriptionMenu: 'Show',
Expand Down Expand Up @@ -369,13 +370,13 @@ exportAsMessages('_locales/en/messages.json', {
options_restoreSettingsInvalidFile: 'The file format is invalid.',

// Initialize settings.
options_initializeSettingsLabel: 'Initialize settings',
options_initializeSettingsLabel: 'Reset settings',

// The text of the button to initialize settings.
options_initializeSettingsButton: 'Initialize',
options_initializeSettingsButton: 'Reset',

// The confirmation message to initialize settings.
options_initializeSettingsConfirmation: 'Do you really want to initialize your settings?',
options_initializeSettingsConfirmation: 'Do you really want to reset your settings?',

// The title of the about section.
options_aboutTitle: 'About uBlacklist',
Expand Down
46 changes: 32 additions & 14 deletions src/locales/fr.json.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ exportAsMessages('_locales/fr/messages.json', {
extensionDescription:
"Empêche des sites spécifiés d'apparaître dans les résultats de recherche Google",
lang: 'fr',
error: 'Erreur: $1',
error: 'Erreur : $1',
unauthorizedError: 'Accès refusé. Veuillez désactiver et réactiver la synchronisation.',
cancelButton: 'Annuler',
okButton: 'OK',
Expand All @@ -32,8 +32,8 @@ exportAsMessages('_locales/fr/messages.json', {
options_generalTitle: 'Général',
options_blacklistLabel: 'Sites bloqués des résultats de recherche Google',
options_blacklistHelper:
'Vous pouvez utiliser des [motifs](https://developer.mozilla.org/fr/docs/Mozilla/Add-ons/WebExtensions/Match_patterns) ou des [expressions régulières](https://developer.mozilla.org/fr/docs/Web/JavaScript/Guide/Regular_Expressions).',
options_blacklistExample: 'Exemple: $1',
'Vous pouvez utiliser des [motifs](https://developer.mozilla.org/fr/docs/Mozilla/Add-ons/WebExtensions/Match_patterns), des [expressions régulières](https://developer.mozilla.org/fr/docs/Web/JavaScript/Guide/Regular_Expressions) et des [règles avancées](https://iorate.github.io/ublacklist/docs/advanced-features).',
options_blacklistExample: 'Exemple : $1',
options_blockByTitle:
'Préfixer "title" aux expressions régulières pour bloquer des sites avec leur titre de page.',
options_blacklistUpdated: 'Mis à jour',
Expand All @@ -44,19 +44,19 @@ exportAsMessages('_locales/fr/messages.json', {
options_importBlacklistDialog_title: 'Import',
options_importBlacklistDialog_fromFile: 'Importer depuis un fichier',
options_importBlacklistDialog_selectFile: 'Sélectionner un fichier',
options_importBlacklistDialog_fromPB: 'Importer depuis une Blocklist personnelle',
options_importBlacklistDialog_fromPB: 'Importer depuis une liste de blocage personnelle',
options_importBlacklistDialog_pbLabel: 'Domaines',
options_importBlacklistDialog_append: 'Ajouter à la liste existante',
options_importBlacklistDialog_importButton: 'Importer',
options_importBlacklistDialog_helper:
'Coller les domaines exportés depuis une Blacklist personnelle.',
'Coller les domaines exportés depuis une liste de blocage personnelle.',
options_otherSearchEngines: "Support d'autres moteurs de recherche",
options_otherSearchEnginesDescription:
'Vous pouvez utiliser cette extension sur les moteurs de recherche suivants.',
options_registerSearchEngine: 'Activer',
options_searchEngineRegistered: 'Désactiver',
options_searchEngineRegistered: 'Activé',
options_skipBlockDialogLabel: 'Ignorer la boite de dialogue "Bloquer ce site"',
options_hideBlockLinksLabel: 'Cacher le lien "Bloquer ce site"',
options_hideBlockLinksLabel: 'Cacher les liens "Bloquer ce site"',
options_hideControlLabel: 'Cacher le nombre de sites bloqué et le bouton "Afficher"',
options_blockWholeSiteLabel: 'Ajouter des règles pour bloquer tout le site par défaut',
options_blockWholeSiteDescription:
Expand All @@ -80,19 +80,19 @@ exportAsMessages('_locales/fr/messages.json', {
options_syncTitle: 'Synchronisation',
options_syncFeatureUpdated:
'La fonction de synchronisation a été mise à jour. Pour continuer la synchronisation, appuyer sur le bouton "Activer la synchronisation".',
options_syncFeature: 'Synchroniser avec le cloud',
options_syncFeature: 'Synchroniser avec un cloud',
options_syncFeatureDescription:
'Vous pouvez synchroniser les blacklists entre tous vos appareils grâce au cloud.',
'Vous pouvez synchroniser les listes de blocage entre tous vos appareils avec un cloud.',
options_turnOnSync: 'Activer la synchronisation',
options_turnOnSyncDialog_title: 'Activer la synchronisation',
options_turnOnSyncDialog_turnOnSyncButton: 'Activer',
options_turnOnSyncDialog_altFlowDescription:
"Il se peut que l'on vous demande les permissions pour accéder à $1 avant l'authentification, mais vos informations personnelles ne seront PAS enregistrées dans ce domaine.",
"Il se peut que les permissions pour accéder à $1 vous soient demandées avant l'authentification, mais vos informations personnelles ne seront PAS enregistrées dans ce domaine.",
options_turnOnSyncDialog_altFlowAuthCodeLabel: "Code d'autorisation",
options_turnOffSync: 'Désactiver',
options_syncResult: 'Dernière synchronisation',
options_syncNever: 'Jamais synchroniser',
options_syncRunning: 'Synchronisation...',
options_syncRunning: 'Synchronisation',
options_syncReloadButton: 'Recharger',
options_syncNowButton: 'Synchroniser maintenant',
options_syncCategories: 'Que voulez-vous synchroniser ?',
Expand All @@ -102,17 +102,17 @@ exportAsMessages('_locales/fr/messages.json', {
options_syncSubscriptions: 'Abonnements',
options_syncInterval: 'Intervalle de synchronisation',
options_subscriptionTitle: 'Abonnement',
options_subscriptionFeature: "S'abonner à une blacklists",
options_subscriptionFeature: "S'abonner à une liste de blocage",
options_subscriptionFeatureDescription:
"Si vous ajoutez un abonnement, les blacklists seront régulièrement téléchargées depuis l'URL spécifié.",
"Si vous ajoutez un abonnement, les liste de blocage seront régulièrement téléchargées depuis l'URL spécifié.",
options_addSubscriptionButton: 'Ajouter un abonnement',
options_subscriptionNameHeader: 'Nom',
options_subscriptionURLHeader: 'URL',
options_subscriptionUpdateResultHeader: 'Dernière mise à jour',
options_subscriptionCheckBoxLabel: 'Activer',
options_subscriptionMenuButtonLabel: 'Menu',
options_noSubscriptionsAdded: 'Aucun abonnement ajouté',
options_subscriptionUpdateRunning: 'Mise à jour...',
options_subscriptionUpdateRunning: 'Mise à jour',
options_showSubscriptionMenu: 'Afficher',
options_updateSubscriptionNowMenu: 'Mettre à jour maintenant',
options_removeSubscriptionMenu: 'Supprimer',
Expand All @@ -123,6 +123,21 @@ exportAsMessages('_locales/fr/messages.json', {
options_addSubscriptionDialog_addButton: 'Ajouter',
options_showSubscriptionDialog_blacklistLabel: 'Règles',
options_updateInterval: 'Intervalle de mise à jour',
options_backupRestoreTitle: 'Sauvegarder et restaurer',
options_backupSettingsLabel: 'Sauvegarder les paramètres',
options_backupSettingsButton: 'Sauvegarder',
options_restoreSettingsLabel: 'Restaurer les paramètres',
options_restoreSettingsButton: 'Restaurer',
options_restoreSettingsInvalidFile: 'Le format de fichier est invalide.',
options_initializeSettingsLabel: 'Réinitialiser les paramètres',
options_initializeSettingsButton: 'Réinitialiser',
options_initializeSettingsConfirmation: 'Voulez-vous vraiment réinitialiser vos paramètres ?',
options_aboutTitle: 'À propos de uBlacklist',
options_aboutVersion: 'Version',
options_aboutDocumentation: 'Documentation',
options_aboutReleaseNotes: 'Notes de mise à jour',
options_aboutPrivacyPolicy: 'Politique de confidentialité',
options_aboutThirdPartyNotices: 'Mentions tierces',
clouds_googleDriveSync: 'Synchronisation avec Google Drive',
clouds_googleDriveSyncDescription:
"Un fichier caché à l'utilisateur sera créé dans le dossier de données de l'application.",
Expand All @@ -136,5 +151,8 @@ exportAsMessages('_locales/fr/messages.json', {
searchEngines_ecosiaName: 'Ecosia',
searchEngines_qwantName: 'Qwant',
searchEngines_searxName: 'SearX',
searchEngines_qwantDescription: 'Désactive "Toujours lire les vidéos sur Qwant.com".',
searchEngines_startpageName: 'Startpage.com',
searchEngines_yahooJapanName: 'Yahoo! JAPAN',
searchEngines_yandexName: 'Yandex',
});
1 change: 1 addition & 0 deletions src/scripts/dayjs-locales.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import 'dayjs/locale/de';
import 'dayjs/locale/es';
import 'dayjs/locale/fr';
import 'dayjs/locale/ja';
import 'dayjs/locale/ko';
import 'dayjs/locale/pl';
Expand Down

0 comments on commit 6576f1f

Please sign in to comment.