NetTalk Central

Author Topic: Please Translate (2)  (Read 3330 times)

Alberto

  • Hero Member
  • *****
  • Posts: 1873
    • MSN Messenger - alberto-michelis@hotmail.com
    • View Profile
    • ARMi software solutions
    • Email
Please Translate (2)
« on: April 28, 2009, 10:50:48 AM »
I dont know what happened but I cant see my last post, so here it goes again...

Tranlate is working GREAT!

Please, it would be more consistent if you can add the following:

>>>The Buttons text (buttons tab of the netweb object)
The template are still translating with
  s_web._SitesQueue.Defaults.UploadButton.TextValue = Translator.TranslateString('Upload')
  s_web._SitesQueue.Defaults.UploadButton.ToolTip = 'Click here to Upload the file'
see that the Tooltip is not translated
I´ve tried typing p_web.Translate('Upload') but I get a Unknown function label

>>>The Locate text (Advance tab) ...
I tried typing p_web.Translate('Locate') but I get a Unknown function label
Why it is not in the Button tab?

Note: Nevertheless the button Tooltips are been translated, may be in the CreateButton proc. May be the button text could be translated in the same proc.

>>>The Text of a Display field in a form

>>>The options of a radio field in a form

>>>Main menu options are not been translated... (Ex p_web._jsok('Config'))

And ... Is there any chance for you to add a check to the Lookup Settings tab of a Drop field to translate the options loaded from a file?
I know I can omit your code and add mine but I think it would be helpfull for others.

Thanks
Alberto
-----------
Regards
Alberto

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Please Translate (2)
« Reply #1 on: April 29, 2009, 01:29:10 AM »
Hi Alberto,

In the web server procedure the object is called s_web. This is because it is the Server object, not the Worker object. The worker object (p_web) has a translate method, but the s_web one does not.

I can (and will) add a translate method to the Server object as well, but you will then need to add your translation code to both the WebServer Translate method AND the WebHandler Translate method. OR Put it just in the _server_. However if you put it in the server you need to make sure it is thread-safe. (If you're unsure whether it is Thread-Safe or not then put it in the WebHandler as well.)

> Why it is not in the Button tab?

because it's not a button.

>The Text of a Display field in a form

done

>The options of a radio field in a form

done

>Main menu options are not been translated.

done

> Is there any chance for you to add a check to the Lookup Settings tab of a Drop field

I've not made it an option. The Drop options are now translated regardless of whether they are from a file, or coded as "extras".

Cheers
Bruce





Alberto

  • Hero Member
  • *****
  • Posts: 1873
    • MSN Messenger - alberto-michelis@hotmail.com
    • View Profile
    • ARMi software solutions
    • Email
Re: Please Translate (2)
« Reply #2 on: April 29, 2009, 02:56:44 AM »
Bruce,
I understand your explanation but...
Is it related to the Buttons translations?

>Is there any chance for you to add a check to the Lookup Settings tab of a Drop field
>>I've not made it an option. The Drop options are now translated regardless of whether they are from a file, or coded as "extras".

This will not work, the thing is that, to know wich strings you need to translate, you need a method to extract it, even the Clarion Tanslation class have this method.
Then, if you dont make it an option and you are extracting the strings to translate filling the drop with a table you dont need to transalate (lets say Clientes) then you will extract all the clientes name to be transalated.
Please make it an option.

Thanks
Alberto
-----------
Regards
Alberto