Changeset View
Changeset View
Standalone View
Standalone View
src/catalog/catalog.cpp
Show First 20 Lines • Show All 196 Lines • ▼ Show 20 Line(s) | |||||
197 | QString Catalog::msgid(const DocPosition& pos) const | 197 | QString Catalog::msgid(const DocPosition& pos) const | ||
198 | { | 198 | { | ||
199 | if (Q_UNLIKELY(!m_storage)) | 199 | if (Q_UNLIKELY(!m_storage)) | ||
200 | return QString(); | 200 | return QString(); | ||
201 | 201 | | |||
202 | return m_storage->source(alterForSinglePlural(this, pos)); | 202 | return m_storage->source(alterForSinglePlural(this, pos)); | ||
203 | } | 203 | } | ||
204 | 204 | | |||
205 | QString Catalog::msgidWithPlurals(const DocPosition& pos) const | ||||
206 | { | ||||
207 | if (Q_UNLIKELY(!m_storage)) | ||||
208 | return QString(); | ||||
209 | return m_storage->sourceWithPlurals(pos); | ||||
210 | } | ||||
211 | | ||||
205 | QString Catalog::msgstr(const DocPosition& pos) const | 212 | QString Catalog::msgstr(const DocPosition& pos) const | ||
206 | { | 213 | { | ||
207 | if (Q_UNLIKELY(!m_storage)) | 214 | if (Q_UNLIKELY(!m_storage)) | ||
208 | return QString(); | 215 | return QString(); | ||
209 | 216 | | |||
210 | return m_storage->target(pos); | 217 | return m_storage->target(pos); | ||
211 | } | 218 | } | ||
212 | 219 | | |||
220 | QString Catalog::msgstrWithPlurals(const DocPosition& pos) const | ||||
221 | { | ||||
222 | if (Q_UNLIKELY(!m_storage)) | ||||
223 | return QString(); | ||||
224 | | ||||
225 | return m_storage->targetWithPlurals(pos); | ||||
226 | } | ||||
227 | | ||||
228 | | ||||
213 | CatalogString Catalog::sourceWithTags(const DocPosition& pos) const | 229 | CatalogString Catalog::sourceWithTags(const DocPosition& pos) const | ||
214 | { | 230 | { | ||
215 | if (Q_UNLIKELY(!m_storage)) | 231 | if (Q_UNLIKELY(!m_storage)) | ||
216 | return CatalogString(); | 232 | return CatalogString(); | ||
217 | 233 | | |||
218 | return m_storage->sourceWithTags(alterForSinglePlural(this, pos)); | 234 | return m_storage->sourceWithTags(alterForSinglePlural(this, pos)); | ||
219 | 235 | | |||
220 | } | 236 | } | ||
▲ Show 20 Lines • Show All 833 Lines • Show Last 20 Lines |