Ticket #765 (closed defect: fixed)

Opened 2 years ago

Last modified 2 months ago

Localization problems when intergating

Reported by: livibetter Assigned to:
Priority: normal Milestone: 1.0
Component: integration Version: 0.8.3
Severity: normal Keywords:
Cc:

Description

A post shows the problems. Should be fixed in the core.

When integrating, WordPress loads first, then bbPress. libraries stream.php and gettext.php are not the problem. But both l10n.phps are. WordPress loads first, so those functions in l10n.php will be WordPress's version. Then when try to load a .mo will search in WordPress' directories only.

For bbPress Plugins: If it runs load_plugin_textdomain() without path, then the language file may not be found. Maybe a bb_load_plugin_textdomain would be better?

For bbPress own language file: load_default_textdomain won't work for bbPress. First, it uses same textdomain default as WordPress does. Second, even bbPress use different textdomain, the gettext functions __ and _e still can't recognize who is calling it? WordPress or bbPress? A silly solution is to add bb__ and bb_e. But needs to change many codes.

If we can merge bbPress' translation into WordPress' translation in runtime, that might work smoothly. Or modify __ and _e of WordPress, when get default textdomain for searching, search in bbPress' translations first, then WordPress' translation if can't find. But this will need to change WordPress code.

Maybe I just think too much? There is already a quick and simple solution?

Change History

02/29/08 08:58:33 changed by sambauers

  • milestone set to 0.8.5 & XML-RPC.

07/22/08 18:02:41 changed by sambauers

  • status changed from new to closed.
  • resolution set to fixed.

(In [1594]) Merge similarly named gettext domains. Fixes #765 if we can get changes into WordPress as well.

07/22/08 18:17:05 changed by sambauers

(In [1595]) Existing translations take precedence, see #765

05/10/09 11:10:15 changed by

  • milestone deleted.

Milestone 1.0-beta deleted

05/10/09 12:18:19 changed by sambauers

  • milestone set to 1.0.