| 1 |
<?php |
| 2 |
/** |
| 3 |
* Do not edit this file. It's generated by `jetpack/tools/build-module-headings-translations.php`. |
| 4 |
* |
| 5 |
* @package automattic/jetpack |
| 6 |
*/ |
| 7 |
|
| 8 |
// Pointless to do two passes over everything just for alignment. |
| 9 |
// phpcs:disable WordPress.Arrays.MultipleStatementAlignment.DoubleArrowNotAligned |
| 10 |
|
| 11 |
/** |
| 12 |
* For a given module, return an array with translated name and description. |
| 13 |
* |
| 14 |
* @param string $key Module file name without `.php`. |
| 15 |
* |
| 16 |
* @return array |
| 17 |
*/ |
| 18 |
function jetpack_get_module_i18n( $key ) { |
| 19 |
static $modules; |
| 20 |
if ( ! isset( $modules ) ) { |
| 21 |
$modules = array( |
| 22 |
'carousel' => array( |
| 23 |
'name' => _x( 'Carousel', 'Module Name', 'jetpack' ), |
| 24 |
'description' => _x( 'Display images and galleries in a gorgeous, full-screen browsing experience', 'Module Description', 'jetpack' ), |
| 25 |
), |
| 26 |
|
| 27 |
'comment-likes' => array( |
| 28 |
'name' => _x( 'Comment Likes', 'Module Name', 'jetpack' ), |
| 29 |
'description' => _x( 'Increase visitor engagement by adding a Like button to comments.', 'Module Description', 'jetpack' ), |
| 30 |
), |
| 31 |
|
| 32 |
'comments' => array( |
| 33 |
'name' => _x( 'Comments', 'Module Name', 'jetpack' ), |
| 34 |
'description' => _x( 'Let visitors use a WordPress.com, Twitter, Facebook, or Google account to comment', 'Module Description', 'jetpack' ), |
| 35 |
), |
| 36 |
|
| 37 |
'contact-form' => array( |
| 38 |
'name' => _x( 'Contact Form', 'Module Name', 'jetpack' ), |
| 39 |
'description' => _x( 'Add a customizable contact form to any post or page using the Jetpack Form Block.', 'Module Description', 'jetpack' ), |
| 40 |
), |
| 41 |
|
| 42 |
'copy-post' => array( |
| 43 |
'name' => _x( 'Copy Post', 'Module Name', 'jetpack' ), |
| 44 |
'description' => _x( 'Enable the option to copy entire posts and pages, including tags and settings', 'Module Description', 'jetpack' ), |
| 45 |
), |
| 46 |
|
| 47 |
'custom-content-types' => array( |
| 48 |
'name' => _x( 'Custom content types', 'Module Name', 'jetpack' ), |
| 49 |
'description' => _x( 'Display different types of content on your site with custom content types.', 'Module Description', 'jetpack' ), |
| 50 |
), |
| 51 |
|
| 52 |
'custom-css' => array( |
| 53 |
'name' => _x( 'Custom CSS', 'Module Name', 'jetpack' ), |
| 54 |
'description' => _x( 'Adds options for CSS preprocessor use, disabling the theme\'s CSS, or custom image width.', 'Module Description', 'jetpack' ), |
| 55 |
), |
| 56 |
|
| 57 |
'enhanced-distribution' => array( |
| 58 |
'name' => _x( 'Enhanced Distribution', 'Module Name', 'jetpack' ), |
| 59 |
'description' => _x( 'Increase reach and traffic.', 'Module Description', 'jetpack' ), |
| 60 |
), |
| 61 |
|
| 62 |
'google-analytics' => array( |
| 63 |
'name' => _x( 'Google Analytics', 'Module Name', 'jetpack' ), |
| 64 |
'description' => _x( 'Set up Google Analytics without touching a line of code.', 'Module Description', 'jetpack' ), |
| 65 |
), |
| 66 |
|
| 67 |
'gravatar-hovercards' => array( |
| 68 |
'name' => _x( 'Gravatar Hovercards', 'Module Name', 'jetpack' ), |
| 69 |
'description' => _x( 'Enable pop-up business cards over commenters’ Gravatars.', 'Module Description', 'jetpack' ), |
| 70 |
), |
| 71 |
|
| 72 |
'infinite-scroll' => array( |
| 73 |
'name' => _x( 'Infinite Scroll', 'Module Name', 'jetpack' ), |
| 74 |
'description' => _x( 'Automatically load new content when a visitor scrolls', 'Module Description', 'jetpack' ), |
| 75 |
), |
| 76 |
|
| 77 |
'json-api' => array( |
| 78 |
'name' => _x( 'JSON API', 'Module Name', 'jetpack' ), |
| 79 |
'description' => _x( 'Allow applications to securely access your content.', 'Module Description', 'jetpack' ), |
| 80 |
), |
| 81 |
|
| 82 |
'latex' => array( |
| 83 |
'name' => _x( 'Beautiful Math', 'Module Name', 'jetpack' ), |
| 84 |
'description' => _x( 'Use the LaTeX markup language to write mathematical equations and formulas', 'Module Description', 'jetpack' ), |
| 85 |
), |
| 86 |
|
| 87 |
'lazy-images' => array( |
| 88 |
'name' => _x( 'Lazy Images', 'Module Name', 'jetpack' ), |
| 89 |
'description' => _x( 'Speed up your site and create a smoother viewing experience by loading images as visitors scroll down the screen, instead of all at once.', 'Module Description', 'jetpack' ), |
| 90 |
), |
| 91 |
|
| 92 |
'likes' => array( |
| 93 |
'name' => _x( 'Likes', 'Module Name', 'jetpack' ), |
| 94 |
'description' => _x( 'Give visitors an easy way to show they appreciate your content.', 'Module Description', 'jetpack' ), |
| 95 |
), |
| 96 |
|
| 97 |
'markdown' => array( |
| 98 |
'name' => _x( 'Markdown', 'Module Name', 'jetpack' ), |
| 99 |
'description' => _x( 'Write posts or pages in plain-text Markdown syntax', 'Module Description', 'jetpack' ), |
| 100 |
), |
| 101 |
|
| 102 |
'masterbar' => array( |
| 103 |
'name' => _x( 'WordPress.com Toolbar and Dashboard customizations', 'Module Name', 'jetpack' ), |
| 104 |
'description' => _x( 'Replaces the admin bar with a useful toolbar to quickly manage your site via WordPress.com. Also adds additional customizations to the WPAdmin dashboard experience for better compatibility with WP.com.', 'Module Description', 'jetpack' ), |
| 105 |
), |
| 106 |
|
| 107 |
'monitor' => array( |
| 108 |
'name' => _x( 'Monitor', 'Module Name', 'jetpack' ), |
| 109 |
'description' => _x( 'Jetpack’s downtime monitoring will continuously watch your site and alert you the moment that downtime is detected.', 'Module Description', 'jetpack' ), |
| 110 |
), |
| 111 |
|
| 112 |
'notes' => array( |
| 113 |
'name' => _x( 'Notifications', 'Module Name', 'jetpack' ), |
| 114 |
'description' => _x( 'Receive instant notifications of site comments and likes.', 'Module Description', 'jetpack' ), |
| 115 |
), |
| 116 |
|
| 117 |
'photon-cdn' => array( |
| 118 |
'name' => _x( 'Asset CDN', 'Module Name', 'jetpack' ), |
| 119 |
'description' => _x( 'Jetpack’s Site Accelerator loads your site faster by optimizing your images and serving your images and static files from our global network of servers.', 'Module Description', 'jetpack' ), |
| 120 |
), |
| 121 |
|
| 122 |
'photon' => array( |
| 123 |
'name' => _x( 'Image CDN', 'Module Name', 'jetpack' ), |
| 124 |
'description' => _x( 'Mirrors and serves your images from our free and fast image CDN, improving your site’s performance with no additional load on your servers.', 'Module Description', 'jetpack' ), |
| 125 |
), |
| 126 |
|
| 127 |
'post-by-email' => array( |
| 128 |
'name' => _x( 'Post by email', 'Module Name', 'jetpack' ), |
| 129 |
'description' => _x( 'Publish posts by sending an email', 'Module Description', 'jetpack' ), |
| 130 |
), |
| 131 |
|
| 132 |
'protect' => array( |
| 133 |
'name' => _x( 'Protect', 'Module Name', 'jetpack' ), |
| 134 |
'description' => _x( 'Enabling brute force protection will prevent bots and hackers from attempting to log in to your website with common username and password combinations.', 'Module Description', 'jetpack' ), |
| 135 |
), |
| 136 |
|
| 137 |
'publicize' => array( |
| 138 |
'name' => _x( 'Publicize', 'Module Name', 'jetpack' ), |
| 139 |
'description' => _x( 'Publicize makes it easy to share your site’s posts on several social media networks automatically when you publish a new post.', 'Module Description', 'jetpack' ), |
| 140 |
), |
| 141 |
|
| 142 |
'related-posts' => array( |
| 143 |
'name' => _x( 'Related posts', 'Module Name', 'jetpack' ), |
| 144 |
'description' => _x( 'Keep visitors engaged on your blog by highlighting relevant and new content at the bottom of each published post.', 'Module Description', 'jetpack' ), |
| 145 |
), |
| 146 |
|
| 147 |
'search' => array( |
| 148 |
'name' => _x( 'Search', 'Module Name', 'jetpack' ), |
| 149 |
'description' => _x( 'Help visitors quickly find answers with highly relevant instant search results and powerful filtering.', 'Module Description', 'jetpack' ), |
| 150 |
), |
| 151 |
|
| 152 |
'seo-tools' => array( |
| 153 |
'name' => _x( 'SEO Tools', 'Module Name', 'jetpack' ), |
| 154 |
'description' => _x( 'Better results on search engines and social media.', 'Module Description', 'jetpack' ), |
| 155 |
), |
| 156 |
|
| 157 |
'sharedaddy' => array( |
| 158 |
'name' => _x( 'Sharing', 'Module Name', 'jetpack' ), |
| 159 |
'description' => _x( 'Add Twitter, Facebook and Google+ buttons at the bottom of each post, making it easy for visitors to share your content.', 'Module Description', 'jetpack' ), |
| 160 |
), |
| 161 |
|
| 162 |
'shortcodes' => array( |
| 163 |
'name' => _x( 'Shortcode Embeds', 'Module Name', 'jetpack' ), |
| 164 |
'description' => _x( 'Shortcodes are WordPress-specific markup that let you add media from popular sites. This feature is no longer necessary as the editor now handles media embeds rather gracefully.', 'Module Description', 'jetpack' ), |
| 165 |
), |
| 166 |
|
| 167 |
'shortlinks' => array( |
| 168 |
'name' => _x( 'WP.me Shortlinks', 'Module Name', 'jetpack' ), |
| 169 |
'description' => _x( 'Generates shorter links using the wp.me domain.', 'Module Description', 'jetpack' ), |
| 170 |
), |
| 171 |
|
| 172 |
'sitemaps' => array( |
| 173 |
'name' => _x( 'Sitemaps', 'Module Name', 'jetpack' ), |
| 174 |
'description' => _x( 'Make it easy for search engines to find your site.', 'Module Description', 'jetpack' ), |
| 175 |
), |
| 176 |
|
| 177 |
'sso' => array( |
| 178 |
'name' => _x( 'Secure Sign On', 'Module Name', 'jetpack' ), |
| 179 |
'description' => _x( 'Allow users to log in to this site using WordPress.com accounts', 'Module Description', 'jetpack' ), |
| 180 |
), |
| 181 |
|
| 182 |
'stats' => array( |
| 183 |
'name' => _x( 'Site Stats', 'Module Name', 'jetpack' ), |
| 184 |
'description' => _x( 'Collect valuable traffic stats and insights.', 'Module Description', 'jetpack' ), |
| 185 |
), |
| 186 |
|
| 187 |
'subscriptions' => array( |
| 188 |
'name' => _x( 'Subscriptions', 'Module Name', 'jetpack' ), |
| 189 |
'description' => _x( 'Let visitors subscribe to new posts and comments via email', 'Module Description', 'jetpack' ), |
| 190 |
), |
| 191 |
|
| 192 |
'tiled-gallery' => array( |
| 193 |
'name' => _x( 'Tiled Galleries', 'Module Name', 'jetpack' ), |
| 194 |
'description' => _x( 'Display image galleries in a variety of elegant arrangements.', 'Module Description', 'jetpack' ), |
| 195 |
), |
| 196 |
|
| 197 |
'vaultpress' => array( |
| 198 |
'name' => _x( 'Backups and Scanning', 'Module Name', 'jetpack' ), |
| 199 |
'description' => _x( 'Protect your site with daily or real-time backups and automated virus scanning and threat detection.', 'Module Description', 'jetpack' ), |
| 200 |
), |
| 201 |
|
| 202 |
'verification-tools' => array( |
| 203 |
'name' => _x( 'Site verification', 'Module Name', 'jetpack' ), |
| 204 |
'description' => _x( 'Establish your site\'s authenticity with external services.', 'Module Description', 'jetpack' ), |
| 205 |
), |
| 206 |
|
| 207 |
'videopress' => array( |
| 208 |
'name' => _x( 'VideoPress', 'Module Name', 'jetpack' ), |
| 209 |
'description' => _x( 'Save on hosting storage and bandwidth costs by streaming fast, ad-free video from our global network.', 'Module Description', 'jetpack' ), |
| 210 |
), |
| 211 |
|
| 212 |
'widget-visibility' => array( |
| 213 |
'name' => _x( 'Widget Visibility', 'Module Name', 'jetpack' ), |
| 214 |
'description' => _x( 'Control where widgets appear on your site.', 'Module Description', 'jetpack' ), |
| 215 |
), |
| 216 |
|
| 217 |
'widgets' => array( |
| 218 |
'name' => _x( 'Extra Sidebar Widgets', 'Module Name', 'jetpack' ), |
| 219 |
'description' => _x( 'Provides additional widgets for use on your site.', 'Module Description', 'jetpack' ), |
| 220 |
), |
| 221 |
|
| 222 |
'woocommerce-analytics' => array( |
| 223 |
'name' => _x( 'WooCommerce Analytics', 'Module Name', 'jetpack' ), |
| 224 |
'description' => _x( 'Enhanced analytics for WooCommerce and Jetpack users.', 'Module Description', 'jetpack' ), |
| 225 |
), |
| 226 |
|
| 227 |
'wordads' => array( |
| 228 |
'name' => _x( 'Ads', 'Module Name', 'jetpack' ), |
| 229 |
'description' => _x( 'Earn income by allowing Jetpack to display high quality ads.', 'Module Description', 'jetpack' ), |
| 230 |
), |
| 231 |
); |
| 232 |
} |
| 233 |
return $modules[ $key ]; |
| 234 |
} |
| 235 |
|
| 236 |
// The lists of filenames below shouldn't be arbitrarily punctuated, but the sniff triggers anyway. |
| 237 |
// phpcs:disable Squiz.Commenting.InlineComment.InvalidEndChar |
| 238 |
|
| 239 |
/** |
| 240 |
* For a given module tag, return its translated version. |
| 241 |
* |
| 242 |
* @param string $key Module tag as is in each module heading. |
| 243 |
* |
| 244 |
* @return string |
| 245 |
*/ |
| 246 |
function jetpack_get_module_i18n_tag( $key ) { |
| 247 |
static $module_tags; |
| 248 |
if ( ! isset( $module_tags ) ) { |
| 249 |
$module_tags = array( |
| 250 |
// Modules with `Other` tag: |
| 251 |
// - modules/contact-form.php |
| 252 |
// - modules/notes.php |
| 253 |
// - modules/woocommerce-analytics.php |
| 254 |
'Other' => _x( 'Other', 'Module Tag', 'jetpack' ), |
| 255 |
|
| 256 |
// Modules with `Photos and Videos` tag: |
| 257 |
// - modules/carousel.php |
| 258 |
// - modules/photon-cdn.php |
| 259 |
// - modules/photon.php |
| 260 |
// - modules/shortcodes.php |
| 261 |
// - modules/tiled-gallery.php |
| 262 |
// - modules/videopress.php |
| 263 |
'Photos and Videos' => _x( 'Photos and Videos', 'Module Tag', 'jetpack' ), |
| 264 |
|
| 265 |
// Modules with `Social` tag: |
| 266 |
// - modules/comment-likes.php |
| 267 |
// - modules/comments.php |
| 268 |
// - modules/gravatar-hovercards.php |
| 269 |
// - modules/likes.php |
| 270 |
// - modules/publicize.php |
| 271 |
// - modules/seo-tools.php |
| 272 |
// - modules/sharedaddy.php |
| 273 |
// - modules/shortcodes.php |
| 274 |
// - modules/shortlinks.php |
| 275 |
// - modules/subscriptions.php |
| 276 |
// - modules/widgets.php |
| 277 |
'Social' => _x( 'Social', 'Module Tag', 'jetpack' ), |
| 278 |
|
| 279 |
// Modules with `Writing` tag: |
| 280 |
// - modules/copy-post.php |
| 281 |
// - modules/custom-content-types.php |
| 282 |
// - modules/enhanced-distribution.php |
| 283 |
// - modules/json-api.php |
| 284 |
// - modules/latex.php |
| 285 |
// - modules/markdown.php |
| 286 |
// - modules/post-by-email.php |
| 287 |
// - modules/shortcodes.php |
| 288 |
'Writing' => _x( 'Writing', 'Module Tag', 'jetpack' ), |
| 289 |
|
| 290 |
// Modules with `Appearance` tag: |
| 291 |
// - modules/custom-css.php |
| 292 |
// - modules/gravatar-hovercards.php |
| 293 |
// - modules/infinite-scroll.php |
| 294 |
// - modules/lazy-images.php |
| 295 |
// - modules/photon-cdn.php |
| 296 |
// - modules/photon.php |
| 297 |
// - modules/seo-tools.php |
| 298 |
// - modules/shortcodes.php |
| 299 |
// - modules/widget-visibility.php |
| 300 |
// - modules/widgets.php |
| 301 |
// - modules/wordads.php |
| 302 |
'Appearance' => _x( 'Appearance', 'Module Tag', 'jetpack' ), |
| 303 |
|
| 304 |
// Modules with `Developers` tag: |
| 305 |
// - modules/json-api.php |
| 306 |
// - modules/sso.php |
| 307 |
'Developers' => _x( 'Developers', 'Module Tag', 'jetpack' ), |
| 308 |
|
| 309 |
// Modules with `Recommended` tag: |
| 310 |
// - modules/lazy-images.php |
| 311 |
// - modules/monitor.php |
| 312 |
// - modules/photon-cdn.php |
| 313 |
// - modules/photon.php |
| 314 |
// - modules/protect.php |
| 315 |
// - modules/publicize.php |
| 316 |
// - modules/related-posts.php |
| 317 |
// - modules/sharedaddy.php |
| 318 |
// - modules/sitemaps.php |
| 319 |
// - modules/stats.php |
| 320 |
// - modules/woocommerce-analytics.php |
| 321 |
'Recommended' => _x( 'Recommended', 'Module Tag', 'jetpack' ), |
| 322 |
|
| 323 |
// Modules with `General` tag: |
| 324 |
// - modules/masterbar.php |
| 325 |
'General' => _x( 'General', 'Module Tag', 'jetpack' ), |
| 326 |
|
| 327 |
// Modules with `Traffic` tag: |
| 328 |
// - modules/sitemaps.php |
| 329 |
// - modules/wordads.php |
| 330 |
'Traffic' => _x( 'Traffic', 'Module Tag', 'jetpack' ), |
| 331 |
|
| 332 |
// Modules with `Site Stats` tag: |
| 333 |
// - modules/stats.php |
| 334 |
'Site Stats' => _x( 'Site Stats', 'Module Tag', 'jetpack' ), |
| 335 |
); |
| 336 |
} |
| 337 |
return ! empty( $module_tags[ $key ] ) ? $module_tags[ $key ] : ''; |
| 338 |
} |
| 339 |
|