Zbiór zmian 927 dla trunk

Pokaż
Ignoruj:
Data:
2009-12-07 10:53:44 (16 years ago)
Autor:
alina
Opis:

re #215 zmiana nazwy plikow

Lokalizacja:
trunk/eCard/eCardMVC
Pliki:
5 dodane
8 zmodyfikowane

Legenda:

Bez zmian
Dodane
Usunięte
  • trunk/eCard/eCardMVC/Platnosci.Core/Platnosci.Core.csproj

    r903 r927  
    7070    <Compile Include="Interface\IIdentifiable.cs" /> 
    7171    <Compile Include="Interface\IRepository.cs" /> 
    72     <Compile Include="Interface\ITranslate.cs" /> 
     72    <Compile Include="Interface\ITranslateManager.cs" /> 
    7373    <Compile Include="Linq\DataContext1.cs" /> 
    7474    <Compile Include="Linq\Payer.cs" /> 
     
    8585    <Compile Include="Linq\PotwierdzeniaEcard.cs" /> 
    8686    <Compile Include="Linq\Repository.cs" /> 
    87     <Compile Include="Linq\Translate.cs" /> 
     87    <Compile Include="Linq\Translation.cs" /> 
    8888    <Compile Include="Linq\vPlatnosciEcard.cs" /> 
    8989    <Compile Include="Linq\Waluta.cs" /> 
  • trunk/eCard/eCardMVC/Platnosci.Tests/Platnosci.Tests.csproj

    r919 r927  
    8181    <Compile Include="Web\MerchantControllerTests.cs" /> 
    8282    <Compile Include="Web\FakeDataContext.cs" /> 
    83     <Compile Include="Web\FakeTranslate.cs" /> 
     83    <Compile Include="Web\FakeTranslation.cs" /> 
    8484    <Compile Include="Web\Function.cs" /> 
    8585    <Compile Include="Web\PlatnosciControllerTests.cs" /> 
  • trunk/eCard/eCardMVC/Platnosci.Tests/Web/MerchantControllerTests.cs

    r919 r927  
    1717    { 
    1818        private Function _f = new Function(); 
    19         private ITranslate _t = new FakeTranslate(); 
     19        private ITranslateManager _t = new FakeTranslation(); 
    2020 
    2121        [Test] 
  • trunk/eCard/eCardMVC/Platnosci.Tests/Web/PlatnosciControllerTests.cs

    r904 r927  
    2121    class PlatnosciControllerTests 
    2222    { 
    23         private ITranslate _t = new FakeTranslate(); 
     23        private ITranslateManager _t = new FakeTranslation(); 
    2424        private string merchantNumber = "123"; 
    2525        private int orderNumber = 9999; 
  • trunk/eCard/eCardMVC/Platnosci/App_GlobalResources/tlumaczenia.designer.cs

    r926 r927  
    207207         
    208208        /// <summary> 
    209         ///   Looks up a localized string similar to Proszę podać NIP. . 
     209        ///   Looks up a localized string similar to Proszę podać poprawny NIP. . 
    210210        /// </summary> 
    211211        internal static string err_nip { 
     
    389389         
    390390        /// <summary> 
    391         ///   Looks up a localized string similar to Any problems?. 
    392         /// </summary> 
    393         internal static string Pomoc { 
    394             get { 
    395                 return ResourceManager.GetString("Pomoc", resourceCulture); 
    396             } 
    397         } 
    398          
    399         /// <summary> 
    400391        ///   Looks up a localized string similar to Payment confirmation. 
    401392        /// </summary> 
     
    425416         
    426417        /// <summary> 
    427         ///   Looks up a localized string similar to Verify all details. If all details are correct click the button Pay. You will be move on the eCard web site to finish transaction.. 
     418        ///   Looks up a localized string similar to Verify all details. If all details are correct click the Pay button. You will be move on the eCard web site to finish transaction.. 
    428419        /// </summary> 
    429420        internal static string SprawdzDane { 
     
    507498        /// <summary> 
    508499        ///   Looks up a localized string similar to BłĠ
    509 d weryfikacji danych.en. 
     500d weryfikacji danych.. 
    510501        /// </summary> 
    511502        internal static string weryfikacja { 
     
    557548            get { 
    558549                return ResourceManager.GetString("Zamknij", resourceCulture); 
    559             } 
    560         } 
    561          
    562         /// <summary> 
    563         ///   Looks up a localized string similar to Remeber me?. 
    564         /// </summary> 
    565         internal static string Zapamietaj { 
    566             get { 
    567                 return ResourceManager.GetString("Zapamietaj", resourceCulture); 
    568550            } 
    569551        } 
  • trunk/eCard/eCardMVC/Platnosci/App_GlobalResources/tlumaczenia.resx

    r926 r927  
    143143    <value>Log in</value> 
    144144  </data> 
    145   <data name="Zapamietaj" xml:space="preserve"> 
    146     <value>Remeber me?</value> 
    147   </data> 
    148145  <data name="tytul" xml:space="preserve"> 
    149146    <value>Payment by credit card for advert.</value> 
     
    186183    <value>Pay</value> 
    187184  </data> 
    188   <data name="Pomoc" xml:space="preserve"> 
    189     <value>Any problems?</value> 
    190   </data> 
    191185  <data name="SprawdzDane" xml:space="preserve"> 
    192     <value>Verify all details. If all details are correct click the button Pay. You will be move on the eCard web site to finish transaction.</value> 
     186    <value>Verify all details. If all details are correct click the Pay button. You will be move on the eCard web site to finish transaction.</value> 
    193187  </data> 
    194188  <data name="Szczegoly" xml:space="preserve"> 
     
    233227  <data name="weryfikacja" xml:space="preserve"> 
    234228    <value>BłĠ
    235 d weryfikacji danych.en</value> 
     229d weryfikacji danych.</value> 
    236230  </data> 
    237231  <data name="Faktura_error" xml:space="preserve"> 
     
    249243  </data> 
    250244  <data name="err_nip" xml:space="preserve"> 
    251     <value>Proszę podać NIP. </value> 
     245    <value>Proszę podać poprawny NIP. </value> 
    252246  </data> 
    253247  <data name="validateInfo" xml:space="preserve"> 
  • trunk/eCard/eCardMVC/Platnosci/Controllers/MerchantController.cs

    r919 r927  
    3535        private readonly IRepository<PlatnosciEcard> _repPayment;  
    3636        private FunkcjePlatnosci _func; 
    37         private ITranslate _t; 
     37        private ITranslateManager _t; 
    3838 
    3939        public MerchantController() 
     
    4242            _repPayment = new Repository<PlatnosciEcard>(new DataContext1()); 
    4343            _func = new FunkcjePlatnosci(); 
    44             _t = new Translate(); 
     44            _t = new Translation(); 
    4545        } 
    4646        public ActionResult Merchant(Payer payer, string language) 
     
    5454            if (platnosc == null) 
    5555            { 
    56                 ErrorViewData errorViewData = _func.InitErrorViewData(_t.TranslateStr("tlumaczenia", "brakdanych")); 
     56                ErrorViewData errorViewData = _func.InitErrorViewData(_t.Translate("tlumaczenia", "brakdanych")); 
    5757                return View("Error1", errorViewData); 
    5858            } 
    5959            else if (!_func.UserIdentity(platnosc, ControllerContext.HttpContext.User.Identity.Name)) 
    6060            { 
    61                 ErrorViewData errorViewData = _func.InitErrorViewData(_t.TranslateStr("tlumaczenia", "weryfikacja")); 
     61                ErrorViewData errorViewData = _func.InitErrorViewData(_t.Translate("tlumaczenia", "weryfikacja")); 
    6262                return View("Error1", errorViewData); 
    6363            } 
     
    7171            if (createPayment == false) 
    7272            { 
    73                 ErrorViewData errorViewData = _func.InitErrorViewData(_t.TranslateStr("tlumaczenia", "error_hash")); 
     73                ErrorViewData errorViewData = _func.InitErrorViewData(_t.Translate("tlumaczenia", "error_hash")); 
    7474                errorViewData.idfaktury = payer.Id_faktury; 
    7575                return View("Error1", errorViewData); 
     
    8080            if (hash == BAD_HASH || hash == "" || hash == HASH_ERROR_INFO) 
    8181            { 
    82                 ErrorViewData errorViewData = _func.InitErrorViewData(_t.TranslateStr("tlumaczenia", "error_hash")); 
     82                ErrorViewData errorViewData = _func.InitErrorViewData(_t.Translate("tlumaczenia", "error_hash")); 
    8383                errorViewData.idfaktury = payer.Id_faktury; 
    8484                return View("Error1", errorViewData); 
  • trunk/eCard/eCardMVC/Platnosci/Controllers/PlatnoscController.cs

    r926 r927  
    2626        private IRepository<PlatnosciEcard> _repPayment; 
    2727        private readonly IRepository<PotwierdzeniaEcard> _repConfirm; 
    28         private ITranslate _t; 
     28        private ITranslateManager translation; 
    2929        private FunkcjePlatnosci _func; 
    3030               
     
    3535            _repConfirm = new Repository<PotwierdzeniaEcard>(new DataContext1()); 
    3636            _func = new FunkcjePlatnosci(); 
    37             _t = new Translate();          
    38         } 
    39         public PlatnoscController(IRepository<vPlatnosciEcard> repVPayment, IRepository<PlatnosciEcard> repPayment, IRepository<PotwierdzeniaEcard> repConfirm, ITranslate translate) 
     37            translation = new Translation();          
     38        } 
     39        public PlatnoscController(IRepository<vPlatnosciEcard> repVPayment, IRepository<PlatnosciEcard> repPayment, IRepository<PotwierdzeniaEcard> repConfirm, ITranslateManager translate) 
    4040        { 
    4141            _repVPayment = repVPayment; 
     
    4343            _repConfirm = repConfirm; 
    4444            _func = new FunkcjePlatnosci(); 
    45             _t = translate; 
     45            translation = translate; 
    4646        } 
    4747        public ActionResult Show(string id, string language) 
     
    6262            { 
    6363                string data_zaplaty = String.Format("{0:dd-MM-yyyy}", tablica_potwierdzenia[0].AUTHTIME); 
    64                 invoiceDeatailsViewData.info = String.Format(_t.TranslateStr("tlumaczenia","zaplacono"), platnosc.Faktura_Numer, data_zaplaty); 
     64                invoiceDeatailsViewData.info = String.Format(translation.Translate("tlumaczenia","zaplacono"), platnosc.Faktura_Numer, data_zaplaty); 
    6565                invoiceDeatailsViewData.termin = data_zaplaty; 
    6666                return View("Paid", invoiceDeatailsViewData); 
     
    7878            if (String.IsNullOrEmpty(payer.FirstName)) 
    7979            { 
    80                 ModelState.AddModelError("Payer.FirstName", _t.TranslateStr("tlumaczenia", "err_imieWK")); 
     80                ModelState.AddModelError("Payer.FirstName", translation.Translate("tlumaczenia", "err_imieWK")); 
    8181            } 
    8282            if (String.IsNullOrEmpty(payer.LastName)) 
    8383            { 
    84                 ModelState.AddModelError("Payer.LastName", _t.TranslateStr("tlumaczenia", "err_nazwiskoWK")); 
     84                ModelState.AddModelError("Payer.LastName", translation.Translate("tlumaczenia", "err_nazwiskoWK")); 
    8585            } 
    8686            if (ModelState.IsValid == false) 
     
    114114                if (CheckConfirm(id1, order) == 0)   //nie ma potwierdzenia z eCardu 
    115115                { 
    116                     invoiceDeatailsViewData.info = String.Format(_t.TranslateStr("tlumaczenia", "blad1"), invoiceDeatailsViewData.vPlatnosciEcard.Faktura_Numer); 
     116                    invoiceDeatailsViewData.info = String.Format(translation.Translate("tlumaczenia", "blad1"), invoiceDeatailsViewData.vPlatnosciEcard.Faktura_Numer); 
    117117                } 
    118118                else 
    119119                { 
    120                     if (CheckConfirm(id1, order) == 2) invoiceDeatailsViewData.info = _t.TranslateStr("tlumaczenia", "weryfikacja"); 
     120                    if (CheckConfirm(id1, order) == 2) invoiceDeatailsViewData.info = translation.Translate("tlumaczenia", "weryfikacja"); 
    121121                } 
    122122            } 
     
    214214        { 
    215215            string errortxt = ""; 
    216             if (platnosc == null) errortxt = _t.TranslateStr("tlumaczenia", "brakdanych"); 
    217             else if (!_func.UserIdentity(platnosc, HttpContext.User.Identity.Name)) errortxt = _t.TranslateStr("tlumaczenia","weryfikacja"); 
     216            if (platnosc == null) errortxt = translation.Translate("tlumaczenia", "brakdanych"); 
     217            else if (!_func.UserIdentity(platnosc, HttpContext.User.Identity.Name)) errortxt = translation.Translate("tlumaczenia","weryfikacja"); 
    218218            ErrorViewData errorViewData = _func.InitErrorViewData(errortxt); 
    219219            return errorViewData;