Commit 91e86f51 authored by Kuato's avatar Kuato
Browse files

traduction et correcion de bugs

parent 8c620b5c
# Spanish translations for PACKAGE package.
# Copyright (C) 2013 ORGANIZATION
# Administrador <EMAIL@ADDRESS>, 2013.
#
msgid ""
msgstr ""
"Project-Id-Version: Pyromaths 13.03\n"
"POT-Creation-Date: 2013-06-06 19:12+Hora de verano romance\n"
"PO-Revision-Date: 2013-06-08 21:41+0100\n"
"Last-Translator: Jose Antonio Martinez Chico <jkuato@hotmail.com>\n"
"Language-Team: Jérôme Ortais <jerome.ortais@pyromaths.org>\n"
"Language: spanish\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: pygettext.py 1.5\n"
"X-Generator: Poedit 1.5.5\n"
"X-Poedit-SourceCharset: UTF-8\n"
#: Fractions.py:59
msgid "\\dfrac{%s_{\\times %s}}{%s_{\\times %s}}"
msgstr "\\dfrac{%s_{\\cdot %s}}{%s_{\\cdot %s}}"
#: Fractions.py:78 Fractions.py:79
msgid "%s \\times \\cancel{%s}"
msgstr "%s \\cdot \\cancel{%s}"
#: Fractions.py:84 Fractions.py:85
msgid "%s \\times \\bcancel{%s}"
msgstr "%s \\cdot \\bcancel{%s}"
#: Fractions.py:89
msgid "%s \\times %s"
msgstr "%s \\, \\cdot \\, %s"
#: Fractions.py:98
msgid "\\dfrac{%s_{\\times \\cancel %s}}{%s_{\\times \\cancel %s}}"
msgstr "\\dfrac{%s_{\\cdot \\cancel %s}}{%s_{\\cdot \\cancel %s}}"
#: Fractions.py:204
msgid "La fraction n'est pas un nombre entier !"
msgstr "La fracción no es un número entero !"
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR ORGANIZATION
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"POT-Creation-Date: 2013-06-08 18:55+Hora de verano romance\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=CHARSET\n"
"Content-Transfer-Encoding: ENCODING\n"
"Generated-By: pygettext.py 1.5\n"
#: Fractions.py:59
msgid "\\dfrac{%s_{\\times %s}}{%s_{\\times %s}}"
msgstr ""
#: Fractions.py:78 Fractions.py:79
msgid "%s \\times \\cancel{%s}"
msgstr ""
#: Fractions.py:84 Fractions.py:85
msgid "%s \\times \\bcancel{%s}"
msgstr ""
#: Fractions.py:89
msgid "%s \\times %s"
msgstr ""
#: Fractions.py:98
msgid "\\dfrac{%s_{\\times \\cancel %s}}{%s_{\\times \\cancel %s}}"
msgstr ""
#: Fractions.py:204
msgid "La fraction n'est pas un nombre entier !"
msgstr ""
......@@ -56,7 +56,7 @@ class Fractions:
(self.n, self.d) = ((self.n * abs(self.d)) // self.d, abs(self.d))
if self.n:
if coef and coef != 1:
text = "\\dfrac{%s_{\\times %s}}{%s_{\\times %s}}" % (self.n,
text = _("\\dfrac{%s_{\\times %s}}{%s_{\\times %s}}") % (self.n,
coef, self.d, coef)
elif self.d != 1:
text = "\\dfrac{%s}{%s}" % (self.n, self.d)
......@@ -75,18 +75,18 @@ class Fractions:
c2 = abs(Arithmetique.pgcd(self.d, fraction.n))
simplifiable = 0 # permet de savoir si on a simplifiée le produit
if c1 > 1:
n1 = "%s \\times \\cancel{%s}" % (self.n // c1, c1)
d2 = "%s \\times \\cancel{%s}" % (fraction.d // c1, c1)
n1 = _("%s \\times \\cancel{%s}") % (self.n // c1, c1)
d2 = _("%s \\times \\cancel{%s}") % (fraction.d // c1, c1)
else:
n1 = self.n
d2 = fraction.d
if c2 > 1:
d1 = "%s \\times \\bcancel{%s}" % (self.d // c2, c2)
n2 = "%s \\times \\bcancel{%s}" % (fraction.n // c2, c2)
d1 = _("%s \\times \\bcancel{%s}") % (self.d // c2, c2)
n2 = _("%s \\times \\bcancel{%s}") % (fraction.n // c2, c2)
else:
d1 = self.d
n2 = fraction.n
return "%s \\times %s" % (Fractions.TeX(Fractions(n1, d1), signe=
return _("%s \\times %s") % (Fractions.TeX(Fractions(n1, d1), signe=
None), Fractions.TeX(Fractions(n2, d2),
signe=None))
......@@ -95,7 +95,7 @@ class Fractions:
coef = abs(self.n // frs.n)
if coef > 1:
texte = \
"\\dfrac{%s_{\\times \\cancel %s}}{%s_{\\times \\cancel %s}}" % \
_("\\dfrac{%s_{\\times \\cancel %s}}{%s_{\\times \\cancel %s}}") % \
(self.n // coef, coef, self.d // coef, coef)
else:
texte = Fractions.TeX(self, signe=None)
......@@ -201,7 +201,7 @@ class Fractions:
def __int__(self):
try:
assert (self.n / self.d == int(self.n / self.d)), 'La fraction n\'est pas un nombre entier !'
assert (self.n / self.d == int(self.n / self.d)), _('La fraction n\'est pas un nombre entier !')
return int(self.n)
except AssertionError, args:
print '%s: %s' % (args.__class__.__name__, args)
......
# Spanish translations for PACKAGE package.
# Copyright (C) 2013 ORGANIZATION
# Administrador <EMAIL@ADDRESS>, 2013.
#
msgid ""
msgstr ""
"Project-Id-Version: Pyromaths 13.03\n"
"POT-Creation-Date: 2013-06-06 19:12+Hora de verano romance\n"
"PO-Revision-Date: 2013-06-08 19:03+0100\n"
"Last-Translator: Jose Antonio Martinez Chico <jkuato@hotmail.com>\n"
"Language-Team: Jérôme Ortais <jerome.ortais@pyromaths.org>\n"
"Language: spanish\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: pygettext.py 1.5\n"
"X-Generator: Poedit 1.5.5\n"
"X-Poedit-SourceCharset: UTF-8\n"
#: Polynome.py:227
msgid "\\right) \\times "
msgstr "\\right) \\cdot "
#: Polynome.py:229
msgid " \\times "
msgstr " \\cdot "
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR ORGANIZATION
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"POT-Creation-Date: 2013-06-08 19:02+Hora de verano romance\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=CHARSET\n"
"Content-Transfer-Encoding: ENCODING\n"
"Generated-By: pygettext.py 1.5\n"
#: Polynome.py:227
msgid "\\right) \\times "
msgstr ""
#: Polynome.py:229
msgid " \\times "
msgstr ""
......@@ -224,9 +224,9 @@ class Polynome:
stringTeX+=facteurs[0].TeX()
for i in facteurs[1:]:
if i[0]!=0:
stringTeX+="\\left("+i.TeX()+"\\right) \\times "
stringTeX+="\\left("+i.TeX()+_("\\right) \\times ")
else:
stringTeX+=i.TeX()+" \\times "
stringTeX+=i.TeX()+_(" \\times ")
if developpe==Polynome({0:1},var=self.var):
return stringTeX[:-7]
else:
......
# Spanish translations for PACKAGE package.
# Copyright (C) 2013 ORGANIZATION
# Administrador <EMAIL@ADDRESS>, 2013.
#
msgid ""
msgstr ""
"Project-Id-Version: Pyromaths 13.03\n"
"POT-Creation-Date: 2013-06-06 19:12+Hora de verano romance\n"
"PO-Revision-Date: 2013-06-08 19:08+0100\n"
"Last-Translator: Jose Antonio Martinez Chico <jkuato@hotmail.com>\n"
"Language-Team: Jérôme Ortais <jerome.ortais@pyromaths.org>\n"
"Language: spanish\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: pygettext.py 1.5\n"
"X-Generator: Poedit 1.5.5\n"
"X-Poedit-SourceCharset: UTF-8\n"
#: PolynomesCollege.py:73
msgid "chaîne invalide pour un objet Polynôme : %s"
msgstr "cadena inválida para un objeto Polinomio : %s"
#: PolynomesCollege.py:80
msgid "Le nom de la variable (%s) est incorrect pour le Polynôme %s"
msgstr "El nombre de la variable (%s) es incorrecto para el Polinomio %s"
#: PolynomesCollege.py:154
msgid "Pyromaths ne sait additionner que deux polynômes de même variable"
msgstr "Pyromaths sólo sabe sumar dos polinomios con la misma variable"
#: PolynomesCollege.py:226
msgid "Pyromaths ne sait multiplier que deux polynômes de même variable"
msgstr "Pyromaths solo sabe multiplicar dos polinomios con la misma variable"
#: PolynomesCollege.py:314
msgid "Type non prévu. Bogue en perspective !"
msgstr "Tipo no previsto. Corrija en perspectiva !"
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR ORGANIZATION
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"POT-Creation-Date: 2013-06-08 19:06+Hora de verano romance\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=CHARSET\n"
"Content-Transfer-Encoding: ENCODING\n"
"Generated-By: pygettext.py 1.5\n"
#: PolynomesCollege.py:73
msgid "cha\303\256ne invalide pour un objet Polyn\303\264me : %s"
msgstr ""
#: PolynomesCollege.py:80
msgid "Le nom de la variable (%s) est incorrect pour le Polyn\303\264me %s"
msgstr ""
#: PolynomesCollege.py:154
msgid "Pyromaths ne sait additionner que deux polyn\303\264mes de m\303\252me variable"
msgstr ""
#: PolynomesCollege.py:226
msgid "Pyromaths ne sait multiplier que deux polyn\303\264mes de m\303\252me variable"
msgstr ""
#: PolynomesCollege.py:314
msgid "Type non pr\303\251vu. Bogue en perspective !"
msgstr ""
......@@ -70,14 +70,14 @@ class Polynome():
for monome in _POLYNOME_FORMAT.finditer(monomes):
m = _MONOME_FORMAT.search(monome.group(0))
if m is None:
raise ValueError(u'chaîne invalide pour un objet Polynôme : %s' % input)
raise ValueError(_(u'chaîne invalide pour un objet Polynôme : %s') % input)
m_sign = m.group('sign') or '+'
m_coef = float(m.group('coef') or 1)
m_deg = int(m.group('deg') or (m.group('var') and '1') or '0')
m_var = m.group('var') or var
if m_var and not var: var = m_var # attribue une variable à var
if m_var != var:
raise ValueError(u'Le nom de la variable (%s) est incorrect pour le Polynôme %s' % (var, monomes))
raise ValueError(_(u'Le nom de la variable (%s) est incorrect pour le Polynôme %s') % (var, monomes))
if m_sign == '-': m_coef = -m_coef
if m_coef:
# supprime les monômes de coefficient 0
......@@ -151,7 +151,7 @@ class Polynome():
elif Polynome.degre(other)<=0:
other.var = self.var
if self.var != other.var:
raise ValueError(u'Pyromaths ne sait additionner que deux polynômes de même variable')
raise ValueError(_(u'Pyromaths ne sait additionner que deux polynômes de même variable'))
else :
m=[]
m1.extend(m2)
......@@ -223,7 +223,7 @@ class Polynome():
elif Polynome.degre(other)==0:
other.var = self.var
if self.var != other.var:
raise ValueError(u'Pyromaths ne sait multiplier que deux polynômes de même variable')
raise ValueError(_(u'Pyromaths ne sait multiplier que deux polynômes de même variable'))
p0, p1 = Polynome.reduit(self), Polynome.reduit(other)
if len(p0) == len(p1) == 2 and (p0[0]==p1[0] or p0[1] == p1[1]) and\
((p0[0][0] == -p1[0][0] and p0[0][1] == p1[0][1]) or \
......@@ -311,7 +311,7 @@ class Polynome():
ls.append("*")
ls.append("Polynome([%s], \"%s\")" %([1, self.monomes[0][1]], self.var))
return "".join(ls)
else: raise ValueError(u"Type non prévu. Bogue en perspective !")
else: raise ValueError(_(u"Type non prévu. Bogue en perspective !"))
def __len__(self):
"retourne le nombre de monômes d'un polynôme"
......
# Spanish translations for PACKAGE package.
# Copyright (C) 2013 ORGANIZATION
# Administrador <EMAIL@ADDRESS>, 2013.
#
msgid ""
msgstr ""
"Project-Id-Version: Pyromaths 13.03\n"
"POT-Creation-Date: 2013-06-09 10:10+Hora de verano romance\n"
"PO-Revision-Date: 2013-06-09 11:37+0100\n"
"Last-Translator: Jose Antonio Martinez Chico <jkuato@hotmail.com>\n"
"Language-Team: Jérôme Ortais <jerome.ortais@pyromaths.org>\n"
"Language: spanish\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: pygettext.py 1.5\n"
"X-Generator: Poedit 1.5.5\n"
"X-Poedit-SourceCharset: UTF-8\n"
#: Racine.py:12 Racine.py:110
msgid " \\times "
msgstr " \\cdot "
#: Racine.py:18
msgid ""
"Erreur de définition ! Le radicande doit être positif et l'indice un nombre "
"entier !"
msgstr ""
"Error de definición! El radical debe ser positivo y el índice un número "
"entero!"
#: Racine.py:189
msgid "%s\\times "
msgstr "%s\\cdot "
#: Racine.py:216 Racine.py:217 Racine.py:218
msgid "%s_{\\times %s}"
msgstr "%s_{\\cdot \\cancel{%s}}"
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR ORGANIZATION
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"POT-Creation-Date: 2013-06-09 10:10+Hora de verano romance\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=CHARSET\n"
"Content-Transfer-Encoding: ENCODING\n"
"Generated-By: pygettext.py 1.5\n"
#: Racine.py:12 Racine.py:110
msgid " \\times "
msgstr ""
#: Racine.py:18
msgid "Erreur de d\303\251finition ! Le radicande doit \303\252tre positif et l'indice un nombre entier !"
msgstr ""
#: Racine.py:189
msgid "%s\\times "
msgstr ""
#: Racine.py:216 Racine.py:217 Racine.py:218
msgid "%s_{\\times %s}"
msgstr ""
......@@ -3,19 +3,19 @@
from ..outils.decimaux import decimaux
from ..outils.Arithmetique import carrerise, pgcd, ppcm
from math import sqrt
from Fractions import Fractions
from .Fractions import Fractions
def produitfacteurs(facteurs):
"""Affiche sous forme de produit les éléments d'une liste."""
prodfacteurs = ''
for element in facteurs:
prodfacteurs += str(element) + ' \\times '
prodfacteurs += str(element) + _(' \\times ')
return prodfacteurs[:-7]
class Racine:
def __init__(self, radicande, coeff = 1, indice = 2):
if (radicande < 0) or not (isinstance(indice, int)):
print "Erreur de définition ! Le radicande doit être positif et l'indice un nombre entier !"
print(_("Erreur de définition ! Le radicande doit être positif et l'indice un nombre entier !"))
self.radicande = radicande
self.indice = indice # Nombre entier
self.coeff = coeff # Coeff devant la racine
......@@ -107,7 +107,7 @@ class Racine:
radicande = radicande // (element**(self.indice))
prodfacteurs = produitfacteurs(facteurs)
detail.append(' = ')
detail.append(str(coeff) + ' \\times ' + racine + prodfacteurs + '}')
detail.append(str(coeff) + _(' \\times ') + racine + prodfacteurs + '}')
if radicande == 1:
return (coeff, detail)
else:
......@@ -148,13 +148,13 @@ class RacineDegre2:
self.radicande=radicande
def __str__(self):
if isinstance(self.numerateur,str):
if isinstance(self.numerateur,str) or isinstance(self.numerateur,unicode):
#utilisé dans le détail de la simplification
numerateur=self.numerateur
else:
numerateur=decimaux(self.numerateur)*(self.numerateur!=0) #renvoie "" si self.numerateur=0
if self.radicande!=0:
if isinstance(self.coeff,str):#utilisé dans le détail de la simplification
if isinstance(self.coeff,str) or isinstance(self.coeff,unicode):#utilisé dans le détail de la simplification
if self.coeff[0]!="-" and self.coeff[0]!="+":
numerateur+="+"
numerateur+=self.coeff+"\\sqrt{"+decimaux(self.radicande)+"}"
......@@ -186,13 +186,13 @@ class RacineDegre2:
elif self.coeff==-1:
det_coeff="- "
else:
det_coeff="%s\\times "%(self.coeff)
det_coeff=(_("%s\\times "))%(self.coeff)
if coeff!=1 or radicande==1:
det_coeff+=str(coeff)
else:
det_coeff="0"
if radicande==1:
#det_coeff="%s\\times%s"%(tTeX(self.coeff),coeff)
#det_coeff=_("%s\\times%s")%(tTeX(self.coeff),coeff)
liste_detail.append("\\dfrac{%s %s}{%s}"%\
(self.numerateur,det_coeff ,self.denominateur))
radicande=0
......@@ -213,9 +213,9 @@ class RacineDegre2:
denominateur=self.denominateur//simplifie
if simplifie!=1:
if radicande!=0 or denominateur!=1:
det_numerateur="%s_{\\times %s}"%(numerateur,pTeX(simplifie))
det_denominateur="%s_{\\times %s}"%(denominateur,pTeX(simplifie))
det_coeff="%s_{\\times %s}"%(coeff,pTeX(simplifie))
det_numerateur=_("%s_{\\times %s}")%(numerateur,pTeX(simplifie))
det_denominateur=_("%s_{\\times %s}")%(denominateur,pTeX(simplifie))
det_coeff=_("%s_{\\times %s}")%(coeff,pTeX(simplifie))
liste_detail.append(str(RacineDegre2(det_numerateur,det_denominateur,det_coeff,radicande)))
liste_detail.append(str(RacineDegre2(numerateur,denominateur,coeff,radicande)))
if detail:
......
# Spanish translations for PACKAGE package.
# Copyright (C) 2013 ORGANIZATION
# Administrador <EMAIL@ADDRESS>, 2013.
#
msgid ""
msgstr ""
"Project-Id-Version: Pyromaths 13.03\n"
"POT-Creation-Date: 2013-06-06 19:12+Hora de verano romance\n"
"PO-Revision-Date: 2013-06-08 19:19+0100\n"
"Last-Translator: Jose Antonio Martinez Chico <jkuato@hotmail.com>\n"
"Language-Team: Jérôme Ortais <jerome.ortais@pyromaths.org>\n"
"Language: spanish\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: pygettext.py 1.5\n"
"X-Generator: Poedit 1.5.5\n"
"X-Poedit-SourceCharset: UTF-8\n"
#: SecondDegre.py:12
msgid "Erreur de définition ! a doit être différent de 0."
msgstr "Error de definición! debe ser diferente de 0."
#: SecondDegre.py:18
msgid "strictement positif"
msgstr "estrictamente positivo"
#: SecondDegre.py:21
msgid "strictement négatif"
msgstr "estrictamente negativo"
#: SecondDegre.py:24
msgid "nul"
msgstr "nulo"
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR ORGANIZATION
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"POT-Creation-Date: 2013-06-08 19:18+Hora de verano romance\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=CHARSET\n"
"Content-Transfer-Encoding: ENCODING\n"
"Generated-By: pygettext.py 1.5\n"
#: SecondDegre.py:12
msgid "Erreur de d\303\251finition ! a doit \303\252tre diff\303\251rent de 0."
msgstr ""
#: SecondDegre.py:18
msgid "strictement positif"
msgstr ""
#: SecondDegre.py:21
msgid "strictement n\303\251gatif"
msgstr ""
#: SecondDegre.py:24
msgid "nul"
msgstr ""
......@@ -9,19 +9,19 @@ class Poly2:
"""Classe pour les polynômes du second degré."""
def __init__(self, a, b, c):
if a == 0:
print "Erreur de définition ! a doit être différent de 0."
print _("Erreur de définition ! a doit être différent de 0.")
self.a = a
self.b = b
self.c = c
self.delta = suppr0(b**2 - 4*a*c)
if self.delta > 0:
self.signedelta = "strictement positif"
self.signedelta = _("strictement positif")
self.nbrac = 2
elif self.delta < 0:
self.signedelta = "strictement négatif"
self.signedelta = _("strictement négatif")
self.nbrac = 0
else:
self.signedelta = "nul"
self.signedelta = _("nul")
self.nbrac = 1
def __add__(self, other):
......
# Spanish translations for PACKAGE package.
# Copyright (C) 2013 ORGANIZATION
# Administrador <EMAIL@ADDRESS>, 2013.
#
msgid ""
msgstr ""
"Project-Id-Version: Pyromaths 13.03\n"
"POT-Creation-Date: 2013-06-06 19:12+Hora de verano romance\n"
"PO-Revision-Date: 2013-06-08 19:54+0100\n"
"Last-Translator: Jose Antonio Martinez Chico <jkuato@hotmail.com>\n"
"Language-Team: Jérôme Ortais <jerome.ortais@pyromaths.org>\n"
"Language: spanish\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: pygettext.py 1.5\n"
"X-Generator: Poedit 1.5.5\n"
"X-Poedit-SourceCharset: UTF-8\n"
#: Terme.py:6
msgid "Erreur de définition ! La puissance doit être un nombre relatif !"
msgstr "Error de definición! La potencia debe ser un número relativo!"
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR ORGANIZATION
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"POT-Creation-Date: 2013-06-08 19:54+Hora de verano romance\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=CHARSET\n"
"Content-Transfer-Encoding: ENCODING\n"
"Generated-By: pygettext.py 1.5\n"
#: Terme.py:6
msgid "Erreur de d\303\251finition ! La puissance doit \303\252tre un nombre relatif !"
msgstr ""
......@@ -3,7 +3,7 @@
class Terme:
def __init__(self, coeff, puiss = 1, var = 'x'):
if (not (isinstance(puiss, int))) or (not (isinstance(var, str))):
print "Erreur de définition ! La puissance doit être un nombre relatif !"
print _("Erreur de définition ! La puissance doit être un nombre relatif !")
self.puiss = puiss # Nombre entier
self.coeff = coeff # Coeff devant le terme
self.var