[virtaal] Fix bug #675623 - pt uses pt_BR instead of pt_PT for spell checking
dwayne
dwayne at fedoraproject.org
Wed Feb 9 15:11:38 UTC 2011
commit 4e7b0ad73b3f17ff5464d32627a23abeaeeb6057
Author: Dwayne Bailey <dwayne at translate.org.za>
Date: Fri Jan 21 08:21:16 2011 +0200
Fix bug #675623 - pt uses pt_BR instead of pt_PT for spell checking
virtaal-0.6.1-bug675623-pt_spellchecking.patch | 11 +++++++++++
virtaal.spec | 7 ++++++-
2 files changed, 17 insertions(+), 1 deletions(-)
---
diff --git a/virtaal-0.6.1-bug675623-pt_spellchecking.patch b/virtaal-0.6.1-bug675623-pt_spellchecking.patch
new file mode 100644
index 0000000..9468485
--- /dev/null
+++ b/virtaal-0.6.1-bug675623-pt_spellchecking.patch
@@ -0,0 +1,11 @@
+--- src/trunk/virtaal/virtaal/plugins/spellchecker.py 2011/02/09 11:38:13 17259
++++ src/trunk/virtaal/virtaal/plugins/spellchecker.py 2011/02/09 13:07:12 17260
+@@ -242,6 +242,8 @@
+
+ if language == 'en':
+ language = 'en_US'
++ elif language == 'pt':
++ language == 'pt_PT'
+
+ if not language in self._seen_languages and not self.enchant.dict_exists(language):
+ # Sometimes enchants *wants* a country code, other times it does not.
diff --git a/virtaal.spec b/virtaal.spec
index caefc4f..c816aff 100644
--- a/virtaal.spec
+++ b/virtaal.spec
@@ -2,7 +2,7 @@
Name: virtaal
Version: 0.6.1
-Release: 6%{?dist}
+Release: 7%{?dist}
Summary: Localization and translation editor
Group: Development/Tools
@@ -14,6 +14,7 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Patch0: virtaal-0.5.0-setup_drop_MO_generation.patch
Patch1: virtaal-0.3.0-autocorr_shared_location.patch
Patch2: virtaal-0.6.1-bug611751-libtranslate_error_reporting.patch
+Patch3: virtaal-0.6.1-bug675623-pt_spellchecking.patch
BuildArch: noarch
BuildRequires: python
@@ -81,6 +82,7 @@ DTD files, subtitles, and other formats.
%patch0 -p1 -b .setup_drop_MO_generation
%patch1 -p1 -b .autocorr_shared_location
%patch2 -p3 -b .bug611751_libtranslate_error
+%patch3 -p3 -b .bug675623_pt_spelling
%build
%{__python} setup.py build
@@ -167,6 +169,9 @@ rm -rf %{buildroot}
%changelog
+* Mon Feb 07 2011 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.6.1-7
+- Fix bug #675623 - pt uses pt_BR instead of pt_PT for spell checking
+
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.6.1-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
More information about the scm-commits
mailing list