Translate Python log messages + fix rhinopanel import in PROJECTS
- startup.py: all user-visible messages translated to English - panel_base.py: icon/rendering log messages translated - toolbar.py: display mode check messages translated - Global: Panel registered/opened/listener-active across all modules - Fix: elemente.py and other files with stale 'import rhinopanel' were missing from PROJECTS sync — now properly copied
This commit is contained in:
+6
-6
@@ -361,7 +361,7 @@ def _ensure_dossier_display_mode(target_name, target_guid, template_basename,
|
||||
# und ALLE Modes nach Restart verschwinden lassen kann. User soll den
|
||||
# Mode in Rhino bauen + per "Save As" -> templates/<basename> exportieren.
|
||||
if not template_exists and target_name != "Dossier Plan":
|
||||
print("[OBERLEISTE] {}: kein Template → skip (in Rhino bauen, "
|
||||
print("[OBERLEISTE] {}: no template → skip (in Rhino bauen, "
|
||||
"Display-Mode -> Save As -> {})".format(
|
||||
target_name, template_ini_path))
|
||||
return False
|
||||
@@ -380,7 +380,7 @@ def _ensure_dossier_display_mode(target_name, target_guid, template_basename,
|
||||
# loeschen + reloaden wenn er das Template neu laden will.
|
||||
# Vermeidet delete-loop wenn das Template ini-Werte hat die mein
|
||||
# alter check als "falsch" einstufte.
|
||||
print("[OBERLEISTE] Plan-Mode: existing gefunden, keine Aktion (manuell loeschen fuer Refresh)")
|
||||
print("[OBERLEISTE] Display mode: existing found, no action (delete manually to refresh)")
|
||||
return True
|
||||
# Sonst kein existing → vor dem Import alle Orphan-Modes mit unserer
|
||||
# Guid ODER Namen "Dossier Plan" wegputzen (alte kaputte Versionen
|
||||
@@ -880,7 +880,7 @@ def _apply_window_layout_impl(name):
|
||||
print("[OBERLEISTE] API-Kandidaten gefunden:", len(api_candidates),
|
||||
[(c, m) for c, m, _ in api_candidates])
|
||||
else:
|
||||
print("[OBERLEISTE] Keine Rhino.UI-API-Kandidaten (Mac Rhino "
|
||||
print("[OBERLEISTE] No Rhino.UI API candidates (Mac Rhino "
|
||||
"exposed das nicht statisch). Falle auf Scripted Commands.")
|
||||
# Args zum Probieren: GUID zuerst (falls vorhanden) dann Name.
|
||||
# Beide als 1-arg Tuple. Doppelte Klammern haben in der alten Version
|
||||
@@ -930,7 +930,7 @@ def _apply_window_layout_impl(name):
|
||||
]
|
||||
for cmd in cmd_candidates:
|
||||
if _try_cmd(cmd):
|
||||
print("[OBERLEISTE] Command erfolgreich, Stop.")
|
||||
print("[OBERLEISTE] Command succeeded, stopping.")
|
||||
return True
|
||||
|
||||
print("[OBERLEISTE] apply_window_layout: kein Weg hat funktioniert. "
|
||||
@@ -1121,7 +1121,7 @@ def _list_all_command_names():
|
||||
"Properties","Layer","Snap","Ortho","Planar","Save","SaveAs"):
|
||||
names.add(n)
|
||||
out = sorted(names)
|
||||
print("[OBERLEISTE] {} Rhino-Commands fuer Autocomplete enumeriert".format(len(out)))
|
||||
print("[OBERLEISTE] {} Rhino commands enumerated for autocomplete".format(len(out)))
|
||||
return out
|
||||
|
||||
|
||||
@@ -2280,7 +2280,7 @@ def _install_listeners(bridge):
|
||||
try: Rhino.RhinoDoc.EndSaveDocument += on_end_save
|
||||
except Exception as ex: print("[OBERLEISTE] EndSaveDocument-Hook:", ex)
|
||||
sc.sticky[flag] = True
|
||||
print("[OBERLEISTE] Listener aktiv")
|
||||
print("[OBERLEISTE] Listener active")
|
||||
|
||||
|
||||
def _bridge_factory():
|
||||
|
||||
Reference in New Issue
Block a user