Author Topic: Testing translation  (Read 15246 times)

polymorpher

  • Newbie
  • *
  • Posts: 17
Testing translation
« on: February 13, 2012, 05:38:00 am »
In Samba.Localization which part of the source code initializes all available translations?  I have translated SambaPOS to another language but I couldn't find a way to get it working. I have already created the resource file. When I build Samba.Localization the dll the translation is compiled to a resource file in obj folder but not a dll in bin or obj folder.


emre

  • SambaPOS Developer
  • Samba Team
  • Hero Member
  • *****
  • Posts: 1564
Re: Testing translation
« Reply #1 on: February 14, 2012, 04:43:50 am »

polymorpher

  • Newbie
  • *
  • Posts: 17
Re: Testing translation
« Reply #2 on: February 14, 2012, 05:58:01 am »
Hello emre, I followed the steps but the dll file for my language was still not generated (tested in both debug and release). In addition, There were nothing available to choose in Local Settings -> UI Language

emre

  • SambaPOS Developer
  • Samba Team
  • Hero Member
  • *****
  • Posts: 1564
Re: Testing translation
« Reply #3 on: February 14, 2012, 06:02:40 am »
Quote
The last required step is adding "da" to SupportedLanguages list in LocalSettings.cs file.

Did you added the language code in SupportedLanguages list?

polymorpher

  • Newbie
  • *
  • Posts: 17
Re: Testing translation
« Reply #4 on: February 14, 2012, 06:27:40 am »
I did. (Samba.Infrastructure -> Settings -> LocalSettings.cs)

polymorpher

  • Newbie
  • *
  • Posts: 17
Re: Testing translation
« Reply #5 on: February 14, 2012, 06:29:37 am »
Could it possibly be caused by incorrect format / encoding in resource file?

emre

  • SambaPOS Developer
  • Samba Team
  • Hero Member
  • *****
  • Posts: 1564
Re: Testing translation
« Reply #6 on: February 14, 2012, 06:40:08 am »
If you added the language code in supported languages list you should see it listed in Local Settings > UI Language. If you want I can check it. You can email the resource file to info@sambapos.org.

polymorpher

  • Newbie
  • *
  • Posts: 17
Re: Testing translation
« Reply #7 on: February 14, 2012, 06:45:37 am »
I figured out what was wrong. I made my translation based on "CS" language file on Google Document, which only has 889 entries. The English resource file has 932 entries so some strings were missing.

polymorpher

  • Newbie
  • *
  • Posts: 17
Re: Testing translation
« Reply #8 on: February 14, 2012, 06:46:29 am »
I will send you the translation once I have completed it and fixed all bugs.