Last post Oct 04, 2019 12:20 PM by mgebhard
Sep 20, 2019 09:14 AM|guhananth1|LINK
Sep 20, 2019 09:36 AM|PatriceSc|LINK
This is not really a technical problem but rather a time vs quality issue. A start could be :
- some browsers such as Chrome are offering to do that out of the box
- Bing should still have support for a widget doing that with minimal work on your site
- then you could explicitely use Google, Bing or other translation services but it takes some more work. You could still to do that as a default and allow to override with a possibly better translation
For some strings, Microsoft have a site where they make available the translations used in their own software (don't find it right now)
Edit: this is https://www.microsoft.com/en-us/language
Oct 03, 2019 10:46 AM|guhananth1|LINK
Oct 03, 2019 11:31 AM|PatriceSc|LINK
Unclear ie "by calling some free localization webservice or wcf service" and then "offine translator for language".
I believe you mean "at design time" maybe ? It could be a design time tool that calls a service so that you can create an app which includes already the needed translations...
Which problems do you have with resource files? Actually ASP.NET doesn't use that but a "provider" which as many other mechanism, could be changed to tap into whatever best fit your needs (such as storing translations inside a database, initialized
maybe with a service and corrected/approved by a human translator etc... for improved quality and so on).
You have also tools such as https://developer.microsoft.com/en-us/windows/develop/multilingual-app-toolkit (which seems to include suggesting
translations using online services but this is a design time tool)
Please clarify which problem you try to solve. For now my understanding is that you are trying to use a service that could translate your app for you because you can't afford a professional translator ?
Or to have glimpse at what it could give you could enter the url for your web site at
https://www.bing.com/translator/ and click on the generated link. Your web site is then browsed using Bing which translates it on the fly which could give an idea of the quality you'll get with an automated translation...
This is really a web app or you mean you are using something such as selenium ?
Oct 04, 2019 04:14 AM|guhananth1|LINK
Oct 04, 2019 11:42 AM|PatriceSc|LINK
Ok I understood what you don't want to do it still doesn't tell me what you want to do instead or which problem you have with using resource files. It's a bit like going to a travel agency and just telling them you don't want to go to Japan.
Even if not using ASP.NET Core you could use something similar. It exposes most if not all capabilities through interfaces so that your primary concern is how your app is calling into the mechanism rather than the actual underlying mechanism that you can
then replace as you want with basically no change at all in your app.
For example you have https://andrewlock.net/adding-localisation-to-an-asp-net-core-application/ and then behing the scene it could come from resource files, some hand
made dictionary, a translation service, a database etc... without having your app to care about that....
Or if going back at your first message you were just trying to find APIs such as https://azure.microsoft.com/en-us/services/cognitive-services/translator-text-api/ or https://cloud.google.com/translate/docs/quickstart-client-libraries etc
Oct 04, 2019 12:20 PM|mgebhard|LINK
I want to do localization without resource file ie .rsx file or resource dictionary.
ASP.NET localization uses a naming convention to group key/value. Where the key is the default language and the value is the translation. I'm providing the reference.
Portable object localization is another approach and does not use resx files.
Keep in mind both approaches are APIs. You could certainly extend the APIs to meet your needs which, by the way, are unknown at this time. All we know is you do not want to use resx files. What missing is the actual design intent. Why do resx files not
meet your requirements? What does offline mean? What are your actual application requirements? How does your application work?