Commit Graph

48 Commits (main)

Author SHA1 Message Date
Isaiah Odhner 4a9163fb6d Format some last bits of code 2022-01-19 09:59:49 -05:00
Isaiah Odhner eb4af4d7f9 Fix localizations with quotes in them 2020-12-19 02:12:10 -05:00
Isaiah Odhner 054f47390b Add warnings to generated files not to edit them directly 2020-12-17 14:34:01 -05:00
Isaiah Odhner 6cc77ffad1 Add French 2020-12-15 23:01:54 -05:00
Isaiah Odhner 2729905dc4 Add Dutch 2020-12-15 18:26:54 -05:00
Isaiah Odhner 76a6322610 Add Chinese (Simplified) 2020-12-15 18:10:22 -05:00
Isaiah Odhner 50657435fd Add Chinese (Traditional) 2020-12-15 17:40:41 -05:00
Isaiah Odhner 23bb366415 Add Greek 2020-12-15 17:19:23 -05:00
Isaiah Odhner 8bb0b3a3d1 Add Hungarian 2020-12-15 16:57:27 -05:00
Isaiah Odhner 65a3c7ac81 Add Norwegian 2020-12-15 16:38:13 -05:00
Isaiah Odhner f5dcfc7611 Add Turkish 2020-12-15 16:26:40 -05:00
Isaiah Odhner f15d18ebda Add Slovenian 2020-12-15 16:12:39 -05:00
Isaiah Odhner ff9083312b Add Italian 2020-12-15 15:38:05 -05:00
Isaiah Odhner e9e246c70e Add Slovak 2020-12-15 15:22:40 -05:00
Isaiah Odhner a052112cea Fix language input switching for Product Key 2020-12-15 15:17:14 -05:00
Isaiah Odhner 1cd7d3028f Add Swedish 2020-12-15 14:49:57 -05:00
Isaiah Odhner 2a5e848abb Add Brazilian Portuguese 2020-12-15 14:30:11 -05:00
Isaiah Odhner fb6feb09e1 Add Czech 2020-12-15 13:07:34 -05:00
Isaiah Odhner b68203319c Add Polish 2020-12-15 00:53:45 -05:00
Isaiah Odhner 629585d376 Add Finnish 2020-12-14 14:16:39 -05:00
Isaiah Odhner 7c6dbf666a Add Portuguese 2020-12-14 14:02:01 -05:00
Isaiah Odhner 94745c13fa Add Arabic
TODO: right-to-left layout
2020-12-14 12:57:34 -05:00
Isaiah Odhner 8919ec4ce7 Add Hebrew
TODO: right-to-left layout
2020-12-13 20:47:12 -05:00
Isaiah Odhner 141d9f6b1a Greatly improve localization automation workflow
Workflow previously:

- find and download VM image
	- Internet Archive / WinWorldPC
- make sure of language code (for instance, dk was actually da under the ISO standard)
	- https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes
- move/rename so it's clear what it is
	- renaming it after creating the VM is complicated because it'll break virtualbox file references
- in command line, `bash ./localization/install-windows-98.sh <language code> `
- drag and drop iso into command line to complete the command
- attempt the command, and if it doesn't work, try other product keys or update the script as needed or install manually  
- close VM
- in command line, `bash ./localization/grab-files-from-vm.sh <language code> `
- drag and drop vdi into command line to complete the command
- run desktop automation, pressing Down at the appropriate time if there's a media notification like for YouTube
- close window
- go into Windows 10 VM
- find the new mspaint.exe
- right click, open resource tuner
- wait for it to load
- click the save multiple (batch export) button
- hit Next
- choose directory `Z:\extracted-resources\<language code>\mspaint`, creating the directories as needed
- hit Finish
- close window
- pause VM
- go to `/home/io/Downloads/Windowses/VirtualBox VMs/Win10 Share/extracted-resources/<language code>/mspaint`
- select Dialog, Menu, and String Table for now, maybe Accelerator Table later
- copy it to `/home/io/Projects/jspaint/localization/<language code>`, creating directory as needed
- run `npm run update-localization`
- add language to list of available languages in index.html (may become localization.js at some point)  
- test the new language
- commit

Workflow now:

- find and download VM image
	- Internet Archive / WinWorldPC
- make sure of language code (for instance, dk was actually da under the ISO standard)
	- https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes
- move/rename so it's clear what it is
	- renaming it after creating the VM is complicated because it'll break virtualbox file references
- in command line, `bash ./localization/install-windows-98.sh <language code> `
- drag and drop iso into command line to complete the command
- attempt the command, and if it doesn't work, try other product keys or update the script as needed or install manually  
- close VM
- in command line, `bash ./localization/grab-files-from-vm.sh <language code>`
- run desktop automation, pressing Down at the appropriate time if there's a media notification like for YouTube
- test the new language
- commit
2020-12-13 20:43:55 -05:00
Isaiah Odhner 83e7f8fcb2 Add Danish 2020-12-13 13:09:45 -05:00
Isaiah Odhner 3b6d4c74e6 Remove ellipses that aren't in the base language string for now
Fix ellipses showing in About Paint window title, like "Info..." for German because the menu item is named "Info...".
To include them without showing them in window titles, I need to add support for string IDs (or a hack specific to menus).
2020-12-13 11:49:00 -05:00
Isaiah Odhner 670bc7f6e0 Improve string collision reporting 2020-12-13 11:40:47 -05:00
Isaiah Odhner c2304248fe Handle non-ASCII hotkey hints
- Note: this does not add support for non-ASCII hotkey functionality; hotkeys are still hard-coded, as far as what keys you can press to trigger actions.
- Fixes the hotkey hint patching when hotkeys don't match across localizations, e.g. "&Файл" -> "Файл (&)" for File menu.
- Prevents ampersands from showing up in the UI where they're not supposed to, like in About Paint's window title.
2020-12-13 10:44:39 -05:00
Isaiah Odhner 42ea88779b Add Russian 2020-12-12 23:14:11 -05:00
Isaiah Odhner 0cd221949b Connect the two parts of the script with desktop automation 2020-12-12 23:14:06 -05:00
Isaiah Odhner 586f75f268 Work around VBoxManage error 2020-12-12 23:14:03 -05:00
Isaiah Odhner 45e32e4489 Parse each rc file separately 2020-12-12 21:30:01 -05:00
Isaiah Odhner 175ab9fa0a Add Spanish 2020-12-12 21:10:11 -05:00
Isaiah Odhner 4c3fcb277a Add Japanese 2020-12-12 21:02:00 -05:00
Isaiah Odhner f095458c10 Add German, and show endonyms in Language menu 2020-12-12 20:42:36 -05:00
Isaiah Odhner 74932b548a Automate concatenating rc files
- localization/ko/localizations.js changes should just be reorderings.
- No longer including "combined.rc" files in source control, since the combination is just done in memory.
2020-12-12 20:42:36 -05:00
Isaiah Odhner a19214f8ca Load localizations synchronously but dynamically 2020-12-12 20:42:35 -05:00
Isaiah Odhner 5aef82b31d Add script to grab files from VMs 2020-12-12 20:42:35 -05:00
Isaiah Odhner 6bb28998fe Fix fill tool description localization 2020-12-11 12:20:40 -05:00
Isaiah Odhner 44ce98bbb2 Split to apply localization of tool names and descriptions 2020-12-11 12:20:39 -05:00
Isaiah Odhner a9e09395a1 Add script to create and install Win98 into new VirtualBox VMs 2020-12-11 12:20:39 -05:00
Isaiah Odhner 227626dba5 Detect more collisions (and change outcome)
This also changes the localization of "Colors" from "색" to "색상", perhaps among other things. It's hard to view the diff, and I don't know enough about Korean to decide which is better. Probably it should be different in different places, since there are multiple translations, and that will be a separate feature to introduce.
2020-12-07 18:56:43 -05:00
Isaiah Odhner 265dccb3ea DRY 2020-12-07 18:56:43 -05:00
Isaiah Odhner 1fc8182b38 Clean up 2020-12-07 18:56:43 -05:00
Isaiah Odhner 0d1a2cd813 Reduce tech debt
Localizations shouldn't map from a hotkeyless string to a string with a hotkey hint.
2020-12-07 18:56:43 -05:00
Isaiah Odhner 5871e0ff5f Fix double ellipses 2020-12-07 18:56:43 -05:00
Isaiah Odhner 8643e95b5a Localize with data from Resource Tuner 2020-12-07 18:56:43 -05:00
Isaiah Odhner dbcd4cba1f WIP localization 2020-12-07 00:35:13 -05:00