[wp-trac] [WordPress Trac] #19852: Don't load admin strings on the frontend
WordPress Trac
wp-trac at lists.automattic.com
Wed Mar 21 16:53:31 UTC 2012
#19852: Don't load admin strings on the frontend
----------------------------+-----------------------
Reporter: nacin | Owner:
Type: task (blessed) | Status: reopened
Priority: normal | Milestone: 3.4
Component: I18N | Version:
Severity: normal | Resolution:
Keywords: |
----------------------------+-----------------------
Comment (by pavelevap):
Yes, but in 3.3.1 there were much more multisite strings (482). But they
were probably moved to general frontend file? Or where did these strings
(more than 200) gone?
There are also many other strings (usually very long - help text,
confirmation email, etc) which can be found throughout core files. Some
examples (only searching for is_multisite() in several files to find some
of them):
{{{
/wp-admin/users.php: 2
/wp-admin/user-new.php: 12
/wp-admin/user-edit.php: 4
}}}
Is it possible to mark them for example with special multisite textdomain?
Then these strings can be easily located (and .pot generated) and loaded
only for real multisite websites. It is not problem that we will not find
all of them for 3.4. We will find most of them and we can improve
(complete) it in future. It would be really improvement for translators
(no need to translate not needed strings) and mostly for users (load only
needed strings). Conditional loading is a good practice, I guess...
--
Ticket URL: <http://core.trac.wordpress.org/ticket/19852#comment:28>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list