[valadoc] Fix typo



commit 86815c83daeb90fbbc5a558889c3ca88b769a343
Author: Florian Brosch <flo brosch gmail com>
Date:   Thu Jan 14 11:09:31 2016 +0100

    Fix typo

 src/libvaladoc/content/embedded.vala |    2 +-
 src/libvaladoc/settings.vala         |    4 ++--
 src/valadoc/valadoc.vala             |   10 +++++-----
 3 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/src/libvaladoc/content/embedded.vala b/src/libvaladoc/content/embedded.vala
index 7178aa2..b1d7d95 100644
--- a/src/libvaladoc/content/embedded.vala
+++ b/src/libvaladoc/content/embedded.vala
@@ -81,7 +81,7 @@ public class Valadoc.Content.Embedded : ContentElement, Inline, StyleAttributes
                if (!FileUtils.test (url, FileTest.EXISTS | FileTest.IS_REGULAR)) {
                        string base_name = Path.get_basename (url);
 
-                       foreach (unowned string dir in settings.alternative_ressource_dirs) {
+                       foreach (unowned string dir in settings.alternative_resource_dirs) {
                                string alternative_path = Path.build_path (Path.DIR_SEPARATOR_S,
                                                                                                              
   dir,
                                                                                                              
   base_name);
diff --git a/src/libvaladoc/settings.vala b/src/libvaladoc/settings.vala
index fc342f9..1b5c420 100644
--- a/src/libvaladoc/settings.vala
+++ b/src/libvaladoc/settings.vala
@@ -142,9 +142,9 @@ public class Valadoc.Settings : Object {
        public string[] metadata_directories;
 
        /**
-        * Alternative paths for ressources
+        * Alternative paths for resources
         */
-       public string[] alternative_ressource_dirs;
+       public string[] alternative_resource_dirs;
 
        /**
         * A list of all gir directories.
diff --git a/src/valadoc/valadoc.vala b/src/valadoc/valadoc.vala
index 25dafc2..9ebe79e 100644
--- a/src/valadoc/valadoc.vala
+++ b/src/valadoc/valadoc.vala
@@ -76,7 +76,7 @@ public class ValaDoc : Object {
        [CCode (array_length = false, array_null_terminated = true)]
        private static string[] packages;
        [CCode (array_length = false, array_null_terminated = true)]
-       private static string[] alternative_ressource_dirs;
+       private static string[] alternative_resource_dirs;
        static string target_glib;
 
        private const GLib.OptionEntry[] options = {
@@ -98,7 +98,7 @@ public class ValaDoc : Object {
 
                { "importdir", 0, 0, OptionArg.FILENAME_ARRAY, ref import_directories, "Look for external 
documentation in DIRECTORY", "DIRECTORY..." },
                { "import", 0, 0, OptionArg.STRING_ARRAY, ref import_packages, "Include binding for PACKAGE", 
"PACKAGE..." },
-               { "alternative-ressource-dir", 0, 0, OptionArg.STRING_ARRAY, ref alternative_ressource_dirs, 
"Alternative ressource directories", "DIRECTORY..." },
+               { "alternative-resource-dir", 0, 0, OptionArg.STRING_ARRAY, ref alternative_resource_dirs, 
"Alternative resource directories", "DIRECTORY..." },
 
                { "wiki", 0, 0, OptionArg.FILENAME, ref wikidirectory, "Wiki directory", "DIRECTORY" },
 
@@ -242,7 +242,7 @@ public class ValaDoc : Object {
                settings.profile = profile;
                settings.defines = defines;
 
-               settings.alternative_ressource_dirs = alternative_ressource_dirs;
+               settings.alternative_resource_dirs = alternative_resource_dirs;
 
 
                // load plugins:
@@ -362,9 +362,9 @@ public class ValaDoc : Object {
                        }
                }
 
-               foreach (unowned string dir in alternative_ressource_dirs) {
+               foreach (unowned string dir in alternative_resource_dirs) {
                        if (!FileUtils.test(dir, FileTest.IS_DIR)) {
-                               reporter.simple_error (null, "alternative ressource directory '%s' does not 
exist.".printf (dir));
+                               reporter.simple_error (null, "alternative resource directory '%s' does not 
exist.".printf (dir));
                                return quit (reporter);
                        }
                }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]