- but msgmerge doesn't set them.
+2005-10-01 Bruno Haible <bruno@clisp.org>
+
+ Change msgattrib to no longer remove extracted comments and file
+ positions when marking messages obsolete.
+ * msgmerge.c (merge): When marking a message obsolete, remove the
+ extracted comments and file positions.
+ * write-po.c (message_print_obsolete): Also print the extracted
+ comments and file positions.
+
2005-09-25 Bruno Haible <bruno@clisp.org>
Support for Python source encodings (PEP 0263).
message_ty *mp;
mp = message_copy (defmsg);
+ /* Clear the extracted comments. */
+ if (mp->comment_dot != NULL)
+ {
+ string_list_free (mp->comment_dot);
+ mp->comment_dot = NULL;
+ }
+ /* Clear the file position comments. */
+ if (mp->filepos != NULL)
+ {
+ size_t i;
+
+ for (i = 0; i < mp->filepos_count; i++)
+ free ((char *) mp->filepos[i].file_name);
+ mp->filepos_count = 0;
+ free (mp->filepos);
+ mp->filepos = NULL;
+ }
+ /* Mark as obsolete. */
mp->obsolete = true;
message_list_append (msgdomain_list_sublist (result, domain, true),
/* Print translator comment if available. */
message_print_comment (mp, fp);
+ /* Print xgettext extracted comments (normally empty). */
+ message_print_comment_dot (mp, fp);
+
+ /* Print the file position comments (normally empty). */
+ message_print_comment_filepos (mp, fp, uniforum, page_width);
+
/* Print flag information in special comment. */
if (mp->is_fuzzy)
{
+2005-10-01 Bruno Haible <bruno@clisp.org>
+
+ * msgattrib-10: Update for changed behaviour of msgattrib.
+
2005-09-25 Bruno Haible <bruno@clisp.org>
* xgettext-python-3: New file.
#! /bin/sh
# Test --set-obsolete option. Note that the output routines drop untranslated
-# obsolete messages. Note also that obsolete messages don't have file locations
-# attached.
+# obsolete messages.
tmpfiles=""
trap 'rm -fr $tmpfiles' 1 2 3 15
"Content-Type: text/plain; charset=ISO-8859-1\n"
"Content-Transfer-Encoding: 8bit\n"
+#: married-men:4
#, fuzzy
#~ msgid "The world is full of married men"
#~ msgstr "So viele verheiratete Männer"
+#: married-men:5
#~ msgid "with wives who never understand"
#~ msgstr "und ihre Frauen verstehen sie nicht"