Added original files/folder organization

This commit is contained in:
GitCosm0s
2026-02-07 12:28:45 -05:00
parent 76ddcde22e
commit e53cecc95f
2464 changed files with 174131 additions and 1 deletions

View File

@@ -0,0 +1,16 @@
## Makefile.am for tuxtype - data/menus:
## Process with Automake to create Makefile.in
menusdir = $(pkgdatadir)/menus
dist_menus_DATA = main_menu.xml
EXTRA_DIST = menu_strings \
update-po.sh
all: menu_strings
# Create a 'source' file holding all the descriptions for the missions.
menu_strings: $(dist_menus_DATA)
cd $(srcdir); ./update-po.sh

View File

@@ -0,0 +1,29 @@
<menu title="Main Menu" entries="6">
<menu title="Fish Cascade" sprite="cascade" entries="5" desc="Help Tux eat fish by pressing the letters on the fish">
<item title="Easy" sprite="tux_helmet_yellow" run="RUN_CASCADE_LEVEL1" desc="" />
<item title="Medium" sprite="tux_helmet_green" run="RUN_CASCADE_LEVEL2" desc="" />
<item title="Hard" sprite="tux_helmet_yellow" run="RUN_CASCADE_LEVEL3" desc="" />
<item title="Instructions" sprite="tux_helmet_yellow" run="RUN_INSTRUCT" desc="" />
<item title="Main Menu" sprite="main" run="RUN_MAIN_MENU" desc="Return to the main menu" />
</menu>
<menu title="Comet Zap" sprite="comet" entries="5" desc="Defend the cities from comets by typing letter on them using laser!">
<item title="Space Cadet" sprite="tux_helmet_yellow" run="RUN_LASER_LEVEL1" desc="Easy" />
<item title="Pilot" sprite="tux_helmet_green" run="RUN_LASER_LEVEL2" desc="Moderate" />
<item title="Ace" sprite="tux_helmet_blue" run="RUN_LASER_LEVEL3" desc="Hard" />
<item title="Commander" sprite="tux_helmet_red" run="RUN_LASER_LEVEL4" desc="Hardest" />
<item title="Main Menu" sprite="main" run="RUN_MAIN_MENU" desc="Return to the main menu" />
</menu>
<menu title="Training" sprite="lesson" entries="3" desc="Train alphabets and phrase typing">
<item title="Basic Lessons" sprite="lesson" run="RUN_LESSONS" desc="Train basic alphabets" />
<item title="Phrase Typing" sprite="practice" run="RUN_PHRASE_TYPING" desc="Train typing sentences" />
<item title="Main Menu" sprite="main" run="RUN_MAIN_MENU" desc="Return to the main menu" />
</menu>
<menu title="Options" sprite="tux_config" entries="4" desc="Additional options">
<item title="Setup Language" sprite="tux_config" run="RUN_SET_LANGUAGE" desc="Set your language" />
<item title="Edit Word Lists" sprite="list" run="RUN_EDIT_WORDLIST" desc="Add or remove words" />
<item title="Setup Braille Keys" sprite="keyboard" run="RUN_SET_BRAILLE_KEYS" desc="Choose your own keys for representing braille dots" />
<item title="Main Menu" sprite="main" run="RUN_MAIN_MENU" desc="Return to the main menu" />
</menu>
<item title="Project Info" sprite="alone" run="RUN_PROJECT_INFO" desc="See the project info" />
<item title="Quit" sprite="quit" run="RUN_QUIT" desc="Exit to your desktop" />
</menu>

View File

@@ -0,0 +1,37 @@
_("Ace")
_("Basic Lessons")
_("Comet Zap")
_("Commander")
_("Easy")
_("Edit Word Lists")
_("Fish Cascade")
_("Hard")
_("Instructions")
_("Main Menu")
_("Medium")
_("Options")
_("Phrase Typing")
_("Pilot")
_("Project Info")
_("Quit")
_("Setup Braille Keys")
_("Setup Language")
_("Space Cadet")
_("Training")
_("")
_("Additional options")
_("Add or remove words")
_("Choose your own keys for representing braille dots")
_("Defend the cities from comets by typing letter on them using laser!")
_("Easy")
_("Exit to your desktop")
_("Hard")
_("Hardest")
_("Help Tux eat fish by pressing the letters on the fish")
_("Moderate")
_("Return to the main menu")
_("See the project info")
_("Set your language")
_("Train alphabets and phrase typing")
_("Train basic alphabets")
_("Train typing sentences")

View File

@@ -0,0 +1,12 @@
#!/bin/sh
# Create a 'source' file holding all the strings from the menus.
# That file (menu_strings) is listed in po/POTFILES.in so the strings will go into
# tuxmath.pot and subsequently into the individual po files for translation.
# NOTE this script needs to be kept in the same dir as the menu files
rm -f ./menu_strings
sed -n 's/^.*title=\("[^"]*"\).*$/_(\1)/p' main_menu.xml | sort | uniq > title_strings
sed -n 's/^.*desc=\("[^"]*"\).*$/_(\1)/p' main_menu.xml | sort | uniq > desc_strings
cat title_strings desc_strings > menu_strings
rm -f title_strings desc_strings