Skip to content

Commit 8ef4130

Browse files
committed
Update README and changelog
1 parent 512de3d commit 8ef4130

File tree

4 files changed

+64
-12
lines changed

4 files changed

+64
-12
lines changed

README.md

+27-7
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,37 @@ If you are a modder, you may also be afraid of changing translation keys as that
77

88
This tool simplifies your work by providing an intuitive interface to work with.
99

10+
![screenshot](https://image.prntscr.com/image/2PnZaOKYRrWxAJmT_Z0WBA.png)
11+
1012
## Usage instructions
1113
* Download MinecraftTranslationHelper on the [release page](https://github.com/Pyrofab/MinecraftTranslationHelper/releases). Preferably put it near your translations.
12-
* Run it and use the "Load a lang folder" button to navigate to the lang folder of the mod you're currently translating.
13-
* After selecting a lang folder, a popup will appear. You can just press 'OK' if you want to edit all the existing translation files or you can deselect files you do not want to see and lock files you do not want to edit.
14-
<img src="https://image.prntscr.com/image/Sle1DGqQT5KEcPPQ8KEi6A.png" alt="popup screenshot" height="225" width="125"/>
15-
* The tool wil then load all selected translations side by side with the key on the left side. You can then edit any field and the program will do the rest.
14+
15+
* Run it and use the **File | Open** menu item to navigate to the lang folder of the mod you're currently translating.
16+
17+
* After selecting a lang folder, a popup will appear. You can just press `OK` if you want to edit all the existing translation files or you can deselect files you do not want to see and lock files you do not want to edit.
18+
<img src="https://image.prntscr.com/image/brgM0B2yTbGHRqI2m2RMmw.png" alt="popup screenshot" height="225" width="125"/>
19+
20+
* The tool wil then load all selected translations side by side with the key on the left side. You can edit any field and the program will do the rest.
21+
1622
* Yes you can drag and drop columns or sort them differently.
23+
1724
* Do you want to delete or change a translation key ? Right click in the table to open the context menu.
18-
* If you run out of inspiration, you can use the 'Joker' button. This will autocomplete the cell based on Google Translate's answer. If you use this feature, please double check the result and keep the wacky translations at a minimum.
25+
1926
* When you are done, click the save button to apply the changes. This will only affect changed files.
27+
You also have the option to save automatically every few seconds in **File | Toggle autosave**
28+
29+
*Note : this program does not care about comments and fancy line separators.
30+
Upon hitting save, all irrelevant information will be erased from any edited file.*
31+
32+
### Ask Google
33+
If you run out of inspiration, you can use the 'Ask Google' menu option.
34+
This will autocomplete the cell based on Google Translate's answer.
35+
If you use this feature, please double check the result and keep the wacky translations at a minimum.
36+
37+
### Smart Replace
38+
Smart Replace is a feature that lets you translate repetitive lines in a few clicks.
39+
To open the smart replace dialog, select **Edit | Smart Replace** or press `Ctrl+R`.
2040

21-
Note : this program does not care about comments and fancy line separators. Upon hitting save, all irrelevant information will be erased from any edited file.
41+
![Smart replace dialog screenshot](https://image.prntscr.com/image/bohQv8RyR2mXtB385DC4qw.png)
2242

23-
![screenshot](https://image.prntscr.com/image/c4djsaUyTPGiuJvF4q9AWQ.png)
43+
This will take all lines in the English language file ending with *Item Frame* and set their French localization to *Cadre* followed by the beginning of the English line. If you want full regex patterns, surround your regular expression with `/` (e.g. the wildcard expression above is equivalent to `/(.*) Item Frame/`). If you just want to use raw strings, uncheck the *Allow wildcards / raw regex* option. The input and output languages can be the same, allowing efficient localization workflow.

build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ plugins {
88
}
99

1010
group = "ladysnake"
11-
version = "2.0.0-SNAPSHOT"
11+
version = "2.0.0"
1212

1313
repositories {
1414
mavenCentral()

changelog.md

+34-2
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,41 @@
33
- Rewrote everything with TornadoFX and fewer disgusting hacks
44
- Now supports 1.13+ json lang format !
55
- Added the ability to export lang files to either format
6-
- Added a toggle to (un)lock files
6+
- Added a toggle to (un)lock files once loaded
77
- Added an autosave option (persistent between launches)
88
- Added the ability to specify a lang folder to open with a program arg
9-
- Added an application icon
9+
- Added *open all/none* and *(un)lock all* checkboxes to the file selection dialogue
10+
- Added an **Insert row** option to the context menu
11+
- Added an application icon (thanks to RiverLeviathan)
12+
- Added a `*` indicator to unsaved lang files
13+
- Added a **Help | README** button linking to the repo's readme
14+
- The search replace feature now uses wildcards by default
1015
- Moved every button to a menu bar
1116
- Added a menu item for every feature
17+
18+
# v1.3.0 - The convenience update
19+
20+
- Adds regex search-replace ! Press Ctrl+R, choose your input file, your output file, a regular expression and a string to replace it with and the program will handle everything else !
21+
- Adds change history ! You can now undo your mistakes with Ctrl+Z and redo things with either Ctrl+Shift+Z or Ctrl+Y. (some operations like search-replace will need several undo to cancel completely)
22+
- Adds copy and pasting for entire cells. Select a cell and use Ctrl+C to copy its content, select one or more cell and use Ctrl+V to paste your clipboard's content into the selected cells.
23+
- Now automatically switches to edit mode as soon as you start typing in an editable cell.
24+
- You can now delete the content of a cell by using the del key.
25+
26+
# v1.2.0 - The practical update
27+
28+
- Adds a popup screen when loading a lang folder that allows you to select which lang files to load and which files to lock
29+
- Locked lang files will never be updated by the tool (until reloading)
30+
- Added utf-8 support
31+
32+
# v1.1.1
33+
34+
- Made the sorting operation mark language files as unsaved
35+
36+
# v1.1 - The Shitty Translations update
37+
38+
- Added google translate support (plz dont spam it)
39+
- Added ctrl-s shortcut
40+
- Added confirmation request when closing the program with unsaved changes
41+
42+
# v1.0 - First release
43+
- Idk, it works I guess ?

src/main/kotlin/ladysnake/translationhelper/view/SelectFilesDialog.kt

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class SelectFilesDialog(files: List<File>) : Dialog<SourcesMap>() {
1919

2020
init {
2121
val list = FXCollections.observableArrayList<ExtendedFile>()
22-
files.mapTo(list) { f ->
22+
files.mapTo(list) { f -> // Conveniently, this order makes .json be opened instead of .lang by default
2323
ExtendedFile(f, list.none { it.file.nameWithoutExtension == f.nameWithoutExtension && it.isToOpen.get() }, false)
2424
}
2525
this.dialogPane.content = tableview(list) {
@@ -30,7 +30,7 @@ class SelectFilesDialog(files: List<File>) : Dialog<SourcesMap>() {
3030
prefWidth = 60.0
3131
graphic = checkbox {
3232
selectedProperty().addListener { _, _, openAll ->
33-
for (f in list) { // Lazy way of having .json be opened instead of .lang by default
33+
for (f in list) {
3434
if (list.any { it != f && it.file.nameWithoutExtension == f.file.nameWithoutExtension && it.isToOpen.get() }) {
3535
f.isToOpen.set(false)
3636
} else {

0 commit comments

Comments
 (0)