Edgewall Software
Modify

Ticket #137 (closed enhancement: fixed)

Opened 4 years ago

Last modified 3 years ago

Support domain gettext calls

Reported by: palgarvio Owned by: cmlenz
Priority: major Milestone: 0.9.4
Component: General Version: devel
Keywords: Cc: trac-ja@…

Description

Since no Translations class provided by python's gettext lib provide domain gettext calls, how about supporting them on our babel.support.Translations?

This would ease plugin based applications to allow their plugins to provide their own translations on a diferent domain for each plugin.

Currently we can only merge catalogs and this might mean overriding a good translation for a bad one.

Attachments

support_domain_calls.patch (3.6 KB) - added by palgarvio 4 years ago.
translations-dgettext.diff (5.1 KB) - added by cmlenz 3 years ago.
Slightly cleaned up patch

Change History

comment:1 Changed 4 years ago by palgarvio

  • Type changed from defect to enhancement

The above patch should solve this ticket.

comment:2 Changed 4 years ago by trac-ja@…

  • Cc trac-ja@… added

Changed 4 years ago by palgarvio

comment:3 Changed 4 years ago by palgarvio

With the latest update to the patch, removed regex dependency.

Changed 3 years ago by cmlenz

Slightly cleaned up patch

comment:4 Changed 3 years ago by cmlenz

  • Status changed from new to closed
  • Resolution set to fixed

Patch applied in [448].

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.