Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some localization tweaks #1716

Merged
merged 8 commits into from
Oct 14, 2024
Merged
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
4 changes: 3 additions & 1 deletion scripts/rebuild_languages.py
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env python

import csv
import io
import json
Expand Down Expand Up @@ -40,7 +42,7 @@ def downloadSheet(url):

numHeaders = 5
headers = rows[:numHeaders]
assert headers[0][0] == "Documentation", headers[0][0]
assert headers[0][0] == "Go to Documentation", headers[0][0]
assert headers[1][2] == "English", headers[1][2]
assert headers[2][2] == "English", headers[2][2]
assert headers[3][2] == "en", headers[3][2]
Expand Down
1 change: 1 addition & 0 deletions src/fontra/client/core/localization.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { ObservableController } from "./observable-object.js";
export const languages = [
{ code: "en", langEn: "English", langLang: "English", status: "done" },
{ code: "zh-CN", langEn: "Simplified Chinese", langLang: "简体中文", status: "beta" },
{ code: "fr", langEn: "French", langLang: "Français", status: "beta" },
{ code: "nl", langEn: "Dutch", langLang: "Nederlands", status: "wip" },
];

Expand Down
14 changes: 6 additions & 8 deletions src/fontra/client/lang/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ export const strings = {
"editor.pointer-tool-scale": "Pointer Tool (Scaling edit tool behavior)",
"editor.power-ruler-tool": "Power Ruler Tool",
"editor.shape-tool": "Shape Tool",
"editor.shape-tool-ellipse": "Shape Tool Ellipse",
"editor.shape-tool-rectangle": "Shape Tool Rectangle",
"editor.shape-tool-ellipse": "Ellipse Tool",
"editor.shape-tool-rectangle": "Rectangle Tool",
"font-info.copyright": "Copyright",
"font-info.description": "Description",
"font-info.designer": "Designer",
Expand All @@ -110,13 +110,13 @@ export const strings = {
"font-info.licensedescription": "License description",
"font-info.licenseinfo.url": "License info URL",
"font-info.manufacturer": "Manufacturer",
"font-info.manufacturer.url": "Manufacturer URL",
"font-info.sampletext": "Sample text",
"font-info.title": "Font Info",
"font-info.trademark": "Trademark",
"font-info.vendorid": "Vendor ID",
"font-info.version.major": "Version Major",
"font-info.version.minor": "Version Minor",
"font-infomanufacturer.url": "Manufacturer URL",
"language.en": "English",
"language.zh-cn": "Simplified Chinese",
"menubar.edit": "Edit",
Expand All @@ -126,7 +126,6 @@ export const strings = {
"menubar.file.new": "New...",
"menubar.file.open": "Open...",
"menubar.font": "Font",
"menubar.font.edit": "Edit Font Info, Axes and Sources",
"menubar.fontra.application-settings": "Application Settings",
"menubar.glyph": "Glyph",
"menubar.glyph.add": "Add source...",
Expand Down Expand Up @@ -158,11 +157,10 @@ export const strings = {
"sidebar.glyph-search": "Glyph Search",
"sidebar.glyphs.search": "Search glyphs",
"sidebar.reference-font": "Reference Font",
"sidebar.referencefont": "Reference font",
"sidebar.referencefont.customcharacter": "Custom character",
"sidebar.referencefont.info":
"sidebar.reference-font.custom-character": "Custom character",
"sidebar.reference-font.info":
"Drop one or more .ttf, .otf, .woff or .woff2 files in the field below",
"sidebar.referencefont.language": "Language",
"sidebar.reference-font.language": "Language",
"sidebar.related-glyphs": "Related Glyphs & Characters",
"sidebar.related-glyphs.title": "Related Glyphs & Characters for %0",
"sidebar.selection-info": "Selection Info",
Expand Down
260 changes: 260 additions & 0 deletions src/fontra/client/lang/fr.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,260 @@
// Don't edit this file: it is generated by scripts/rebuild_languages.py
// The strings are maintained here: https://docs.google.com/spreadsheets/d/1woTU8dZCHJh7yvdk-N1kgQBUj4Sn3SdRsbKgn6ltJQs/
export const strings = {
"action-topics.designspace-navigation": "Navigation du designspace",
"action-topics.export-as": "Exporter sous",
"action-topics.glyph-editor-appearance": "Glyph édition apparence",
"action-topics.menu.edit": "Édition",
"action-topics.menu.view": "Vue",
"action-topics.selection-transformations": "Transformation de la sélection",
"action-topics.sidebars": "Barres latérales",
"action-topics.tools": "Outils",
"action.add-anchor": "Ajouter une ancre",
"action.add-component": "Ajouter un composant",
"action.add-guideline": "Ajouter un guide",
"action.break-contour": "Ouvrir le contour",
"action.close-contour": "Fermer %0 contour",
"action.close-contour.plural": "Fermer %0 contours",
"action.copy": "Copier",
"action.cut": "Couper",
"action.decompose-component": "Décomposer %0 composant",
"action.decompose-component.plural": "Décomposer %0 composants",
"action.delete": "Supprimer",
"action.delete-glyph": "Supprimer le glyph",
"action.delete-selection": "Supprimer la sélection",
"action.export-as.designspace": "Designspace + UFO (*.designspace)",
"action.export-as.fontra": "Fontra (*.fontra)",
"action.export-as.otf": "OpenType (*.otf)",
"action.export-as.rcjk": "RCJK (*.rcjk)",
"action.export-as.ttf": "TrueType (*.ttf)",
"action.export-as.ufo": "UFO (*.ufo)",
"action.join-contours": "Joindre les contours",
"action.lock-guidelines": "Vérouiller les guides",
"action.paste": "Coller",
"action.redo": "Revenir",
"action.reverse-contour": "Inverser la direction du contour",
"action.select-all": "Tout sélectionner",
"action.select-none": "Désélectionner",
"action.set-contour-start": "Définir comme point de départ",
"action.undo": "Annuler",
"application-settings.clipboard.title": "Presse-papier",
"application-settings.display-language.status.beta": "beta",
"application-settings.display-language.status.wip": "Travail en cours",
"application-settings.display-language.title": "Afficher les langues",
"application-settings.editor-behavior.title": "Editor Behavior",
"application-settings.plugins-manager.title": "Gestionnaire de plugins",
"application-settings.server-info.title": "Information du serveur",
"application-settings.shortcuts.title": "Racourcis clavier",
"application-settings.theme-settings.title": "Paramètres des thèmes",
"axes.add": "Ajouter un nouvel axe",
"axes.axis-values": "Valeur de l'axe",
"axes.create": "Nouvel axe",
"axes.delete-axis": "Supprimer l'axe",
"axes.mapping-graph": "Mapping graph",
"axes.mapping-list": "Mapping list",
"axes.mapping.source": "Source",
"axes.mapping.user": "Utilisateur",
"axes.mapping.values.elidable": "Elidable",
"axes.mapping.values.linked": "Lié",
"axes.mapping.values.max": "Max",
"axes.mapping.values.min": "Min",
"axes.mapping.values.name": "Nom",
"axes.mapping.values.value": "Valeur",
"axes.names": "Noms",
"axes.names.name": "Nom",
"axes.names.ot-tag": "OT tag",
"axes.names.ui-name": "UI name",
"axes.new": "Nouvel axe…",
"axes.preset": "Préréglage d'axe",
"axes.preset.italic": "Italique",
"axes.preset.optical-size": "Corps optique",
"axes.preset.slant": "Penché",
"axes.preset.weight": "Graisse",
"axes.preset.width": "Largeur",
"axes.range": "Range",
"axes.range.axis-type": "Type d'axe",
"axes.range.axis-type.continuous": "Continue",
"axes.range.axis-type.discrete": "Discret",
"axes.range.default": "Défaut",
"axes.range.maxium": "Maximum",
"axes.range.minumum": "Minimum",
"axes.range.values": "Valeurs",
"axes.title": "Axes",
"canvas.clean-view-and-hand-tool": "Clean View and Hand Tool",
"designspace-navigation.edit-all-compatible-sources":
"Éditer toutes les sources compatibles",
"dialog.add": "Ajouter",
"dialog.cancel": "Annuler",
"dialog.create": "Créer",
"dialog.create-new-glyph.body":
'Cliquez "Créer" si vous voulez créer un nouveau glyph nommé "%0"%1.',
"dialog.create-new-glyph.body.2": 'Pour le caractère "%0" (%1)',
"dialog.create-new-glyph.title": 'Créer un nouveau glyph "%0"?',
"dialog.glyphs.search": "Chercher des glyphes",
"dialog.replace": "Remplacer",
"editor.hand-tool": "Outil de déplacement",
"editor.knife-tool": "Outil couteau",
"editor.pen-tool": "Outil de dessin",
"editor.pen-tool-cubic": "Outil de dessin (cubique)",
"editor.pen-tool-quad": "Outil de dessin (Quadratique)",
"editor.pointer-tool": "Outil de sélection",
"editor.pointer-tool-scale": "Outil de sélection (transformation à l'échelle)",
"editor.power-ruler-tool": "Outil Power Ruler",
"editor.shape-tool": "Outil de forme",
"editor.shape-tool-ellipse": "Outil ellipse",
"editor.shape-tool-rectangle": "Outil rectangle",
"font-info.copyright": "Copyright",
"font-info.description": "Description",
"font-info.designer": "Designer",
"font-info.designer.url": "URL du designer",
"font-info.familyname": "Nom de famille",
"font-info.licensedescription": "Description de la licence",
"font-info.licenseinfo.url": "URL de la licence",
"font-info.manufacturer": "Fabriquant",
"font-info.manufacturer.url": "URL du fabriquant",
"font-info.sampletext": "Texte d'exemple",
"font-info.title": "Informations de la fonte",
"font-info.trademark": "Trademark",
"font-info.vendorid": "Identifiant du vendeur",
"font-info.version.major": "Version Major",
"font-info.version.minor": "Version Minor",
"language.en": "Anglais",
"language.zh-cn": "Chinois Simplifier",
"menubar.edit": "Édition",
"menubar.extensions": "Extensions",
"menubar.file": "Fichier",
"menubar.file.export-as": "Exporter sous",
"menubar.file.new": "Nouveau…",
"menubar.file.open": "Ouvrir…",
"menubar.font": "Fonte",
"menubar.fontra.application-settings": "Paramètres de l'application",
"menubar.glyph": "Glyphe",
"menubar.glyph.add": "Ajouter une source…",
"menubar.glyph.delete": "Supprimer la source…",
"menubar.glyph.edit-axes": "Éditer les axes du glyphe…",
"menubar.help": "Aide",
"menubar.help.documentation": "Documentation",
"menubar.help.homepage": "Page d'accueil",
"menubar.view": "Vue",
"menubar.view.add-glyph-after-selected-glyph":
"Ajouter un glyphe après le glyphe sélectionné",
"menubar.view.add-glyph-before-selected-glyph":
"Ajouter un glyphe avant le glyphe sélectionné",
"menubar.view.find-glyphs-that-use": "Trouver le glyphe qui utilise '%0'",
"menubar.view.remove-selected-glyph-from-canvas":
"Retirer le glyphe sélectionné du canvas",
"menubar.view.replace-selected-glyph-on-canvas":
"Remplacer le glyphe sélectionné du canvas",
"menubar.view.select-next-source": "Sélectionner la prochaine source",
"menubar.view.select-previous-source": "Sélectionner la précédente source",
"selection.none": "(Pas de sélection)",
"sidebar.designspace-navigation": "Navigation du designspace",
"sidebar.designspace-navigation.font-axes": "Axes de la fonte",
"sidebar.designspace-navigation.font-axes.edit": "Éditer les axes de la fonte",
"sidebar.designspace-navigation.font-axes.reset":
"Réinitialiser les axes de la fonte",
"sidebar.designspace-navigation.glyph-axes": "Axes du glyphe",
"sidebar.designspace-navigation.glyph-axes.edit": "Éditere les axes du glyphe",
"sidebar.designspace-navigation.glyph-axes.reset": "Réinitialiser les axes du glyphe",
"sidebar.designspace-navigation.glyph-sources": "Sources du glyphe",
"sidebar.designspace-navigation.glyph-sources.name": "Nom de la source",
"sidebar.designspace-navigation.glyph-sources.status": "Statut",
"sidebar.glyph-note": "Note du glyphe",
"sidebar.glyph-search": "Chercher un glyphe",
"sidebar.glyphs.search": "Chercher des glyphes",
"sidebar.reference-font": "Fonte de référence",
"sidebar.reference-font.custom-character": "Caractère personnalisé",
"sidebar.reference-font.info":
"Déposer ci-dessous un ou plusieurs fichiers .ttf, .otf, .woff ou .woff2",
"sidebar.reference-font.language": "Langues",
"sidebar.related-glyphs": "Glyphes et caractères en lien",
"sidebar.related-glyphs.title": "Glyphes et caractères en lien pour %0",
"sidebar.selection-info": "Information de la sélection",
"sidebar.selection-info.advance-width": "Chasse",
"sidebar.selection-info.component": "Composant #%0",
"sidebar.selection-info.component.base-glyph": "Glyphe de base",
"sidebar.selection-info.component.center": "Centre",
"sidebar.selection-info.component.rotation": "Rotation",
"sidebar.selection-info.component.scale": "Échelle",
"sidebar.selection-info.component.skew": "Pencher",
"sidebar.selection-info.component.transformation": "Transformation",
"sidebar.selection-info.component.translate": "Déplacement",
"sidebar.selection-info.dimensions": "Dimensions",
"sidebar.selection-info.glyph-name": "Nom du glyphe",
"sidebar.selection-info.multi-source":
"Valeurs absolues pour l'édition multiple de sources",
"sidebar.selection-info.sidebearings": "Approches",
"sidebar.selection-info.title": "Informations du glyphe",
"sidebar.selection-transformation": "Transformation de la sélection",
"sidebar.selection-transformation.align": "Aligner les objets",
"sidebar.selection-transformation.align.bottom": "Aligner en bas",
"sidebar.selection-transformation.align.center": "Aligner au centre",
"sidebar.selection-transformation.align.left": "Aligner à gauche",
"sidebar.selection-transformation.align.middle": "Aligner au milieu",
"sidebar.selection-transformation.align.right": "Aligner à droite",
"sidebar.selection-transformation.align.top": "Aligner en haut",
"sidebar.selection-transformation.distribute": "Distribuer les objets",
"sidebar.selection-transformation.distribute.horizontally":
"Distribuer horizontalement",
"sidebar.selection-transformation.distribute.vertically": "Distribuer verticalement",
"sidebar.selection-transformation.flip": "Retourner",
"sidebar.selection-transformation.flip.horizontally": "Retourner horizontalement",
"sidebar.selection-transformation.flip.vertically": "Retourner verticalement",
"sidebar.selection-transformation.move": "Déplacer",
"sidebar.selection-transformation.origin": "Origine",
"sidebar.selection-transformation.origin.bottom.center": "Origine en bas au centre",
"sidebar.selection-transformation.origin.bottom.left": "Origine en bas à gauche",
"sidebar.selection-transformation.origin.bottom.right": "Origine en bas à droite",
"sidebar.selection-transformation.origin.middle.center":
"Origine au milieu au centre",
"sidebar.selection-transformation.origin.middle.left": "Origine au milieu à gauche",
"sidebar.selection-transformation.origin.middle.right": "Origine au milieu à droite",
"sidebar.selection-transformation.origin.top.center": "Origine en haut au centre",
"sidebar.selection-transformation.origin.top.left": "Origine en haut à gauche",
"sidebar.selection-transformation.origin.top.right": "Origine en haut à droite",
"sidebar.selection-transformation.path-operations": "Opération sur les contours",
"sidebar.selection-transformation.path-operations.exclude": "Exclure les contours",
"sidebar.selection-transformation.path-operations.intersect":
"Intersecter les contours",
"sidebar.selection-transformation.path-operations.subtract":
"Soustraire les contours",
"sidebar.selection-transformation.path-operations.union":
"Enlever les superpositions",
"sidebar.selection-transformation.rotate": "Rotation",
"sidebar.selection-transformation.scale": "Échelle",
"sidebar.selection-transformation.skew": "Pencher",
"sidebar.selection-transformation.title": "Transformation",
"sidebar.text-entry": "Saisie de texte",
"sidebar.user-settings": "Paramètres de l'utilisateur",
"sidebar.user-settings.clipboard": "Format d'export du presse-papier",
"sidebar.user-settings.component.nodes": "Points et poignés du composant",
"sidebar.user-settings.experimental": "Expérimentations",
"sidebar.user-settings.glyph": "Glyphe",
"sidebar.user-settings.glyph.anchornames": "Noms des ancres",
"sidebar.user-settings.glyph.baseline": "Ligne de base",
"sidebar.user-settings.glyph.cjkframe": "Grille de design CJK",
"sidebar.user-settings.glyph.component": "Noms et index des composants",
"sidebar.user-settings.glyph.contour": "Index des contours",
"sidebar.user-settings.glyph.coordinates": "Coordonnées",
"sidebar.user-settings.glyph.dragcrosshair": "Drag crosshair",
"sidebar.user-settings.glyph.dragghostpath": "Drag “ghost” path",
"sidebar.user-settings.glyph.lockicon":
"Icône verrouillée du glyphe pour les glyphes non édités",
"sidebar.user-settings.glyph.point.index": "Index des points",
"sidebar.user-settings.glyph.powerruler": "Power Ruler",
"sidebar.user-settings.glyph.referencefont": "Fonte de référence",
"sidebar.user-settings.glyph.sidebearings": "Approches pour les glyphes non édités",
"sidebar.user-settings.glyph.statuscolor": "Couleurs des statuts de développement",
"sidebar.user-settings.glyph.upmgrid": "Grille UPM (Units-per-em)",
"sidebar.user-settings.language": "Afficher les languages",
"sidebar.user-settings.server": "Information du serveur",
"sidebar.user-settings.theme": "Paramètres des thèmes",
"sidebar.user-settings.theme.auto": "Automatique (utiliser les paramètre de l'OS)",
"sidebar.user-settings.theme.dark": "Sombre",
"sidebar.user-settings.theme.light": "Clair",
"sources.title": "Sources",
"toggle-fullscreen": "Plein écran",
"zoom-fit-selection": "Zoomer sur la séléction",
"zoom-in": "Zoomer",
"zoom-out": "Dézoomer",
};
Loading