]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
Fix typo
authorFlorian Brosch <flo.brosch@gmail.com>
Thu, 14 Jan 2016 10:09:31 +0000 (11:09 +0100)
committerFlorian Brosch <flo.brosch@gmail.com>
Thu, 14 Jan 2016 10:09:31 +0000 (11:09 +0100)
src/libvaladoc/content/embedded.vala
src/libvaladoc/settings.vala
src/valadoc/valadoc.vala

index 7178aa2386e60960463284974ad39bc13b3c306d..b1d7d9525c06979afc66b30b2f3aea38a29c1ac7 100644 (file)
@@ -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);
index fc342f95cd6d00cc6ed6f792163c2ecdcbe30731..1b5c420399f0eb0d1e15d22ee6dd575d56808f93 100644 (file)
@@ -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.
index 25dafc2ffa8d401e147cfd970571818d2efee95d..9ebe79ebafc0eef8567c337b4965d90932b529dc 100644 (file)
@@ -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);
                        }
                }