Changeset View
Changeset View
Standalone View
Standalone View
src/klocalizedstring.h
Show First 20 Lines • Show All 47 Lines • ▼ Show 20 Line(s) | |||||
48 | /** | 48 | /** | ||
49 | * Wrap string with context for extraction. | 49 | * Wrap string with context for extraction. | ||
50 | * | 50 | * | ||
51 | * See \ref i18n_noop for use cases. | 51 | * See \ref i18n_noop for use cases. | ||
52 | */ | 52 | */ | ||
53 | #define I18NC_NOOP(context, text) context, text | 53 | #define I18NC_NOOP(context, text) context, text | ||
54 | #endif | 54 | #endif | ||
55 | 55 | | |||
56 | #if KI18N_ENABLE_DEPRECATED_SINCE(5, 0) | | |||
57 | #ifndef I18N_NOOP2 | 56 | #ifndef I18N_NOOP2 | ||
58 | /** | 57 | /** | ||
59 | * Wrap string with context for extraction, discarding context. | 58 | * Wrap string with context for extraction, discarding context. | ||
59 | * WARNING: this means you'll need to pass the exact same context when calling i18nc() later on. | ||||
60 | * Do not make typos... | ||||
61 | * The preferred solution is to use I18NC_NOOP and store both @p context and @p text. | ||||
62 | * I18NC_NOOP2 exists for cases where storing the context is not possible. | ||||
60 | * | 63 | * | ||
61 | * \deprecated Since 5.0, use \c I18NC_NOOP. | 64 | * \deprecated between 5.0 and 5.64, re-enabled in 5.65 | ||
dfaure: typo: *S*TRIP | |||||
62 | */ | 65 | */ | ||
63 | #define I18N_NOOP2(context, text) text | 66 | #define I18N_NOOP2(context, text) text | ||
64 | #endif | 67 | #endif | ||
65 | 68 | | |||
69 | #if KI18N_ENABLE_DEPRECATED_SINCE(5, 0) | ||||
66 | #ifndef I18N_NOOP2_NOSTRIP | 70 | #ifndef I18N_NOOP2_NOSTRIP | ||
67 | /** | 71 | /** | ||
68 | * Wrap string with context for extraction. | 72 | * Wrap string with context for extraction. | ||
69 | * | 73 | * | ||
70 | * \deprecated Since 5.0, use \c I18NC_NOOP. | 74 | * \deprecated Since 5.0, use \c I18NC_NOOP. | ||
71 | */ | 75 | */ | ||
72 | #define I18N_NOOP2_NOSTRIP(context, text) context, text | 76 | #define I18N_NOOP2_NOSTRIP(context, text) context, text | ||
73 | #endif | 77 | #endif | ||
▲ Show 20 Lines • Show All 1969 Lines • Show Last 20 Lines |
typo: *S*TRIP