Changeset 53474
- Timestamp:
- 06/07/2022 05:16:30 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/l10n.php
r53060 r53474 111 111 112 112 /** 113 * Determine the current locale desired for the request.113 * Determines the current locale desired for the request. 114 114 * 115 115 * @since 5.0.0 … … 168 168 169 169 /** 170 * Retrieve the translation of $text.170 * Retrieves the translation of $text. 171 171 * 172 172 * If there is no translation, or the text domain isn't loaded, the original text is returned. … … 214 214 215 215 /** 216 * Remove last item on a pipe-delimited string.216 * Removes last item on a pipe-delimited string. 217 217 * 218 218 * Meant for removing the last item in a string, such as 'Role name|User role'. The original … … 234 234 235 235 /** 236 * Retrieve the translation of $text in the context defined in $context.236 * Retrieves the translation of $text in the context defined in $context. 237 237 * 238 238 * If there is no translation, or the text domain isn't loaded, the original text is returned. … … 283 283 284 284 /** 285 * Retrieve the translation of $text.285 * Retrieves the translation of $text. 286 286 * 287 287 * If there is no translation, or the text domain isn't loaded, the original text is returned. … … 299 299 300 300 /** 301 * Retrieve the translation of $text and escapes it for safe use in an attribute.301 * Retrieves the translation of $text and escapes it for safe use in an attribute. 302 302 * 303 303 * If there is no translation, or the text domain isn't loaded, the original text is returned. … … 315 315 316 316 /** 317 * Retrieve the translation of $text and escapes it for safe use in HTML output.317 * Retrieves the translation of $text and escapes it for safe use in HTML output. 318 318 * 319 319 * If there is no translation, or the text domain isn't loaded, the original text … … 332 332 333 333 /** 334 * Display translated text.334 * Displays translated text. 335 335 * 336 336 * @since 1.2.0 … … 345 345 346 346 /** 347 * Display translated text that has been escaped for safe use in an attribute.347 * Displays translated text that has been escaped for safe use in an attribute. 348 348 * 349 349 * Encodes `< > & " '` (less than, greater than, ampersand, double quote, single quote). … … 363 363 364 364 /** 365 * Display translated text that has been escaped for safe use in HTML output.365 * Displays translated text that has been escaped for safe use in HTML output. 366 366 * 367 367 * If there is no translation, or the text domain isn't loaded, the original text … … 381 381 382 382 /** 383 * Retrieve translated string with gettext context.383 * Retrieves translated string with gettext context. 384 384 * 385 385 * Quite a few times, there will be collisions with similar translatable text … … 402 402 403 403 /** 404 * Display translated string with gettext context.404 * Displays translated string with gettext context. 405 405 * 406 406 * @since 3.0.0 … … 416 416 417 417 /** 418 * Translate string with gettext context, and escapes it for safe use in an attribute.418 * Translates string with gettext context, and escapes it for safe use in an attribute. 419 419 * 420 420 * If there is no translation, or the text domain isn't loaded, the original text … … 434 434 435 435 /** 436 * Translate string with gettext context, and escapes it for safe use in HTML output.436 * Translates string with gettext context, and escapes it for safe use in HTML output. 437 437 * 438 438 * If there is no translation, or the text domain isn't loaded, the original text … … 687 687 688 688 /** 689 * Load a .mo file into the text domain $domain.689 * Loads a .mo file into the text domain $domain. 690 690 * 691 691 * If the text domain already exists, the translations will be merged. If both … … 767 767 768 768 /** 769 * Unload translations for a text domain.769 * Unloads translations for a text domain. 770 770 * 771 771 * @since 3.0.0 … … 819 819 820 820 /** 821 * Load default translated strings based on locale.821 * Loads default translated strings based on locale. 822 822 * 823 823 * Loads the .mo file in WP_LANG_DIR constant path from WordPress root. … … 905 905 906 906 /** 907 * Load the translated strings for a plugin residing in the mu-plugins directory.907 * Loads the translated strings for a plugin residing in the mu-plugins directory. 908 908 * 909 909 * @since 3.0.0 … … 932 932 933 933 /** 934 * Load the theme's translated strings.934 * Loads the theme's translated strings. 935 935 * 936 936 * If the current locale exists as a .mo file in the theme's root directory, it … … 973 973 974 974 /** 975 * Load the child themes translated strings.975 * Loads the child themes translated strings. 976 976 * 977 977 * If the current locale exists as a .mo file in the child themes … … 1300 1300 1301 1301 /** 1302 * Return the Translations instance for a text domain.1302 * Returns the Translations instance for a text domain. 1303 1303 * 1304 1304 * If there isn't one, returns empty Translations instance. … … 1326 1326 1327 1327 /** 1328 * Whether there are translations for the text domain.1328 * Determines whether there are translations for the text domain. 1329 1329 * 1330 1330 * @since 3.0.0 … … 1365 1365 1366 1366 /** 1367 * Get all available languages based on the presence of *.mo files in a given directory.1367 * Gets all available languages based on the presence of *.mo files in a given directory. 1368 1368 * 1369 1369 * The default directory is WP_LANG_DIR. … … 1402 1402 1403 1403 /** 1404 * Get installed translations.1404 * Gets installed translations. 1405 1405 * 1406 1406 * Looks in the wp-content/languages directory for translations of … … 1458 1458 1459 1459 /** 1460 * Extract headers from a PO file.1460 * Extracts headers from a PO file. 1461 1461 * 1462 1462 * @since 3.7.0 … … 1483 1483 1484 1484 /** 1485 * Language selector.1485 * Displays or returns a Language selector. 1486 1486 * 1487 1487 * @since 4.0.0 … … 1713 1713 1714 1714 /** 1715 * Whether switch_to_locale() is in effect.1715 * Determines whether switch_to_locale() is in effect. 1716 1716 * 1717 1717 * @since 4.7.0
Note: See TracChangeset
for help on using the changeset viewer.