Skip to content

Commit

Permalink
Refs #36575 - Avoid translations during startup in name gen
Browse files Browse the repository at this point in the history
Fixes: 0351034 ("Fixes #13768 - random and MAC-based name generator")
  • Loading branch information
ekohl committed Oct 9, 2023
1 parent c815b3d commit 2711e80
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/services/name_generator.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
class NameGenerator
GENERATOR_TYPES = {
'Off' => _('Off'),
'Random-based' => _('Random-based'),
'MAC-based' => _('MAC-based'),
'Off' => N_('Off'),
'Random-based' => N_('Random-based'),
'MAC-based' => N_('MAC-based'),
}.freeze

def self.random_based?
Expand Down

0 comments on commit 2711e80

Please sign in to comment.