+#ifdef ENABLE_BUNDLE
+static gboolean locale_files_write(void)
+{
+gchar catalogs[]=G_STRINGIFY(CATALOGS);
+gchar *catalog,*catalog_next;
+
+ for (catalog=catalogs;*catalog;catalog=catalog_next) {
+gchar *cc,*cc_end;
+
+ for (catalog_next=catalog;*catalog_next && *catalog_next!=' ';catalog_next++);
+ if (*catalog_next)
+ *catalog_next++='\0';
+ cc=g_strdup(catalog);
+ cc_end=cc+strlen(cc)-strlen(".gmo");
+ if (!strcmp(cc_end,".gmo")) { /* errors ignored */
+ *cc_end='\0';
+ bundle_util_file_write( /* errors ignored */
+ udpgate_printf_alloca("%s/%s/LC_MESSAGES/%s.mo",LOCALEDIR,cc,PACKAGE), /* pathname */
+ catalog, /* basename */
+ 0644, /* pathname_mode */
+ FALSE); /* pathname_backup */
+ }
+ g_free(cc);
+ }
+ return FALSE;
+}
+#endif /* ENABLE_BUNDLE */
+