Skip to content

Commit

Permalink
Add docs on downloading unreleased versions
Browse files Browse the repository at this point in the history
also fix some minor inaccuracies in translation files
  • Loading branch information
molsonkiko committed Jul 3, 2024
1 parent 9eadb9f commit 56f453b
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 11 deletions.
4 changes: 2 additions & 2 deletions JsonToolsNppPlugin/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@
// Build Number
// Revision
//
[assembly: AssemblyVersion("8.0.0.2")]
[assembly: AssemblyFileVersion("8.0.0.2")]
[assembly: AssemblyVersion("8.0.0.3")]
[assembly: AssemblyFileVersion("8.0.0.3")]
4 changes: 0 additions & 4 deletions JsonToolsNppPlugin/Utils/Translator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@
using System.Text.RegularExpressions;
using System.Globalization;

// TODO:
// 1. Implement translation of settings descriptions.
// This is surprisingly complicated, due to the PropertyGrid class not allowing public read/write access to the descriptive text for a property.

namespace JSON_Tools.Utils
{
public static class Translator
Expand Down
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,20 @@ You can unzip the 64-bit download to `C:\Program Files\Notepad++\plugins\JsonToo

Alternatively, you can follow these [installation instructions](https://npp-user-manual.org/docs/plugins/) to install the latest version of the plugin from Notepad++.

### Downloading unreleased versions ###

You can also download recently committed but unreleased versions of JsonTools by downloading the appropriate GitHub artifact in the following way:
1. Go to the [commit history](https://github.com/molsonkiko/JsonToolsNppPlugin/commits/main/) of JsonTools.
2. Most commits will have a green checkmark and the text `4/4` next to their commit message. Click on it.
3. A dropdown menu showing the CI tasks will appear. Click on one of the `Details` links. [Here's an example of a page that this leads to.](https://github.com/molsonkiko/JsonToolsNppPlugin/actions/runs/9767448644/job/26962739908).
4. Click the `Summary` link near the top-left corner of the page. [Here's an example of the page this leads to.](https://github.com/molsonkiko/JsonToolsNppPlugin/actions/runs/9767448644)
5. If you chose a commit that was made in the last 90 days, at the bottom of this page you will find links to download `plugin_dll_x64` (a zip archive containing 64-bit `JsonTools.dll`) or `plugin_dll_x86` (a zip archive containing 32-bit `JsonTools.dll`). Download the appropriate binary for your current Notepad++ installation.

If you also want to download the most recent [translation to another language](#translating-jsontools-to-another-language), you will need to also download the most up-to-date translation file for that language from [the `translation` folder of this repo](https://github.com/molsonkiko/JsonToolsNppPlugin/tree/main/translation). To do that:
1. Click on one of the files in the list.
2. Click the download icon near the top of the page.
3. Put the downloaded raw `{yourLanguage}.json5` file into the `translation` folder of your JsonTools plugin directory, as discussed in [the documentation on translating JsonTools](#translating-jsontools-to-another-language).

## System Requirements ##

Every version of the plugin works on Notepad++ 8.4.1 onward, although [some versions of Notepad++ have problems](#problematic-notepad-versions).
Expand Down
6 changes: 3 additions & 3 deletions translation/english.json5
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
// Change this value to set the text when the box is *unchecked*
"unchecked": "Hide advanced options"
},
// This is a ListBox, where the text can be selected from a drop-down list.
// This is a ComboBox, where the text can be selected from a drop-down list.
// DO NOT CHANGE THE NUMBER OF ELEMENTS IN THIS ARRAY!
"KeysValsBothBox": [
"Keys",
Expand All @@ -78,7 +78,7 @@
"GetJsonFromFilesTitle": "Get JSON from local files",
"RecursiveSearchCheckBox": "Search in subdirectories?",
"ChooseDirectoriesButton": "Choose directory...",
// This is another ListBox. There may be more than one element in this list,
// This is another ComboBox. There may be more than one element in this list,
// but only the first element can be translated in this case.
"DirectoriesVisitedBox": [
"Previously visited directories..."
Expand Down Expand Up @@ -220,7 +220,7 @@
"tab_indent_pretty_print": "Use one horizontal tab ('\\t') instead of spaces between levels of JSON when pretty-printing",
"minimal_whitespace_compression": "If true, using the 'Compress JSON' plugin command will remove ALL unnecessary whitespace from the JSON. Otherwise, it will leave after the colon in objects and after the comma in both objects and arrays",
"remember_comments": "When JSON is pretty-printed or compressed, any comments found when it was last parsed are included.\r\nWhen pretty-printing, each comment will have the same relative location to each JSON element as when it was parsed.\r\nWhen compressing, all comments will come at the beginning of the document.",
"sort_keys": "Sort the keys of objects alphabetically when formatting or compressing",
"sort_keys": "Sort the keys of objects alphabetically when pretty-printing or compressing",
"toolbar_icons": "Specify one of these chars for each toolbar icon you want to show, in the order you want:\r\n('t' = tree view, 'c' = compress, 'p' = pretty-print, 'o' = path to current position)\r\nThis setting will take effect the next time you start Notepad++.\r\nIf you want there to be NO toolbar icons, enter a character that does not represent an icon; do NOT leave this field empty.",
"auto_try_guess_csv_delim_newline": "If this setting is true,\r\nwhen the regex search form is opened, or when the \"Parse as CSV?\" checkbox in that form is toggled on,\r\nJsonTools will attempt to guess whether the current document is a CSV or TSV file, and how many columns and what newline it has.\r\nThe regex search form will take slightly longer to open if this is true.",
"csv_newline": "Which type of newline to use for generated CSV files.",
Expand Down
4 changes: 2 additions & 2 deletions translation/italian.json5
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
// Change this value to set the text when the box is *unchecked*
"unchecked": "Visualizza opzioni avanzate"
},
// This is a ListBox, where the text can be selected from a drop-down list.
// This is a ComboBox, where the text can be selected from a drop-down list.
// DO NOT CHANGE THE NUMBER OF ELEMENTS IN THIS ARRAY!
"KeysValsBothBox": [
"Chiavi",
Expand All @@ -78,7 +78,7 @@
"GetJsonFromFilesTitle": "Ottieni JSON da file locale",
"RecursiveSearchCheckBox": "Cercare nelle sottocartelle?",
"ChooseDirectoriesButton": "Seleziona cartella...",
// This is another ListBox. There may be more than one element in this list,
// This is another ComboBox. There may be more than one element in this list,
// but only the first element can be translated in this case.
"DirectoriesVisitedBox": [
"Cartelle recenti..."
Expand Down

0 comments on commit 56f453b

Please sign in to comment.