    # File lib/gettext/utils.rb, line 110
      def create_mofiles(verbose = false,
                         podir = "./po", targetdir = "./data/locale",
                         targetpath_rule = "%s/LC_MESSAGES")

        modir = File.join(targetdir, targetpath_rule)
        Dir.glob(File.join(podir, "*/*.po")) do |file|
          lang, basename = /\/([^\/]+?)\/(.*)\.po/.match(file[podir.size..-1]).to_a[1,2]
          outdir = modir % lang
          FileUtils.mkdir_p(outdir) unless File.directory?(outdir)
          $stderr.print %Q[#{file} -> #{File.join(outdir, "#{basename}.mo")} ... ] if verbose
          begin
            rmsgfmt(file, File.join(outdir, "#{basename}.mo"))
          rescue Exception => e
            $stderr.puts "Error." if verbose
            raise e
          end
          $stderr.puts "Done." if verbose
        end
      end