Setting default language culture for proofing while creating a word document programmatically using Novacode.DocX - novacode-docx

I have created a word document using Novacode.docX. I want to set its default language culture to English US so that whenever its gets downloaded from the application should be open in default language that has been setup programmatically using NovaCode.DocX Library (for proofreading/spellchecking of the document). Is it possible?

Related

Google Input Tools User Dictionary Format

I am using a discontinued Google Product Called 'Google Input Tools' which is still available for download through non MS websites.
It is a very useful tool for transliterating text from one script to another.
It has dictionary import and export feature but the problem I am facing that that export creates a utf-8 file like this
text (tab) typed text (tab) count
but If I make a change and import it back into Google Input Tools it creates two entries for same text with tab as a part of the replaced text.
Does anyone know of what input format works for google input tools custom dictionary?
or any workaround ?

Getting ? when using hi_IN locale in an application developed using Thymeleaf and Spring

I am creating a web application using Thymeleaf with Spring. For that, I am following following document:
http://www.thymeleaf.org/doc/articles/thvsjsp.html
In this document, following code is being discussed:
https://github.com/thymeleaf/thymeleafexamples-thvsjsp
I am trying to get internationalization with Hindi (Indian language), for that I forked the repo given above and added one property file related to hi_IN (hindi-India), please see below code base on github:
https://github.com/prashantbhardwaj/thymeleafexamples-thvsjsp/tree/locale_change
When I tried, instead of getting hindi in browser, I got questions marks. I tried changing encoding of this property file from ISO-8859-1 to UTF-8, but no benefit. Values, I am expecting for given properties are as follows:
subscription.email=ईमेल
subscription.type=प्रकार
subscription.submit=प्रेषित करें!
subscriptionType.ALL_EMAILS=सभी ईमेल
subscriptionType.DAILY_DIGEST=प्रतिदिन का पत्र
In Messages_hi_IN.properties file, I changed all the values from hindi (which was not hindi but escaped version of hindi) to english so you can copy and paste values which are provided by me.
Could you please help get me desired results? Locale for Hindi is hi_IN.

Qt get language name in its native form

I'm adding language support into a Qt C++ application currently using QLocale and QTranslator. When the user selects the language from the settings menu, I want to show them the Language name in the native form (e.g. Deutsch instead of German), but when given a locale code QLocale returns the name as per the current locale (i.e. English).
Is there a way I can get the language name in native form using QLocale or something else in Qt which I've missed.

XSLT msxsl:format-date ignores current culture

I am using XSLT (xml version='1.0') in Visual Studio ASP.NET 4.0.
I am using a product that is available in multiple languages, but I cannot get nsxsl:format-date to respect the current language. For example, if I have set the current culture to French, and I write:
<xsl:value-of select="msxsl:format-date('31/05/2013', 'dd-MMM-yyyy')"/>
I would expect it output something like "31-Mai-2013".
Unfortunately, the 'month' portion is not translated. It always returns the english version ('May').
The MSDN documentation suggests adding a 3rd optional parameter (locale) to specify the culture, but it doesn't say what the default behaviour is if you omit the 'locale' parameter.
So, if the 'locale' parameter is omitted, where does format-date() use as it's default locale? And how can I change this default behaviour?
Thanks for any help you can offer!
If you omit the locale, then the XSLT defaults to the installation language of the XSLT processor you're using, the 1.0 one. (MS XSL Utility msxsl.exe or Visual Studio etc.) Doesn't matter what is the locale of the browser or your asp.net application.
In order to make it locale aware with least effort, you need to declare a variable (say with value "EN_us") and use it as the third parameter in all such date, time, number formatting functions.

Need to search the file from DB based on text

How is it possible to search the file from the set of files which have been uploaded in the ms-sql DB based on the text entered by the user. The file could be of any type like .txt, .pdf, .doc, .jpeg. How does indexing works in this scenario. How can I implement this functionality. Want to implement this functionality for ASP.NET based web application
You can implement full text indexing. You will need to have a relevant filter for each file type uploaded.

Resources