Commit f7b1d14c authored by Daniel García Moreno's avatar Daniel García Moreno

Header with default values when doesn't exists

parent 6c11c33e
Pipeline #49405 passed with stage
in 14 minutes and 2 seconds
...@@ -460,9 +460,15 @@ _gtr_po_load (GtrPo * po, GFile * location, GError ** error) ...@@ -460,9 +460,15 @@ _gtr_po_load (GtrPo * po, GFile * location, GError ** error)
priv->header = gtr_header_new (iter, message); priv->header = gtr_header_new (iter, message);
else else
{ {
/* FIXME: add a header with default values */
po_message_iterator_free (iter); po_message_iterator_free (iter);
iter = po_message_iterator (priv->gettext_po_file, NULL); iter = po_message_iterator (priv->gettext_po_file, NULL);
message = po_message_create ();
po_message_set_msgid (message, "");
po_message_set_msgstr (message, "");
po_message_insert (iter, message);
priv->header = gtr_header_new (iter, message);
} }
priv->iter = iter; priv->iter = iter;
......
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