Improve gettext support. Stylistic fixes and error handling fixes while
on it.
This commit is contained in:
		
							parent
							
								
									215c90cb82
								
							
						
					
					
						commit
						9c4b5c13e6
					
				
					 184 changed files with 1175 additions and 959 deletions
				
			
		|  | @ -98,7 +98,7 @@ grub_cmd_linux (grub_command_t cmd __attribute__ ((unused)), | |||
| 
 | ||||
|   if (argc == 0) | ||||
|     { | ||||
|       grub_error (GRUB_ERR_BAD_ARGUMENT, "no kernel specified"); | ||||
|       grub_error (GRUB_ERR_BAD_ARGUMENT, N_("filename expected")); | ||||
|       goto fail; | ||||
|     } | ||||
| 
 | ||||
|  | @ -109,7 +109,7 @@ grub_cmd_linux (grub_command_t cmd __attribute__ ((unused)), | |||
|   if (grub_file_read (file, &lh, sizeof (lh)) != sizeof (lh)) | ||||
|     { | ||||
|       if (!grub_errno) | ||||
| 	grub_error (GRUB_ERR_READ_ERROR, N_("premature end of file %s"), | ||||
| 	grub_error (GRUB_ERR_BAD_OS, N_("premature end of file %s"), | ||||
| 		    argv[0]); | ||||
|       goto fail; | ||||
|     } | ||||
|  | @ -286,7 +286,7 @@ grub_cmd_linux (grub_command_t cmd __attribute__ ((unused)), | |||
|   if (grub_file_read (file, grub_linux_real_chunk + sizeof (lh), len) != len) | ||||
|     { | ||||
|       if (!grub_errno) | ||||
| 	grub_error (GRUB_ERR_FILE_READ_ERROR, N_("premature end of file %s"), | ||||
| 	grub_error (GRUB_ERR_BAD_OS, N_("premature end of file %s"), | ||||
| 		    argv[0]); | ||||
|       goto fail; | ||||
|     } | ||||
|  | @ -326,7 +326,7 @@ grub_cmd_linux (grub_command_t cmd __attribute__ ((unused)), | |||
|   len = grub_linux16_prot_size; | ||||
|   if (grub_file_read (file, grub_linux_prot_chunk, grub_linux16_prot_size) | ||||
|       != (grub_ssize_t) grub_linux16_prot_size && !grub_errno) | ||||
|     grub_error (GRUB_ERR_FILE_READ_ERROR, N_("premature end of file %s"), | ||||
|     grub_error (GRUB_ERR_BAD_OS, N_("premature end of file %s"), | ||||
| 		argv[0]); | ||||
| 
 | ||||
|   if (grub_errno == GRUB_ERR_NONE) | ||||
|  | @ -366,13 +366,13 @@ grub_cmd_initrd (grub_command_t cmd __attribute__ ((unused)), | |||
| 
 | ||||
|   if (argc == 0) | ||||
|     { | ||||
|       grub_error (GRUB_ERR_BAD_ARGUMENT, "no module specified"); | ||||
|       grub_error (GRUB_ERR_BAD_ARGUMENT, N_("filename expected")); | ||||
|       goto fail; | ||||
|     } | ||||
| 
 | ||||
|   if (!loaded) | ||||
|     { | ||||
|       grub_error (GRUB_ERR_BAD_ARGUMENT, "you need to load the kernel first"); | ||||
|       grub_error (GRUB_ERR_BAD_ARGUMENT, N_("you need to load the kernel first")); | ||||
|       goto fail; | ||||
|     } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue