File: tr_thread_test_module.cpp

package info (click to toggle)
kf6-extra-cmake-modules 6.22.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,608 kB
  • sloc: python: 668; cpp: 330; ansic: 291; xml: 182; sh: 62; makefile: 8
file content (18 lines) | stat: -rw-r--r-- 440 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/*
    SPDX-FileCopyrightText: 2015 Alex Merry <alex.merry@kde.org>

    SPDX-License-Identifier: BSD-3-Clause
*/

#include <QCoreApplication>
#include <QTextStream>

#include <stdio.h>

extern "C" Q_DECL_EXPORT void print_strings()
{
    QTextStream output(stdout);

    output << QCoreApplication::translate("testcontext", "test string") << ":";
    output << QCoreApplication::translate("testcontext", "test plural %n", 0, 5) << '\n';
}