On lin 5257 of gcc/fortran/module.c there is this code: gfc_fatal_error ("Wrong module version '%s' (expected '" MOD_VERSION "') for file '%s' opened" " at %C", atom_string, filename);
Format strings for gfc_fatal_error are typically extracted for translation. But since we have string concatenation where one string is a preprocessor symbol here, it obviously fails, and only the initial part is included in the po file: #: fortran/module.c:5257 #, no-c-format, fuzzy msgid "Wrong module version '%s' (expected '" A possible way to avoid this could be to use %s in the format string, and then have MOD_VERSION as an additional argument to the function. Maybe there are better ways. -- Summary: String extraction for translation fails when concatenating with preprocessor symbols Product: gcc Version: 4.4.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: goeran at uddeborg dot se http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40849