Skip to content

Commit e41329f

Browse files
committed
Fix overcomplex format string
1 parent c06570e commit e41329f

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/load.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1533,8 +1533,9 @@ def get_bodies_summary(bodies: dict[str, PlanetData], focused: bool = False) ->
15331533
if genus in bio_genus and bio_genus[genus]['multiple']:
15341534
genus_count[genus] = genus_count.get(genus, 0) + 1
15351535
if show and genus_count[genus] == 1:
1536-
detail_text += (f'{translate_genus(bio_genus[genus]["name"] if genus in bio_genus else 'Unknown')} - ' +
1537-
tr.tl('Multiple Possible', this.translation_context) + ':\n') # LANG: Indicator for multiple possible bio variants
1536+
genus_name = translate_genus(bio_genus[genus]["name"] if genus in bio_genus else 'Unknown')
1537+
detail_text += (f'{genus_name} - ' +
1538+
tr.tl('Multiple Possible', this.translation_context) + ':\n') # LANG: Indicator for multiple possible bio variants
15381539
if show:
15391540
waypoint = get_nearest(genus, waypoints) if (this.waypoints_enabled.get() and focused
15401541
and not this.current_scan[0] and waypoints) else ''

0 commit comments

Comments
 (0)