Elffuss BraidHub

utopia-ia/elffuss-code public

67229659129e · 17.8 KiBRawPermalink
1// Textos del panel de extensiones (ES/EN). Van aparte de js/i18n.js para no
2// tocar ese fichero; mismo idioma (uiLang) y misma sustitución {var}.
3import { uiLang } from '../i18n.js';
4
5const L = {
6 es: {
7 title: 'Extensiones', sub: 'Open VSX',
8 intro: 'Temas de color, gramáticas, snippets y ajustes de lenguaje de extensiones de VS Code. Aquí no se ejecuta el código de ninguna extensión, y tu proyecto no sale del navegador: a Open VSX solo va lo que buscas y lo que instalas.',
9 paused: 'Extensiones en pausa en esta sesión (?noext): no se aplica ninguna. Puedes desactivarlas o desinstalarlas.',
10 searchPh: 'Buscar extensiones en Open VSX…',
11 catAll: 'Todo', catThemes: 'Temas', catSnippets: 'Snippets', catLangs: 'Lenguajes',
12 vsix: 'Instalar .vsix…', themeBtn: 'Tema de color…',
13 installedH: 'Instaladas ({n})', none: 'Ninguna todavía. Busca arriba o instala un .vsix.',
14 popular: 'Populares', results: '{n} resultado|{n} resultados', noResults: 'Sin resultados.', searching: 'Buscando…', more: 'Más resultados',
15 onlyWorks: 'Solo las que funcionan en Code',
16 hiddenN: '{n} oculta porque no funciona en Code|{n} ocultas porque no funcionan en Code',
17 showHidden: 'mostrar', showHiddenNamed: 'Mostrar también la que no funciona en Code|Mostrar también las {n} que no funcionan en Code',
18 checking: 'Comprobando cuáles funcionan en Code…',
19 noneWork: 'Ninguno de los resultados funciona en Code.', noneWorkYet: 'Ninguna de las {n} primeras funciona en Code.',
20 popularH: 'Populares que funcionan en Code', popularCount: '{n} extensión popular que funciona en Code|{n} extensiones populares que funcionan en Code',
21 popularNote: 'Se instalan y se ven al momento: temas de color, lenguajes que Code no resalta todavía y snippets. Busca arriba para ver el resto de Open VSX.',
22 popularFailed: 'No se pudo cargar la lista de populares. Busca arriba.',
23 kind_theme: 'Tema', kind_language: 'Lenguaje', kind_snippets: 'Snippets',
24 install: 'Instalar', installing: 'Instalando…', downloading: 'Descargando… {pct}%', installedOk: 'Instalada ✓', update: 'Actualizar a {v}',
25 enable: 'Activar', disable: 'Desactivar', disabled: 'desactivada', uninstall: 'Desinstalar', confirmUninstall: '¿Desinstalar «{name}»?',
26 details: 'Detalles', loadingDetails: 'Leyendo el manifiesto…',
27 nothing: 'Nada de esta extensión se puede aplicar aquí.',
28 pack: 'Es un paquete de {n} extensiones: instálalas una a una.',
29 andMore: '{n} más', quoted: '«{x}»',
30 fFormat: 'formatear código', fLint: 'avisar de errores', fDebug: 'depurar', fPreview: 'vistas previas propias', fNotebooks: 'cuadernos',
31 fTesting: 'ejecutar tests', fScm: 'control de versiones', fData: 'herramientas de datos', fAI: 'asistente de IA', fKeys: 'atajos de teclado',
32 fLangPack: 'traducir la interfaz', fCloud: 'servicios en la nube', fCommands: 'sus propias acciones', fPanels: 'paneles propios', fTasks: 'tareas',
33 fSettings: 'sus ajustes', fJsonCheck: 'validar ficheros JSON', fSemantic: 'colorear según el significado del código', fIcons: 'iconos',
34 fTerminal: 'terminal', fAccounts: 'iniciar sesión en servicios', fWalk: 'guías de inicio', fStatus: 'avisos en la barra de estado',
35 fCodeActions: 'arreglos rápidos', fLangServer: 'ayudas del lenguaje', fOther: 'otras funciones', fOwn: 'lo que hace su propio código',
36 pThemes: 'el tema {list}|los temas {list}', pThemesCount: 'un tema de color|{n} temas de color', pHighlight: 'el resaltado de {list}', pSettings: 'comentarios y corchetes de {list}',
37 pSnippetsN: '{n} snippet para {list}|{n} snippets para {list}', pSnippets: 'snippets para {list}',
38 vFull: 'Funciona en Code: añade {list}.', vPartial: 'Funciona en parte: añade {list}.',
39 vMainBroken: 'Lo principal de esta extensión ({what}) no funciona en Code: necesita ejecutar su propio código.',
40 vOnly: 'Solo se aplicaría {list}.',
41 vNextVersion: 'Eso llegará con la siguiente versión de Code.',
42 vNever: 'Y no está previsto: usa ventanas o programas propios que Code no puede abrir.',
43 vMissingNext: 'No funciona: {list}. Necesita ejecutar su propio código; llegará con la siguiente versión de Code.',
44 vMissingNever: 'No funciona: {list}. Necesita ejecutar su propio código, y eso no está previsto en Code.',
45 vMissingLater: 'Aún no se aplica: {list}.',
46 keepsBuiltin: 'Code ya resalta {list} a su manera y lo mantiene.',
47 installOnlyThemes: 'Instalar solo los temas', installOnlyHighlight: 'Instalar solo el resaltado', installOnlySnippets: 'Instalar solo los snippets',
48 installOnlyWorking: 'Instalar solo lo que funciona', notHere: 'No funciona en Code', nothingHere: 'Nada que aplicar',
49 errCodeOnly: '«{name}» no se ha instalado.',
50 cThemeApplied: 'Tema «{name}» aplicado.', cThemeReady: 'Tema «{name}» listo para usar.', cThemesReady: '{n} temas listos: {list}.',
51 bApplyNow: 'Aplicar ahora', bUndo: 'Deshacer', bPickTheme: 'Elegir tema…',
52 cHighlight: 'Resaltado para {list}.', cHighlightOpen: 'Ya se ve en {files}, que está abierto.|Ya se ve en {files}, que están abiertos.',
53 cHighlightTry: 'Abre un fichero {exts} para verlo.',
54 bGoto: 'Ir a {file}', bOpenFile: 'Abrir {file} de ejemplo', bTry: 'Probar', bTryIn: 'Probar en {file}',
55 cSettings: 'En {lang}: {what}.', sComment: 'comentar con {c} (Ctrl+/)', sBrackets: 'corchetes {b}', sAutoClose: 'cierre automático de {p}',
56 cSnippets: '{n} snippet para {list}.|{n} snippets para {list}.',
57 cSnippetsTry: 'Prueba: escribe {prefixes} y elige la sugerencia con Tab o Enter.',
58 nThemeActive: 'Tema activo: «{name}».', nThemeIdle: 'Ningún tema suyo está activo: pulsa uno para aplicarlo.',
59 nHighlighting: 'Resaltando {n} fichero abierto ({list}).|Resaltando {n} ficheros abiertos ({list}).',
60 nHighlightIdle: 'Resalta {list}; ahora no hay ninguno abierto.',
61 nSnippets: '{n} snippet listo ({list}).|{n} snippets listos ({list}).', nSettings: 'Comentarios y corchetes de {list}.',
62 nOff: 'Desactivada: ahora no aplica nada.',
63 tryHighlightNamed: 'Probar el resaltado de {name}', trySnippetsNamed: 'Probar los snippets de {name}',
64 statusTrySnippets: 'Snippets: escribe {prefixes} y elige la sugerencia con Tab o Enter.',
65 license: 'Licencia: {l}', viewLicense: 'ver licencia', noLicense: 'sin licencia declarada',
66 verified: 'suma SHA-256 comprobada', unverified: 'Open VSX no publica suma SHA-256', fromFile: 'desde fichero',
67 downloads: '{n} descargas',
68 bigConfirm: 'Esta extensión pesa {mb} MB. ¿Descargarla igualmente?',
69 errNet: 'No pude hablar con Open VSX: {e}', errRate: 'Open VSX está limitando peticiones: espera un momento y reintenta.',
70 errSha: 'La suma SHA-256 del paquete no coincide con la publicada: no se instala.',
71 errNothing: 'Esta extensión no trae nada que se pueda aplicar aquí (temas, gramáticas, snippets o lenguajes).',
72 errNotVsix: 'Eso no es un .vsix de VS Code.',
73 errNotFound: 'Open VSX no tiene esa extensión o esa versión.',
74 errHttp: 'Open VSX respondió con un error{status}.',
75 errBig: 'El paquete es demasiado grande para instalarlo aquí.',
76 errMismatch: 'El paquete dice ser {got}, no {want}: no se instala.',
77 errCorrupt: 'El paquete está dañado o usa un formato zip que no se admite{entry}.',
78 errBadManifest: 'No se pudo leer el package.json del paquete: {e}',
79 errNoName: 'El package.json del paquete no dice su nombre (name) y su editor (publisher).',
80 errUnreadable: 'No se pudo leer ninguna de las partes de esta extensión. {w}',
81 errBlocked: 'Otra pestaña de Elffuss Code tiene ocupada la base de extensiones: ciérrala y vuelve a intentarlo.',
82 errQuota: 'No queda espacio en el almacenamiento del navegador para instalarla.',
83 err: 'No se pudo: {e}', cancelled: 'Cancelado.',
84 installedMsg: '«{name}» instalada.',
85 warnSummary: '{n} parte no se pudo usar|{n} partes no se pudieron usar',
86 warn_theme: 'Tema «{name}»: {why}', warn_grammar: 'Gramática {name}: {why}', warn_snippets: 'Snippets {name}: {why}',
87 warn_config: 'Configuración de {name}: {why}', warn_regex: 'Expresión descartada en {name}, podría congelar la pestaña: {why}',
88 whyMissing: 'el fichero no está en el paquete', whyCorrupt: 'el fichero está dañado', whyBig: 'el fichero es demasiado grande',
89 whyJson: 'no es JSON válido ({e})', whyPlist: 'no es un plist válido', whyNotGrammar: 'no es una gramática TextMate',
90 whyNotTheme: 'no es un tema válido', whyScope: 'nombre de ámbito no válido', whyOutside: 'la ruta sale del paquete',
91 installNamed: 'Instalar {name}', updateNamed: 'Actualizar {name} a {v}', installedNamed: '{name} ya está instalada',
92 enableNamed: 'Activar {name}', disableNamed: 'Desactivar {name}', uninstallNamed: 'Desinstalar {name}',
93 close: 'Cerrar', themeList: 'Temas de color',
94 pickPh: 'Tema de color (↑↓ para previsualizar, Enter para elegir)', builtinGroup: 'Integrados',
95 builtinDark: 'Oscuro (por defecto)', builtinLight: 'Claro', builtinHc: 'Alto contraste oscuro', builtinHcLight: 'Alto contraste claro',
96 current: 'actual', palExt: 'Extensiones…', palTheme: 'Tema de color…',
97 },
98 en: {
99 title: 'Extensions', sub: 'Open VSX',
100 intro: 'Color themes, grammars, snippets and language settings from VS Code extensions. No extension code runs here, and your project never leaves the browser: Open VSX only sees what you search for and what you install.',
101 paused: 'Extensions are paused for this session (?noext): none is applied. You can still disable or uninstall them.',
102 searchPh: 'Search extensions on Open VSX…',
103 catAll: 'All', catThemes: 'Themes', catSnippets: 'Snippets', catLangs: 'Languages',
104 vsix: 'Install .vsix…', themeBtn: 'Color Theme…',
105 installedH: 'Installed ({n})', none: 'None yet. Search above or install a .vsix.',
106 popular: 'Popular', results: '{n} result|{n} results', noResults: 'No results.', searching: 'Searching…', more: 'More results',
107 onlyWorks: 'Only ones that work in Code',
108 hiddenN: '{n} hidden because it does not work in Code|{n} hidden because they do not work in Code',
109 showHidden: 'show', showHiddenNamed: 'Also show the one that does not work in Code|Also show the {n} that do not work in Code',
110 checking: 'Checking which ones work in Code…',
111 noneWork: 'None of the results works in Code.', noneWorkYet: 'None of the first {n} works in Code.',
112 popularH: 'Popular ones that work in Code', popularCount: '{n} popular extension that works in Code|{n} popular extensions that work in Code',
113 popularNote: 'They install and show at once: colour themes, languages Code does not highlight yet, and snippets. Search above for the rest of Open VSX.',
114 popularFailed: 'The popular list could not be loaded. Search above.',
115 kind_theme: 'Theme', kind_language: 'Language', kind_snippets: 'Snippets',
116 install: 'Install', installing: 'Installing…', downloading: 'Downloading… {pct}%', installedOk: 'Installed ✓', update: 'Update to {v}',
117 enable: 'Enable', disable: 'Disable', disabled: 'disabled', uninstall: 'Uninstall', confirmUninstall: 'Uninstall “{name}”?',
118 details: 'Details', loadingDetails: 'Reading the manifest…',
119 nothing: 'Nothing in this extension can be applied here.',
120 pack: 'This is a pack of {n} extensions: install them one by one.',
121 andMore: '{n} more', quoted: '“{x}”',
122 fFormat: 'formatting code', fLint: 'flagging errors', fDebug: 'debugging', fPreview: 'its own previews', fNotebooks: 'notebooks',
123 fTesting: 'running tests', fScm: 'version control', fData: 'data tools', fAI: 'an AI assistant', fKeys: 'keyboard shortcuts',
124 fLangPack: 'translating the interface', fCloud: 'cloud services', fCommands: 'its own actions', fPanels: 'its own panels', fTasks: 'tasks',
125 fSettings: 'its settings', fJsonCheck: 'checking JSON files', fSemantic: 'colouring by what the code means', fIcons: 'icons',
126 fTerminal: 'a terminal', fAccounts: 'signing in to services', fWalk: 'getting-started guides', fStatus: 'status bar items',
127 fCodeActions: 'quick fixes', fLangServer: 'language help', fOther: 'other features', fOwn: 'what its own code does',
128 pThemes: 'the theme {list}|the themes {list}', pThemesCount: 'a colour theme|{n} colour themes', pHighlight: 'highlighting for {list}', pSettings: 'comments and brackets for {list}',
129 pSnippetsN: '{n} snippet for {list}|{n} snippets for {list}', pSnippets: 'snippets for {list}',
130 vFull: 'Works in Code: adds {list}.', vPartial: 'Partly works: adds {list}.',
131 vMainBroken: 'The main thing this extension does ({what}) does not work in Code: it needs to run its own code.',
132 vOnly: 'Only {list} would apply.',
133 vNextVersion: 'That comes with the next version of Code.',
134 vNever: 'And it is not planned: it uses its own windows or programs, which Code cannot open.',
135 vMissingNext: 'Does not work: {list}. It needs to run its own code; that comes with the next version of Code.',
136 vMissingNever: 'Does not work: {list}. It needs to run its own code, and that is not planned for Code.',
137 vMissingLater: 'Not applied yet: {list}.',
138 keepsBuiltin: 'Code already highlights {list} its own way and keeps it.',
139 installOnlyThemes: 'Install only the themes', installOnlyHighlight: 'Install only the highlighting', installOnlySnippets: 'Install only the snippets',
140 installOnlyWorking: 'Install only what works', notHere: 'Does not work in Code', nothingHere: 'Nothing to apply',
141 errCodeOnly: '“{name}” was not installed.',
142 cThemeApplied: 'Theme “{name}” applied.', cThemeReady: 'Theme “{name}” is ready to use.', cThemesReady: '{n} themes ready: {list}.',
143 bApplyNow: 'Apply now', bUndo: 'Undo', bPickTheme: 'Choose theme…',
144 cHighlight: 'Syntax highlighting for {list}.', cHighlightOpen: 'Already visible in {files}, which is open.|Already visible in {files}, which are open.',
145 cHighlightTry: 'Open a {exts} file to see it.',
146 bGoto: 'Go to {file}', bOpenFile: 'Open {file} as an example', bTry: 'Try it', bTryIn: 'Try in {file}',
147 cSettings: 'In {lang}: {what}.', sComment: 'comment with {c} (Ctrl+/)', sBrackets: 'brackets {b}', sAutoClose: 'auto-closing {p}',
148 cSnippets: '{n} snippet for {list}.|{n} snippets for {list}.',
149 cSnippetsTry: 'Try it: type {prefixes} and pick the suggestion with Tab or Enter.',
150 nThemeActive: 'Active theme: “{name}”.', nThemeIdle: 'None of its themes is active: click one to apply it.',
151 nHighlighting: 'Highlighting {n} open file ({list}).|Highlighting {n} open files ({list}).',
152 nHighlightIdle: 'Highlights {list}; none is open right now.',
153 nSnippets: '{n} snippet ready ({list}).|{n} snippets ready ({list}).', nSettings: 'Comments and brackets for {list}.',
154 nOff: 'Disabled: nothing applied right now.',
155 tryHighlightNamed: 'Try the {name} highlighting', trySnippetsNamed: 'Try the {name} snippets',
156 statusTrySnippets: 'Snippets: type {prefixes} and pick the suggestion with Tab or Enter.',
157 license: 'Licence: {l}', viewLicense: 'view licence', noLicense: 'no licence declared',
158 verified: 'SHA-256 checked', unverified: 'Open VSX publishes no SHA-256', fromFile: 'from file',
159 downloads: '{n} downloads',
160 bigConfirm: 'This extension is {mb} MB. Download it anyway?',
161 errNet: 'Could not reach Open VSX: {e}', errRate: 'Open VSX is rate-limiting requests: wait a moment and retry.',
162 errSha: 'The package SHA-256 does not match the published one: not installed.',
163 errNothing: 'This extension brings nothing that can be applied here (themes, grammars, snippets or languages).',
164 errNotVsix: 'That is not a VS Code .vsix.',
165 errNotFound: 'Open VSX does not have that extension or version.',
166 errHttp: 'Open VSX answered with an error{status}.',
167 errBig: 'The package is too large to install here.',
168 errMismatch: 'The package says it is {got}, not {want}: not installed.',
169 errCorrupt: 'The package is damaged or uses an unsupported zip format{entry}.',
170 errBadManifest: 'The package.json could not be read: {e}',
171 errNoName: 'The package.json does not give its name and publisher.',
172 errUnreadable: 'None of the parts of this extension could be read. {w}',
173 errBlocked: 'Another Elffuss Code tab is holding the extensions database: close it and try again.',
174 errQuota: 'There is no browser storage left to install it.',
175 err: 'Could not do it: {e}', cancelled: 'Cancelled.',
176 installedMsg: '“{name}” installed.',
177 warnSummary: '{n} part could not be used|{n} parts could not be used',
178 warn_theme: 'Theme “{name}”: {why}', warn_grammar: 'Grammar {name}: {why}', warn_snippets: 'Snippets {name}: {why}',
179 warn_config: 'Settings for {name}: {why}', warn_regex: 'Expression discarded in {name}, it could freeze the tab: {why}',
180 whyMissing: 'the file is not in the package', whyCorrupt: 'the file is damaged', whyBig: 'the file is too large',
181 whyJson: 'not valid JSON ({e})', whyPlist: 'not a valid plist', whyNotGrammar: 'not a TextMate grammar',
182 whyNotTheme: 'not a valid theme', whyScope: 'invalid scope name', whyOutside: 'the path leaves the package',
183 installNamed: 'Install {name}', updateNamed: 'Update {name} to {v}', installedNamed: '{name} is installed',
184 enableNamed: 'Enable {name}', disableNamed: 'Disable {name}', uninstallNamed: 'Uninstall {name}',
185 close: 'Close', themeList: 'Color themes',
186 pickPh: 'Color theme (↑↓ to preview, Enter to select)', builtinGroup: 'Built-in',
187 builtinDark: 'Dark (default)', builtinLight: 'Light', builtinHc: 'Dark High Contrast', builtinHcLight: 'Light High Contrast',
188 current: 'current', palExt: 'Extensions…', palTheme: 'Color Theme…',
189 },
190};
191
192export const STRINGS = L; // para comprobar en las pruebas que ES y EN tienen las mismas claves
193
194export function tx(key, vars) {
195 const tabla = L[uiLang()] || L.en;
196 let s = tabla[key] ?? L.en[key] ?? key;
197 if (s.includes('|') && vars && 'n' in vars) s = s.split('|')[Number(vars.n) === 1 ? 0 : 1];
198 return vars ? s.replace(/\{(\w+)\}/g, (_, k) => (vars[k] ?? '')) : s;
199}