summaryrefslogtreecommitdiffstats
path: root/doc/src
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@nokia.com>2009-07-01 08:53:23 (GMT)
committerOswald Buddenhagen <oswald.buddenhagen@nokia.com>2009-07-02 10:28:25 (GMT)
commit9a90dab23bd1bd37bd4a7aace588896d2ae7e9d9 (patch)
tree17ac2a57b219d6f7f28444e889bc4187bbbb181f /doc/src
parentf4f79c42b7086145b59e99d195b6295720b7377a (diff)
downloadQt-9a90dab23bd1bd37bd4a7aace588896d2ae7e9d9.zip
Qt-9a90dab23bd1bd37bd4a7aace588896d2ae7e9d9.tar.gz
Qt-9a90dab23bd1bd37bd4a7aace588896d2ae7e9d9.tar.bz2
add support for attaching meta data to translatable messages
Requirement: QT-457
Diffstat (limited to 'doc/src')
-rw-r--r--doc/src/snippets/code/src_corelib_kernel_qobject.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/src/snippets/code/src_corelib_kernel_qobject.cpp b/doc/src/snippets/code/src_corelib_kernel_qobject.cpp
index 5a7c5a7..5c0f80c 100644
--- a/doc/src/snippets/code/src_corelib_kernel_qobject.cpp
+++ b/doc/src/snippets/code/src_corelib_kernel_qobject.cpp
@@ -376,6 +376,15 @@ hostNameLabel->setText(tr("Name:"));
QString example = tr("Example");
//! [40]
+//! [meta data]
+//: This is a comment for the translator.
+//= qtn_foo_bar
+//~ loc-layout_id foo_dialog
+//~ loc-blank False
+//~ magic-stuff This might mean something magic.
+QString text = MyMagicClass::tr("Sim sala bim.");
+//! [meta data]
+
//! [explicit tr context]
QString text = QScrollBar::tr("Page up");
//! [explicit tr context]