Opened 11 years ago
Closed 11 years ago
#26773 closed enhancement (duplicate)
Proper language system for plugins and themes
Reported by: | Daedalon | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 3.8 |
Component: | Plugins | Keywords: | |
Focuses: | Cc: |
Description
The plugin and theme system needs an overhaul for languages. It's common for any plugin to include dozens of language files, of which users will use on average only one, leading to wasted disk space and bandwidth. This is a pain especially with backups.
How it works now
- User installs a plugin (or theme).
- Numerous languages are downloaded and installed for the plugin.
- Of them, only one will be used.
- The rest of the language files will sit idle, eating disk space. Sometimes over half of the plugin's size.
- Languages for a plugin cannot be automatically updated without a plugin update.
How it should work
- User installs a plugin (or theme).
- WordPress downloads only the needed language files. For this, wordpress.org has provided a standardized way to host them at e.g. Trac.
- No disk space wasted.
- No bandwidth wasted.
- WordPress checks periodically if any plugin or theme has updates for the used language(s).
References
http://wordpress.org/support/topic/reduce-plugin-size-download-only-needed-languages
http://wordpress.org/support/topic/reduce-plugin-size-download-only-needed-languages-1
Change History (6)
#2
@
11 years ago
- Cc info@… added
WP SlimStat already implements all the prerequisites described in Otto's article (with the exception of the folder name, which is 'lang' and not 'languages', for us). However it's still unclear to me where the language files should be uploaded for the user's system to download the necessary files. Hopefully this will be developed/completed in WP 3.9. We would love to implement this functionality in our plugin.
#3
follow-up:
↓ 5
@
11 years ago
WordPress doesn't have a standardized way of hosting this yet. At least from GlotPress (used on http://translate.wordpress.org) a lot of ground work still need to be done.
I also believe this ticket can be closed since the ground work in core is already done but I can be wrong about that.
#5
in reply to:
↑ 3
;
follow-up:
↓ 6
@
11 years ago
Replying to markoheijnen:
I also believe this ticket can be closed since the ground work in core is already done but I can be wrong about that.
Should we open a ticket for the 'hosting' piece, then? This ticket mentions it.
Also, while waiting for WP.org to implement a repo system, is there a way for plugin developers to point the updater to a third-party repo to check for updates?
#6
in reply to:
↑ 5
@
11 years ago
- Milestone WordPress.org deleted
- Resolution set to duplicate
- Status changed from new to closed
Replying to coolmann:
Also, while waiting for WP.org to implement a repo system, is there a way for plugin developers to point the updater to a third-party repo to check for updates?
Hypothetically by filtering the API response. I'm closing this out as #18200 handled this and we're working on the WP.org side of things during 3.9.
The first steps are already done, see #18200 and http://ottopress.com/2013/language-packs-101-prepwork/.