- return [ sort { $a->{description}->translated cmp $b->{description}->translated } (
- { module => 'CT', description => t8('Customers and vendors') },
- { module => 'Contacts', description => t8('Contact persons') },
- { module => 'IC', description => t8('Parts, services and assemblies') },
- { module => 'Projects', description => t8('Projects') },
- { module => 'RequirementSpecs', description => t8('Requirement Specs') },
- { module => 'ShipTo', description => t8('Shipping Address') },
+ return [
+ sort { $a->{description}->translated cmp $b->{description}->translated } (
+ map +{ module => $_, description => $SL::Presenter::CustomVariableConfig::t8{$_} },
+ @modules