From 6dd39389e0738df072656f561dae7a2b854b3095 Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Mon, 5 Sep 2016 20:10:13 -0700 Subject: [PATCH] Qt: Add dummy Spanish translation --- src/platform/qt/CMakeLists.txt | 12 + src/platform/qt/ts/es.ts | 4095 ++++++++++++++++++++++++++++++++ 2 files changed, 4107 insertions(+) create mode 100644 src/platform/qt/ts/es.ts diff --git a/src/platform/qt/CMakeLists.txt b/src/platform/qt/CMakeLists.txt index 7e3072906..db81a6282 100644 --- a/src/platform/qt/CMakeLists.txt +++ b/src/platform/qt/CMakeLists.txt @@ -186,6 +186,18 @@ if(NOT WIN32 AND NOT APPLE) list(APPEND QT_DEFINES DATADIR="${DATADIR}") endif() +find_package(Qt5LinguistTools) +if(Qt5LinguistTools_FOUND) + set(TRANSLATION_FILES) + file(GLOB TS_FILES ts/*.ts) + if(UPDATE_TRANSLATIONS) + qt5_create_translation(TRANSLATION_FILES ${SOURCE_FILES} ${UI_FILES} ${TS_FILES}) + else() + qt5_add_translation(TRANSLATION_FILES ${TS_FILES}) + endif() + list(APPEND RESOURCES ${TRANSLATION_FILES}) +endif() + add_executable(${BINARY_NAME}-qt WIN32 MACOSX_BUNDLE main.cpp ${CMAKE_SOURCE_DIR}/res/mgba.icns ${SOURCE_FILES} ${PLATFORM_SRC} ${UI_FILES} ${AUDIO_SRC} ${RESOURCES}) set_target_properties(${BINARY_NAME}-qt PROPERTIES MACOSX_BUNDLE_INFO_PLIST ${CMAKE_SOURCE_DIR}/res/info.plist.in COMPILE_DEFINITIONS "${FEATURE_DEFINES};${FUNCTION_DEFINES};${OS_DEFINES};${QT_DEFINES}") diff --git a/src/platform/qt/ts/es.ts b/src/platform/qt/ts/es.ts new file mode 100644 index 000000000..6829dd939 --- /dev/null +++ b/src/platform/qt/ts/es.ts @@ -0,0 +1,4095 @@ + + + + + AboutScreen + + + About + + + + + {projectName} + + + + + © 2013 – 2016 Jeffrey Pfau — Game Boy Advance is a registered trademark of Nintendo Co., Ltd. + + + + + {projectVersion} + + + + + {logo} + + + + + {projectName} is an open-source Game Boy Advance emulator + + + + + <a href="http://mgba.io/">Website</a> • <a href="https://forums.mgba.io/">Forums / Support</a> • <a href="https://github.com/mgba-emu/mgba/tree/{gitBranch}">Source</a> • <a href="https://github.com/mgba-emu/mgba/blob/{gitBranch}/LICENSE">License</a> + + + + + Branch: <tt>{gitBranch}</tt><br/>Revision: <tt>{gitCommit}</tt> + + + + + ArchiveInspector + + + Open in archive... + + + + + CheatsView + + + Cheats + + + + + Remove + + + + + Save + + + + + Load + + + + + Add New Set + + + + + Add + + + + + Form + + + + Form + + + + + Audio driver: + + + + + Audio buffer: + + + + + + 1536 + + + + + 512 + + + + + 768 + + + + + 1024 + + + + + 2048 + + + + + 3072 + + + + + 4096 + + + + + samples + + + + + Sample rate: + + + + + + 44100 + + + + + 22050 + + + + + 32000 + + + + + 48000 + + + + + Hz + + + + + Volume: + + + + + Mute + + + + + Display driver: + + + + + Frameskip: + + + + + Skip every + + + + + + frames + + + + + FPS target: + + + + + frames per second + + + + + Sync: + + + + + Video + + + + + Audio + + + + + Lock aspect ratio + + + + + Resample video + + + + + BIOS file: + + + + + Browse + + + + + Use BIOS file + + + + + Skip BIOS intro + + + + + Enable rewind + + + + + Create rewind state: + + + + + Every + + + + + Rewind history: + + + + + states + + + + + Fast forward speed + + + + + × + + + + + Unbounded + + + + + Allow opposing input directions + + + + + Suspend screensaver + + + + + Idle loops + + + + + Run all + + + + + Remove known + + + + + Detect and remove + + + + + GBAKeyEditor + + + Form + + + + + Set All + + + + + GIFView + + + Record GIF + + + + + Start + + + + + Stop + + + + + Select File + + + + + Frameskip + + + + + Frame delay (ms) + + + + + Automatic + + + + + IOViewer + + + I/O Viewer + + + + + 0x0000 + + + + + 2 + + + + + 5 + + + + + 4 + + + + + 7 + + + + + 0 + + + + + 9 + + + + + 1 + + + + + 3 + + + + + 8 + + + + + C + + + + + E + + + + + 6 + + + + + D + + + + + F + + + + + A + + + + + B + + + + + KeyEditor + + + Form + + + + + KeyName + + + + + LoadSaveState + + + + %1 State + + + + + + + + + + + + + No Save + + + + + 1 + + + + + 2 + + + + + 3 + + + + + 4 + + + + + 5 + + + + + 6 + + + + + 7 + + + + + 8 + + + + + 9 + + + + + LogView + + + Logs + + + + + Enabled Levels + + + + + Debug + + + + + Stub + + + + + Info + + + + + Warning + + + + + Error + + + + + Fatal + + + + + Game Error + + + + + Clear + + + + + Max Lines + + + + + MemoryView + + + Memory + + + + + Inspect Address: + + + + + 0x + + + + + Set Alignment: + + + + + 1 Byte + + + + + 2 Bytes + + + + + 4 Bytes + + + + + Signed Integer: + + + + + Unsigned Integer: + + + + + OverrideView + + + Game Overrides + + + + + Save + + + + + Save type + + + + + + Autodetect + + + + + None + + + + + SRAM + + + + + Flash 512kb + + + + + Flash 1Mb + + + + + EEPROM + + + + + Idle loop + + + + + Game Boy Player features + + + + + Realtime clock + + + + + Gyroscope + + + + + Tilt + + + + + Light sensor + + + + + Rumble + + + + + PaletteView + + + Palette + + + + + Background + + + + + Objects + + + + + Selection + + + + + Red + + + + + Green + + + + + Blue + + + + + + + 0x00 (00) + + + + + 16-bit value + + + + + Hex code + + + + + Palette index + + + + + 0x0000 + + + + + #000000 + + + + + 000 + + + + + Export BG + + + + + Export OBJ + + + + + QGBA::AudioDevice + + + Can't set format of context-less audio device + + + + + Audio device is missing its core + + + + + Writing data to read-only audio device + + + + + QGBA::AudioProcessorQt + + + Can't start an audio processor without input + + + + + QGBA::AudioProcessorSDL + + + Can't start an audio processor without input + + + + + QGBA::CheatsModel + + + (untitled) + + + + + Failed to open cheats file: %1 + + + + + QGBA::CheatsView + + + + Select cheats file + + + + + QGBA::GBAKeyEditor + + + Clear Button + + + + + Clear Analog + + + + + Refresh + + + + + Set all + + + + + QGBA::GDBWindow + + + Server settings + + + + + Local port + + + + + Bind address + + + + + Break + + + + + Stop + + + + + Start + + + + + Crash + + + + + Could not start GDB server + + + + + QGBA::GIFView + + + Failed to open output GIF file: %1 + + + + + Select output file + + + + + Graphics Interchange Format (*.gif) + + + + + QGBA::GameController + + + + Failed to open game file: %1 + + + + + Failed to open save file: %1 + + + + + Failed to open snapshot file for reading: %1 + + + + + Failed to open snapshot file for writing: %1 + + + + + Failed to start audio processor + + + + + QGBA::IOViewer + + + Background mode + + + + + Mode 0: 4 tile layers + + + + + Mode 1: 2 tile layers + 1 rotated/scaled tile layer + + + + + Mode 2: 2 rotated/scaled tile layers + + + + + Mode 3: Full 15-bit bitmap + + + + + Mode 4: Full 8-bit bitmap + + + + + Mode 5: Small 15-bit bitmap + + + + + CGB Mode + + + + + Frame select + + + + + Unlocked HBlank + + + + + Linear OBJ tile mapping + + + + + Force blank screen + + + + + Enable background 0 + + + + + Enable background 1 + + + + + Enable background 2 + + + + + Enable background 3 + + + + + Enable OBJ + + + + + Enable Window 0 + + + + + Enable Window 1 + + + + + Enable OBJ Window + + + + + Currently in VBlank + + + + + Currently in HBlank + + + + + Currently in VCounter + + + + + Enable VBlank IRQ generation + + + + + Enable HBlank IRQ generation + + + + + Enable VCounter IRQ generation + + + + + VCounter scanline + + + + + Current scanline + + + + + + + + Priority + + + + + + + + Tile data base (* 16kB) + + + + + + + + Enable mosaic + + + + + + + + Enable 256-color + + + + + + + + Tile map base (* 2kB) + + + + + + + + Background dimensions + + + + + + Overflow wraps + + + + + + + + Horizontal offset + + + + + + + + Vertical offset + + + + + + + + + + + + + + + + Fractional part + + + + + + + + + + + + Integer part + + + + + + + + Integer part (bottom) + + + + + + + + Integer part (top) + + + + + + End x + + + + + + Start x + + + + + + End y + + + + + + Start y + + + + + Window 0 enable BG 0 + + + + + Window 0 enable BG 1 + + + + + Window 0 enable BG 2 + + + + + Window 0 enable BG 3 + + + + + Window 0 enable OBJ + + + + + Window 0 enable blend + + + + + Window 1 enable BG 0 + + + + + Window 1 enable BG 1 + + + + + Window 1 enable BG 2 + + + + + Window 1 enable BG 3 + + + + + Window 1 enable OBJ + + + + + Window 1 enable blend + + + + + Outside window enable BG 0 + + + + + Outside window enable BG 1 + + + + + Outside window enable BG 2 + + + + + Outside window enable BG 3 + + + + + Outside window enable OBJ + + + + + Outside window enable blend + + + + + OBJ window enable BG 0 + + + + + OBJ window enable BG 1 + + + + + OBJ window enable BG 2 + + + + + OBJ window enable BG 3 + + + + + OBJ window enable OBJ + + + + + OBJ window enable blend + + + + + Background mosaic size vertical + + + + + Background mosaic size horizontal + + + + + Object mosaic size vertical + + + + + Object mosaic size horizontal + + + + + BG 0 target 1 + + + + + BG 1 target 1 + + + + + BG 2 target 1 + + + + + BG 3 target 1 + + + + + OBJ target 1 + + + + + Backdrop target 1 + + + + + Blend mode + + + + + Disabled + + + + + Additive blending + + + + + Brighten + + + + + Darken + + + + + BG 0 target 2 + + + + + BG 1 target 2 + + + + + BG 2 target 2 + + + + + BG 3 target 2 + + + + + OBJ target 2 + + + + + Backdrop target 2 + + + + + Blend A (target 1) + + + + + Blend B (target 2) + + + + + Blend Y + + + + + Sweep shifts + + + + + Sweep subtract + + + + + Sweep time (in 1/128s) + + + + + + + + Sound length + + + + + + Duty cycle + + + + + + + Envelope step time + + + + + + + Envelope increase + + + + + + + Initial volume + + + + + + + Sound frequency + + + + + + + + Timed + + + + + + + + Reset + + + + + Double-size wave table + + + + + Active wave table + + + + + Enable channel 3 + + + + + Volume + + + + + 0% + + + + + + 100% + + + + + + 50% + + + + + + 25% + + + + + + + + 75% + + + + + Clock divider + + + + + Register stages + + + + + 15 + + + + + 7 + + + + + Shifter frequency + + + + + PSG volume right + + + + + PSG volume left + + + + + Enable channel 1 right + + + + + Enable channel 2 right + + + + + Enable channel 3 right + + + + + Enable channel 4 right + + + + + Enable channel 1 left + + + + + Enable channel 2 left + + + + + Enable channel 3 left + + + + + Enable channel 4 left + + + + + PSG master volume + + + + + Loud channel A + + + + + Loud channel B + + + + + Enable channel A right + + + + + Enable channel A left + + + + + Channel A timer + + + + + + 0 + + + + + + + + + + + + + 1 + + + + + Channel A reset + + + + + Enable channel B right + + + + + Enable channel B left + + + + + Channel B timer + + + + + Channel B reset + + + + + Active channel 1 + + + + + Active channel 2 + + + + + Active channel 3 + + + + + Active channel 4 + + + + + Enable audio + + + + + Bias + + + + + Resolution + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Sample + + + + + + + + + + + + Address (bottom) + + + + + + + + + + + + Address (top) + + + + + + + + Word count + + + + + + + + Destination offset + + + + + + + + + + + + Increment + + + + + + + + + + + + Decrement + + + + + + + + + + + + Fixed + + + + + + + + Increment and reload + + + + + + + + Source offset + + + + + + + + Repeat + + + + + + + + 32-bit + + + + + + + + Start timing + + + + + + + + Immediate + + + + + + + + + + VBlank + + + + + + + + + + HBlank + + + + + + + + + + + + + IRQ + + + + + + + + + + + + Enable + + + + + + + Audio FIFO + + + + + Video Capture + + + + + DRQ + + + + + + + + Value + + + + + + + + Scale + + + + + + + + 1/64 + + + + + + + + 1/256 + + + + + + + + 1/1024 + + + + + + + Cascade + + + + + + A + + + + + + B + + + + + + Select + + + + + + Start + + + + + + Right + + + + + + Left + + + + + + Up + + + + + + Down + + + + + + R + + + + + + L + + + + + Condition + + + + + SC + + + + + SD + + + + + SI + + + + + SO + + + + + + VCounter + + + + + + Timer 0 + + + + + + Timer 1 + + + + + + Timer 2 + + + + + + Timer 3 + + + + + + SIO + + + + + + DMA 0 + + + + + + DMA 1 + + + + + + DMA 2 + + + + + + DMA 3 + + + + + + Keypad + + + + + + Gamepak + + + + + SRAM wait + + + + + + + + + 4 + + + + + + + + 3 + + + + + + + + + 2 + + + + + + + + + 8 + + + + + Cart 0 non-sequential + + + + + Cart 0 sequential + + + + + Cart 1 non-sequential + + + + + Cart 1 sequential + + + + + Cart 2 non-sequential + + + + + Cart 2 sequential + + + + + PHI terminal + + + + + Disable + + + + + 4.19MHz + + + + + 8.38MHz + + + + + 16.78MHz + + + + + Gamepak prefetch + + + + + Enable IRQs + + + + + QGBA::KeyEditor + + + + --- + + + + + QGBA::LibraryModel + + + Filename + + + + + Size + + + + + QGBA::LoadSaveState + + + Load State + + + + + Save State + + + + + Empty + + + + + Corrupted + + + + + Slot %1 + + + + + QGBA::LogController + + + DEBUG + + + + + STUB + + + + + INFO + + + + + WARN + + + + + ERROR + + + + + FATAL + + + + + GAME ERROR + + + + + QGBA::MemoryModel + + + Copy selection + + + + + Save selection + + + + + + All + + + + + Save selected memory + + + + + Failed to open output file: %1 + + + + + ASCII + + + + + QGBA::PaletteView + + + #%0 + + + + + 0x%0 + + + + + %0 + + + + + + + 0x%0 (%1) + + + + + Export palette + + + + + Windows PAL (*.pal);;Adobe Color Table (*.act) + + + + + Failed to open output palette file: %1 + + + + + QGBA::ROMInfo + + + + + + + (unknown) + + + + + + bytes + + + + + (no database present) + + + + + QGBA::SettingsView + + + Qt Multimedia + + + + + SDL + + + + + Software (Qt) + + + + + OpenGL + + + + + OpenGL (force version 1.x) + + + + + Select BIOS + + + + + QGBA::ShaderSelector + + + No shader active + + + + + Load shader + + + + + %1 Shader (%.shader) + + + + + No shader loaded + + + + + by %1 + + + + + Preprocessing + + + + + Pass %1 + + + + + QGBA::ShortcutController + + + Action + + + + + Keyboard + + + + + Gamepad + + + + + QGBA::TileView + + + + 0x%0 + + + + + QGBA::VideoView + + + Failed to open output video file: %1 + + + + + Select output file + + + + + QGBA::Window + + + Game Boy Advance ROMs (%1) + + + + + Game Boy ROMs (%1) + + + + + All ROMs (%1) + + + + + Archives (%1) + + + + + + + Select ROM + + + + + Game Boy Advance save files (%1) + + + + + + + Select save + + + + + Select BIOS + + + + + Select patch + + + + + Patches (*.ips *.ups *.bps) + + + + + + GameShark saves (*.sps *.xps) + + + + + Crash + + + + + The game has crashed with the following error: + +%1 + + + + + Couldn't Load + + + + + Could not load game. Are you sure it's in the correct format? + + + + + Unimplemented BIOS call + + + + + This game uses a BIOS call that is not implemented. Please use the official BIOS for best experience. + + + + + Really make portable? + + + + + This will make the emulator load its configuration from the same directory as the executable. Do you want to continue? + + + + + Restart needed + + + + + Some changes will not take effect until the emulator is restarted. + + + + + - Player %1 of %2 + + + + + %1 - %2 + + + + + %1 - %2 - %3 + + + + + %1 - %2 (%3 fps) - %4 + + + + + &File + + + + + Load &ROM... + + + + + Load ROM in archive... + + + + + Load &BIOS... + + + + + Load temporary save... + + + + + Load &patch... + + + + + Boot BIOS + + + + + Replace ROM... + + + + + ROM &info... + + + + + Recent + + + + + Make portable + + + + + &Load state + + + + + F10 + + + + + &Save state + + + + + Shift+F10 + + + + + Quick load + + + + + Quick save + + + + + Load recent + + + + + Save recent + + + + + Undo load state + + + + + F11 + + + + + Undo save state + + + + + Shift+F11 + + + + + + State &%1 + + + + + F%1 + + + + + Shift+F%1 + + + + + Import GameShark Save + + + + + Export GameShark Save + + + + + New multiplayer window + + + + + About + + + + + E&xit + + + + + &Emulation + + + + + &Reset + + + + + Ctrl+R + + + + + Sh&utdown + + + + + Yank game pak + + + + + &Pause + + + + + Ctrl+P + + + + + &Next frame + + + + + Ctrl+N + + + + + Fast forward (held) + + + + + &Fast forward + + + + + Shift+Tab + + + + + Fast forward speed + + + + + Unbounded + + + + + %0x + + + + + Rewind (held) + + + + + Re&wind + + + + + ` + + + + + Step backwards + + + + + Ctrl+B + + + + + Sync to &video + + + + + Sync to &audio + + + + + Solar sensor + + + + + Increase solar level + + + + + Decrease solar level + + + + + Brightest solar level + + + + + Darkest solar level + + + + + Brightness %1 + + + + + Audio/&Video + + + + + Frame size + + + + + %1x + + + + + Toggle fullscreen + + + + + Lock aspect ratio + + + + + Resample video + + + + + Frame&skip + + + + + Shader options... + + + + + Mute + + + + + FPS target + + + + + 15 + + + + + 30 + + + + + 45 + + + + + Native (59.7) + + + + + 60 + + + + + 90 + + + + + 120 + + + + + 240 + + + + + Take &screenshot + + + + + F12 + + + + + Record output... + + + + + Record GIF... + + + + + Video layers + + + + + Background %0 + + + + + OBJ (sprites) + + + + + Audio channels + + + + + Channel %0 + + + + + Channel A + + + + + Channel B + + + + + &Tools + + + + + View &logs... + + + + + Game &overrides... + + + + + Game &Pak sensors... + + + + + &Cheats... + + + + + Start &GDB server... + + + + + Settings... + + + + + View &palette... + + + + + View &tiles... + + + + + View memory... + + + + + View &I/O registers... + + + + + Exit fullscreen + + + + + Autofire + + + + + Autofire A + + + + + Autofire B + + + + + Autofire L + + + + + Autofire R + + + + + Autofire Start + + + + + Autofire Select + + + + + Autofire Up + + + + + Autofire Right + + + + + Autofire Down + + + + + Autofire Left + + + + + ROMInfo + + + ROM Info + + + + + Game name: + + + + + {NAME} + + + + + Internal name: + + + + + {TITLE} + + + + + Game ID: + + + + + {ID} + + + + + File size: + + + + + {SIZE} + + + + + CRC32: + + + + + {CRC} + + + + + SensorView + + + Sensors + + + + + Realtime clock + + + + + Fixed time + + + + + System time + + + + + Start time at + + + + + Now + + + + + MM/dd/yy hh:mm:ss AP + + + + + Light sensor + + + + + Brightness + + + + + Tilt sensor + + + + + + Set Y + + + + + + Set X + + + + + Gyroscope + + + + + Sensitivity + + + + + SettingsView + + + Settings + + + + + Audio/Video + + + + + Emulation + + + + + Savestates + + + + + Paths + + + + + Audio driver: + + + + + Audio buffer: + + + + + + 1536 + + + + + 512 + + + + + 768 + + + + + 1024 + + + + + 2048 + + + + + 3072 + + + + + 4096 + + + + + samples + + + + + Sample rate: + + + + + + 44100 + + + + + 22050 + + + + + 32000 + + + + + 48000 + + + + + Hz + + + + + Volume: + + + + + Mute + + + + + Display driver: + + + + + Frameskip: + + + + + Skip every + + + + + + frames + + + + + FPS target: + + + + + frames per second + + + + + Sync: + + + + + Video + + + + + Audio + + + + + Lock aspect ratio + + + + + Resample video + + + + + BIOS file: + + + + + + + + + Browse + + + + + Use BIOS file if found + + + + + Skip BIOS intro + + + + + Fast forward speed + + + + + × + + + + + Unbounded + + + + + Suspend screensaver + + + + + Pause when inactive + + + + + Idle loops + + + + + Run all + + + + + Remove known + + + + + Detect and remove + + + + + Allow opposing input directions + + + + + Save extra data + + + + + + Screenshot + + + + + + Save data + + + + + + Cheat codes + + + + + Load extra data + + + + + Enable rewind + + + + + Rewind history: + + + + + Save games + + + + + + + + Same directory as the ROM + + + + + Save states + + + + + Screenshots + + + + + Patches + + + + + ShaderSelector + + + Shaders + + + + + Active Shader: + + + + + Name + + + + + Author + + + + + Description + + + + + Unload Shader + + + + + Load New Shader + + + + + ShortcutView + + + Edit Shortcuts + + + + + Keyboard + + + + + Gamepad + + + + + Clear + + + + + TileView + + + Tiles + + + + + 256 colors + + + + + Tile # + + + + + 0 + + + + + Address + + + + + 0x06000000 + + + + + × + + + + + Magnification + + + + + VideoView + + + Record Video + + + + + Start + + + + + Stop + + + + + Select File + + + + + Presets + + + + + High Quality + + + + + YouTube + + + + + + WebM + + + + + Lossless + + + + + 1080p + + + + + 720p + + + + + 480p + + + + + GBA (240x160) + + + + + Format + + + + + MKV + + + + + AVI + + + + + MP4 + + + + + PNG + + + + + h.264 + + + + + VP8 + + + + + Xvid + + + + + FFV1 + + + + + FLAC + + + + + Opus + + + + + Vorbis + + + + + MP3 + + + + + AAC + + + + + Uncompressed + + + + + Bitrate (kbps) + + + + + VBR + + + + + ABR + + + + + Dimensions + + + + + : + + + + + × + + + + + Lock aspect ratio + + + + + Show advanced + + + +