[gparted] Add translator comments requested in bug #631684
- From: Curtis Gedak <gedakc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gparted] Add translator comments requested in bug #631684
- Date: Wed, 13 Oct 2010 00:15:24 +0000 (UTC)
commit 08c78ba19dc99428fefdb6fca4d37b7e9134e402
Author: Curtis Gedak <gedakc gmail com>
Date: Tue Oct 12 18:14:30 2010 -0600
Add translator comments requested in bug #631684
src/DialogFeatures.cc | 12 ++++++++++--
src/Dialog_Partition_Info.cc | 41 +++++++++++++++++++++++++++++++++++++----
src/Dialog_Progress.cc | 42 +++++++++++++++++++++++++++++++++++-------
src/GParted_Core.cc | 20 ++++++++++++++++----
src/Utils.cc | 37 ++++++++++++++++++++++++++++++++++---
src/Win_GParted.cc | 18 ++++++++++++++----
6 files changed, 146 insertions(+), 24 deletions(-)
---
diff --git a/src/DialogFeatures.cc b/src/DialogFeatures.cc
index 5117ac1..e524a5f 100644
--- a/src/DialogFeatures.cc
+++ b/src/DialogFeatures.cc
@@ -66,13 +66,21 @@ DialogFeatures::DialogFeatures()
hbox = manage( new Gtk::HBox() ) ;
image = manage( new Gtk::Image( Gtk::Stock::APPLY, Gtk::ICON_SIZE_LARGE_TOOLBAR ) );
hbox ->pack_start( *image, Gtk::PACK_SHRINK ) ;
- hbox ->pack_start( * Utils::mk_label( _("Available") ), Gtk::PACK_EXPAND_WIDGET ) ;
+ hbox ->pack_start( * Utils::mk_label(
+ /* TO TRANSLATORS: Available
+ * means that this action is valid for this file system.
+ */
+ _("Available") ), Gtk::PACK_EXPAND_WIDGET ) ;
vbox ->pack_start( *hbox ) ;
hbox = manage( new Gtk::HBox() ) ;
image = manage( new Gtk::Image( Gtk::Stock::CANCEL, Gtk::ICON_SIZE_LARGE_TOOLBAR ) );
hbox ->pack_start( *image, Gtk::PACK_SHRINK ) ;
- hbox ->pack_start( * Utils::mk_label( _("Not Available") ), Gtk::PACK_EXPAND_WIDGET ) ;
+ hbox ->pack_start( * Utils::mk_label(
+ /* TO TRANSLATORS: Not Available
+ * means that this action is not valid for this file system.
+ */
+ _("Not Available") ), Gtk::PACK_EXPAND_WIDGET ) ;
vbox ->pack_start( *hbox ) ;
hbox2 ->pack_start( *vbox ) ;
diff --git a/src/Dialog_Partition_Info.cc b/src/Dialog_Partition_Info.cc
index 5a5de0f..fd4c12f 100644
--- a/src/Dialog_Partition_Info.cc
+++ b/src/Dialog_Partition_Info.cc
@@ -243,20 +243,53 @@ void Dialog_Partition_Info::Display_Info()
if ( partition .busy )
{
if ( partition .type == GParted::TYPE_EXTENDED )
+ {
+ /* TO TRANSLATORS: Busy (At least one logical partition is mounted)
+ * means that this extended partition contains at least one logical
+ * partition that is mounted or otherwise active.
+ */
str_temp = _("Busy (At least one logical partition is mounted)") ;
+ }
else if ( partition .filesystem == FS_LINUX_SWAP )
+ {
+ /* TO TRANSLATORS: Active
+ * means that this linux swap partition is enabled and being used by
+ * the operating system.
+ */
str_temp = _("Active") ;
+ }
else if ( partition .get_mountpoints() .size() )
- str_temp = String::ucompose( _("Mounted on %1"),
- Glib::build_path( ", ", partition .get_mountpoints() ) ) ;
+ {
+ str_temp = String::ucompose(
+ /* TO TRANSLATORS: looks like Mounted on /mnt/mymountpoint */
+ _("Mounted on %1"),
+ Glib::build_path( ", ", partition .get_mountpoints() ) ) ;
+ }
}
else if ( partition.type == GParted::TYPE_EXTENDED )
+ {
+ /* TO TRANSLATORS: Not busy (There are no mounted logical partitions)
+ * means that this extended partition contains no mounted or otherwise
+ * active partitions.
+ */
str_temp = _("Not busy (There are no mounted logical partitions)") ;
+ }
else if ( partition.filesystem == GParted::FS_LINUX_SWAP )
+ {
+ /* TO TRANSLATORS: Not active
+ * means that this linux swap partition is not enabled and is not
+ * in use by the operating system.
+ */
str_temp = _("Not active") ;
- else
+ }
+ else
+ {
+ /* TO TRANSLATORS: Not mounted
+ * means that this partition is not mounted.
+ */
str_temp = _("Not mounted") ;
-
+ }
+
table ->attach( * Utils::mk_label( str_temp, true, Gtk::ALIGN_LEFT, Gtk::ALIGN_CENTER, false, true ), 1, 2, top++, bottom++, Gtk::FILL ) ;
}
diff --git a/src/Dialog_Progress.cc b/src/Dialog_Progress.cc
index 16eb94f..2bd4ffa 100644
--- a/src/Dialog_Progress.cc
+++ b/src/Dialog_Progress.cc
@@ -275,8 +275,9 @@ void Dialog_Progress::on_signal_show()
str_temp = _("See the details for more information.") ;
str_temp += "\n\n<i><b>" + Glib::ustring( _("IMPORTANT") ) + "</b>\n" ;
str_temp += _("If you want support, you need to provide the saved details!") ;
- str_temp += "\n" + String::ucompose(
- _("See %1 for more information."), "http://gparted.org/larry/tips/save_details.htm" ) + "</i>" ;
+ str_temp += "\n" + String::ucompose(
+ /* TO TRANSLATORS: looks like See http://gparted.org/larry/tips/save_details.htm for more information. */
+ _("See %1 for more information."), "http://gparted.org/larry/tips/save_details.htm" ) + "</i>" ;
dialog .set_secondary_text( str_temp, true ) ;
dialog .run() ;
@@ -392,19 +393,46 @@ void Dialog_Progress::echo_operation_details( const OperationDetail & operationd
switch ( operationdetail .get_status() )
{
case STATUS_EXECUTE:
- out << "( " << _("EXECUTING") << " )" ;
+ out << "( " <<
+ /* TO TRANSLATORS: EXECUTING
+ * means that the status for this operation is
+ * executing or currently in progress.
+ */
+ _("EXECUTING") << " )" ;
break ;
case STATUS_SUCCES:
- out << "( " << _("SUCCESS") << " )" ;
+ out << "( " <<
+ /* TO" TRANSLATORS: SUCCESS
+ * means that the status for this operation is
+ * completed successfully.
+ */
+ _("SUCCESS") << " )" ;
break ;
case STATUS_ERROR:
- out << "( " << _("ERROR") << " )" ;
+ out << "( "
+ /* TO TRANSLATORS: ERROR
+ * means that the status for this operation is
+ * completed with errors.
+ */
+ << _("ERROR") << " )" ;
break ;
case STATUS_INFO:
- out << "( " << _("INFO") << " )" ;
+ out << "( " <<
+ /* TO TRANSLATORS: INFO
+ * means that the status for this operation is
+ * for your information , or messages from the
+ * libparted library.
+ */
+ _("INFO") << " )" ;
break ;
case STATUS_N_A:
- out << "( " << _("N/A") << " )" ;
+ out << "( " <<
+ /* TO TRANSLATORS: N/A
+ * means that the status for this operation is
+ * not applicable because the operation is not
+ * supported on the file system in the partition.
+ */
+ _("N/A") << " )" ;
break ;
default:
diff --git a/src/GParted_Core.cc b/src/GParted_Core.cc
index c6d3ee9..be6ff97 100644
--- a/src/GParted_Core.cc
+++ b/src/GParted_Core.cc
@@ -340,7 +340,12 @@ void GParted_Core::set_devices( std::vector<Device> & devices )
//harddisk without disklabel
else
{
- temp_device .disktype = _("unrecognized") ;
+ temp_device .disktype =
+ /* TO TRANSLATORS: unrecognized
+ * means that the partition table for this
+ * disk device is unknown or not recognized.
+ */
+ _("unrecognized") ;
temp_device .max_prims = -1 ;
Partition partition_temp ;
@@ -1748,8 +1753,13 @@ bool GParted_Core::move( const Device & device,
{
if ( partition_old .get_sector_length() != partition_new .get_sector_length() )
{
- operationdetail .add_child( OperationDetail(
- _("moving requires old and new length to be the same"), STATUS_ERROR, FONT_ITALIC ) ) ;
+ operationdetail .add_child( OperationDetail(
+ /* TO TRANSLATORS: moving requires old and new length to be the same
+ * means that the length in bytes of the old partition and new partition
+ * must be the same. If the sector sizes of the old partition and the
+ * new partition are the same, then the length in sectors must be the same.
+ */
+ _("moving requires old and new length to be the same"), STATUS_ERROR, FONT_ITALIC ) ) ;
return false ;
}
@@ -2445,7 +2455,9 @@ void GParted_Core::rollback_transaction( const Partition & partition_src,
bool GParted_Core::check_repair_filesystem( const Partition & partition, OperationDetail & operationdetail )
{
operationdetail .add_child( OperationDetail(
- String::ucompose( _("check file system on %1 for errors and (if possible) fix them"),
+ String::ucompose(
+ /* TO TRANSLATORS: looks like check file system on /dev/sda5 for errors and (if possible) fix them */
+ _("check file system on %1 for errors and (if possible) fix them"),
partition .get_path() ) ) ) ;
bool succes = false ;
diff --git a/src/Utils.cc b/src/Utils.cc
index 53ac33d..2a94e92 100644
--- a/src/Utils.cc
+++ b/src/Utils.cc
@@ -117,9 +117,26 @@ Glib::ustring Utils::get_filesystem_string( FILESYSTEM filesystem )
{
switch( filesystem )
{
- case FS_UNALLOCATED : return _("unallocated") ;
- case FS_UNKNOWN : return _("unknown") ;
- case FS_UNFORMATTED : return _("unformatted") ;
+ case FS_UNALLOCATED : return
+ /* TO TRANSLATORS: unallocated
+ * means that this space on the disk device does
+ * not contain a recognized file system, and is in
+ * other words unallocated.
+ */
+ _("unallocated") ;
+ case FS_UNKNOWN : return
+ /* TO TRANSLATORS: unknown
+ * means that this space within this partition does
+ * not contain a file system known to GParted, and
+ * is in other words unknown.
+ */
+ _("unknown") ;
+ case FS_UNFORMATTED : return
+ /* TO TRANSLATORS: unformatted
+ * means that the space within this partition will not
+ * be formatted with a known file system by GParted.
+ */
+ _("unformatted") ;
case FS_EXTENDED : return "extended" ;
case FS_BTRFS : return "btrfs" ;
case FS_EXT2 : return "ext2" ;
@@ -336,6 +353,14 @@ Glib::ustring Utils::create_mtoolsrc_file( char file_name[], const char drive_le
fd = mkstemp( file_name ) ;
if( fd != -1 ) {
Glib::ustring fcontents =
+ /* TO TRANSLATORS: # Temporary file created by gparted. It may be deleted.
+ * means that this file is only used while gparted is applying operations.
+ * If for some reason this file exists at any other time, then the message is
+ * meant to inform a user that the file can be deleted with no harmful effects.
+ * This file is typically created, exists for less than a few seconds, and is
+ * then deleted by gparted. Under normal circumstances a user should never
+ * see this file.
+ */
_("# Temporary file created by gparted. It may be deleted.\n") ;
//The following file contents are mtools keywords (see man mtools.conf)
@@ -345,6 +370,9 @@ Glib::ustring Utils::create_mtoolsrc_file( char file_name[], const char drive_le
if( write( fd, fcontents .c_str(), fcontents .size() ) == -1 ) {
err_msg = String::ucompose(
+ /* TO TRANSLATORS: looks like
+ * Label operation failed: Unable to write to temporary file /tmp/Y56ZZ3M13LM.
+ */
_("Label operation failed: Unable to write to temporary file %1.\n")
, file_name
) ;
@@ -354,6 +382,9 @@ Glib::ustring Utils::create_mtoolsrc_file( char file_name[], const char drive_le
else
{
err_msg = String::ucompose(
+ /* TO TRANSLATORS: looks like
+ * Label operation failed: Unable to create temporary file /tmp/Y56ZZ3M13LM.
+ */
_("Label operation failed: Unable to create temporary file %1.\n")
, file_name
) ;
diff --git a/src/Win_GParted.cc b/src/Win_GParted.cc
index 34113aa..067d8b8 100644
--- a/src/Win_GParted.cc
+++ b/src/Win_GParted.cc
@@ -1671,20 +1671,30 @@ void Win_GParted::activate_format( GParted::FILESYSTEM new_fs )
( fs .MAX && selected_partition .get_byte_length() > fs .MAX ) )
{
Gtk::MessageDialog dialog( *this,
- String::ucompose( _("Cannot format this file system to %1."),
- Utils::get_filesystem_string( new_fs ) ) ,
+ String::ucompose(
+ /* TO TRANSLATORS: looks like
+ * Cannot format this file system to fat16.
+ */
+ _( "Cannot format this file system to %1." ),
+ Utils::get_filesystem_string( new_fs ) ) ,
false,
Gtk::MESSAGE_ERROR,
Gtk::BUTTONS_OK,
true );
if ( selected_partition .get_byte_length() < fs .MIN )
- dialog .set_secondary_text( String::ucompose(
+ dialog .set_secondary_text( String::ucompose(
+ /* TO TRANSLATORS: looks like
+ * A fat16 file system requires a partition of at least 16.00 MiB.
+ */
_( "A %1 file system requires a partition of at least %2."),
Utils::get_filesystem_string( new_fs ),
Utils::format_size( fs .MIN, 1 /* Byte */ ) ) );
else
- dialog .set_secondary_text( String::ucompose(
+ dialog .set_secondary_text( String::ucompose(
+ /* TO TRANSLATORS: looks like
+ * A partition with a hfs file system has a maximum size of 2.00 GiB.
+ */
_( "A partition with a %1 file system has a maximum size of %2."),
Utils::get_filesystem_string( new_fs ),
Utils::format_size( fs .MAX, 1 /* Byte */ ) ) );
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]