[qet] [1407] Added comments for translators.

[ Thread Index | Date Index | More lists.tuxfamily.org/qet Archives ]


Revision: 1407
Author:   xavier
Date:     2011-12-25 19:22:39 +0100 (Sun, 25 Dec 2011)
Log Message:
-----------
Added comments for translators.

Modified Paths:
--------------
    branches/0.3/sources/titleblock/dimensionwidget.cpp
    branches/0.3/sources/titleblock/qettemplateeditor.cpp
    branches/0.3/sources/titleblockcell.cpp

Modified: branches/0.3/sources/titleblock/dimensionwidget.cpp
===================================================================
--- branches/0.3/sources/titleblock/dimensionwidget.cpp	2011-12-25 18:12:24 UTC (rev 1406)
+++ branches/0.3/sources/titleblock/dimensionwidget.cpp	2011-12-25 18:22:39 UTC (rev 1407)
@@ -99,9 +99,9 @@
 	
 	// extra widgets, for the user to specify whether the value is absolute, relative, etc.
 	if (complete_) {
-		absolute_button_  = new QRadioButton(tr("Absolu"));
-		relative_button_  = new QRadioButton(tr("Relatif au total"));
-		remaining_button_ = new QRadioButton(tr("Relatif au restant"));
+		absolute_button_  = new QRadioButton(tr("Absolu",             "a traditional, absolute measure"));
+		relative_button_  = new QRadioButton(tr("Relatif au total",   "a percentage of the total width"));
+		remaining_button_ = new QRadioButton(tr("Relatif au restant", "a percentage of what remains from the total width"));
 		dimension_type_   = new QButtonGroup(this);
 		dimension_type_ -> addButton(absolute_button_,  QET::Absolute);
 		dimension_type_ -> addButton(relative_button_,  QET::RelativeToTotalLength);

Modified: branches/0.3/sources/titleblock/qettemplateeditor.cpp
===================================================================
--- branches/0.3/sources/titleblock/qettemplateeditor.cpp	2011-12-25 18:12:24 UTC (rev 1406)
+++ branches/0.3/sources/titleblock/qettemplateeditor.cpp	2011-12-25 18:22:39 UTC (rev 1407)
@@ -100,13 +100,13 @@
 void QETTitleBlockTemplateEditor::initActions() {
 	QETApp *qet_app = QETApp::instance();
 	
-	save_           = new QAction(QET::Icons::DocumentSave,         tr("&Enregistrer"), this);
-	quit_           = new QAction(QET::Icons::ApplicationExit,      tr("&Quitter"),     this);
-	configure_      = new QAction(QET::Icons::Configure,            tr("&Configurer QElectroTech"),                  this);
-	about_qet_      = new QAction(QET::Icons::QETLogo,              tr("\300 &propos de QElectroTech"),              this);
-	about_qt_       = new QAction(QET::Icons::QtLogo,               tr("\300 propos de &Qt"),                        this);
-	merge_cells_    = new QAction(tr("&Fusionner les cellules"), this);
-	split_cell_     = new QAction(tr("&S\351parer les cellules"), this);
+	save_           = new QAction(QET::Icons::DocumentSave,         tr("&Enregistrer",                 "menu entry"), this);
+	quit_           = new QAction(QET::Icons::ApplicationExit,      tr("&Quitter",                     "menu entry"), this);
+	configure_      = new QAction(QET::Icons::Configure,            tr("&Configurer QElectroTech",     "menu entry"), this);
+	about_qet_      = new QAction(QET::Icons::QETLogo,              tr("\300 &propos de QElectroTech", "menu entry"), this);
+	about_qt_       = new QAction(QET::Icons::QtLogo,               tr("\300 propos de &Qt",           "menu entry"), this);
+	merge_cells_    = new QAction(                                  tr("&Fusionner les cellules",      "menu entry"), this);
+	split_cell_     = new QAction(                                  tr("&S\351parer les cellules",     "menu entry"), this);
 	
 	save_             -> setShortcut(QKeySequence::Save);
 	quit_             -> setShortcut(QKeySequence(tr("Ctrl+Q", "shortcut to quit")));
@@ -130,10 +130,10 @@
 	Initialize the various menus.
 */
 void QETTitleBlockTemplateEditor::initMenus() {
-	file_menu_    = new QMenu(tr("&Fichier"),       this);
-	edit_menu_    = new QMenu(tr("&\311dition"),    this);
-	config_menu_  = new QMenu(tr("&Configuration"), this);
-	help_menu_    = new QMenu(tr("&Aide"),          this);
+	file_menu_    = new QMenu(tr("&Fichier",        "menu title"), this);
+	edit_menu_    = new QMenu(tr("&\311dition",     "menu title"), this);
+	config_menu_  = new QMenu(tr("&Configuration",  "menu title"), this);
+	help_menu_    = new QMenu(tr("&Aide",           "menu title"), this);
 	
 	file_menu_    -> setTearOffEnabled(true);
 	edit_menu_    -> setTearOffEnabled(true);

Modified: branches/0.3/sources/titleblockcell.cpp
===================================================================
--- branches/0.3/sources/titleblockcell.cpp	2011-12-25 18:12:24 UTC (rev 1406)
+++ branches/0.3/sources/titleblockcell.cpp	2011-12-25 18:22:39 UTC (rev 1407)
@@ -115,23 +115,23 @@
 */
 QString TitleBlockCell::attributeName(const QString &attribute) {
 	if (attribute == "type") {
-		return(QObject::tr("type", "cell property human name"));
+		return(QObject::tr("type", "title block cell property human name"));
 	} else if (attribute == "name") {
-		return(QObject::tr("nom", "cell property human name"));
+		return(QObject::tr("nom", "title block cell property human name"));
 	} else if (attribute == "logo") {
-		return(QObject::tr("logo", "cell property human name"));
+		return(QObject::tr("logo", "title block cell property human name"));
 	} else if (attribute == "label") {
-		return(QObject::tr("label", "cell property human name"));
+		return(QObject::tr("label", "title block cell property human name"));
 	} else if (attribute == "displaylabel") {
-		return(QObject::tr("affichage du label", "cell property human name"));
+		return(QObject::tr("affichage du label", "title block cell property human name"));
 	} else if (attribute == "value") {
-		return(QObject::tr("valeur affich\xE9e", "cell property human name"));
+		return(QObject::tr("valeur affich\xE9e", "title block cell property human name"));
 	} else if (attribute == "alignment") {
-		return(QObject::tr("alignement du texte", "cell property human name"));
+		return(QObject::tr("alignement du texte", "title block cell property human name"));
 	} else if (attribute == "fontsize") {
-		return(QObject::tr("taille du texte", "cell property human name"));
+		return(QObject::tr("taille du texte", "title block cell property human name"));
 	} else if (attribute == "horizontal_adjust") {
-		return(QObject::tr("ajustement horizontal", "cell property human name"));
+		return(QObject::tr("ajustement horizontal", "title block cell property human name"));
 	}
 	return(QString());
 }


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/