-
Notifications
You must be signed in to change notification settings - Fork 512
Commit
Qt lupdate threw warnings about unconsumed metadata for lines that had translator's comments (that is exported to the language translation file to provide additonal context for translators) in the same line as the translatable text. For example: this->SupportedReadFileTypes->InsertNextValue(vtkMRMLTr("vtkMRMLColorTableStorageNode", "MRML Color Table") + " (.ctbl)"); //: file format name The issue with this is that Qt expects translator comment to be in the previous line like this: //: File format name this->SupportedReadFileTypes->InsertNextValue(vtkMRMLTr("vtkMRMLColorTableStorageNode", "MRML Color Table") + " (.ctbl)");
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -316,13 +316,17 @@ int vtkMRMLColorTableStorageNode::WriteDataInternal(vtkMRMLNode *refNode) | |
//---------------------------------------------------------------------------- | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
lassoan
Author
Contributor
|
||
void vtkMRMLColorTableStorageNode::InitializeSupportedReadFileTypes() | ||
{ | ||
this->SupportedReadFileTypes->InsertNextValue(vtkMRMLTr("vtkMRMLColorTableStorageNode", "MRML Color Table") + " (.ctbl)"); //: file format name | ||
this->SupportedReadFileTypes->InsertNextValue(vtkMRMLTr("vtkMRMLColorTableStorageNode", "MRML Color Table") + " (.txt)"); //: file format name | ||
//: File format name | ||
this->SupportedReadFileTypes->InsertNextValue(vtkMRMLTr("vtkMRMLColorTableStorageNode", "MRML Color Table") + " (.ctbl)"); | ||
//: File format name | ||
this->SupportedReadFileTypes->InsertNextValue(vtkMRMLTr("vtkMRMLColorTableStorageNode", "MRML Color Table") + " (.txt)"); | ||
} | ||
|
||
//---------------------------------------------------------------------------- | ||
void vtkMRMLColorTableStorageNode::InitializeSupportedWriteFileTypes() | ||
{ | ||
this->SupportedWriteFileTypes->InsertNextValue(vtkMRMLTr("vtkMRMLColorTableStorageNode", "MRML Color Table") + " (.ctbl)"); //: file format name | ||
this->SupportedWriteFileTypes->InsertNextValue(vtkMRMLTr("vtkMRMLColorTableStorageNode", "MRML Color Table") + " (.txt)"); //: file format name | ||
//: File format name | ||
this->SupportedWriteFileTypes->InsertNextValue(vtkMRMLTr("vtkMRMLColorTableStorageNode", "MRML Color Table") + " (.ctbl)"); | ||
//: File format name | ||
this->SupportedWriteFileTypes->InsertNextValue(vtkMRMLTr("vtkMRMLColorTableStorageNode", "MRML Color Table") + " (.txt)"); | ||
} |
@lassoan If possible, let's try to avoid directly pushing to
main
and instead create a pull request.If urgent and it has not been approved within 10-30mins ... the regular check can be bypassed.
Systematically creating a pull request is helpful to: