Translations:Development/Tutorials/First program/45/fr: Difference between revisions

From KDE TechBase
(Created page with "D'abord il faut créer un objet [http://doc.qt.io/qt-5/qapplication.html QApplication] . Ceci doit être fait absolument une fois dans chaque programme car il est utilisé pou...")
(No difference)

Revision as of 09:37, 20 April 2018

Information about message (contribute)
This message has no documentation. If you know where or how this message is used, you can help other translators by adding documentation to this message.
Message definition (Development/Tutorials/First program)
First we need to create a [http://doc.qt.io/qt-5/qapplication.html QApplication] object. This needs to be done exactly once in each program since it is needed for things such as [[Development/Tutorials/Localization/i18n|i18n]]. It also should be created before any other KDE Framework or Qt object. A call to {{class|KLocalizedString}}::setApplicationDomain() is required to properly set the translation catalog and must be done before the next step happens.

D'abord il faut créer un objet QApplication . Ceci doit être fait absolument une fois dans chaque programme car il est utilisé pour des choses comme le i18n. Il doit aussi être créé avant les objets KDE et Qt. Un appel à KLocalizedString::setApplicationDomain() est nécessaire pour initialiser proprement le catalogue de traduction et doit être fait avant d'enchaîner les étapes suivantes.