From e9820b59f2408415e44cd672f38fba32deaafc18 Mon Sep 17 00:00:00 2001 From: Jose Luis Cercos Pita Date: Sun, 4 Nov 2012 16:08:24 +0100 Subject: [PATCH] Translated toolbar title --- src/Mod/Plot/InitGui.py | 15 ++++++++------- src/Mod/Plot/resources/translations/Plot.ts | 12 +++++++++++- .../Plot/resources/translations/Plot_es-ES.qm | Bin 4983 -> 5155 bytes .../Plot/resources/translations/Plot_es-ES.ts | 12 +++++++++++- 4 files changed, 30 insertions(+), 9 deletions(-) diff --git a/src/Mod/Plot/InitGui.py b/src/Mod/Plot/InitGui.py index 59e65f8aa..4fc8b3dfb 100644 --- a/src/Mod/Plot/InitGui.py +++ b/src/Mod/Plot/InitGui.py @@ -31,13 +31,14 @@ class PlotWorkbench ( Workbench ): ToolTip = "The Plot module is used to edit/save output plots performed by other tools" def Initialize(self): - # ToolBar - list = ["Plot_SaveFig", "Plot_Axes", "Plot_Series", "Plot_Grid", "Plot_Legend", "Plot_Labels", "Plot_Positions"] - self.appendToolbar("Plot",list) - - # Menu - list = ["Plot_SaveFig", "Plot_Axes", "Plot_Series", "Plot_Grid", "Plot_Legend", "Plot_Labels", "Plot_Positions"] - self.appendMenu("Plot",list) + from PyQt4 import QtCore, QtGui + cmdlst = ["Plot_SaveFig", "Plot_Axes", "Plot_Series", "Plot_Grid", "Plot_Legend", "Plot_Labels", "Plot_Positions"] + self.appendToolbar(str(QtGui.QApplication.translate("plot", "Plot edition tools", + None,QtGui.QApplication.UnicodeUTF8)), + cmdlst) + self.appendMenu(str(QtGui.QApplication.translate("plot", "Plot", + None,QtGui.QApplication.UnicodeUTF8)), + cmdlst) try: import matplotlib diff --git a/src/Mod/Plot/resources/translations/Plot.ts b/src/Mod/Plot/resources/translations/Plot.ts index e321cd435..078132b9c 100644 --- a/src/Mod/Plot/resources/translations/Plot.ts +++ b/src/Mod/Plot/resources/translations/Plot.ts @@ -72,6 +72,16 @@ Save plot as image file + + + Plot edition tools + + + + + Plot + + plot_axes @@ -129,7 +139,7 @@ - + matplotlib not found, Plot module will be disabled diff --git a/src/Mod/Plot/resources/translations/Plot_es-ES.qm b/src/Mod/Plot/resources/translations/Plot_es-ES.qm index cfc4d6a2917c92bbb37b531f5ed24095c0f88020..80bcd65ed7c5015ec93be6dfad616d83de2fbcff 100644 GIT binary patch delta 520 zcmXX?OK1~O6g@MUH#6zXyd-U9Wlv2ST7NqV<{Yz_6x)Grzi8K&1Av0p7Eddd6 zA(|2qbWy7*ZiH5vwgeHy4-}UoBJK=`E)-mp;zq%f#`n0K`|dsWbKdW+a(A({FahBw z0p&BqLjgqhVyI&Pun*y!6$j)qrEjqnXsRjs>7PKeqh`Jz2GkX`y6r0vexz>P>Sg@6 z&}QGTeo1Wqa0d{bqT_iBp#8_lvN$;N8i;)o_pXv>o)C|3E&>H}N-RwJBo@VLJrIuQ zcSkqa=$k(GWH%7GqW}4_69`QiJGP!7_BK$C8+$5M@)E}MTQ02Uj6yNR0k_SVlcAs< zGpirq;@xKT{XAgJg+Kl(0me{Meu6^e59>m09R*-*(?M*PwV87#@~45)^=w z^8Ql_R<$(0O`i!d)L9x-+bXllDj;h^g*@*VE+S1o wi-5il7fHTcT9WYu%|o{IK(@8}CJUj{n(GbSR5Bf;y{sE}UdFEshq|Kw02D!b_y7O^ delta 404 zcmZ3i@m+0#NPPwa>q1rr2L34w{&Fr14BYb>qPbNW82IEEt=5Y$FmSmt7S+CCU=S>1 z%6aa}z`!KQv_tv{0|O@;)7L&zp!ix=mU)L67zD&vWiC%)U|{KBmD?lCz`zWp`6XB_ zCLRK+vu2&y1XRbqj&)hjdLaFPbzOBa14BLY7uIbc0ghs}X$fC}26?e9Sgi+iz+JXK z50rrxK44dp2nNzKAvEt9cKyvefDS&+UV8-SVAd<_^%GKo`aW|A^5!rwFluq+v6%oJ z*u$~o;u4^TSU9h~pUl9(wwbG_0_YJwf9|x0pBWe!j)UoX27!KVh{QDRzill*AKd3L zR0X<}tq4N%cJjoAB?Dbtz*Fu6^f}{AUV;4~K#R+HAD#r#JS}`yC5wRuGC*i{A-;me zen1Z?@f9oq(OdaCl7Svz@XiDV!&hb?ONGIiA)g_SA&nt(at0Ic=5>q*88>sYNC*G` Dn1N;_ diff --git a/src/Mod/Plot/resources/translations/Plot_es-ES.ts b/src/Mod/Plot/resources/translations/Plot_es-ES.ts index 00ef0c34b..9f1df7954 100644 --- a/src/Mod/Plot/resources/translations/Plot_es-ES.ts +++ b/src/Mod/Plot/resources/translations/Plot_es-ES.ts @@ -72,6 +72,16 @@ Set labels and legend positions and sizes Modifique la posición y tamaño de títulos y legenda + + + Plot edition tools + Herramientas de edicion de graficas + + + + Plot + Grafica + plot_axes @@ -129,7 +139,7 @@ No se puede encontrar matplotlib, y por tanto no se puede cargar el modulo de graficado - + matplotlib not found, Plot module will be disabled No se puede encontrar matplotlib, el modulo de graficado sera desactivado