Minor string cleanup (#248)

- Simplified some strings to not include unnecessary markup.
- Fix translator comments so that they actually make it to glabels_C.ts file
      - Reconciled the style of these comments.
      - Added translator comments
This commit is contained in:
Jaye Evins
2025-11-10 17:46:07 -05:00
committed by GitHub
parent e6e08872e0
commit 9d516b7e1f
12 changed files with 78 additions and 60 deletions
+1 -1
View File
@@ -265,7 +265,7 @@ namespace glabels
mColorNode = newColorNode;
// TRANSLATORS
//: %1 = color specification in hex. String must not contain a colon (:).
//: %1 = color specification in hex. String must not contain a colon (:).
mColorHistory->addColor( mColorNode.color(),
QString(tr("Custom Color %1")).arg(mColorNode.color().name()) );
+4 -2
View File
@@ -921,7 +921,8 @@ namespace glabels
if ( mUndoRedoModel->canUndo() )
{
editUndoAction->setEnabled( true );
/* Translators: %1 is the action description to undo. */
// TRANSLATORS
//: %1 is the action name/description (e.g. move, delete, ...) to undo.
editUndoAction->setText( QString( tr("Undo %1") ).arg( mUndoRedoModel->undoDescription() ) );
}
else
@@ -932,7 +933,8 @@ namespace glabels
if ( mUndoRedoModel->canRedo() )
{
editRedoAction->setEnabled( true );
/* Translators: %1 is the action description to redo. */
// TRANSLATORS
//: %1 is the action name/description (e.g. move, delete, ...) to redo.
editRedoAction->setText( QString( tr("Redo %1") ).arg( mUndoRedoModel->redoDescription() ) );
}
else
+2
View File
@@ -1580,6 +1580,8 @@ namespace glabels
QMessageBox msgBox( wizard() );
msgBox.setWindowTitle( tr("Save Product Template") );
msgBox.setIcon( QMessageBox::Warning );
// TRANSLATORS
//: %1 = brand name of product (e.g. Avery), %2 = part number of product (e.g. 5026).
msgBox.setText( tr("User product template (%1 %2) already exists.").arg(brand).arg(part) );
msgBox.setInformativeText( tr("Do you want to replace it?") );
msgBox.setStandardButtons( QMessageBox::Yes | QMessageBox::No );
+11 -6
View File
@@ -263,7 +263,8 @@
<string>Uncollated (e.g. 1,1,1 2,2,2 3,3,3)</string>
</property>
<property name="icon">
<iconset theme="glabels-uncollated"/>
<iconset theme="glabels-uncollated">
<normaloff>.</normaloff>.</iconset>
</property>
</item>
<item>
@@ -271,7 +272,8 @@
<string>Collated (e.g. 1,2,3 1,2,3 1,2,3)</string>
</property>
<property name="icon">
<iconset theme="glabels-collated"/>
<iconset theme="glabels-collated">
<normaloff>.</normaloff>.</iconset>
</property>
</item>
</widget>
@@ -292,7 +294,8 @@
<string>Merge groups are contiguous</string>
</property>
<property name="icon">
<iconset theme="glabels-merge-group-contiguous"/>
<iconset theme="glabels-merge-group-contiguous">
<normaloff>.</normaloff>.</iconset>
</property>
</item>
<item>
@@ -300,7 +303,8 @@
<string>Merge groups start on a new page</string>
</property>
<property name="icon">
<iconset theme="glabels-merge-group-page"/>
<iconset theme="glabels-merge-group-page">
<normaloff>.</normaloff>.</iconset>
</property>
</item>
</widget>
@@ -448,7 +452,8 @@
<string>Print...</string>
</property>
<property name="icon">
<iconset theme="glabels-print"/>
<iconset theme="glabels-print">
<normaloff>.</normaloff>.</iconset>
</property>
<property name="iconSize">
<size>
@@ -491,7 +496,7 @@
</size>
</property>
<property name="text">
<string notr="true">&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;(Will print a total of xxxx items on nnn pages.)&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
<string notr="true">(Will print a total of xxxx items on nnn pages.)</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
+7 -4
View File
@@ -248,7 +248,7 @@
</size>
</property>
<property name="toolTip">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Select another product for this gLabels project.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
<string>Select another product for this gLabels project.</string>
</property>
<property name="styleSheet">
<string notr="true">text-align:left; padding:3px;</string>
@@ -257,7 +257,8 @@
<string>Change product</string>
</property>
<property name="icon">
<iconset theme="glabels-select-product"/>
<iconset theme="glabels-select-product">
<normaloff>.</normaloff>.</iconset>
</property>
<property name="iconSize">
<size>
@@ -351,7 +352,8 @@
<string>Horizontal orientation</string>
</property>
<property name="icon">
<iconset theme="glabels-label-orientation-horiz"/>
<iconset theme="glabels-label-orientation-horiz">
<normaloff>.</normaloff>.</iconset>
</property>
</item>
<item>
@@ -359,7 +361,8 @@
<string>Vertical orientation</string>
</property>
<property name="icon">
<iconset theme="glabels-label-orientation-vert"/>
<iconset theme="glabels-label-orientation-vert">
<normaloff>.</normaloff>.</iconset>
</property>
</item>
</widget>
+1 -1
View File
@@ -32,7 +32,7 @@
<item>
<widget class="QLabel" name="label_2">
<property name="text">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Click &amp;quot;Cancel&amp;quot; to quit, or click &amp;quot;Back&amp;quot; to begin with a different product.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
<string>Click &quot;Cancel&quot; to quit, or click &quot;Back&quot; to begin with a different product.</string>
</property>
<property name="wordWrap">
<bool>true</bool>
+4 -1
View File
@@ -32,7 +32,10 @@
<item row="0" column="0">
<widget class="QLabel" name="label">
<property name="text">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;This dialog will help you create a custom product template. Let's get started:&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
<string>This dialog will help you create a custom product template. Let's get started:</string>
</property>
<property name="wordWrap">
<bool>true</bool>
</property>
</widget>
</item>
+1 -1
View File
@@ -32,7 +32,7 @@
<item>
<widget class="QLabel" name="label_2">
<property name="text">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Click &amp;quot;Cancel&amp;quot; to quit, or click &amp;quot;Back&amp;quot; to begin with a different product.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
<string>Click &quot;Cancel&quot; to quit, or click &quot;Back&quot; to begin with a different product.</string>
</property>
<property name="wordWrap">
<bool>true</bool>
+3 -3
View File
@@ -66,7 +66,7 @@
<item>
<widget class="QPushButton" name="addButton">
<property name="toolTip">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Add variable&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
<string>Add variable</string>
</property>
<property name="text">
<string>Add</string>
@@ -76,7 +76,7 @@
<item>
<widget class="QPushButton" name="editButton">
<property name="toolTip">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Edit selected variable&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
<string>Edit selected variable</string>
</property>
<property name="text">
<string>Edit</string>
@@ -86,7 +86,7 @@
<item>
<widget class="QPushButton" name="deleteButton">
<property name="toolTip">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Delete selected variable&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
<string>Delete selected variable</string>
</property>
<property name="text">
<string>Delete</string>