string_list_free (file_list);
+ /* Set the Language field in the header. */
+ if (catalogname != NULL)
+ msgdomain_list_set_header_field (result, "Language:", catalogname);
+
/* Sorting the list of messages. */
if (sort_by_filepos)
msgdomain_list_sort_by_filepos (result);
else if (sort_by_msgid)
msgdomain_list_sort_by_msgid (result);
- /* Set the Language field in the header. */
- if (catalogname != NULL)
- msgdomain_list_set_header_field (result, "Language:", catalogname);
-
/* Write the PO file. */
msgdomain_list_print (result, output_file, output_syntax,
textmode_xerror_handler, force_po, false);
/* Add English translations. */
result = msgdomain_list_english (result);
+ /* Set the Language field in the header. */
+ if (catalogname != NULL)
+ msgdomain_list_set_header_field (result, "Language:", catalogname);
+
/* Sort the results. */
if (sort_by_filepos)
msgdomain_list_sort_by_filepos (result);
else if (sort_by_msgid)
msgdomain_list_sort_by_msgid (result);
- /* Set the Language field in the header. */
- if (catalogname != NULL)
- msgdomain_list_set_header_field (result, "Language:", catalogname);
-
/* Write the merged message list out. */
msgdomain_list_print (result, output_file, output_syntax,
textmode_xerror_handler, force_po, false);
iconv_close (xgettext_global_source_iconv);
#endif
- /* Sorting the list of messages. */
- if (sort_by_filepos)
- msgdomain_list_sort_by_filepos (mdlp);
- else if (sort_by_msgid)
- msgdomain_list_sort_by_msgid (mdlp);
-
/* Check msgid and msgid_plural of messages. */
{
int nerrors = 0;
nerrors);
}
+ /* Sorting the list of messages. */
+ if (sort_by_filepos)
+ msgdomain_list_sort_by_filepos (mdlp);
+ else if (sort_by_msgid)
+ msgdomain_list_sort_by_msgid (mdlp);
+
/* Write the PO file. */
msgdomain_list_print (mdlp, file_name, output_syntax, textmode_xerror_handler,
force_po, do_debug);