[gnome-subtitles] Fix #94: Typo (occured) in translatable strings
- From: Pedro Castro <pcastro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-subtitles] Fix #94: Typo (occured) in translatable strings
- Date: Thu, 23 May 2019 20:51:00 +0000 (UTC)
commit f3d1fc209cbf966adf5625ba586df4720607c582
Author: Pedro Castro <pedro gnomesubtitles org>
Date: Thu May 23 21:50:02 2019 +0100
Fix #94: Typo (occured) in translatable strings
src/External/GStreamerPlaybin/Engine.cs | 4 ++--
src/GnomeSubtitles/Core/Base.cs | 4 ++--
src/GnomeSubtitles/Dialog/Message/ErrorDialog.cs | 2 +-
src/SubLib/Core/MatchEvaluationCounter.cs | 12 ++++++------
src/SubLib/Core/Search/SearchOperator.cs | 6 +++---
5 files changed, 14 insertions(+), 14 deletions(-)
---
diff --git a/src/External/GStreamerPlaybin/Engine.cs b/src/External/GStreamerPlaybin/Engine.cs
index d1ef937..a39783f 100644
--- a/src/External/GStreamerPlaybin/Engine.cs
+++ b/src/External/GStreamerPlaybin/Engine.cs
@@ -1,7 +1,7 @@
/*
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);
diff --git a/src/GnomeSubtitles/Core/Base.cs b/src/GnomeSubtitles/Core/Base.cs
index c40cba1..5b5b9c2 100644
--- a/src/GnomeSubtitles/Core/Base.cs
+++ b/src/GnomeSubtitles/Core/Base.cs
@@ -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.");
diff --git a/src/GnomeSubtitles/Dialog/Message/ErrorDialog.cs
b/src/GnomeSubtitles/Dialog/Message/ErrorDialog.cs
index 5c2da91..bd7bb9d 100644
--- a/src/GnomeSubtitles/Dialog/Message/ErrorDialog.cs
+++ b/src/GnomeSubtitles/Dialog/Message/ErrorDialog.cs
@@ -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
diff --git a/src/SubLib/Core/MatchEvaluationCounter.cs b/src/SubLib/Core/MatchEvaluationCounter.cs
index 7487474..a118a62 100644
--- a/src/SubLib/Core/MatchEvaluationCounter.cs
+++ b/src/SubLib/Core/MatchEvaluationCounter.cs
@@ -1,6 +1,6 @@
/*
* 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;
}
diff --git a/src/SubLib/Core/Search/SearchOperator.cs b/src/SubLib/Core/Search/SearchOperator.cs
index 0455a68..72f4d42 100644
--- a/src/SubLib/Core/Search/SearchOperator.cs
+++ b/src/SubLib/Core/Search/SearchOperator.cs
@@ -1,6 +1,6 @@
/*
* 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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]