WordPress.org

Making WordPress.org

Opened 4 years ago

Last modified 3 years ago

#1352 closed task

Switch translate.wordpress.org to the plugin version of GlotPress — at Version 52

Reported by: ocean90 Owned by: ocean90
Milestone: Priority: highest omg bbq
Component: Translate Site & Plugins Keywords:
Cc:

Description (last modified by ocean90)

Current development: https://github.com/deliciousbrains/GlotPress

ToDo

  • 🚫Update bootstrap of Rosetta
    • 0-load.php: After the SSL include add
      if ( 351 === get_current_blog_id() ) {
      	return;
      }
      
  • ✅Update global header/footer
    • Move gp_head(); on top, before wp_head()
    • Don't call wp_footer() if function_exists( 'gp_footer' )
  • ✅Update templates
    • helper-functions.php: tmpl_load_locations => gp_tmpl_load_locations
    • helper-functions.php:
      wp_enqueue_style( 'wporg', gp_url_ssl( gp_url_public_root() ) . 'gp-templates/style.css', array( 'base' ), '20151003' );
      
      // change to
      wp_register_style( 'wporg-translate', 'https://translate.wordpress.org/gp-templates/style.css', array( 'base' ), '20151003' );
      gp_enqueue_style( 'wporg-translate' );
      
  • ✅Add SVN external for GlotPress
  • ✅Update plugins
    • 🚫common-permissions
    • ✅wporg-help
    • ✅wporg-js-warnings
    • ✅wporg-log-discarded-warnings
    • ✅wporg-log-warnings-to-slack.php
    • 🚫wporg-non-persistent-users.php
    • ✅wporg-plugins.php
    • ✅wporg-project-stats.php
    • ✅wporg-rosetta-roles
    • ✅wporg-routes
    • ✅wporg-specifics.php
    • 🚫wporg-sso
    • 🚫wporg-sso.php
    • ✅wporg-user-stats.php
    • ✅wporg-warnings.php
  • ✅Add SVN externals for ^ plugins
  • ✅Prepare import/export scripts
    • ✅ Plugin Directory: Create/Update/Delete
    • ✅ Plugin Directory: Import translations
    • ✅ Theme Directory
    • ✅ update-originals.sh
    • ✅ Language packs
  • ✅Install wp-cli on sandbox for imports
  • ⬜️ Update/remove nginx rules

Task for Go-Live

  • ✅Change URL of site to translate.wordpress.org
  • ✅Switch cronjob for update-originals.sh to update-originals-wp.sh
  • ⬜️ Switch language packs to use *-wp.sh
  • ✅Update WPORGTRANSLATE_WPCLI to use translate.wordpress.org
  • ⬜️ Switch theme directory to use WP-CLI
  • ⬜️ Switch plugin directory to use WP-CLI
  • ⬜️ Switch cronjob for cache updates to use WP-CLI
  • ⬜️ (Update GLOTPRESS_LOCALES_PATH to use locales.php from the plugin)

Change History (52)

#1 @ocean90
4 years ago

  • Owner set to ocean90
  • Status changed from new to assigned

This ticket was mentioned in Slack in #meta-i18n by sam. View the logs.


3 years ago

#3 @ramiy
3 years ago

  • Cc r_a_m_i@… added

This ticket was mentioned in Slack in #meta-i18n by sam. View the logs.


3 years ago

#5 @ocean90
3 years ago

In 2104:

Translate: Copy "gp-templates" to "gp-templates-new".

"gp-templates-new" is temporary and will be used to apply changes for GlotPress as a plugin.

See #1352.

#6 @ocean90
3 years ago

In 2105:

Translate: Update 'header' and 'helper functions' templates for GlotPress as a plugin.

See #1352.

#7 @ocean90
3 years ago

In 2106:

Translate: Don't call gp_footer() in the new footer.php template.

See #1352.

#8 @ocean90
3 years ago

In 2108:

Translate: Move the wporg-stats-overview plugin into the wporg-routes plugin.

See #1352.

#9 @ocean90
3 years ago

In 2109:

Translate: Convert the GP plugin "wporg-routes" to a WP plugin.

See #1352.

#10 @ocean90
3 years ago

In 2110:

Translate: Convert the GP plugin "wporg-rosetta-roles" to a WP plugin.

See #1352.

#11 @ocean90
3 years ago

In 2111:

Translate: Update routes plugin to use the new rosetta roles WP plugin.

See #1352.

#12 @ocean90
3 years ago

In 2112:

Translate: Convert the GP plugin "wporg-help" to a WP plugin.

See #1352.

#13 @ocean90
3 years ago

In 2113:

Translate: Replace GP::$user->current()->id with is_user_logged_in() in new templates.

See #1352.

#14 @ocean90
3 years ago

In 2114:

Translate: Convert and merge the GP plugins "wporg-user-stats" and "wporg-project-stats" to a WP plugin.

See #1352.

#15 @ocean90
3 years ago

  • Description modified (diff)

#16 @ocean90
3 years ago

  • Description modified (diff)

#17 @ocean90
3 years ago

In 2120:

Translate: Merge the GP plugin "wporg-log-discarded-warnings" into the custom stats WP plugin for GlotPress.

See #1352.

#18 @ocean90
3 years ago

In 2121:

Translate: Add a missing require_once() for stats/discarded-warning.php

See #1352.

#19 @ocean90
3 years ago

In 2123:

Translate: Convert the GP plugin "client-side JS translation validation" to a WP plugin.

See #1352.

#20 @ocean90
3 years ago

  • Description modified (diff)

#21 @ocean90
3 years ago

In 2262:

Translate: Update roles plugin (WP version) to use the new translation_editors table.

See #1240, #1352.

#22 @ocean90
3 years ago

In 2263:

Translate: Use the wp_default_scripts action for replacing the default editor script.

Prevents missing localized data like $gp_editor_options.

See #1352.

#23 @ocean90
3 years ago

In 2264:

Translate: Convert the GP plugin "wporg-warnings" to a WP plugin.

See #1352.

#24 @ocean90
3 years ago

In 2265:

Translate: Convert the GP plugin "wporg-log-warnings-to-slack" to a WP plugin.

See #1352.

#25 @ocean90
3 years ago

  • Description modified (diff)

#26 @ocean90
3 years ago

In 2267:

Translate: Use correct variables for table names.

See #1352.

#27 @ocean90
3 years ago

In 2268:

Translate: Convert the GP plugin "wporg-plugins" to a WP plugin.

See #1352.

#28 @ocean90
3 years ago

In 2269:

Translate: Use correct class names for route handlers.

See #1352.

#29 @ocean90
3 years ago

In 2270:

Translate: Use the template_redirect action for registering custom routes.

At init the query variables aren't initialized, therefore GP::$router->request_uri(); returns "/".

See #1352.

#30 @ocean90
3 years ago

In 2271:

Translate: Convert the GP plugin "wporg-specifics" to a WP plugin.

See #1352.

#31 @ocean90
3 years ago

  • Description modified (diff)

#32 @ocean90
3 years ago

In 2275:

Translate: Update/unify plugin header comments.

See #1352.

#33 @ocean90
3 years ago

In 2278:

Translate: Restore CLI commands for updating cached data.

Available commands:

  • wp wporg-translate update-cache all
  • wp wporg-translate update-cache contributors-count
  • wp wporg-translate update-cache translation-status

See #1352.

#34 @ocean90
3 years ago

In 2279:

Translate: Add the no-js class to the list of body classes.

See #1352.

#35 @ocean90
3 years ago

In 2280:

Translate: Cache the output of GP::$translation_set->existing_locales() for the locales overview.

The underlying query can take up to 3 seconds. :-(

See #1352.

#36 @ocean90
3 years ago

In 2281:

Translate: Use gp_enqueue_script() in the new templates.

See #1352.

#37 @ocean90
3 years ago

In 2285:

Translate: Merge [2253] and [2254] to the new templates.

See #1352.

#38 @ocean90
3 years ago

In 2307:

Translate, Plugin Directory: Open source CLI command for importing plugin translations.

See #1352.

#39 @ocean90
3 years ago

In 2343:

Translate, Plugin Directory: Use the correct argument index for the locale.

See #1352.

#40 @ocean90
3 years ago

In 2344:

Translate, Plugin Directory: Open source CLI command for adding/updating plugin projects.

See #1352.

#41 @ocean90
3 years ago

In 2345:

Translate, Plugin Directory: Open source CLI command to delete plugin projects.

See #1352.

#42 @ocean90
3 years ago

  • Description modified (diff)

#43 @ocean90
3 years ago

In 2348:

Translate: Add missing gp_ prefix to some actions.

See #1352.

#44 @ocean90
3 years ago

In 2360:

Translate: Revert parts of [2348]. These actions don't have a gp_ prefix.

See https://github.com/GlotPress/GlotPress-WP/issues/232.
See #1352.

#45 @ocean90
3 years ago

In 2361:

Translate, Plugin Directory: Reduce number of database queries by fetching all existing sets at once.

See #1352.

#46 @ocean90
3 years ago

In 2367:

Translate, Theme Directory: Open source CLI command for adding/updating theme projects.

See #1352.

#47 @ocean90
3 years ago

In 2656:

Theme Directory: Update CLI command to import themes to translate.w.org via WP CLI.

Commented out until it's live.

See #1352.

#48 @ocean90
3 years ago

  • Description modified (diff)

#49 @ocean90
3 years ago

  • Description modified (diff)

#51 @ocean90
3 years ago

In 2669:

Translate: Fix image URL for project icons.

See #1352.

#52 @ocean90
3 years ago

  • Description modified (diff)
Note: See TracTickets for help on using tickets.