Changeset 10739 for sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-custom-warnings/wporg-gp-custom-warnings.php
- Timestamp:
- 03/03/2021 03:58:57 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-custom-warnings/wporg-gp-custom-warnings.php
r10733 r10739 121 121 * - The value of translatable/url attributes is excluded from the error message if it's not related to the issue at hand. 122 122 * - Tags are sorted, <em>One</em> <strong>Two</strong> can be translated as <strong>foo</strong> <em>bar</em> without generating warning. 123 * - Japanese can remove `<em>`tags.123 * - East asian languages can remove emphasis/italic tags. 124 124 * - TODO: Tags are not validated to be nested correctly. GlotPress handles this by validating the ordering of the tags remained the same. 125 * - TODO: Extend/abstract the locales which can remove certain tags.126 125 * 127 126 * @param string $original The source string. … … 143 142 } 144 143 145 // Allow Japanese to exclude <em>. TODO: Abstract this / extend it to all languages affected / extend to full list oftags.144 // Allow certain laguages to exclude certain tags. 146 145 if ( count( $original_parts ) > count( $translation_parts ) ) { 147 146 148 147 $languages_without_italics = [ 149 'ja', 150 // 'ko', 'zh', 'zh-hk', 'zh-cn', 'zh-sg', 'zh-tw' ?? 148 'ja', 'ko', 'zh', 'zh-hk', 'zh-cn', 'zh-sg', 'zh-tw' 151 149 ]; 152 150
Note: See TracChangeset
for help on using the changeset viewer.