vendored/puppet/lib/puppet/gettext/config.rb in bolt-0.16.0 vs vendored/puppet/lib/puppet/gettext/config.rb in bolt-0.16.1

- old
+ new

@@ -189,11 +189,11 @@ def self.disable_gettext @gettext_disabled = true end # @api private - # Attempt to load tranlstions for the given project. + # Attempt to load translations for the given project. # @param [String] project_name the project whose translations we want to load # @param [String] locale_dir the path to the directory containing translations # @param [Symbol] file_format translation file format to use, either :po or :mo # @return true if initialization succeeded, false otherwise def self.load_translations(project_name, locale_dir, file_format, text_domain = FastGettext.text_domain) @@ -216,10 +216,10 @@ # @api private # Add the translations for this project to the domain's repository chain # chain for the currently selected text domain, if needed. # @param [String] project_name the name of the project for which to load translations # @param [String] locale_dir the path to the directory containing translations - # @param [Symbol] file_format the fomat of the translations files, :po or :mo + # @param [Symbol] file_format the format of the translations files, :po or :mo def self.add_repository_to_domain(project_name, locale_dir, file_format, text_domain = FastGettext.text_domain) return if @gettext_disabled || !gettext_loaded? current_chain = FastGettext.translation_repositories[text_domain].chain