[buddypress-trac] [BuddyPress Trac] #5887: Custom language file does not load in bp_core_load_buddypress_textdomain()
buddypress-trac
noreply at wordpress.org
Tue Oct 7 16:10:14 UTC 2014
#5887: Custom language file does not load in bp_core_load_buddypress_textdomain()
------------------------------------+------------------
Reporter: r-a-y | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 2.2
Component: Core | Version:
Severity: normal | Resolution:
Keywords: has-patch dev-feedback |
------------------------------------+------------------
Comment (by danbp):
My point of view.
akismet, as native WP plugin lives in wp-
content/languages/plugins/akismet.mo
bbpress, as additionnal plugin, lives in wp-content/languages/bbpress
/bbpress-xx_XX.mo
logically
buddypress, as additionnal plugin, should be in wp-
content/languages/buddypress/buddypress-xx_XX.mo
For now, automated update affects wp-content/languages/plugins/buddypress-
xx_XX.mo
This must be cleared first:
Are akismet, bbpress and buddypress plugins or are they so different that
each one has his own direcory. If those plugin translation must be
provided by the same automated process, it is also logic that they
could/should/must be in the same directory.
wp-content/languages/
or
wp-content/languages/plugins
or
wp-content/languages/plugins/plugin_name/
The other problem is the case of a custom translation who doesn't come
from wp translate but who only use the pot file.
So i think we must have a custom folder somewhere.
This custom folder must stay intact to preserve a custom translation, but
must receive the pot, like it was previously with /bp-
languages/buddypress.pot
Not every BP install is using a custom translation, but i think that
responsible of such installs are aware of customization and know how to
handle their work.
The question is not how to use it, but where, to put this customization.
My suggestion:
wp-content/languages/one_of_the_3_option_above/custom/buddypress-xx_XX.mo
with a priority of 1, and if empty/not exist, default to one of the
adopted option.
That way, people who want the default translation are automatically
updated from glotpress and those who want a custom work, receive a pot in
a dedicated custom folder where they can add their custom mo
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5887#comment:14>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list