fine traduzione label con traduci

git-svn-id: https://keyhammer.ath.cx/svn/GMW/trunk@213 365432ac-a1b5-4ffd-bb28-6d3099d32164
This commit is contained in:
ermanno
2010-09-02 14:44:28 +00:00
parent 2266b2e0a4
commit d69037d0e8
6 changed files with 36 additions and 14 deletions
@@ -10,12 +10,25 @@ namespace GMW_Term.WebUserControls
{
public partial class mod_currentTask : System.Web.UI.UserControl
{
/// <summary>
/// wrapper traduzione termini
/// </summary>
/// <param name="lemma"></param>
/// <returns></returns>
public string traduci(string lemma)
{
return user_std.UtSn.Traduci(lemma);
}
protected void Page_Load(object sender, EventArgs e)
{
string task = memLayer.ML.StringSessionObj("activeTask");
if (task == "")
{
task = "... waiting ...";
task = "..." + traduci("waiting") + "...";
}
lblTask.Text = task;
}
@@ -272,24 +272,24 @@ namespace GMW_Term.WebUserControls
private void traduciObj()
{
// buttons primari
btnDeposita.Text = "[4] - Deposita";
btnDeposita.Text = "[4] - " + traduci("Store");
btnDeposita.AccessKey = "4";
btnSposta.Text = "[5] - Sposta";
btnSposta.Text = "[5] - " + traduci("Move");
btnSposta.AccessKey = "5";
btnRettifica.Text = "[6] - Rettifica";
btnRettifica.Text = "[6] -" +traduci("Correct");
btnRettifica.AccessKey = "6";
btnPreleva.Text = "[7] - Preleva";
btnPreleva.Text = "[7] - " + traduci("Take");
btnPreleva.AccessKey = "7";
btnChiudi.Text = "[9] - Home";
btnChiudi.AccessKey = "9";
btnChiudiInput.Text = "[0] - Chiudi";
btnChiudiInput.Text = "[0] - " + traduci("Close");
btnChiudiInput.AccessKey = "0";
btnBarcode.Text = "[1] - Barcode";
btnBarcode.AccessKey = "1";
// buttons secondari
btnConferma.Text = "[2] - OK";
btnConferma.AccessKey = "2";
btnCellaPiena.Text = "[4] - OK+Piena";
btnCellaPiena.Text = "[4] - " + traduci("OkFull");
btnCellaPiena.AccessKey = "4";
}
/// <summary>
@@ -405,7 +405,7 @@ namespace GMW_Term.WebUserControls
switch (answ)
{
case tipoCodiceBarcode.Cella:
lblData.Text = "Cella: " + txtScansione;
lblData.Text = traduci("Box") + ": " + txtScansione;
txtScansione = "";
// mostro btnConferma
btnConferma.Enabled = true;
@@ -434,7 +434,7 @@ namespace GMW_Term.WebUserControls
break;
default:
lblData.Text = "Codice non riconosciuto: " + valoreScanUdc;
lblData.Text = traduci("Code Not Recognized") + ": " + valoreScanUdc;
txtInput.Text = "";
txtInput.Focus();
break;
+13 -3
View File
@@ -4,11 +4,21 @@ using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using SteamWare;
namespace GMW_Term.WebUserControls
{
public partial class mod_home : System.Web.UI.UserControl
{
/// <summary>
/// wrapper traduzione termini
/// </summary>
/// <param name="lemma"></param>
/// <returns></returns>
public string traduci(string lemma)
{
return user_std.UtSn.Traduci(lemma);
}
protected void Page_Load(object sender, EventArgs e)
{
@@ -16,11 +26,11 @@ namespace GMW_Term.WebUserControls
btn1.Text = "[1]-Barcode";
btn1.AccessKey = "1";
btn2.Text = "[3]-Ricerca";
btn2.Text = "[3]-" + traduci("Research");
btn2.AccessKey = "3";
btn3.Text = "[7]-Liste Prel";
btn3.Text = "[7]-" + traduci("TakeList");
btn3.AccessKey = "7";
btn4.Text = "[9]-Task Attivi";
btn4.Text = "[9]-" + traduci("ActiveTask");
btn4.AccessKey = "9";
}
@@ -237,7 +237,6 @@ namespace GMW_Term.WebUserControls
resetSelezione();
}
#endregion
#endregion
@@ -272,7 +271,7 @@ namespace GMW_Term.WebUserControls
btnLoginPage.AccessKey = "7";
btnButtonsHome.Text = "[9]-Home";
btnButtonsHome.AccessKey = "9";
btnCloseDet.Text = "[3]-Chiudi";
btnCloseDet.Text = "[3]-" + traduci("Close");
btnCloseDet.AccessKey = "3";
btnBarcode.Text = "[1]-Barcode";
btnBarcode.AccessKey = "1";
Binary file not shown.
Binary file not shown.