update french translation

This commit is contained in:
2013-07-17 22:30:35 +02:00
parent 8056387f02
commit 15ac8c2872
6 changed files with 575 additions and 269 deletions

View File

@ -63,7 +63,7 @@ def carry_out_calculation(name, config, callback, callback_params, index=None):
len_value = len(opt_value)
if len_multi != 0 and len_multi != len_value:
raise ConfigError(_('unable to carry out a '
'calculation, option values with'
'calculation, option value with'
' multi types must have same '
'length for: {0}').format(name))
len_multi = len_value

View File

@ -151,7 +151,7 @@ class SubConfig(BaseInformation):
def cfgimpl_get_description(self):
if self._impl_descr is None:
raise ConfigError(_('no optiondescription for this config (may be MetaConfig without meta)'))
raise ConfigError(_('no optiondescription for this config (may be metaconfig without meta)'))
else:
return self._impl_descr
@ -526,12 +526,12 @@ class MetaConfig(CommonConfig):
if meta:
for child in children:
if not isinstance(child, CommonConfig):
raise ValueError(_("metaconfig's children must be Config, not {0}"
raise ValueError(_("metaconfig's children must be config, not {0}"
"".format(type(child))))
if self._impl_descr is None:
self._impl_descr = child.cfgimpl_get_description()
elif not self._impl_descr is child.cfgimpl_get_description():
raise ValueError(_('all config in MetaConfig must have same '
raise ValueError(_('all config in metaconfig must have same '
'optiondescription'))
if child.cfgimpl_get_meta() is not None:
raise ValueError(_("child has already a metaconfig's"))

View File

@ -67,7 +67,7 @@ class BaseInformation(object):
try:
self._impl_informations[key] = value
except AttributeError:
raise AttributeError(_('{0} instance has no attribute '
raise AttributeError(_('{0} has no attribute '
'impl_set_information').format(self.__class__.__name__))
def impl_get_information(self, key, default=None):
@ -83,7 +83,7 @@ class BaseInformation(object):
else:
raise ValueError(_("Information's item not found: {0}").format(key))
except AttributeError:
raise AttributeError(_('{0} instance has no attribute '
raise AttributeError(_('{0} has no attribute '
'impl_get_information').format(self.__class__.__name__))
@ -147,7 +147,7 @@ class Option(BaseInformation):
raise ValueError(_("invalid default_multi value {0} "
"for option {1}: {2}").format(str(default_multi), name, err))
if callback is not None and (default is not None or default_multi is not None):
raise ValueError(_("defaut values not allowed if option: {0} "
raise ValueError(_("default value not allowed if option: {0} "
"is calculated").format(name))
if callback is None and callback_params is not None:
raise ValueError(_("params defined for a callback function but "
@ -271,7 +271,7 @@ class Option(BaseInformation):
return True
if not val_validator(_value):
raise ValueError(_("invalid value {0} for option {1} for object {2}"
"").format(_value, self._name, self.__class__))
"").format(_value, self._name, self.__class__.__name__))
try:
self._validate(_value)
except ValueError, err:
@ -606,15 +606,15 @@ class NetmaskOption(Option):
except ValueError:
if not make_net:
msg = _("invalid network {0} ({1}) with netmask {2} ({3}),"
" this network is an ip")
" this network is an IP")
else:
if make_net:
msg = _("invalid ip {0} ({1}) with netmask {2} ({3}),"
" this ip is a network")
msg = _("invalid IP {0} ({1}) with netmask {2} ({3}),"
" this IP is a network")
except ValueError:
if make_net:
msg = _("invalid ip {0} ({1}) with netmask {2} ({3})")
msg = _("invalid IP {0} ({1}) with netmask {2} ({3})")
else:
msg = _("invalid network {0} ({1}) with netmask {2} ({3})")
if msg is not None:
@ -687,11 +687,11 @@ class OptionDescription(BaseInformation):
def __init__(self, name, doc, children, requires=None, properties=None):
"""
:param children: a list of options (including option descriptions)
:param children: a list of options (including optiondescriptions)
"""
if not valid_name(name):
raise ValueError(_("invalid name: {0} for option descr").format(name))
raise ValueError(_("invalid name: {0} for optiondescription").format(name))
self._name = name
self._impl_informations = {}
self.impl_set_information('doc', doc)
@ -852,8 +852,8 @@ class OptionDescription(BaseInformation):
child._master_slaves = master
child._multitype = multitypes.slave
if not identical_master_child_name:
raise ValueError(_("the master group: {0} has not any "
"master child").format(self._name))
raise ValueError(_("no child has same nom has master group "
"for: {0}").format(self._name))
else:
raise ValueError(_('not allowed group_type : {0}').format(group_type))

View File

@ -42,12 +42,12 @@ class _const:
def __setattr__(self, name, value):
if name in self.__dict__:
raise self.ConstError, _("Can't rebind group ({})").format(name)
raise self.ConstError, _("can't rebind group ({})").format(name)
self.__dict__[name] = value
def __delattr__(self, name):
if name in self.__dict__:
raise self.ConstError, _("Can't unbind group ({})").format(name)
raise self.ConstError, _("can't unbind group ({})").format(name)
raise ValueError(name)