Fix translation issue with character length * errors (PR fortran/79860)
authorDavid Malcolm <dmalcolm@redhat.com>
Wed, 15 Mar 2017 18:05:06 +0000 (18:05 +0000)
committerDavid Malcolm <dmalcolm@gcc.gnu.org>
Wed, 15 Mar 2017 18:05:06 +0000 (18:05 +0000)
gcc/fortran/ChangeLog:
PR fortran/79860
* resolve.c (resolve_contained_fntype): Make error messages more
amenable to translation.

From-SVN: r246170

gcc/fortran/ChangeLog
gcc/fortran/resolve.c

index 5c99ca70f48a7df78c91db0e17ad3759c811b7cc..8629cab6ccb658668c8ab3adccd3a411242d826e 100644 (file)
@@ -1,3 +1,9 @@
+2017-03-15  David Malcolm  <dmalcolm@redhat.com>
+
+       PR fortran/79860
+       * resolve.c (resolve_contained_fntype): Make error messages more
+       amenable to translation.
+
 2017-03-06  Richard Biener  <rguenther@suse.de>
 
        PR fortran/79894
index 1fbc9f6ef93127532b7471158ab5be855c44a0d8..accb5a258a977d4e18a335978fdfaaf3e04b0d82 100644 (file)
@@ -615,10 +615,11 @@ resolve_contained_fntype (gfc_symbol *sym, gfc_namespace *ns)
          gcc_assert (ns->parent && ns->parent->proc_name);
          module_proc = (ns->parent->proc_name->attr.flavor == FL_MODULE);
 
-         gfc_error ("Character-valued %s %qs at %L must not be"
-                    " assumed length",
-                    module_proc ? _("module procedure")
-                                : _("internal function"),
+         gfc_error (module_proc
+                    ? G_("Character-valued module procedure %qs at %L"
+                         " must not be assumed length")
+                    : G_("Character-valued internal function %qs at %L"
+                         " must not be assumed length"),
                     sym->name, &sym->declared_at);
        }
     }