@@ -3840,210 +3840,6 @@ bool qunsetenv(const char *varName)
3840
3840
enumeration's underlying type.
3841
3841
*/
3842
3842
3843
- /* !
3844
- \macro QT_TR_NOOP(sourceText)
3845
- \relates <QtGlobal>
3846
-
3847
- Marks the UTF-8 encoded string literal \a sourceText for delayed
3848
- translation in the current context (class).
3849
-
3850
- The macro tells lupdate to collect the string, and expands to
3851
- \a sourceText itself.
3852
-
3853
- Example:
3854
-
3855
- \snippet code/src_corelib_global_qglobal.cpp 34
3856
-
3857
- The macro QT_TR_NOOP_UTF8() is identical and obsolete; this applies
3858
- to all other _UTF8 macros as well.
3859
-
3860
- \sa QT_TRANSLATE_NOOP(), {Internationalization with Qt}
3861
- */
3862
-
3863
- /* !
3864
- \macro QT_TRANSLATE_NOOP(context, sourceText)
3865
- \relates <QtGlobal>
3866
-
3867
- Marks the UTF-8 encoded string literal \a sourceText for delayed
3868
- translation in the given \a context. The \a context is typically
3869
- a class name and also needs to be specified as a string literal.
3870
-
3871
- The macro tells lupdate to collect the string, and expands to
3872
- \a sourceText itself.
3873
-
3874
- Example:
3875
-
3876
- \snippet code/src_corelib_global_qglobal.cpp 35
3877
-
3878
- \sa QT_TR_NOOP(), QT_TRANSLATE_NOOP3(), {Internationalization with Qt}
3879
- */
3880
-
3881
- /* !
3882
- \macro QT_TRANSLATE_NOOP3(context, sourceText, disambiguation)
3883
- \relates <QtGlobal>
3884
- \since 4.4
3885
-
3886
- Marks the UTF-8 encoded string literal \a sourceText for delayed
3887
- translation in the given \a context with the given \a disambiguation.
3888
- The \a context is typically a class and also needs to be specified
3889
- as a string literal. The string literal \a disambiguation should be
3890
- a short semantic tag to tell apart otherwise identical strings.
3891
-
3892
- The macro tells lupdate to collect the string, and expands to an
3893
- anonymous struct of the two string literals passed as \a sourceText
3894
- and \a disambiguation.
3895
-
3896
- Example:
3897
-
3898
- \snippet code/src_corelib_global_qglobal.cpp 36
3899
-
3900
- \sa QT_TR_NOOP(), QT_TRANSLATE_NOOP(), {Internationalization with Qt}
3901
- */
3902
-
3903
- /* !
3904
- \macro QT_TR_N_NOOP(sourceText)
3905
- \relates <QtGlobal>
3906
- \since 5.12
3907
-
3908
- Marks the UTF-8 encoded string literal \a sourceText for numerator
3909
- dependent delayed translation in the current context (class).
3910
-
3911
- The macro tells lupdate to collect the string, and expands to
3912
- \a sourceText itself.
3913
-
3914
- The macro expands to \a sourceText.
3915
-
3916
- Example:
3917
-
3918
- \snippet code/src_corelib_global_qglobal.cpp qttrnnoop
3919
-
3920
- \sa QT_TR_NOOP, {Internationalization with Qt}
3921
- */
3922
-
3923
- /* !
3924
- \macro QT_TRANSLATE_N_NOOP(context, sourceText)
3925
- \relates <QtGlobal>
3926
- \since 5.12
3927
-
3928
- Marks the UTF-8 encoded string literal \a sourceText for numerator
3929
- dependent delayed translation in the given \a context.
3930
- The \a context is typically a class name and also needs to be
3931
- specified as a string literal.
3932
-
3933
- The macro tells lupdate to collect the string, and expands to
3934
- \a sourceText itself.
3935
-
3936
- Example:
3937
-
3938
- \snippet code/src_corelib_global_qglobal.cpp qttranslatennoop
3939
-
3940
- \sa QT_TRANSLATE_NOOP(), QT_TRANSLATE_N_NOOP3(),
3941
- {Internationalization with Qt}
3942
- */
3943
-
3944
- /* !
3945
- \macro QT_TRANSLATE_N_NOOP3(context, sourceText, comment)
3946
- \relates <QtGlobal>
3947
- \since 5.12
3948
-
3949
- Marks the UTF-8 encoded string literal \a sourceText for numerator
3950
- dependent delayed translation in the given \a context with the given
3951
- \a comment.
3952
- The \a context is typically a class and also needs to be specified
3953
- as a string literal. The string literal \a comment should be
3954
- a short semantic tag to tell apart otherwise identical strings.
3955
-
3956
- The macro tells lupdate to collect the string, and expands to an
3957
- anonymous struct of the two string literals passed as \a sourceText
3958
- and \a comment.
3959
-
3960
- Example:
3961
-
3962
- \snippet code/src_corelib_global_qglobal.cpp qttranslatennoop3
3963
-
3964
- \sa QT_TR_NOOP(), QT_TRANSLATE_NOOP(), QT_TRANSLATE_NOOP3(),
3965
- {Internationalization with Qt}
3966
- */
3967
-
3968
- /* !
3969
- \fn QString qtTrId(const char *id, int n = -1)
3970
- \relates <QtGlobal>
3971
- \reentrant
3972
- \since 4.6
3973
-
3974
- \brief The qtTrId function finds and returns a translated string.
3975
-
3976
- Returns a translated string identified by \a id.
3977
- If no matching string is found, the id itself is returned. This
3978
- should not happen under normal conditions.
3979
-
3980
- If \a n >= 0, all occurrences of \c %n in the resulting string
3981
- are replaced with a decimal representation of \a n. In addition,
3982
- depending on \a n's value, the translation text may vary.
3983
-
3984
- Meta data and comments can be passed as documented for QObject::tr().
3985
- In addition, it is possible to supply a source string template like that:
3986
-
3987
- \tt{//% <C string>}
3988
-
3989
- or
3990
-
3991
- \tt{\\begincomment% <C string> \\endcomment}
3992
-
3993
- Example:
3994
-
3995
- \snippet code/src_corelib_global_qglobal.cpp qttrid
3996
-
3997
- Creating QM files suitable for use with this function requires passing
3998
- the \c -idbased option to the \c lrelease tool.
3999
-
4000
- \warning This method is reentrant only if all translators are
4001
- installed \e before calling this method. Installing or removing
4002
- translators while performing translations is not supported. Doing
4003
- so will probably result in crashes or other undesirable behavior.
4004
-
4005
- \sa QObject::tr(), QCoreApplication::translate(), {Internationalization with Qt}
4006
- */
4007
-
4008
- /* !
4009
- \macro QT_TRID_NOOP(id)
4010
- \relates <QtGlobal>
4011
- \since 4.6
4012
-
4013
- \brief The QT_TRID_NOOP macro marks an id for dynamic translation.
4014
-
4015
- The only purpose of this macro is to provide an anchor for attaching
4016
- meta data like to qtTrId().
4017
-
4018
- The macro expands to \a id.
4019
-
4020
- Example:
4021
-
4022
- \snippet code/src_corelib_global_qglobal.cpp qttrid_noop
4023
-
4024
- \sa qtTrId(), {Internationalization with Qt}
4025
- */
4026
-
4027
- /* !
4028
- \macro QT_TRID_N_NOOP(id)
4029
- \relates <QtGlobal>
4030
- \since 6.3
4031
-
4032
- \brief The QT_TRID_N_NOOP macro marks an id for numerator
4033
- dependent dynamic translation.
4034
-
4035
- The only purpose of this macro is to provide an anchor for attaching
4036
- meta data like to qtTrId().
4037
-
4038
- The macro expands to \a id.
4039
-
4040
- Example:
4041
-
4042
- \snippet code/src_corelib_global_qglobal.cpp qttrid_n_noop
4043
-
4044
- \sa qtTrId(), {Internationalization with Qt}
4045
- */
4046
-
4047
3843
/* !
4048
3844
\macro Q_LIKELY(expr)
4049
3845
\relates <QtGlobal>
0 commit comments