[gtranslator] Missing write rmbt field to file
- From: Pablo Sanxiao Roca <psanxiao src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gtranslator] Missing write rmbt field to file
- Date: Thu, 13 Aug 2009 18:36:26 +0000 (UTC)
commit 79cba0cc2b0542ee66504281f62499f622ea4356
Author: Francisco Puga <fran puga gmail com>
Date: Thu Aug 13 13:29:53 2009 +0200
Missing write rmbt field to file
src/po.c | 236 +++++++++++++++++++++++++++++++-------------------------------
1 files changed, 119 insertions(+), 117 deletions(-)
---
diff --git a/src/po.c b/src/po.c
index e894f7d..7031dfc 100644
--- a/src/po.c
+++ b/src/po.c
@@ -5,17 +5,17 @@
* Gediminas Paulauskas <menesis kabalak net>
* 2008 Pablo Sanxiao <psanxiao gmail com>
* Igalia
- *
+ *
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
- *
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANPOILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
- *
+ *
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
@@ -62,12 +62,12 @@ G_DEFINE_TYPE(GtranslatorPo, gtranslator_po, G_TYPE_OBJECT)
struct _GtranslatorPoPrivate
{
GFile *location;
-
+
/*
* Gettext's file handle
*/
po_file_t gettext_po_file;
-
+
/*
* Message iter
*/
@@ -77,27 +77,27 @@ struct _GtranslatorPoPrivate
* The message domains in this file
*/
GList *domains;
-
+
/*
* Parsed list of GtrMsgs for the current domains' messagelist
*/
GList *messages;
-
+
/*
- * A pointer to the currently displayed message
+ * A pointer to the currently displayed message
*/
GList *current;
-
+
/*
* The obsolete messages are stored within this gchar.
*/
gchar *obsolete;
-
+
/*
- * Marks if the file was changed;
+ * Marks if the file was changed;
*/
guint file_changed : 1;
-
+
/*
* Is the file write-permitted? (read-only)
*/
@@ -107,7 +107,7 @@ struct _GtranslatorPoPrivate
* Translated entries count
*/
guint translated;
-
+
/*
* Fuzzy entries count
*/
@@ -122,7 +122,7 @@ struct _GtranslatorPoPrivate
* Header object
*/
GtranslatorHeader *header;
-
+
GtranslatorPoState state;
};
@@ -158,7 +158,7 @@ gtranslator_po_get_property (GObject *object,
* A helper function simply increments the "translated" variable of the
* po-file.
*/
-static void
+static void
determine_translation_status(GtranslatorMsg *msg,
GtranslatorPo *po)
{
@@ -171,7 +171,7 @@ determine_translation_status(GtranslatorMsg *msg,
/*
* Update the count of the completed translated entries.
*/
-static void
+static void
gtranslator_po_update_translated_count(GtranslatorPo *po)
{
po->priv->translated = 0;
@@ -185,7 +185,7 @@ static void
gtranslator_po_init (GtranslatorPo *po)
{
po->priv = GTR_PO_GET_PRIVATE (po);
-
+
po->priv->location = NULL;
po->priv->gettext_po_file = NULL;
}
@@ -223,8 +223,8 @@ gtranslator_po_class_init (GtranslatorPoClass *klass)
g_type_class_add_private (klass, sizeof (GtranslatorPoPrivate));
object_class->finalize = gtranslator_po_finalize;
- object_class->get_property = gtranslator_po_get_property;
-
+ object_class->get_property = gtranslator_po_get_property;
+
g_object_class_install_property (object_class,
PROP_STATE,
g_param_spec_enum ("state",
@@ -238,7 +238,7 @@ gtranslator_po_class_init (GtranslatorPoClass *klass)
/*
* Functions for errors handling.
*/
-GQuark
+GQuark
gtranslator_po_error_quark (void)
{
static GQuark quark = 0;
@@ -272,8 +272,8 @@ static gboolean
po_file_is_empty (po_file_t file)
{
const gchar * const * domains = po_file_domains (file);
-
- for (; *domains != NULL; domains++)
+
+ for (; *domains != NULL; domains++)
{
po_message_iterator_t iter = po_message_iterator (file, *domains);
if (po_next_message (iter) != NULL)
@@ -299,9 +299,9 @@ GtranslatorPo *
gtranslator_po_new(void)
{
GtranslatorPo *po;
-
+
po = g_object_new(GTR_TYPE_PO, NULL);
-
+
return po;
}
@@ -330,16 +330,16 @@ gtranslator_po_parse (GtranslatorPo *po,
gchar *base;
gint i = 0;
gint pos = 1;
-
+
g_return_if_fail (GTR_IS_PO (po));
g_return_if_fail (location != NULL);
-
+
/*
* Initialice the handler error.
*/
handler.xerror = &on_gettext_po_xerror;
handler.xerror2 = &on_gettext_po_xerror2;
-
+
if(message_error != NULL)
{
g_free(message_error);
@@ -351,10 +351,10 @@ gtranslator_po_parse (GtranslatorPo *po,
*/
po->priv->location = g_file_dup (location);
filename = g_file_get_path (location);
-
+
if (po->priv->gettext_po_file)
po_file_free (po->priv->gettext_po_file);
-
+
priv->gettext_po_file = po_file_read (filename,
&handler);
if (priv->gettext_po_file == NULL)
@@ -369,7 +369,7 @@ gtranslator_po_parse (GtranslatorPo *po,
return;
}
g_free (filename);
-
+
/*
* No need to return; this can be corrected by the user
*/
@@ -379,7 +379,7 @@ gtranslator_po_parse (GtranslatorPo *po,
GTR_PO_ERROR_RECOVERY,
"%s", message_error);
}
-
+
if (po_file_is_empty (priv->gettext_po_file))
{
if (*error != NULL)
@@ -392,7 +392,7 @@ gtranslator_po_parse (GtranslatorPo *po,
g_object_unref(po);
return;
}
-
+
/*
* Determine the message domains to track
*/
@@ -421,11 +421,11 @@ gtranslator_po_parse (GtranslatorPo *po,
message = po_next_message(iter);
msgstr = po_message_msgstr(message);
if (!strncmp(msgstr, "Project-Id-Version: ", 20)) {
-
+
/* Parse into our header structure */
- priv->header = gtranslator_header_new();
-
+ priv->header = gtranslator_header_new();
+
gchar *comment, *prj_id_version, *rmbt, *pot_date, *po_date,
*translator, *tr_email, *language, *lg_email, *mime_version,
*charset, *encoding, *plural_forms;
@@ -434,7 +434,7 @@ gtranslator_po_parse (GtranslatorPo *po,
comment = g_strdup(po_message_comments(message));
gtranslator_header_set_comment (priv->header, (const gchar *)comment);
-
+
prj_id_version = po_header_field(msgstr, "Project-Id-Version");
rmbt = po_header_field(msgstr, "Report-Msgid-Bugs-To");
pot_date = po_header_field(msgstr, "POT-Creation-Date");
@@ -454,7 +454,7 @@ gtranslator_po_parse (GtranslatorPo *po,
gchar *language_temp = po_header_field(msgstr, "Language-Team");
space2 = g_strrstr(language_temp, " <");
-
+
if (!space2)
{
language = g_strdup(language_temp);
@@ -472,17 +472,17 @@ gtranslator_po_parse (GtranslatorPo *po,
if (!space3)
{
charset = g_strdup("");
- }else {
+ }else {
charset = g_strdup(space3 +1);
}
-
+
encoding = po_header_field(msgstr, "Content-Transfer-Encoding");
-
+
/*
* Plural forms:
*/
plural_forms = po_header_field (msgstr, "Plural-Forms");
-
+
gtranslator_header_set_comment(priv->header, comment);
gtranslator_header_set_prj_id_version(priv->header, prj_id_version);
gtranslator_header_set_rmbt(priv->header, rmbt);
@@ -490,15 +490,15 @@ gtranslator_po_parse (GtranslatorPo *po,
gtranslator_header_set_po_date(priv->header, po_date);
gtranslator_header_set_translator(priv->header, translator);
gtranslator_header_set_tr_email(priv->header, tr_email);
- gtranslator_header_set_prev_translator(priv->header, translator_temp);
+ gtranslator_header_set_prev_translator(priv->header, translator_temp);
gtranslator_header_set_language(priv->header, language);
gtranslator_header_set_lg_email(priv->header, lg_email);
gtranslator_header_set_mime_version(priv->header, mime_version);
gtranslator_header_set_charset(priv->header, charset);
gtranslator_header_set_encoding(priv->header, encoding);
- gtranslator_header_set_plural_forms (priv->header,
+ gtranslator_header_set_plural_forms (priv->header,
plural_forms);
-
+
g_free (translator_temp);
g_free (language_temp);
g_free (charset_temp);
@@ -520,7 +520,7 @@ gtranslator_po_parse (GtranslatorPo *po,
/* Reset our pointer */
iter = po_message_iterator(priv->gettext_po_file, NULL);
}
-
+
/*
* Post-process these into a linked list of GtrMsgs.
*/
@@ -537,12 +537,12 @@ gtranslator_po_parse (GtranslatorPo *po,
/* Set position in PO file */
gtranslator_msg_set_po_position (msg, pos++);
-
+
/* Build up messages */
priv->messages = g_list_prepend (priv->messages, msg);
}
}
-
+
if (priv->messages == NULL) {
if (*error != NULL)
g_clear_error (error);
@@ -553,16 +553,16 @@ gtranslator_po_parse (GtranslatorPo *po,
g_object_unref(po);
return;
}
-
+
priv->messages = g_list_reverse (priv->messages);
/*
* Set the current message to the first message.
*/
priv->current = g_list_first(priv->messages);
-
+
gtranslator_po_update_translated_count(po);
-
+
/* Initialize Tab state*/
po->priv->state = GTR_PO_STATE_SAVED;
}
@@ -570,7 +570,7 @@ gtranslator_po_parse (GtranslatorPo *po,
/**
* gtranslator_po_save_header_in_msg:
* @po: a #GtranslatorPo
- *
+ *
* It saves the header's values into the msgstr
**/
void
@@ -578,7 +578,7 @@ gtranslator_po_save_header_in_msg (GtranslatorPo *po, GtranslatorHeader *header)
{
po_message_iterator_t iter;
po_message_t message;
-
+
const char *msgstr,
*header_comment;
const char *prev_translator;
@@ -607,7 +607,7 @@ gtranslator_po_save_header_in_msg (GtranslatorPo *po, GtranslatorHeader *header)
gchar *line_without_dot;
gboolean current_translator_in_comments = FALSE;
-
+
use_profile_values = gtranslator_prefs_manager_get_use_profile_values ();
/*
@@ -637,7 +637,7 @@ gtranslator_po_save_header_in_msg (GtranslatorPo *po, GtranslatorHeader *header)
GtranslatorProfile *active_profile;
active_profile = gtranslator_application_get_active_profile (GTR_APP);
-
+
gtranslator_header_set_translator (header, gtranslator_profile_get_author_name (active_profile));
gtranslator_header_set_tr_email (header, gtranslator_profile_get_author_email (active_profile));
gtranslator_header_set_language (header, gtranslator_profile_get_language_name (active_profile));
@@ -648,7 +648,7 @@ gtranslator_po_save_header_in_msg (GtranslatorPo *po, GtranslatorHeader *header)
}
/*
- * Update the po date
+ * Update the po date
*/
current_date = gtranslator_utils_get_current_date ();
current_time = gtranslator_utils_get_current_time ();
@@ -665,7 +665,7 @@ gtranslator_po_save_header_in_msg (GtranslatorPo *po, GtranslatorHeader *header)
*/
comments = gtranslator_header_get_comment (header);
comments_lines = g_strsplit (comments, "\n", -1);
-
+
/*
* Searching if the current translator is in comments.
*/
@@ -679,27 +679,27 @@ gtranslator_po_save_header_in_msg (GtranslatorPo *po, GtranslatorHeader *header)
}
aux = g_strconcat(gtranslator_header_get_translator(header), " ", "<",
gtranslator_header_get_tr_email(header), ">", NULL);
-
+
comp_year = g_strconcat (" ", year, ".", NULL);
/*
* Current translator is already in comments but its last year < current year.
*/
if (current_translator_in_comments) {
- if ((g_utf8_collate (prev_translator, aux) == 0) &&
+ if ((g_utf8_collate (prev_translator, aux) == 0) &&
(g_utf8_collate (comments_translator_values[g_strv_length (comments_translator_values)-1], comp_year) != 0)) {
if (g_str_has_suffix (comments_lines[j], ".")) {
- line_without_dot = g_strndup (comments_lines[j], g_utf8_strlen(comments_lines[j], -1) -1);
+ line_without_dot = g_strndup (comments_lines[j], g_utf8_strlen(comments_lines[j], -1) -1);
line = g_strconcat (line_without_dot, ", ", year, ".", NULL);
g_free (line_without_dot);
}else {
line = g_strconcat (comments_lines[j], ", ", year, ".", NULL);
}
-
+
for (l=j; l<(g_strv_length (comments_lines)); l++) {
comments_lines[l] = comments_lines[l+1];
}
-
+
comments_lines[g_strv_length (comments_lines)-1] = line;
while (comments_lines[k] != NULL) {
new_comments = g_strconcat (new_comments, comments_lines[k], "\n", NULL);
@@ -708,61 +708,63 @@ gtranslator_po_save_header_in_msg (GtranslatorPo *po, GtranslatorHeader *header)
gtranslator_header_set_comment (header, (const gchar *)new_comments);
g_free (line);
g_free (new_comments);
- }
+ }
}
/*
* Current translator is not in the comments.
*/
if ((g_utf8_collate (prev_translator, aux) != 0) || (prev_translator == NULL)) {
-
+
header_comment = g_strchomp(gtranslator_header_get_comment (header));
aux2 = g_strconcat(header_comment, "\n",gtranslator_header_get_translator(header), " ", "<",
gtranslator_header_get_tr_email(header), ">", ",", " ", year, ".", NULL);
-
+
gtranslator_header_set_comment (header, (const gchar *)aux2);
gtranslator_header_set_prev_translator (header, aux);
g_free (aux2);
}
g_free (aux);
-
+
/*
* Write the header's fields
- */
+ */
gtranslator_po_set_header (po, header);
-
+
comments = gtranslator_header_get_comment (header);
po_message_set_comments (message, comments);
msgstr = po_header_set_field (msgstr, "Project-Id-Version",
gtranslator_header_get_prj_id_version(header));
+ msgstr = po_header_set_field (msgstr, "Report-Msgid-Bugs-To",
+ gtranslator_header_get_rmbt(header));
msgstr = po_header_set_field (msgstr, "PO-Revision-Date",
gtranslator_header_get_po_date(header));
-
+
aux = g_strconcat (gtranslator_header_get_translator(header), " ", "<",
gtranslator_header_get_tr_email(header), ">", NULL);
msgstr = po_header_set_field (msgstr, "Last-Translator", aux);
g_free (aux);
-
- aux = g_strconcat (gtranslator_header_get_language(header), " ", "<",
+
+ aux = g_strconcat (gtranslator_header_get_language(header), " ", "<",
gtranslator_header_get_lg_email(header), ">", NULL);
msgstr = po_header_set_field (msgstr, "Language-Team", aux);
g_free (aux);
-
+
aux = g_strconcat("text/plain;", " charset=",
gtranslator_header_get_charset(header),NULL);
msgstr = po_header_set_field (msgstr, "Content-Type", aux);
g_free (aux);
-
+
msgstr = po_header_set_field (msgstr, "Content-Transfer-Encoding",
gtranslator_header_get_encoding(header));
- po_message_set_msgstr (message, msgstr);
+ po_message_set_msgstr (message, msgstr);
}
/**
* gtranslator_po_save_file:
* @po: a #GtranslatorPo
* @error: a GError to manage the exceptions
- *
+ *
* It saves the po file and if there are any problem it stores the error
* in @error.
**/
@@ -780,9 +782,9 @@ gtranslator_po_save_file(GtranslatorPo *po,
*/
handler.xerror = &on_gettext_po_xerror;
handler.xerror2 = &on_gettext_po_xerror2;
-
+
filename = g_file_get_path (po->priv->location);
-
+
if (g_str_has_suffix (filename, ".pot"))
{
// Remove suffix
@@ -792,12 +794,12 @@ gtranslator_po_save_file(GtranslatorPo *po,
GTR_PO_ERROR_FILENAME,
_("You are saving a file with a .pot extension.\n"
"Pot files are generated by the compilation process.\n"
- "Your file should likely be named '%s.po'."),
+ "Your file should likely be named '%s.po'."),
filename);
g_free (filename);
return;
}
-
+
/*
* Check if the file is right
*/
@@ -811,14 +813,14 @@ gtranslator_po_save_file(GtranslatorPo *po,
msg_error);
g_free (msg_error);
}*/
-
-
+
+
/*
* Save header fields into msg
*/
header = gtranslator_po_get_header (po);
- gtranslator_po_save_header_in_msg (po, header);
-
+ gtranslator_po_save_header_in_msg (po, header);
+
if (!po_file_write (gtranslator_po_get_po_file (po),
filename, &handler))
{
@@ -832,10 +834,10 @@ gtranslator_po_save_file(GtranslatorPo *po,
return;
}
g_free (filename);
-
+
/* If we are here everything is ok and we can set the state as saved */
gtranslator_po_set_state (po, GTR_PO_STATE_SAVED);
-
+
/*
* If the warn if fuzzy option is enabled we have to show an error
*/
@@ -844,9 +846,9 @@ gtranslator_po_save_file(GtranslatorPo *po,
g_set_error (error,
GTR_PO_ERROR,
GTR_PO_ERROR_OTHER,
- ngettext ("File %s\ncontains %d fuzzy message",
+ ngettext ("File %s\ncontains %d fuzzy message",
"File %s\ncontains %d fuzzy messages",
- po->priv->fuzzy),
+ po->priv->fuzzy),
po->priv->fuzzy);
}*/
}
@@ -854,9 +856,9 @@ gtranslator_po_save_file(GtranslatorPo *po,
/**
* gtranslator_po_get_filename:
* @po: a #GtranslatorPo
- *
+ *
* Gets the GFile of the po file.
- *
+ *
* Returns: the GFile associated with the @po. The returned location must be freed
* with g_object_unref.
**/
@@ -864,7 +866,7 @@ GFile *
gtranslator_po_get_location (GtranslatorPo *po)
{
g_return_val_if_fail (GTR_IS_PO (po), NULL);
-
+
return g_file_dup (po->priv->location);
}
@@ -880,10 +882,10 @@ gtranslator_po_set_location (GtranslatorPo *po,
GFile *location)
{
g_return_if_fail(GTR_IS_PO(po));
-
+
if (po->priv->location)
g_object_unref (po->priv->location);
-
+
po->priv->location = g_file_dup (location);
}
@@ -911,7 +913,7 @@ gtranslator_po_set_state(GtranslatorPo *po,
GtranslatorPoState state)
{
po->priv->state = state;
-
+
g_object_notify (G_OBJECT (po), "state");
}
@@ -967,7 +969,7 @@ gtranslator_po_get_current_message(GtranslatorPo *po)
* gtranslator_po_update_current_message:
* @po: a #GtranslatorPo
* @msg: the message where should point the current message.
- *
+ *
* Sets the new current message to the message that is passed in
* the argument.
**/
@@ -995,7 +997,7 @@ gtranslator_po_get_domains(GtranslatorPo *po)
/**
* gtranslator_po_get_po_file:
* @po: a #GtranslatorPo
- *
+ *
* Return value: the gettext file
**/
po_file_t
@@ -1103,7 +1105,7 @@ GList *
gtranslator_po_get_next_fuzzy_or_untrans (GtranslatorPo *po)
{
GList *msg;
-
+
msg = po->priv->current;
while (msg = g_list_next (msg))
{
@@ -1111,7 +1113,7 @@ gtranslator_po_get_next_fuzzy_or_untrans (GtranslatorPo *po)
!gtranslator_msg_is_translated (msg->data))
return msg;
}
-
+
return NULL;
}
@@ -1126,7 +1128,7 @@ GList *
gtranslator_po_get_prev_fuzzy_or_untrans (GtranslatorPo *po)
{
GList *msg;
-
+
msg = po->priv->current;
while (msg = g_list_previous (msg))
{
@@ -1134,7 +1136,7 @@ gtranslator_po_get_prev_fuzzy_or_untrans (GtranslatorPo *po)
!gtranslator_msg_is_translated (msg->data))
return msg;
}
-
+
return NULL;
}
@@ -1150,7 +1152,7 @@ gtranslator_po_get_msg_from_number (GtranslatorPo *po,
gint number)
{
g_return_val_if_fail (GTR_IS_PO (po), NULL);
-
+
return g_list_nth (po->priv->messages, number);
}
@@ -1164,7 +1166,7 @@ GtranslatorHeader *
gtranslator_po_get_header(GtranslatorPo *po)
{
g_return_val_if_fail (GTR_IS_PO (po), NULL);
-
+
return po->priv->header;
}
@@ -1178,19 +1180,19 @@ gtranslator_po_set_header(GtranslatorPo *po,
/**
* gtranslator_po_get_translated_count:
* @po: a #GtranslatorPo
- *
+ *
* Return value: the count of the translated messages.
**/
gint
gtranslator_po_get_translated_count (GtranslatorPo *po)
{
g_return_val_if_fail (GTR_IS_PO (po), -1);
-
+
return po->priv->translated;
}
/*
- * This func decrease or increase the count of translated
+ * This func decrease or increase the count of translated
* messages in 1.
* This funcs must not be exported.
*/
@@ -1199,7 +1201,7 @@ _gtranslator_po_increase_decrease_translated (GtranslatorPo *po,
gboolean increase)
{
g_return_if_fail (GTR_IS_PO (po));
-
+
if (increase)
po->priv->translated++;
else po->priv->translated--;
@@ -1208,19 +1210,19 @@ _gtranslator_po_increase_decrease_translated (GtranslatorPo *po,
/**
* gtranslator_po_get_fuzzy_count:
* @po: a #GtranslatorPo
- *
+ *
* Return value: the count of the fuzzy messages.
**/
gint
gtranslator_po_get_fuzzy_count (GtranslatorPo *po)
{
g_return_val_if_fail (GTR_IS_PO (po), -1);
-
+
return po->priv->fuzzy;
}
/*
- * This func decrease or increase the count of fuzzy
+ * This func decrease or increase the count of fuzzy
* messages in 1.
* This funcs must not be exported.
*/
@@ -1229,7 +1231,7 @@ _gtranslator_po_increase_decrease_fuzzy (GtranslatorPo *po,
gboolean increase)
{
g_return_if_fail (GTR_IS_PO (po));
-
+
if (increase)
po->priv->fuzzy++;
else po->priv->fuzzy--;
@@ -1238,45 +1240,45 @@ _gtranslator_po_increase_decrease_fuzzy (GtranslatorPo *po,
/**
* gtranslator_po_get_untranslated_count:
* @po: a #GtranslatorPo
- *
+ *
* Return value: the count of the untranslated messages.
**/
gint
gtranslator_po_get_untranslated_count (GtranslatorPo *po)
{
g_return_val_if_fail (GTR_IS_PO (po), -1);
-
+
/*DEBUG_PRINT ("length: %d | translated: %d | fuzzy: %d | untranslated: %d", g_list_length (po->priv->messages),
po->priv->translated, po->priv->fuzzy, (g_list_length (po->priv->messages) - po->priv->translated - po->priv->fuzzy));*/
-
+
return (g_list_length (po->priv->messages) - po->priv->translated - po->priv->fuzzy);
}
/**
* gtranslator_po_get_messages_count:
* @po: a #GtranslatorPo
- *
+ *
* Return value: the number of messages messages.
**/
gint
gtranslator_po_get_messages_count (GtranslatorPo *po)
{
g_return_val_if_fail (GTR_IS_PO (po), -1);
-
+
return g_list_length (po->priv->messages);
}
/**
* gtranslator_po_get_message_position:
* @po: a #GtranslatorPo
- *
+ *
* Return value: the number of the current message.
**/
gint
gtranslator_po_get_message_position (GtranslatorPo *po)
{
g_return_val_if_fail (GTR_IS_PO (po), -1);
-
+
return gtranslator_msg_get_po_position (GTR_MSG (po->priv->current->data));
}
@@ -1292,13 +1294,13 @@ gchar *
gtranslator_po_check_po_file (GtranslatorPo *po)
{
struct po_xerror_handler handler;
-
+
g_return_val_if_fail (po != NULL, NULL);
handler.xerror = &on_gettext_po_xerror;
handler.xerror2 = &on_gettext_po_xerror2;
message_error = NULL;
-
+
po_file_check_all (po->priv->gettext_po_file, &handler);
return message_error;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]