@@ -344,21 +344,21 @@ translate_package = function(
344344 if (tr_update ) {
345345 # is it worthwhile to try and distinguish the creation time of the
346346 # R pot file and the src pot file? probably not...
347- messagef (
348- " Updating translation template for package '%s' (last updated %s)" ,
347+ catf (
348+ " Updating translation template for package '%s' (last updated %s)\n " ,
349349 package ,
350350 format(file.info(r_potfile )$ atime )
351351 )
352352 } else {
353- messagef (" Starting translations for package '%s'" , package )
353+ catf (" Starting translations for package '%s'\n " , package )
354354 }
355355 }
356356 if (! tr_update ) dir.create(po_dir , showWarnings = FALSE )
357357
358358 message_data = get_message_data(dir , custom_translation_functions , verbose = verbose )
359359
360360 if (! nrow(message_data )) {
361- if (verbose ) message (' No messages to translate; finishing' )
361+ if (verbose ) cat (' No messages to translate; finishing\n ' )
362362 return (invisible ())
363363 }
364364
@@ -369,7 +369,7 @@ translate_package = function(
369369 set_prompt_conn()
370370 on.exit(unset_prompt_conn())
371371
372- if (verbose ) message (' Running message diagnostics...' )
372+ if (verbose ) cat (' Running message diagnostics...\n ' )
373373
374374 for (diagnostic in diagnostics ) {
375375 diagnostic <- match.fun(diagnostic )
@@ -387,13 +387,13 @@ translate_package = function(
387387 if (l10n_info()[[" UTF-8" ]]) {
388388 # on UTF-8 machines we install the en@quot messages too
389389 # TODO: streamline this -- en_quote is definitely doing some redundant stuff
390- message (' Generating en@quot translations' )
390+ cat (' Generating en@quot translations\n ' )
391391 update_en_quot_mo_files(dir , verbose )
392392 }
393393
394394
395395 if (is.null(languages )) {
396- if (verbose ) message (' No languages provided; finishing' )
396+ if (verbose ) cat (' No languages provided; finishing\n ' )
397397 return (invisible ())
398398 }
399399
@@ -411,8 +411,8 @@ translate_package = function(
411411 lang_file <- file.path(po_dir , glue(" R-{language}.po" ))
412412 if (tr_update && file.exists(lang_file )) {
413413 if (verbose ) {
414- messagef (
415- ' Found existing R translations for %s (%s/%s) in %s. Running msgmerge...' ,
414+ catf (
415+ ' Found existing R translations for %s (%s/%s) in %s. Running msgmerge...\n ' ,
416416 language , metadata $ full_name_eng , metadata $ full_name_native , lang_file
417417 )
418418 }
@@ -426,8 +426,8 @@ translate_package = function(
426426 lang_file <- file.path(po_dir , glue(" {language}.po" ))
427427 if (tr_update && file.exists(lang_file )) {
428428 if (verbose ) {
429- messagef (
430- ' Found existing src translations for %s (%s/%s) in %s. Running msgmerge...' ,
429+ catf (
430+ ' Found existing src translations for %s (%s/%s) in %s. Running msgmerge...\n ' ,
431431 language , metadata $ full_name_eng , metadata $ full_name_native , lang_file
432432 )
433433 }
@@ -448,15 +448,15 @@ translate_package = function(
448448 ]
449449
450450 if (! length(new_idx )) {
451- if (verbose ) messagef (' Translations for %s are up to date! Skipping.' , language )
451+ if (verbose ) catf (' Translations for %s are up to date! Skipping.\n ' , language )
452452 next
453453 }
454454 if (verbose ) {
455- messagef (
456- ' Beginning new translations for %s (%s/%s); found %d untranslated messages' ,
455+ catf (
456+ ' Beginning new translations for %s (%s/%s); found %d untranslated messages\n ' ,
457457 language , metadata $ full_name_eng , metadata $ full_name_native , length(new_idx )
458458 )
459- message (" (To quit translating, press 'Esc'; progress will be saved)" )
459+ cat (" (To quit translating, press 'Esc'; progress will be saved)\n " )
460460 }
461461
462462 po_params $ author = prompt(' Thanks! Who should be credited with these translations?' )
0 commit comments