Good Text List transformation Software
The Unix shell is probably the best text list transformation software.

$ sed "s/^/'/;s/$/'/" &lt;&lt;&lt; cube | awk '{printf "%-12s=&gt; t(%s),\n",$1,$1}'
'cube'   =&gt; t('cube'),
$ sed -E "s/(.*)/'\\1' =&gt; t('\\1'),/" &lt;&lt;&lt; cube | column -t
'cube'  =&gt;  t('cube'),


Or write throwaway scripts in some scripting language:

puts "cube
page".gsub(/^.*/) { "'#{$&amp;}'".ljust(11) + " =&gt; '#{$&amp;}'," }


Even if there were GUI applications for tasks like this, it would probably be more useful to learn (or get faster at using) scripting languages or text editors.