Commit Graph

1496 Commits (badb503d09a588573bdbcbc03fa19f52556f1f78)

Author SHA1 Message Date
Isaiah Odhner badb503d09 Add news update: The Accessibility Update 2020-12-20 21:57:24 -05:00
Isaiah Odhner eb4af4d7f9 Fix localizations with quotes in them 2020-12-19 02:12:10 -05:00
Isaiah Odhner 0a10ff5f47 Localize "Zoom to" 2020-12-19 01:58:45 -05:00
Isaiah Odhner 93c32043c7 Prompt to save before reloading to change language 2020-12-19 01:58:45 -05:00
Isaiah Odhner 36213f5621 Match file extensions case-insensitively 2020-12-18 14:05:49 -05:00
Isaiah Odhner 9e305eebcd Simplify language changing UX 2020-12-18 13:56:59 -05:00
Isaiah Odhner 0254fd7f2b Update Contributing 2020-12-17 17:25:21 -05:00
Isaiah Odhner 0fb0578b1d Update readme with CSS compile step 2020-12-17 14:58:26 -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 ffe55171f5 Flip other dialog windows for RTL 2020-12-17 14:20:48 -05:00
Isaiah Odhner 153de92b19 Improve Image Attributes layout (mainly for RTL) 2020-12-17 14:20:48 -05:00
Isaiah Odhner 5868abd6ee I'm not using this 2020-12-17 14:20:48 -05:00
Isaiah Odhner 4831b6353a Actually, align canvas left!
- Handle RTL for helper layer positioning
- Do something somewhat reasonable for pasting in RTL
- Get magnifier working with RTL
- Actually, nevermind, align canvas left!
2020-12-17 14:20:48 -05:00
Isaiah Odhner 084da3bcae Fix the status bar
Broken when removing overzealous display: flex rule in 84e36f7d4d
2020-12-17 14:20:48 -05:00
Isaiah Odhner d14135fdc4 Handle RTL layout in menus 2020-12-17 13:36:21 -05:00
Isaiah Odhner 3c7ae6ce44 Handle RTL layout for component drag and drop system 2020-12-17 13:36:21 -05:00
Isaiah Odhner 7aa079c4e9 Refactor
could easily optimize this too
2020-12-17 13:36:21 -05:00
Isaiah Odhner a41a615c3c Fix coordinates on canvas (partially) 2020-12-17 13:36:21 -05:00
Isaiah Odhner 59f7b8e6a0 Fix labels for checkboxes in RTL layout 2020-12-17 13:36:21 -05:00
Isaiah Odhner d21b37404f WIP: RTL layout with RTLCSS 2020-12-17 13:36:21 -05:00
Isaiah Odhner 709c63cbcf Use cooler-looking name for Brazilian Portuguese
- Avoids title-cased small word which looks a little weird but is the style of menu items in English (e.g. Set As Wallpaper), and which none of the other languages have.
- Looks and sounds cooler, in my opinion. :)
2020-12-16 12:13:09 -05:00
Isaiah Odhner bc353d35ad Title-case language names 2020-12-16 00:48:04 -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