summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets
diff options
context:
space:
mode:
authorLeena Miettinen <riitta-leena.miettinen@qt.io>2023-01-24 09:43:17 +0100
committerLeena Miettinen <riitta-leena.miettinen@qt.io>2023-01-25 12:16:23 +0100
commitbdf675dbd6f31917f4cc4637d799b12137f17167 (patch)
treef5eb137ade8b9cd81d37c8e31afb773945142200 /doc/src/snippets
parent6c0d5cd55cac0e9d473cf978e67bec33ab991a40 (diff)
Doc: Consolidate internationalization documentation
- Combine the "Internationalization with Qt" and "Internationalization and Localization with Qt Quick" topics - Add a "Localizing Applications" topic - Move information from the Qt Linguist Manual developer section to the new topics - Add a link to a YouTube video about localizing apps - Use active voice and present tense Fixes: QTBUG-71876 Change-Id: If2db1d4865e47a85e0b63adac326fc123ad65e50 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io> Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io> Reviewed-by: Kai Köhne <kai.koehne@qt.io> Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to 'doc/src/snippets')
-rw-r--r--doc/src/snippets/code/doc_src_i18n.cpp21
-rw-r--r--doc/src/snippets/code/doc_src_i18n.qdoc6
-rw-r--r--doc/src/snippets/code/src_corelib_kernel_qobject.cpp9
3 files changed, 0 insertions, 36 deletions
diff --git a/doc/src/snippets/code/doc_src_i18n.cpp b/doc/src/snippets/code/doc_src_i18n.cpp
index 3452d2d75..a258d4750 100644
--- a/doc/src/snippets/code/doc_src_i18n.cpp
+++ b/doc/src/snippets/code/doc_src_i18n.cpp
@@ -70,15 +70,6 @@ void FileCopier::showProgress(int done, int total,
//! [4]
-//! [5]
-QString s1 = "%1 of %2 files copied. Copying: %3";
-QString s2 = "Kopierer nu %3. Av totalt %2 filer er %1 kopiert.";
-
-qDebug() << s1.arg(5).arg(10).arg("somefile.txt");
-qDebug() << s2.arg(5).arg(10).arg("somefile.txt");
-//! [5]
-
-
//! [8]
int main(int argc, char *argv[])
{
@@ -109,18 +100,6 @@ QString string = codec->toUnicode(encodedString);
//! [10]
-//! [11]
-void Clock::setTime(const QTime &time)
-{
- if (tr("AMPM") == "AMPM") {
- // 12-hour clock
- } else {
- // 24-hour clock
- }
-}
-//! [11]
-
-
//! [12]
void MyWidget::changeEvent(QEvent *event)
{
diff --git a/doc/src/snippets/code/doc_src_i18n.qdoc b/doc/src/snippets/code/doc_src_i18n.qdoc
index dbfca61cf..a84076d46 100644
--- a/doc/src/snippets/code/doc_src_i18n.qdoc
+++ b/doc/src/snippets/code/doc_src_i18n.qdoc
@@ -1,12 +1,6 @@
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
-//! [6]
-5 of 10 files copied. Copying: somefile.txt
-Kopierer nu somefile.txt. Av totalt 10 filer er 5 kopiert.
-//! [6]
-
-
//! [7]
HEADERS = funnydialog.h \
wackywidget.h
diff --git a/doc/src/snippets/code/src_corelib_kernel_qobject.cpp b/doc/src/snippets/code/src_corelib_kernel_qobject.cpp
index bf024c93c..b4e175107 100644
--- a/doc/src/snippets/code/src_corelib_kernel_qobject.cpp
+++ b/doc/src/snippets/code/src_corelib_kernel_qobject.cpp
@@ -207,11 +207,6 @@ showMessage(tr("%n message(s) saved", "", n));
//! [18]
-//! [19]
-n == 1 ? tr("%n message saved") : tr("%n messages saved")
-//! [19]
-
-
//! [20]
label->setText(tr("F\374r \310lise"));
//! [20]
@@ -458,7 +453,3 @@ if (isSignalConnected(QMetaMethod::fromSignal(&MyObject::valueChanged))) {
//~ 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]