[wp-trac] [WordPress Trac] #41305: Add lazily evaluated translations
WordPress Trac
noreply at wordpress.org
Thu Oct 11 15:13:08 UTC 2018
#41305: Add lazily evaluated translations
-------------------------------------------------+-------------------------
Reporter: schlessera | Owner: jnylen0
Type: enhancement | Status: assigned
Priority: normal | Milestone: 5.0
Component: I18N | Version: 4.8
Severity: normal | Resolution:
Keywords: has-patch early dev-feedback needs- | Focuses: rest-api,
testing | performance
-------------------------------------------------+-------------------------
Comment (by leewillis77):
I've just set up a fresh site (from SVN) to try this out. I checked out
trunk from SVN, applied 41305.3.diff, and then tried to install.
Unfortunately it's been a while since I ran WordPress from an SVN
checkout, and I'd not set things up properly (pointed my document root at
src/, not build/, and not done the npm install && grunt build step).
What should have happened in this case, was that I should have seen the
screen saying "You seem to be running WordPress from the src directory.
WordPress needs to be built and run from the build directory before we can
get started." etc.
However, instead I got the following stack trace:
{{{
PHP Fatal error: Uncaught Error: Class 'WP_Translation_Proxy' not found
in /Users/lee/sites/lazy-repo/trunk/src/wp-includes/l10n.php:203
Stack trace:
#0 /Users/lee/sites/lazy-repo/trunk/src/wp-includes/class-wp-
locale.php(121): __('Sunday')
#1 /Users/lee/sites/lazy-repo/trunk/src/wp-includes/class-wp-
locale.php(104): WP_Locale->init()
#2 /Users/lee/sites/lazy-repo/trunk/src/wp-includes/load.php(1018):
WP_Locale->__construct()
#3 /Users/lee/sites/lazy-repo/trunk/src/index.php(25):
wp_load_translations_early()
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/41305#comment:37>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list