lib/yard/i18n/pot_generator.rb in yard-0.9.9 vs lib/yard/i18n/pot_generator.rb in yard-0.9.10

- old
+ new

@@ -11,11 +11,11 @@ # POT is an acronym for "Portable Object Template". POT is a # template file to create PO file. The extension for POT is # ".pot". PO file is an acronym for "Portable Object". PO file has # many parts of message ID (msgid) that is translation target # message and message string (msgstr) that is translated message - # of message ID. If you want to tranlsate "Hello" in English into + # of message ID. If you want to translate "Hello" in English into # "Bonjour" in French, "Hello" is the msgid ID and "Bonjour" is # msgstr. The extension for PO is ".po". # # == How to extract msgids # @@ -114,10 +114,10 @@ # Locations of the +Message+ are used to generate the reference # line that is started with "#: ". +relative_base_path+ passed # when the generater is created is prepended to each path in location. # # Comments of the +Message+ are used to generate the - # translater-comment line that is started with "# ". + # translator-comment line that is started with "# ". # # @return [String] POT format string def generate pot = String.new(header) sorted_messages = @messages.sort_by do |message|