gtranslator r3923 - in trunk: . src
- From: psanxiao svn gnome org
- To: svn-commits-list gnome org
- Subject: gtranslator r3923 - in trunk: . src
- Date: Thu, 22 Jan 2009 20:30:02 +0000 (UTC)
Author: psanxiao
Date: Thu Jan 22 20:30:02 2009
New Revision: 3923
URL: http://svn.gnome.org/viewvc/gtranslator?rev=3923&view=rev
Log:
* src/header.c:
(gtranslator_header_get_nplurals):
Added its correspondent parameter to function
gtranslator_profile_get_plurals. (Fixes bugs #568197 and #561485)
Modified:
trunk/ChangeLog
trunk/src/header.c
Modified: trunk/src/header.c
==============================================================================
--- trunk/src/header.c (original)
+++ trunk/src/header.c Thu Jan 22 20:30:02 2009
@@ -22,8 +22,10 @@
* Ignacio Casal Quinteiro <nacho resa gmail com>
*/
+#include "application.h"
#include "header.h"
#include "prefs-manager.h"
+#include "profile.h"
#include <glib.h>
#include <glib-object.h>
@@ -418,7 +420,10 @@
gtranslator_header_get_nplurals (GtranslatorHeader *header)
{
const gchar *plural_form;
-
+ GtranslatorProfile *profile;
+
+ profile = gtranslator_application_get_active_profile (GTR_APP);
+
g_return_val_if_fail (GTR_IS_HEADER (header), -1);
/*
@@ -428,7 +433,7 @@
*/
if (header->priv->plural_forms)
return header->priv->nplurals;
- else if (plural_form = (const gchar *)gtranslator_profile_get_plurals ())
+ else if (plural_form = (const gchar *)gtranslator_profile_get_plurals (profile))
{
gtranslator_header_set_plural_forms (header, plural_form);
/*
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]