Open Lingua is an open source version of Lingua which can be used to manage translations. The original version was developed by Thomas Tempelmann. There is a Deepl integration to do automatic translations.
Version 1.4 adds a curl version for talking to Deepl instead of using the MBS plugin. Libcurl from GitHub - charonn0/RB-libcURL: A Realbasic and Xojo binding to libcurl is used for this.
The new version can be downloaded from Xojo + Alfred .
!!! nice !
thanks a lot !!
Thank you, but I still have 2 errors because I don’t have MBS :
TextToTranslate = EncodingToHTMLMBS(TextToTranslate)
Result = DecodingFromHTMLMBS(Result)
Or I didn’t understand, I downloaded it from your website Beatrix.
Ups, the brain was overheated.
I made a new version 1.4.1 which replaces the Html Encoding and Decoding. I also added the script by Jeremy to export all locales at once.
Maybe write in the ReadMe (et the top, before History) that we have to put the constant “UseMBS” to false if we don’t use MBS pluggin.
I don’t pay for DeepL but I click the button Translate just to see what happens and nothing occurs. When I’m suppose to enter my API key if I have one?
If you click on translate the code should break at the location where you need to enter the API key. There is a free version of Deepl which is more than enough to do the occasional translation. The Deepl has has different endpoints for the free and the paid version which is also explained in some comments.
'there are 2 endpoints for the API
'for the paid version: https://api.deepl.com/v2/translate
'for the free version: https://api-free.deepl.com/v2/translate
Call form.AddElement("auth_key", "")
break 'insert your API key here
Break will only work in a DebugBuild, so maybe it would be a good idea to mention the place where to put the DeepL key in the ReadMe…
Yes, there is a break, but also Your API key
EDIT: Ok, it’s not. It’s the free API key. Phew.
Call form.AddElement("auth_key", "")
#pragma Error Insert your API key above and comment this line
Thanks! I’ve already revoked the key and uploaded a new version without the key.
You mean I cannot test anymore without having to register? Ooohh …
“Ta flack” wie der Franzose sagt.
I’m French and I don’t know what “Ta flack” means.
The Translate button didn’t have any effect because my sentence was already translated, maybe a button “Replace the actual translation” ? Because I thought there was a problem.
I didn’t look for the comment for person who do not have an API key. (I’m still working on my new website and it take me many times). But I would prefer a Preferences window in the application where the user enter his API key, if he leave it blank then → Free DeepL.
I didn’t have any person who asked me to localize my applications for a while, but the goal is to make a download with a built application people can use, with or without API key. People who translate are not suppose to know Xojo, they are not suppose to be developer.
Many thanks for your work beatrix.
That was a German joke. It means “tough luck” for those who don’t know either French nor English. The other thing the French person says is “tel aviv” which means “c’est la vie”.
Select “Only untranslated” and then click on the translate button.
Flak is a German slang for strong criticism. Maybe Ta flack comes from Tag Flak like in a “that’s just the criticism of the day, as usual”.
Uh Beatrix, what have you caused?
Me being a German have never heard the term Flak for string criticism. Only definition known to me is a WW II aerial defence cannon.
I really don’t know what Rick means. And yes, a Flak is an aerial defence cannon.
There is not a word about the term “Flak” being used in colloquial German / slang. Maybe it is used like that in English - even if I doubt it…
It seems a term entering in disuse due to its age.