#3587 Split strings in __doc__ blocks to ease translation process
Closed: Fixed None Opened 10 years ago by jfenal.

Following the discussion held on freeipa-devel list in January (https://www.redhat.com/archives/freeipa-devel/2013-January/msg00071.html), is it possible to split those strings beyond 5 lines based on double CR (\n\n)?

File are the following in freeipa/ipalib/plugins:
automember.py
hbacrule.py
sudocmd.py
hbacsvc.py
user.py
selinuxusermap.py
delegation.py
misc.py
group.py
sudocmdgroup.py
host.py
dns.py
trust.py
service.py
selfservice.py
automount.py
pwpolicy.py
hostgroup.py
role.py
permission.py
config.py
passwd.py
hbacsvcgroup.py
cert.py
ping.py
netgroup.py
privilege.py
sudorule.py
krbtpolicy.py
migration.py

Note: the ("""....""") + ("""....""") route cannot work because of the object nature of _() which is a GettextFactory, specific to FreeIPA. And GettextFactory does not have a "+" operator defined, which makes it fail.


One solution would be to add the + operator to our Gettext class.

3.4 development was shifted by one month, moving tickets to reflect reality better.

Adjusting time plan - 3.4 development was postponed as we focused on 3.3.x testing and stabilization.

IPA's Gettext strings now have a working + operator.
The plan is to split long strings when they're changed, so we don't invalidate current translations of the long strings.

master: 56e3e12

Additional splitting:

  • e3b20b9 Split long docstrings that were recently modified

Metadata Update from @jfenal:
- Issue assigned to pviktori
- Issue set to the milestone: FreeIPA 4.0 - 2013/11

7 years ago

Login to comment on this ticket.

Metadata