Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
71 commits
Select commit Hold shift + click to select a range
b015ef4
Migrate to the modern-ui-ttf Options Menu
DefKorns Oct 13, 2026
f6c5666
Add BlackPaladin's Famicom Jump, Dragon Ball and Hokuto no Ken 3 tran…
DefKorns Oct 14, 2026
beec934
Replace the Dragon Quest and Zelda II patches and credit the identifi…
DefKorns Oct 14, 2026
95aa5db
Bind the language fonts per file over resources/fonts
DefKorns Oct 14, 2026
b5731a2
Ignore the patch test folder and the credit worklist
DefKorns Oct 14, 2026
c91f15a
Rename the Language Hack to Console Language
DefKorns Oct 14, 2026
f9c2bba
Move the IPS patches out, list the menu under Language and reboot to …
DefKorns Oct 14, 2026
5ff186f
Update the Options Menu submodule to the shared downloader
DefKorns Oct 14, 2026
b26e1a0
Update hmod-build: smoke test of the packaged files
DefKorns Oct 15, 2026
cd949a1
Move hmod-build under vendor/
DefKorns Oct 15, 2026
9707eb4
Update hmod-build to v1.1.0
DefKorns Oct 15, 2026
26be189
Move local-only ignores to .git/info/exclude
DefKorns Oct 15, 2026
ff02802
Update hmod-build to v1.2.0
DefKorns Oct 16, 2026
e7d7217
Use the Options Menu language previews and add a preview for the menu…
DefKorns Oct 16, 2026
fff55e8
Ship every extra language as its own hmod and download the rest from …
DefKorns Oct 16, 2026
6096867
Bind the language fonts over the *.font names the USA/EUR firmwares use
DefKorns Oct 16, 2026
91aeffb
Pick languages to download one by one, highlight the active one and s…
DefKorns Oct 16, 2026
c97c294
Pick languages to download, add Japanese for the western consoles and…
DefKorns Oct 16, 2026
8e5dc58
Update hmod-build to v1.4.0
DefKorns Oct 20, 2026
9fb0719
Update hmod-build to v1.5.0
DefKorns Oct 20, 2026
1e724a2
Track Options Menu master
DefKorns Oct 20, 2026
c3040a5
Romanji titles
DefKorns Oct 20, 2026
55af316
new flags
DefKorns Oct 20, 2026
71a1080
Add the missing language packs for every console
DefKorns Oct 20, 2026
1a1152b
Show flags on the language rows and run language changes with the men…
DefKorns Oct 20, 2026
b208752
Add a Rōmaji titles toggle and install the boot script only while a l…
DefKorns Oct 20, 2026
9bb743a
Take the title font from Font Remount
DefKorns Oct 20, 2026
a8978e7
Reorder Console Language screens, add delete, cached catalog and DOWN…
DefKorns Oct 20, 2026
295029a
Rename shell functions to camelCase
DefKorns Oct 20, 2026
676f819
Tidy install and uninstall scripts
DefKorns Oct 20, 2026
c190415
Hide Revert to Japanese until a language is applied
DefKorns Oct 20, 2026
1bee448
Build one language hmod per system and read the packs from om_console…
DefKorns Oct 20, 2026
d0e5154
Build one language hmod per system and publish the packs to om_consol…
DefKorns Oct 20, 2026
e80582b
Move the language packs and their build out of the addon
DefKorns Oct 20, 2026
e88c964
Ship the Famicom Mini languages inside the main hmod
DefKorns Oct 20, 2026
a585883
Apply and revert languages by reloading the menu instead of rebooting
DefKorns Oct 21, 2026
71f5a91
Make the rōmaji titles independent of the applied language
DefKorns Oct 21, 2026
62a94f8
Use the Options Menu splash, unpack and menu reload helpers
DefKorns Oct 21, 2026
61be8d6
Tell the Options Menu which language is applied
DefKorns Oct 21, 2026
82d9af0
Merge pull request #7 from DefKorns/feat/reload-without-reboot
DefKorns Oct 21, 2026
52b0e82
Move the translation patches to their own add-on
DefKorns Oct 22, 2026
1d17284
Show the CL waiting splashes with a moving bar
DefKorns Oct 22, 2026
ad3f0b8
Add an .editorconfig, a style check on pull requests and a Contributi…
DefKorns Oct 22, 2026
5630126
Require Options Menu 2.1.0
DefKorns Oct 22, 2026
4843416
Update Options Menu to v2.1.0
DefKorns Oct 22, 2026
d42afc9
Skip submodules in the style check and name the file in each error
DefKorns Oct 22, 2026
378ec90
Fix the markdown layout of the readmes
DefKorns Oct 22, 2026
ebc71b0
Add pre-commit hooks, issue forms and their links in Contributing
DefKorns Oct 22, 2026
2684386
Fix what the new hooks found
DefKorns Oct 22, 2026
9c4c25e
Merge master (RC10) into om-modern, keeping om-modern's tree
DefKorns Oct 27, 2026
e1278fd
Skip the firmware assets in the style check
DefKorns Oct 27, 2026
fc78732
Merge pull request #8 from DefKorns/feat/om-loading
DefKorns Oct 27, 2026
2169e64
Update the readmes for the reload without reboot and Font Remount
DefKorns Oct 27, 2026
e6282b2
Add a changelog
DefKorns Oct 27, 2026
6d6aa70
Add the v2.0.0 release notes
DefKorns Oct 27, 2026
0c87ef0
List the languages in the SNES firmware menu, with Japanese as the ninth
DefKorns Oct 27, 2026
5e8c964
add scroll to language screen
DefKorns Oct 27, 2026
dacbcb7
Reread the language list each time the screen opens
DefKorns Oct 27, 2026
1d979d2
Update the readme and release notes for the built-in Japanese and the…
DefKorns Oct 27, 2026
cf59566
Add the firmware language menu to the NES
DefKorns Oct 27, 2026
84ad391
Add the language button to the Famicom Mini, Shonen Jump and Super Fa…
DefKorns Oct 27, 2026
a4e6b30
Update the readme and release notes for the new language menus
DefKorns Oct 27, 2026
d9bcc90
Say all five consoles use their own language menu
DefKorns Oct 27, 2026
30d2b9c
Add pre-commit and license badges to the README
DefKorns Oct 28, 2026
c35a07f
Update hmod-build to v1.7.0
DefKorns Oct 30, 2026
709f9b9
Update hmod-build to v1.7.1
DefKorns Oct 30, 2026
de07012
Mount the romaji overlay on the games folder the UI reads, so the Hak…
DefKorns Oct 30, 2026
12cb475
Correct the v2.0.0 docs, add its changelog entry and ask for Options …
DefKorns Nov 1, 2026
f2536ac
Unpack each language in a stage and move it in whole, so a cancelled …
DefKorns Nov 1, 2026
85e1d7d
Refresh the firmware strings when a downloaded language changed, not …
DefKorns Nov 1, 2026
cfd7756
Keep the shared language separator while another add-on still has a c…
DefKorns Nov 1, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
root = true

[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
indent_style = space
indent_size = 4

# shell scripts, command files and translations
[{mod/**,*.sh}]
indent_size = 2

[*.{yml,yaml,json}]
indent_size = 2

[{Makefile,*.mk}]
indent_style = tab

# two trailing spaces are a line break
[*.md]
trim_trailing_whitespace = false
4 changes: 4 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
* text=auto eol=lf
*.png binary
*.fnt binary
*.lng binary
61 changes: 61 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: Bug report
description: Something in Console Language doesn't work as it should
labels: [bug]
body:
- type: markdown
attributes:
value: |
Thanks for taking the time to report this. The more of the fields below you fill in, the faster it can be fixed.
- type: dropdown
id: console
attributes:
label: Console
options:
- SNES Classic (USA)
- SNES Classic (EUR)
- Super Famicom Classic
- NES Classic
- Famicom Classic
- Famicom Shonen Jump
validations:
required: true
- type: input
id: version
attributes:
label: Console Language version
description: In hakchi, **Modules → Uninstall extra modules** lists the installed version.
placeholder: e.g. 1.0.0
validations:
required: true
- type: input
id: om-version
attributes:
label: Options Menu version
description: Shown next to the title at the top of the Options Menu.
placeholder: e.g. 2.1.0
validations:
required: true
- type: textarea
id: what-happened
attributes:
label: What happened?
description: What you did, what you expected, and what you got instead.
validations:
required: true
- type: textarea
id: steps
attributes:
label: Steps to reproduce
placeholder: |
1. ...
2. ...
- type: textarea
id: mods
attributes:
label: Other mods installed
description: In hakchi, **Modules → Generate modules report**, then paste it here or attach the file.
- type: textarea
id: logs
attributes:
label: Logs and screenshots
description: Attach any logs, or a photo or screenshot of the problem, by dragging them here.
1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
blank_issues_enabled: true
31 changes: 31 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Feature request
description: An idea for Console Language
labels: [enhancement]
body:
- type: textarea
id: need
attributes:
label: What would you like to do?
description: The problem or the situation, not the solution yet.
validations:
required: true
- type: textarea
id: idea
attributes:
label: How could Console Language help?
- type: textarea
id: alternatives
attributes:
label: Anything you tried or considered?
- type: dropdown
id: consoles
attributes:
label: Consoles it matters for
multiple: true
options:
- All
- SNES Classic
- Super Famicom Classic
- NES Classic
- Famicom Classic
- Famicom Shonen Jump
30 changes: 30 additions & 0 deletions .github/check_style.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#!/bin/sh
# check_style.sh <base>: the lines added since <base> follow .editorconfig
base="${1:-origin/master}"
failed=0

error() {
echo "::error file=$1::$2"
echo "$1: $2"
failed=1
}

git diff --check "$base...HEAD" -- . ':!*.md' ':!mod/etc/options_menu/console_language/assets/*' || failed=1

files=$(git diff --name-only --diff-filter=ACMR "$base...HEAD")
for file in $files; do
[ -f "$file" ] || continue
case "$file" in
*.png | *.ttf | *.hmod | *.xz | *.pem | mod/etc/options_menu/console_language/assets/*) continue ;;
esac
added=$(git diff -U0 "$base...HEAD" -- "$file" | grep '^+' | grep -v '^+++' || true)
[ -n "$added" ] || continue
printf '%s\n' "$added" | grep -q "$(printf '\r')" && error "$file" "CRLF line endings; use LF"
case "$file" in
Makefile | *.mk | *.md | .gitmodules) ;;
*) printf '%s\n' "$added" | grep -q "^+$(printf '\t')" && error "$file" "indented with tabs; use spaces (see .editorconfig)" ;;
esac
[ -n "$(tail -c1 "$file")" ] && error "$file" "missing newline at the end of the file"
done

exit "$failed"
19 changes: 19 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Build

on:
push:
branches: ['**']
tags: ['v*']
pull_request:

jobs:
hmod:
# Keep in sync with the vendor/hmod-build submodule tag.
uses: DefKorns/hmod-build/.github/workflows/hmod.yml@v1.7.1
with:
release-name: Console Language
make: all
docker: false
secrets: inherit
permissions:
contents: write
17 changes: 17 additions & 0 deletions .github/workflows/style.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Style

# checks only the lines a pull request adds, so older files never fail a PR they didn't touch
on:
pull_request:

jobs:
changed-lines:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Trailing whitespace, line endings and indentation
env:
BASE: origin/${{ github.base_ref }}
run: sh .github/check_style.sh "$BASE"
7 changes: 5 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
*.o
[Dd]ebug*/
[Rr]elease*/
!release-notes/
*.mode*
*.app/
*.pyc
Expand Down Expand Up @@ -494,5 +495,7 @@ ASALocalRun/

# End of https://www.gitignore.io/api/git,osx,linux,windows,visualstudio,visualstudiocode,openframeworks+visualstudio
out/
Makefile
default-strings.lng
default-strings.lng

# compiled from native-menu/ by make
mod/etc/options_menu/console_language/assets/native/
7 changes: 7 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[submodule "hmod-build"]
path = vendor/hmod-build
url = https://github.com/DefKorns/hmod-build.git
[submodule "vendor/OptionsMenu"]
path = vendor/OptionsMenu
url = https://github.com/DefKorns/OptionsMenu
branch = master
5 changes: 5 additions & 0 deletions .markdownlint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# long lines read fine in rendered markdown
MD013: false
# the same heading under different parents (e.g. "Building") is fine
MD024:
siblings_only: true
25 changes: 25 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# runs on the staged files before each commit; set up with "pre-commit install" (see README → Contributing)
# licence texts and firmware/asset data stay byte for byte as they ship
exclude: ^(LICENSE|.*OFL.*\.txt|mod/etc/options_menu/console_language/assets/.*)$
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: trailing-whitespace
args: [--markdown-linebreak-ext=md]
- id: end-of-file-fixer
- id: mixed-line-ending
args: [--fix=lf]
- id: check-yaml
- id: check-json
# VS Code settings are JSON with comments
exclude: ^\.vscode/
- id: check-merge-conflict
- repo: https://github.com/koalaman/shellcheck-precommit
rev: v0.11.0
hooks:
- id: shellcheck
- repo: https://github.com/DavidAnson/markdownlint-cli2
rev: v0.24.0
hooks:
- id: markdownlint-cli2
7 changes: 7 additions & 0 deletions .shellcheckrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# source (vs POSIX .) is the established convention across this repo's
# scripts and works fine on the target's ash - not a real bug here.
disable=SC3046
# set by the scripts that source these ones, which shellcheck can't follow
disable=SC1091,SC2154
# local and source work on the console's ash
disable=SC3043,SC3051
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Changelog

## v2.0.0

- The Language Hack is now Console Language, rebuilt as an Options Menu add-on (Options Menu v2.1.0 or newer)
- The game translation patches moved to their own add-on, om_game-translations
- The console's own Languages screen lists the stock languages, 日本語 and the downloaded ones on the SNES, NES, Famicom Mini, Famicom Shonen Jump and Super Famicom Mini
- Download more languages from the console: one at a time or all at once, with a progress bar; hold B to delete one
- Rōmaji titles on the Japanese systems, independent of the applied language

## v1.0.0

- Original Language Hack for the Shonen Jump firmware
85 changes: 15 additions & 70 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,75 +1,20 @@
MOD_ID := om_console-language
MOD_NAME := Options Menu - Console Language
MOD_CATEGORY := Options Menu - Addons

MOD_NAME := Options Menu - Shonen Jump Language Hack
MOD_CREATOR := DefKorns
MOD_CATEGORY := User Interface
MOD_VER := Release_Candidate_4
MOD_URL=`git config --get remote.origin.url`
GIT_COMMIT := $(shell echo "`git rev-parse --short HEAD``git diff-index --quiet HEAD -- || echo '-dirty'`")
LANGUAGE=language_pack/language
NATIVE_DIR := mod/etc/options_menu/console_language/assets/native
LUAJIT_FILES := native-menu/sys_option_languages.lua:$(NATIVE_DIR)/927b4cd97f045ce30f73e50f50ef8550.lua \
native-menu/sys_option_languages.lua:$(NATIVE_DIR)/3d3bae3b044fe5afaf75cecd8b735d4c.lua \
native-menu/helper_nodes.lua:$(NATIVE_DIR)/139f8a0e2335b7d0954d2a9c03d47e36.lua \
native-menu/sys_menubaru.lua:$(NATIVE_DIR)/5fbe9d6a4f5b9b7f118117bebb20f2cf.lua \
native-menu/sys_menubaru_shonen.lua:$(NATIVE_DIR)/e09559563454b200f423867e8463d4c3.lua

MOD_FILENAME := $(shell basename ${MOD_URL} .git | cut -d':' -f2)

hmod: out/$(MOD_FILENAME).hmod
tar: out/$(MOD_FILENAME).tar.gz
zip: out/$(MOD_FILENAME).zip

all: hmod tar zip customlang scripts
deploy: customlang scripts upload

out/$(MOD_FILENAME).hmod:
rm -rf out/
mkdir -p out/ temp/
rsync -a mod/ temp/ --links --delete

printf "%s\n" \
"---" \
"Name: $(MOD_NAME)" \
"Creator: $(MOD_CREATOR)" \
"Category: $(MOD_CATEGORY)" \
"Version: $(MOD_VER)" \
"Built on: $(shell date +"%A, %d %b %Y - %T")" \
"Git commit: $(GIT_COMMIT)" \
"---" > temp/readme.md

sed 1d mod/readme.md >> temp/readme.md

cd temp/; tar -czf "../$@" *
rm -r temp/
touch "$@"

out/$(MOD_FILENAME).tar.gz:
mkdir -p out/ temp/
rsync -a mod/etc/options_menu/ temp/ --links --delete

cd temp/; tar -czf "../$@" *
rm -r temp/
touch "$@"

out/$(MOD_FILENAME).zip:
mkdir -p out/ temp/
rsync -a mod/etc/options_menu/ temp/ --links --delete

cd temp/; zip -r "../$@" *
rm -r temp/
touch "$@"

customlang:
mkdir -p out/customlangs temp/
find $(LANGUAGE)/. -mindepth 1 -maxdepth 1 -type d | xargs -n 1 basename | while IFS= read -r country; do \
rsync -a $(LANGUAGE)/$$country/ temp/ --links --delete ; \
cd temp/; tar -czf "../out/customlangs/"$$country".tar.gz" *; \
cd .. && rm -r temp/ ; \
done

scripts:
cd language_pack/localization ; \
tar -czf ../../out/localization.tar.gz *

upload:
rm -f out/$(MOD_FILENAME).*
rsync -e ssh --progress --exclude 'rsync*' --exclude 'src' -avzzp out/* user@host:/var/www/html/Hakchi_Themes/options_menu
all: hmod

clean:
-rm -rf out/
rm -rf out/ $(dir $(LUAJIT_OUT))

include vendor/hmod-build/luajit.mk
include vendor/hmod-build/hmod.mk

.PHONY: clean
.PHONY: all clean
Loading
Loading