I have noticed people use this code to localize  Thread.CurrentThread.CurrentUICulture = new CultureInfo("fr-FR"); Thread.CurrentThread.CurrentCulture = new CultureInfo("fr-FR");   Could anyone tell me what CurrentUICulture and CurrentCulture are? Why do we need to assign same value to both  What will happen if I assign the value CultureInfo("fr-FR"); to only CurrentUICulture  or CurrentCulture?   I would really like to know in detail what CurrentUICulture and CurrentCulture does?  Suppose client pc language setting could be German or French etc., but I want to develop my application in such a way that whatever language setting is there, my apps will work in that pc with their language setting. I mean that all the controls will show the text in German or French. I do not want to hard code the culture this way CultureInfo("fr-FR")  I would rather the user's language setting dictate the language of my controls. How would I go about doing this?
11803
In .NET there is the CultureInfo class in the System.Globalization namespace. It has two similar properties both returning values of the CultureInfo type: CurrentCulture and CurrentUICulture.  What is the difference between them?   Which one should I use when and why?
2338
I have a server application that uses "a lot" of threads. Without wanting to get into an argument about how many threads it really should be using, it would be nice to be able to see some descriptive text in the debugger "threads" window describing what each one is, without having to click through to it and determine from the context what it is.  They all have the same start address so generally the threads window says something like "thread_base::start" or something similar. I'd like to know if there is an API call or something that allows me to customise that text.
6390
Imagine a site that's available in multiple languages. The language is detected automatically by looking at the IP or the browser header. But that's not bulletproof, so a few users might end up on a page in language they don't understand.  I am wondering what the best way is to present the language selection?          &ndash; Wireframes created with   Q: Should the languages in the language selection be listed   translated into current language, used to display the site in (good if the detected language was correct)? native name of the language, so everybody looking for their language could see it in the very same language (good if the detected language was not correct and users don't know the current language)? always in English assuming most users would understand this?   Feel free to add if I missed something!
91581
How can I get access for the english values of my entity in the french version of my twig template. This is for a tracking task.  Let say I want to print the node title en english on the french version.  I was hoping I could do something like this : {{ node.languages.en.label }} but this doesn't work.  I'd rather avoid using preprocess if possible (I know how to do it with preprocess).
68037
I just accepted an invitation to , and thought that it would be just great if there was any possibility to write my profile in multiple languages.  I know English is kind of vernacular in Programming languages, but I have the habit to write CV, list of publications, etc., in both my native language (a.k.a. French) and English, and think this is an excellent practice.  Could it be possible to write a profile in several languages, and depending on the recruiter's profile, to display such or such language ?
9770
I'm sure you all know the behaviour I mean - code such as:  Thread thread = new Thread(); int activeCount = thread.activeCount();   provokes a compiler warning.  Why isn't it an error?  EDIT:  To be clear: question has nothing to do with Threads.  I realise Thread examples are often given when discussing this because of the potential to really mess things up with them.  But really the problem is that such usage is always nonsense and you can't (competently) write such a call and mean it.  Any example of this type of method call would be barmy.  Here's another:  String hello = "hello"; String number123AsString = hello.valueOf(123);   Which makes it look as if each String instance comes with a "String valueOf(int i)" method.
33995
I am confused about hreflang="x-default".  I have a site in 2 languages. In each page I have a link to the page itself and a link to the same page in the other language. If I understand correctly, I have to put an x-default also. In my case it goes to the page "language". There the user can see two buttons to choose the language of the site.  The x-default link is the same on all pages and it is present in all of them.   &lt;link rel="alternate" hreflang="en" href="http://example.com/about" /&gt;  &lt;link rel="alternate" hreflang="fr" href="http://example.com/fr/about" /&gt; &lt;link rel="alternate" hreflang="x-default" href="http://example.com/language" /&gt;   I use Screaming Frog to detect possible errors. It says "Missing confirmation links in all the pages" when I see the details of the error. It makes reference only to the x-default link. I do not understand.  How to use the hreflang="x-default"?
106765
I use 3 languages when I brows the internet and changing it from the top panel is quite disturbing on windows you can changed the languages with pressing alt+shift so can I some how do the same on ubuntu   thank you in advanced
9282
I'm developing a multilanguage software. As far as the application code goes, localizability is not an issue. We can use language specific resources and have all kinds of tools that work well with them.  But what is the best approach in defining a multilanguage database schema? Let's say we have a lot of tables (100 or more), and each table can have multiple columns that can be localized (most of nvarchar columns should be localizable). For instance one of the tables might hold product information:  CREATE TABLE T_PRODUCT (   NAME        NVARCHAR(50),   DESCRIPTION NTEXT,   PRICE       NUMBER(18, 2) )   I can think of three approaches to support multilingual text in NAME and DESCRIPTION columns:   Separate column for each language  When we add a new language to the system, we must create additional columns to store the translated text, like this:  CREATE TABLE T_PRODUCT (   NAME_EN        NVARCHAR(50),   NAME_DE        NVARCHAR(50),   NAME_SP        NVARCHAR(50),   DESCRIPTION_EN NTEXT,   DESCRIPTION_DE NTEXT,   DESCRIPTION_SP NTEXT,   PRICE          NUMBER(18,2) )  Translation table with columns for each language  Instead of storing translated text, only a foreign key to the translations table is stored. The translations table contains a column for each language.  CREATE TABLE T_PRODUCT (   NAME_FK        int,   DESCRIPTION_FK int,   PRICE          NUMBER(18, 2) )  CREATE TABLE T_TRANSLATION (   TRANSLATION_ID,   TEXT_EN NTEXT,   TEXT_DE NTEXT,   TEXT_SP NTEXT )  Translation tables with rows for each language  Instead of storing translated text, only a foreign key to the translations table is stored. The translations table contains only a key, and a separate table contains a row for each translation to a language.  CREATE TABLE T_PRODUCT (   NAME_FK        int,   DESCRIPTION_FK int,   PRICE          NUMBER(18, 2) )  CREATE TABLE T_TRANSLATION (   TRANSLATION_ID )  CREATE TABLE T_TRANSLATION_ENTRY (   TRANSLATION_FK,   LANGUAGE_FK,   TRANSLATED_TEXT NTEXT )  CREATE TABLE T_TRANSLATION_LANGUAGE (   LANGUAGE_ID,   LANGUAGE_CODE CHAR(2) )    There are pros and cons to each solution, and I would like to know what are your experiences with these approaches, what do you recommend and how would you go about designing a multilanguage database schema.
93649
I'm wondering about the period character . used as a shortcut for the local computer name.  You can use it when logging into Windows 7, for example, to specify that the user account you're entering belongs to the local computer rather than to a domain:  .\MyLocalUserAccount   And you can use it within a Windows Management Instrumentation (WMI) query to indicate that the target is the local computer rather than a remote computer.  You can also use it when working with named pipes to for similar purposes.  However, you cannot use it as the UNC network name for the computer, like this:  \\.\MyShare   Does this character have an official name (e.g. "LocalHostToken") and when and where can it be used for this purpose?
119575
I have 2 languages in my site and a search view for property search and I am using the Search API module.  When I try to search in English (default language), the search is working. But when I try to search in the another language the search is not working.  I am searching by tittle.  Any suggestions?
30409
I am using the , and have defined lstset parameter sets for multiple programming languages. I would like to select a parameter set when beginning a lstlisting or lstinputlisting by selecting the language corresponding to the parameter set definitions. I appreciate, however, that language selection at this stage only affects formatting of language-specific syntax and is not connected to the preamble parameter set definitions. Rather, enumerating multiple such definitions is fruitless as the last set of definitions overrides all the former ones (or so it appears). Therefore, I would like to know how to define and subsequently invoke multiple lstset parameter sets.  As a very rudimentary example,  \documentclass{article} \usepackage{listings}% http://www.ctan.org/pkg/listings \lstset{language=C,frame=lines} \lstset{language=C++,frame=none} \begin{document} \begin{lstlisting}[language=C] #include&lt;stdio.h&gt; main() {  printf("Hello World"); } \end{lstlisting} \begin{lstlisting}[language=C++] #include &lt;iostream.h&gt; main() {  cout &lt;&lt; "Hello World!";  return 0; } \end{lstlisting} \end{document}   As one can see, both languages are displayed using the second defined parameter set (frame=none). I would like to use a key-value pair in the \begin{lstlisting} macro to invoke the appropriate language-specific parameter set defined in the preamble (as suggested by my use of the language= key-value pair). Is this possible?
69846
I have a site with 4 languages and am using the builtin search to look for content on the site. How is it possible to restrict the search results only to the currently selected language?  I tried looking into Configuration > Search Pages, but do not see any way how to do that there.
45338
I have installed a wordpress theme, i can see the .mo and .po /public_html/wp-content/themes/themename/lang, the language I want to use is available.  Could you please advise on how to use a specific language? I don't want to change the admin language just the theme language.
66901
There are several localized versions of Stack Overflow: , , , and . I guess there will be more languages supported in the future.   This brings up a big question for me. Is it OK to pick any given question in the English Stack Overflow, translate it and repost it in a different language Stack Overflow site?  Obviously there will be a lot of duplicated questions about simple topics like:     How to concatenate two strings in X language?   But is it allowed to pick an answer from the English (or any other language in the future) site and completely translate it? Furthermore are we allowed to repost translated questions? For example, can I entirely translate  and repost it in the Portuguese version?
79701
I'm used to work with Java where large amounts of examples are available. For various reasons I had to switch to C# and trying to do the following in SharpDevelop:  // Form has a menu containing a combobox added via SharpDevelop's GUI  // --- Variables languages = new string[2]; languages[0] = "English"; languages[1] = "German"; DataSet myDataSet = new DataSet();  // --- Preparation DataTable lTable = new DataTable("Lang"); DataColumn lName = new DataColumn("Language", typeof(string)); lTable.Columns.Add( lName ); for( int i=0; i&lt;languages.Length; i++ ) {     DataRow lLang = lTable.NewRow();     lLang["Language"] = languages[i];     lTable.Rows.Add(lLang); } myDataSet.Tables.Add(lTable);  // --- Handling the combobox mnuActionLanguage.ComboBox.DataSource = myDataSet.Tables["Lang"].DefaultView; mnuActionLanguage.ComboBox.DisplayMember = "Language";   One would assume to see some values in the dropdown, but it's empty. Please tell me what I'm doing wrong ;(  EDIT: mnuActionLanguage.ComboBox.DataBind() is what I also found on the net, but it doesn't work in my case.  SOLUTION  mnuActionLanguage.ComboBox.BindingContext = this.BindingContext;   at the end solved the problem!
90210
How do I set up a global locale for the computer?  I have recently installed Kubuntu 14.04LTS in english but since I am in Spain, I chose Spain as a country and then changed locale options so that I get all country specific configuration such as digit grouping, decimal separator, date format, etc. I also added the spanish language.  Now all applications complain that locale is wrong. check-language-support tells me I'm using en_ES.UTF-8 as system's locale, and that locale is indeed wrong, there is no locale for english language in Spain.  I tried using Kubuntu's country/region &amp; language settings but it doesn't fix it. I tried using export LANG=en_GB.UTF-8 and export LC_ALL=en_GB.UTF-8 and then sudo dpkg-reconfigure locales and that caused check-language-support to say that I now have a correct configuration but if it is, it's only in that konsole session. This problem also prevents konsole from showing unicode characters and I cannot use dead keys or enter any 'international character' such as ñ or ç (those work on other applications such as Firefox, that I'm using to post this question).  So the question is: How do I set up a global locale for the computer?  This is not a bug report, I will probably reinstall my computer eventually if I can't fix it. But I really want to know how I can perform this REALLY basic task.  Thank you.  $ check-language-support perl: warning: Setting locale failed. perl: warning: Please check that your locale settings:         LANGUAGE = "en:es:en",         LC_ALL = (unset),         LC_PAPER = "en_ES.UTF-8",         LC_ADDRESS = "en_ES.UTF-8",         LC_MONETARY = "en_ES.UTF-8",         LC_NUMERIC = "en_ES.UTF-8",         LC_TELEPHONE = "en_ES.UTF-8",         LC_IDENTIFICATION = "en_ES.UTF-8",         LC_MEASUREMENT = "en_ES.UTF-8",         LC_TIME = "en_ES.UTF-8",         LC_NAME = "en_ES.UTF-8",         LANG = "en_ES.UTF-8"     are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). locale: Cannot set LC_CTYPE to default locale: No such file or directory locale: Cannot set LC_MESSAGES to default locale: No such file or directory locale: Cannot set LC_COLLATE to default locale: No such file or directory hunspell-en-ca libreoffice-help-en-gb libreoffice-l10n-en-gb libreoffice-l10n-en-za mythes-en-au wspanish  $ cat /etc/default/locale LANG="en_US.UTF-8" LC_NUMERIC="es_ES.UTF-8" LC_TIME="es_ES.UTF-8" LC_MONETARY="es_ES.UTF-8" LC_PAPER="es_ES.UTF-8" LC_NAME="es_ES.UTF-8" LC_ADDRESS="es_ES.UTF-8" LC_TELEPHONE="es_ES.UTF-8" LC_MEASUREMENT="es_ES.UTF-8" LC_IDENTIFICATION="es_ES.UTF-8"   $ locale locale: Cannot set LC_CTYPE to default locale: No such file or directory locale: Cannot set LC_MESSAGES to default locale: No such file or directory locale: Cannot set LC_ALL to default locale: No such file or directory LANG=en_ES.UTF-8 LANGUAGE=en:es:en LC_CTYPE="en_ES.UTF-8" LC_NUMERIC=en_ES.UTF-8 LC_TIME=en_ES.UTF-8 LC_COLLATE="en_ES.UTF-8" LC_MONETARY=en_ES.UTF-8 LC_MESSAGES="en_ES.UTF-8" LC_PAPER=en_ES.UTF-8 LC_NAME=en_ES.UTF-8 LC_ADDRESS=en_ES.UTF-8 LC_TELEPHONE=en_ES.UTF-8 LC_MEASUREMENT=en_ES.UTF-8 LC_IDENTIFICATION=en_ES.UTF-8 LC_ALL= $ update-locale perl: warning: Setting locale failed. perl: warning: Please check that your locale settings:         LANGUAGE = "en:es:en",         LC_ALL = (unset),         LC_PAPER = "en_ES.UTF-8",         LC_ADDRESS = "en_ES.UTF-8",         LC_MONETARY = "en_ES.UTF-8",         LC_NUMERIC = "en_ES.UTF-8",         LC_TELEPHONE = "en_ES.UTF-8",         LC_IDENTIFICATION = "en_ES.UTF-8",         LC_MEASUREMENT = "en_ES.UTF-8",         LC_TIME = "en_ES.UTF-8",         LC_NAME = "en_ES.UTF-8",         LANG = "en_ES.UTF-8"     are supported and installed on your system. perl: warning: Falling back to the standard locale ("C").