Skip to content

Commit

Permalink
Merge pull request #152 from PDConSec:fix/eng-translation-and-doc
Browse files Browse the repository at this point in the history
Log setting, doc, localisation
  • Loading branch information
PeterWone authored Sep 8, 2022
2 parents ff56fe5 + 492d07c commit 0da736e
Show file tree
Hide file tree
Showing 16 changed files with 180 additions and 162 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ node_modules
.vscode-test/
*.vsix
/package.nls.*.json
logs
vscode-print.log
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
# Change Log

### 0.9.31

- Control logging level with setting
- Update documentation and localisation

### 0.9.30

- Add diagnostic logging

### 0.9.29

- Fix content source analysis
- Fix printing of never-saved editor buffer
- Add regression test for printing never-saved editor buffer

### 0.9.28

- Update references to eliminate vulnerabilities.
Expand Down
12 changes: 1 addition & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,14 +127,4 @@ The Math+Markdown extension (installs the KaTeX plugin) requires an internet con

## Release Notes

### 0.9.28

- Update references to eliminate vulnerabilities.
- Register ES, ZH localisation resources for UI [#145](https://github.com/PDConSec/vsc-print/issues/145)

### 0.9.27

- Fix printing of a selection [#142](https://github.com/PDConSec/vsc-print/issues/142)


### Refer to the changelog for a complete history.
Added diagnostic logging controlled by log level setting.
6 changes: 4 additions & 2 deletions i18n/deu/package.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"commands.title.print": "drucken",
"commands.title.printFolder": "Drucken des Ordnerinhalts",
"commands.title.help": "Handbuch einsehen",
"print.alternateBrowser.title": "Alternativer Browser",
"commands.title.openLog": "Open the vscode-print log file",
"print.alternateBrowser.title": "Alternativer Browser",
"print.alternateBrowser.description": "Alternativen Browser benutzen",
"print.browserPath.title": "Browser Pfad",
"print.browserPath.description": "Pfad zur .exe Datei des alternativen Browsers",
Expand Down Expand Up @@ -42,5 +43,6 @@
"print.renderMarkdown.title": "Markdown Dateien rendern",
"print.renderMarkdown.description": "Anwenden von Stilen auf Markdown, anstatt als Rohtext zu drucken",
"print.webserverUptimeSeconds.title":"Webserver-Timeout",
"print.webserverUptimeSeconds.description": "Zeit in Sekunden, dass der eingebettete Webserver verfügbar bleibt"
"print.webserverUptimeSeconds.description": "Zeit in Sekunden, dass der eingebettete Webserver verfügbar bleibt",
"print.logLevel.markdownDescription": "Log level `Error` will log only errors (very few entries) whereas `info` will log errors, warnings and info. `Silly` will log absolutely everything. `Debug` is good for troubleshooting but the log file will grow fast."
}
78 changes: 40 additions & 38 deletions i18n/eng/package.i18n.json
Original file line number Diff line number Diff line change
@@ -1,39 +1,41 @@
{
"configuration.title.print": "Printing",
"commands.category": "Printing",
"commands.title.print": "Print",
"commands.title.printFolder": "Print content of folder",
"commands.title.help": "Open the manual",
"print.alternateBrowser.title": "Alternate browser",
"print.alternateBrowser.description": "Use the alternate browser",
"print.browserPath.title": "Browser path",
"print.browserPath.description": "Path to the executable of an alternate browser",
"print.colourScheme.title": "Colour scheme",
"print.colourScheme.markdownDescription": "[Stylesheet preview is available online](https://highlightjs.org/static/demo/). Only 'light' versions are offered because paper is white.",
"print.editorContextMenuItemPosition.title": "Editor context-menu position",
"print.editorContextMenuItemPosition.markdownDescription": "The position of `Print` in the editor context menu",
"print.editorTitleMenuButton.description": "Print the content of the active editor",
"print.folder.fileNames.title":"Include file names",
"print.folder.fileNames.description":"Include file names as section titles when printing content of a folder",
"print.folder.include.title": "Folder content include pattern",
"print.folder.include.description": "A glob pattern for inclusions when printing the content of a folder. Empty means all.",
"print.folder.exclude.title": "Folder content exclude pattern",
"print.folder.exclude.description": "A glob pattern for exclusions when printing the content of a folder. Files of types that are known to be binary are always excluded.",
"print.folder.maxLines.title": "Maximum lines",
"print.folder.maxLines.description": "Upper limit for file size, in lines of text. Files larger than this are ignored.",
"print.fontSize.title": "Font size",
"print.fontSize.description": "Font size",
"print.lineNumbers.title": "Numbering",
"print.lineNumbers.description": "Print with line numbers",
"print.lineSpacing.title": "Line spacing",
"print.lineSpacing.description": "Vertical spacing of lines",
"print.lineSpacing.single": "Single spaced",
"print.lineSpacing.line-and-a-half": "Line and a half",
"print.lineSpacing.double": "Double spaced",
"print.printAndClose.title": "Close after printing",
"print.printAndClose.description": "Show the Print dialog when the browser is ready, and try to close the page after printing is done or cancelled",
"print.renderMarkdown.title": "Render Markdown",
"print.renderMarkdown.description": "Render Markdown as HTML when printing",
"print.webserverUptimeSeconds.title": "Webserver timeout ",
"print.webserverUptimeSeconds.description": "Time in seconds that the embedded webserver remains available after starting to service a print job."
}
"configuration.title.print": "Printing",
"commands.category": "Printing",
"commands.title.print": "Print",
"commands.title.printFolder": "Print content of folder",
"commands.title.help": "Open the manual",
"commands.title.openLog": "Open the vscode-print log file",
"print.alternateBrowser.title": "Alternate browser",
"print.alternateBrowser.description": "Use the alternate browser",
"print.browserPath.title": "Browser path",
"print.browserPath.description": "Path to the executable of an alternate browser",
"print.colourScheme.title": "Colour scheme",
"print.colourScheme.markdownDescription": "[Stylesheet preview is available online](https://highlightjs.org/static/demo/). Only 'light' versions are offered because paper is white.",
"print.editorContextMenuItemPosition.title": "Editor context-menu position",
"print.editorContextMenuItemPosition.markdownDescription": "The position of `Print` in the editor context menu",
"print.editorTitleMenuButton.description": "Print the content of the active editor",
"print.folder.fileNames.title": "Include file names",
"print.folder.fileNames.description": "Include file names as section titles when printing content of a folder",
"print.folder.include.title": "Folder content include pattern",
"print.folder.include.description": "A glob pattern for inclusions when printing the content of a folder. Empty means all.",
"print.folder.exclude.title": "Folder content exclude pattern",
"print.folder.exclude.description": "A glob pattern for exclusions when printing the content of a folder. Files of types that are known to be binary are always excluded.",
"print.folder.maxLines.title": "Maximum lines",
"print.folder.maxLines.description": "Upper limit for file size, in lines of text. Files larger than this are ignored.",
"print.fontSize.title": "Font size",
"print.fontSize.description": "Font size",
"print.lineNumbers.title": "Numbering",
"print.lineNumbers.description": "Print with line numbers",
"print.lineSpacing.title": "Line spacing",
"print.lineSpacing.description": "Vertical spacing of lines",
"print.lineSpacing.single": "Single spaced",
"print.lineSpacing.line-and-a-half": "Line and a half",
"print.lineSpacing.double": "Double spaced",
"print.printAndClose.title": "Close after printing",
"print.printAndClose.description": "Show the Print dialog when the browser is ready, and try to close the page after printing is done or cancelled",
"print.renderMarkdown.title": "Render Markdown",
"print.renderMarkdown.description": "Render Markdown as HTML when printing",
"print.webserverUptimeSeconds.title": "Webserver timeout ",
"print.webserverUptimeSeconds.description": "Time in seconds that the embedded webserver remains available after starting to service a print job.",
"print.logLevel.markdownDescription": "Log level `Error` will log only errors (very few entries) whereas `info` will log errors, warnings and info. `Silly` will log absolutely everything. `Debug` is good for troubleshooting but the log file will grow fast."
}
6 changes: 4 additions & 2 deletions i18n/esp/package.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"commands.title.print": "Impresión",
"commands.title.printFolder": "Imprimir el contenido de la carpeta",
"commands.title.help": "Abrir el manual",
"print.alternateBrowser.title": "Navegador alternativo",
"commands.title.openLog": "Open the vscode-print log file",
"print.alternateBrowser.title": "Navegador alternativo",
"print.alternateBrowser.description": "Usar el navegador alternativo",
"print.browserPath.title": "Ruta del navegador alternativo",
"print.browserPath.description": "Ruta al ejecutable de un navegador alternativo",
Expand Down Expand Up @@ -35,5 +36,6 @@
"print.renderMarkdown.title": "Renderizar Markdown",
"print.renderMarkdown.description": "Renderizar Markdown como HTML al imprimir",
"print.webserverUptimeSeconds.title": "Tiempo de espera del servidor web ",
"print.webserverUptimeSeconds.description": "Tiempo en segundos que el servidor web incorporado permanece disponible después de iniciar un trabajo de impresión."
"print.webserverUptimeSeconds.description": "Tiempo en segundos que el servidor web incorporado permanece disponible después de iniciar un trabajo de impresión.",
"print.logLevel.markdownDescription": "Log level `Error` will log only errors (very few entries) whereas `info` will log errors, warnings and info. `Silly` will log absolutely everything. `Debug` is good for troubleshooting but the log file will grow fast."
}
6 changes: 4 additions & 2 deletions i18n/fra/package.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"commands.title.print": "Imprimer",
"commands.title.printFolder": "Imprimer le contenu du dossier",
"commands.title.help": "Consulter la documentation",
"print.alternateBrowser.title": "Navigateur alternatif",
"commands.title.openLog": "Ouvrez le fichier journal vscode-print",
"print.alternateBrowser.title": "Navigateur alternatif",
"print.alternateBrowser.description": "Utiliser le navigateur alternatif",
"print.browserPath.title": "Chemin de stockage du navigateur",
"print.browserPath.description": "Chemin vers l'exécutable d'un autre navigateur",
Expand Down Expand Up @@ -35,5 +36,6 @@
"print.renderMarkdown.title": "Rendre le Markdown",
"print.renderMarkdown.description": "Rendre le Markdown en HTML lors de l'impression",
"print.webserverUptimeSeconds.title": "Délai d’expiration du serveur Web",
"print.webserverUptimeSeconds.description": "Temps, en secondes, pendant lequel le serveur Web intégré reste disponible après avoir démarré la maintenance d’une tâche d’impression."
"print.webserverUptimeSeconds.description": "Temps, en secondes, pendant lequel le serveur Web intégré reste disponible après avoir démarré la maintenance d’une tâche d’impression.",
"print.logLevel.markdownDescription": "Le niveau de journal `Error` n’enregistrera que les erreurs (très peu d’entrées de journal) tandis que `info` enregistrera les erreurs, les avertissements et les informations. `Silly` enregistrera absolument tout. `Debug` convient au dépannage, mais le fichier journal deviendra rapidement volumineux."
}
6 changes: 4 additions & 2 deletions i18n/pseudo/package.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"commands.title.print": "PSEUDO:Print",
"commands.title.printFolder": "PSEUDO:Print content of folder",
"commands.title.help": "PSEUDO:Open the manual",
"print.alternateBrowser.title": "PSEUDO:Alternate browser",
"commands.title.openLog": "PSEUDO:Open the vscode-print log file",
"print.alternateBrowser.title": "PSEUDO:Alternate browser",
"print.alternateBrowser.description": "PSEUDO:Use the alternate browser",
"print.browserPath.title": "PSEUDO:Browser path",
"print.browserPath.description": "PSEUDO:Path to the executable of an alternate browser",
Expand Down Expand Up @@ -42,5 +43,6 @@
"print.renderMarkdown.title": "PSEUDO:Render Markdown",
"print.renderMarkdown.description": "PSEUDO:Render Markdown as HTML when printing",
"print.webserverUptimeSeconds.title": "PSEUDO:Webserver timeout",
"print.webserverUptimeSeconds.description": "PSEUDO:Time in seconds that embedded webserver remains available"
"print.webserverUptimeSeconds.description": "PSEUDO:Time in seconds that embedded webserver remains available",
"print.logLevel.markdownDescription": "PSEUDO:Log level `Error` will log only errors (very few entries) whereas `info` will log errors, warnings and info. `Silly` will log absolutely everything. `Debug` is good for troubleshooting but the log file will grow fast."
}
6 changes: 4 additions & 2 deletions i18n/zho/package.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"commands.title.print": "打印",
"commands.title.printFolder": "打印文件夹内容",
"commands.title.help": "打开手册",
"print.alternateBrowser.title": "备用浏览器",
"commands.title.openLog": "Open the vscode-print log file",
"print.alternateBrowser.title": "备用浏览器",
"print.alternateBrowser.description": "使用备用浏览器",
"print.browserPath.title": "浏览器路径",
"print.browserPath.description": "替代浏览器可执行文件的路径",
Expand Down Expand Up @@ -35,5 +36,6 @@
"print.renderMarkdown.title": "表现 Markdown 格式",
"print.renderMarkdown.description": "打印时将 Markdown 渲染为 HTML",
"print.webserverUptimeSeconds.title": "网络服务器超时",
"print.webserverUptimeSeconds.description": "网络服务器在开始为打印作业提供服务后保持可用的时间(以秒为单位)。"
"print.webserverUptimeSeconds.description": "网络服务器在开始为打印作业提供服务后保持可用的时间(以秒为单位)。",
"print.logLevel.markdownDescription": "Log level `Error` will log only errors (very few entries) whereas `info` will log errors, warnings and info. `Silly` will log absolutely everything. `Debug` is good for troubleshooting but the log file will grow fast."
}
25 changes: 20 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "vscode-print",
"displayName": "Print",
"description": "Rendered Markdown, coloured code.",
"version": "0.9.30",
"version": "0.9.31",
"icon": "vscode-print-128.png",
"author": {
"name": "Peter Wone",
Expand Down Expand Up @@ -50,6 +50,11 @@
"category": "%commands.category%",
"command": "vsc-print.help",
"title": "%commands.title.help%"
},
{
"category": "%commands.category%",
"command": "vsc-print.openLog",
"title": "%commands.title.openLog%"
}
],
"configuration": [
Expand Down Expand Up @@ -103,9 +108,19 @@
],
"default": "inherit"
},
"print.logging": {
"type": "boolean",
"description": "Log diagnostic information to extension folder"
"print.logLevel": {
"type": "string",
"markdownDescription": "Log level `Error` will log only errors (very few entries) whereas `info` will log errors, warnings and info. `Silly` will log absolutely everything. `Debug` is good for troubleshooting but the log file will grow fast.",
"enum": [
"error",
"warn",
"info",
"http",
"verbose",
"debug",
"silly"
],
"default": "error"
},
"print.alternateBrowser": {
"type": "boolean",
Expand Down Expand Up @@ -308,4 +323,4 @@
"publisherId": "a803a703-65fb-4fa9-955a-c9259bf2560d",
"isPreReleaseVersion": false
}
}
}
Loading

0 comments on commit 0da736e

Please sign in to comment.