Fix some untranslatable commands in Web UI API Browser

There are some missing translatable docstrings of commands and modules.

Fixes: https://pagure.io/freeipa/issue/7592
Reviewed-By: Tibor Dudlak <tdudlak@redhat.com>
This commit is contained in:
Stanislav Levin
2018-06-20 13:29:27 +03:00
committed by Christian Heimes
parent 32ed10caf9
commit c1f7a14c95
4 changed files with 13 additions and 7 deletions

View File

@@ -3550,6 +3550,7 @@ for param in _dns_records:
@register()
class dnsrecord_split_parts(Command):
__doc__ = _('Split DNS record to parts')
NO_CLI = True
takes_args = (

View File

@@ -19,9 +19,6 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
Plugins not accessible directly through the CLI, commands used internally
"""
from ipalib import Command
from ipalib import Str
from ipalib.frontend import Local
@@ -30,6 +27,10 @@ from ipalib.text import _
from ipalib.util import json_serialize
from ipalib.plugable import Registry
__doc__ = _("""
Plugins not accessible directly through the CLI, commands used internally
""")
register = Registry()
@register()

View File

@@ -17,10 +17,6 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
Joining an IPA domain
"""
import logging
import six
@@ -31,6 +27,10 @@ from ipalib import errors
from ipalib import _
from ipaserver.install import installutils
__doc__ = _("""
Joining an IPA domain
""")
if six.PY3:
unicode = str

View File

@@ -9,6 +9,10 @@ from ipalib.request import context
from ipalib.plugable import Registry
from ipalib.text import _
__doc__ = _("""
Session Support for IPA
""")
logger = logging.getLogger(__name__)
register = Registry()