Commit f3d1fc20 authored by Pedro Castro's avatar Pedro Castro

Fix #94: Typo (occured) in translatable strings

parent b4ae4f9f
/*
Copyright (C) 2007 Goran Sterjov, Pedro Castro
Copyright (C) 2011-2018 Pedro Castro
Copyright (C) 2011-2019 Pedro Castro
This file is part of the GStreamer Playbin Wrapper.
Derived from Fuse.
......@@ -406,7 +406,7 @@ namespace GStreamer
}
// an error in the gstreamer pipeline has occured
// an error in the gstreamer pipeline has occurred
void onError (string error, string debug)
{
throwError (error, debug);
......
......@@ -266,8 +266,8 @@ public class Base {
/* Private members */
/// <summary>Initializes the base program structure.</summary>
/// <remarks>Nothing is done if initialization has already occured. The core value is checked for this,
/// if it's null then initialization hasn't occured yet.</remarks>
/// <remarks>Nothing is done if initialization has already occurred. The core value is checked for this,
/// if it's null then initialization hasn't occurred yet.</remarks>
private static void Init (ExecutionContext newExecutionContext) {
if ((executionContext != null) && (executionContext.Initialized))
throw new Exception("The Base environment was already initialized.");
......
......@@ -37,7 +37,7 @@ public abstract class ErrorDialog : MessageDialog {
#region Protected methods
protected string GetGeneralExceptionErrorMessage (Exception exception) {
return Catalog.GetString("An unknown error has occured. Please report a bug and include this error name:") + " \"" + exception.GetType() + "\".";
return Catalog.GetString("An unknown error has occurred. Please report a bug and include this error name:") + " \"" + exception.GetType() + "\".";
}
#endregion
......
/*
* This file is part of SubLib.
* Copyright (C) 2006-2008 Pedro Castro
* Copyright (C) 2006-2019 Pedro Castro
*
* SubLib is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
......@@ -24,7 +24,7 @@ namespace SubLib.Core {
internal class MatchEvaluationCounter {
int count = 0; //The number of matches or times the evaluator was called
bool evaluationOccured = false; //Whether an evaluation occured
bool evaluationOccurred = false; //Whether an evaluation occurred
string replacement = String.Empty;
internal MatchEvaluationCounter (string replacement) {
......@@ -35,14 +35,14 @@ internal class MatchEvaluationCounter {
get { return count; }
}
internal bool EvaluationOccured {
get { return evaluationOccured; }
set { evaluationOccured = value; }
internal bool EvaluationOccurred {
get { return evaluationOccurred; }
set { evaluationOccurred = value; }
}
internal string Evaluator (Match match) {
count++;
evaluationOccured = true;
evaluationOccurred = true;
return replacement;
}
......
/*
* This file is part of SubLib.
* Copyright (C) 2006-2017 Pedro Castro
* Copyright (C) 2006-2019 Pedro Castro
*
* SubLib is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
......@@ -354,9 +354,9 @@ public class SearchOperator {
}
private string ReplaceText (string text, Regex regex, string replacement, MatchEvaluationCounter counter) {
counter.EvaluationOccured = false;
counter.EvaluationOccurred = false;
string newText = regex.Replace(text, counter.Evaluator);
return (counter.EvaluationOccured ? newText : null);
return (counter.EvaluationOccurred ? newText : null);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment