mirror of
https://github.com/wger-project/flutter.git
synced 2026-02-18 00:17:48 +01:00
Merge pull request #1038 from elias170105/feature/gym-mode-translation
Feat: Add German translation for Gym Mode Settings
This commit is contained in:
32
ios/Flutter/ephemeral/flutter_lldb_helper.py
Normal file
32
ios/Flutter/ephemeral/flutter_lldb_helper.py
Normal file
@@ -0,0 +1,32 @@
|
||||
#
|
||||
# Generated file, do not edit.
|
||||
#
|
||||
|
||||
import lldb
|
||||
|
||||
def handle_new_rx_page(frame: lldb.SBFrame, bp_loc, extra_args, intern_dict):
|
||||
"""Intercept NOTIFY_DEBUGGER_ABOUT_RX_PAGES and touch the pages."""
|
||||
base = frame.register["x0"].GetValueAsAddress()
|
||||
page_len = frame.register["x1"].GetValueAsUnsigned()
|
||||
|
||||
# Note: NOTIFY_DEBUGGER_ABOUT_RX_PAGES will check contents of the
|
||||
# first page to see if handled it correctly. This makes diagnosing
|
||||
# misconfiguration (e.g. missing breakpoint) easier.
|
||||
data = bytearray(page_len)
|
||||
data[0:8] = b'IHELPED!'
|
||||
|
||||
error = lldb.SBError()
|
||||
frame.GetThread().GetProcess().WriteMemory(base, data, error)
|
||||
if not error.Success():
|
||||
print(f'Failed to write into {base}[+{page_len}]', error)
|
||||
return
|
||||
|
||||
def __lldb_init_module(debugger: lldb.SBDebugger, _):
|
||||
target = debugger.GetDummyTarget()
|
||||
# Caveat: must use BreakpointCreateByRegEx here and not
|
||||
# BreakpointCreateByName. For some reasons callback function does not
|
||||
# get carried over from dummy target for the later.
|
||||
bp = target.BreakpointCreateByRegex("^NOTIFY_DEBUGGER_ABOUT_RX_PAGES$")
|
||||
bp.SetScriptCallbackFunction('{}.handle_new_rx_page'.format(__name__))
|
||||
bp.SetAutoContinue(True)
|
||||
print("-- LLDB integration loaded --")
|
||||
5
ios/Flutter/ephemeral/flutter_lldbinit
Normal file
5
ios/Flutter/ephemeral/flutter_lldbinit
Normal file
@@ -0,0 +1,5 @@
|
||||
#
|
||||
# Generated file, do not edit.
|
||||
#
|
||||
|
||||
command script import --relative-to-command-file flutter_lldb_helper.py
|
||||
@@ -1127,5 +1127,14 @@
|
||||
"endWorkout": "Training beenden",
|
||||
"@endWorkout": {},
|
||||
"dayTypeCustom": "personalisierte",
|
||||
"@dayTypeCustom": {}
|
||||
"@dayTypeCustom": {},
|
||||
"gymModeShowExercises": "Übersichtsseiten anzeigen",
|
||||
"gymModeShowTimer": "Timer zwischen Sätzen anzeigen",
|
||||
"gymModeTimerType": "Timer-Typ",
|
||||
"gymModeTimerTypeHelText": "Wenn eine Satzpause eingegeben ist, wird immer ein Countdown genutzt.",
|
||||
"countdown": "Countdown",
|
||||
"stopwatch": "Stoppuhr",
|
||||
"gymModeDefaultCountdownTime": "Standard-Countdown (Sekunden)",
|
||||
"gymModeNotifyOnCountdownFinish": "Benachrichtigung bei Ablauf",
|
||||
"duration": "Dauer"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user