Questions tagged [globalization]
The process of making an application suitable for use for a world-wide audience, regardless of culture.
1,428
questions
0
votes
0
answers
6
views
Localization doesn't apply to all pages
I'm working on a Blazor project, where I am currently trying to add my first language to my application. I have gotten pretty far, where I can select a language from a multi-selection-box and changes ...
0
votes
1
answer
7
views
Locale-aware number-string formatting in .NET
Different languages have different rules related to writing down numbers (counts etc.). For instance:
Polish
English
1 plik
1 file
2 pliki
2 files
3 pliki
3 files
4 pliki
4 files
5 plików
5 ...
5
votes
1
answer
122
views
How to detect globalization-invariant mode
.NET Core/6/7 supports a globalization-invariant mode which alters the behavior regarding globalization in many ways.
How can a library detect if it is running in this mode and adjust its behaviour ...
0
votes
0
answers
59
views
.net 7 redirect unknown cultures, getting 404 when not supplying culture
When i route to a page and supply the culture it works as intended
ie. localhost/en-us/page/index.cshtml.
but when i go to localhost/folder/page.cshtml I get a 404.
I would like to know if its ...
1
vote
1
answer
67
views
JavaScript Date - How to better set midnight UTC+0
I have a MUI Datepicker where i can select a day without time.
Example:
I select
01.09.1970
In console the log is Tue Sep 01 1970 00:00:00 GMT+0100 (Mitteleuropäische Normalzeit)
It means i sitting ...
1
vote
2
answers
190
views
Global variable is not getting updated in dart Why?
I have two global variables. the first variable is assigned inside the second variable.When I update the first variable the second one is not getting updated.
String value = "abcd";
...
0
votes
0
answers
108
views
Microsoft.Data.SqlClient.resources, Version=5.0.0.0, Culture=en-US not found error only when debug in Visual Studio
I am using Microsoft.Data.SqlClient in .NET 6 function app or console app
I got this exception break on this line of code using (SqlConnection connection = new SqlConnection(connectionString)), it ...
0
votes
1
answer
64
views
ASP.NET Core MVC : ModelState error message - localization not working
en-US:
zh-CN:
Why are [Display(Name = "LoginUserName")] and other data annotations not working?
This is my localization config
What could be the fix for me?
0
votes
0
answers
121
views
C# - Get ISO 639-2 three-letter code from language name and country name
The problem
I've got the following information:
Language name
Country
An example would be: English, United States
This information needs to be converted into an ISO 639-2 three-letter code.
It might ...
1
vote
0
answers
41
views
How do I get a localized string from a Form resouce resx file in code?
I tried to call it as below but I couldn't. That's why the code is incomplete
private void button4_Click(object sender, EventArgs e)
{
using (ResXResourceSet resxSet = new ResXResourceSet(resxFile)...
0
votes
0
answers
42
views
Windows Forms Page MultiLocalization
I'm listing the things I want to do to my project in the github account below, but what I can't. I would be glad if you help.
The language selected during the runtime is valid again when the program ...
0
votes
0
answers
116
views
How to change value of a number input field when using a different Culture - Blazor
In my application we're letting the user change language (culture) freely. But some cultures changes the "." to a "," in the decimal displays.
The problem is that the value isn't ...
0
votes
0
answers
29
views
How can i change Fluent Validation lifetime to Transient?
I want to Globalize my API with JSON resource file. I did and test it in Controller. But in Fluent validation translate to only one language.
Now when i change the Accepted-Language, It dosn't change ...
0
votes
0
answers
53
views
Globalization / multilanguage in WPF vb.net using Ressourcedictionaries .xaml
What is the best practice to set up a Multilingual App?
I already have a working project with Ressource-dictionaries. But it looks different to this Topic:
MSDN globalization-and-localization-overview....
1
vote
0
answers
60
views
Globalizing the properties (details) of an EXE
In Windows 10, when you right-click on an executable (EXE) file, select Properties, and click on "Details", you see some strings and numbers that come from the resources section of the ...
0
votes
0
answers
214
views
Issue with dates being set to UTC automatically
I have a system that pulls data from a PostgreSQL DB and writes it to SQL Server 2012. The field names are the same on both sides. PostgreSQL is delivered as part of a SaaS solution. (I only have read ...
1
vote
1
answer
143
views
Globalization not returning all culture nationalites as expected. .NET C# Blazor
I am compiling a list of all the nationalities in the world so that my users can select their nationality from a dropdown and display this in a bio. I decided to use globalisation for this.
whenever i ...
0
votes
2
answers
380
views
Where to put Resource folder and files in .NET Clean Architecture for Globalization and Localization?
Where should I put my Resource folder in .NET Clean Architecture for Globalization and Localization? I have the following layers
1 - Domain
2 - Application
3 - Infrastructure
4 - WebApp
0
votes
1
answer
266
views
How can we integrate resource file with any translation management tool
I am working on multilingual site developed in asp.net MVC. Currently we are managing the translation task using resource (resx) file and everything is working fine.
Now as per client requirement, ...
3
votes
0
answers
155
views
Why do Linq's OrderBy not always adhere to CurrentCulture?
I have a problem where doing an OrderBy on a List<object> containing strings is returning different results in different environments, even though the CurrentCulture is set the same.
Example:
...
0
votes
0
answers
56
views
How to store IStringLocalizer resource files per project?
I have a project structure where we develop in modules. To simplify things and to make this easy to explain lets assume I have a website that display products.
Now we have a project for each product. ...
0
votes
0
answers
186
views
Missing Globalization Cultures on IIS8.5 / Server 2012R2
I'm trying to set the culture of a website to en-ZM in the web.config of the site but I get an error:
The <globalization> tag contains an invalid value for the 'culture' attribute.
When I try to ...
0
votes
2
answers
212
views
Databinding and multiple languages in the app C#
I have a form that looks like this
there I edit the task selecected data.
So the texblock Due Date it's binding a property.
<TextBlock x:Name="DueDateTexblock" x:Uid="...
0
votes
0
answers
60
views
How to make correctly parse numbers with decimals in MVC actions with multiple cultures supported?
I have MVC POST action requests that can't parse correctly numbers with decimals when there are many cultures supported, for example:
I have a pure form that doesn't use AJAX, it does the usual POST.
...
0
votes
0
answers
63
views
Globalization in blazor server project
I am trying to change the language of my website through language dropdown.
I am not able to find any example on globalization in blazor server project. However I have tried globalization in blazor ...
1
vote
1
answer
621
views
Change culture info blazor web assembly, display name issue
I'm using localization in my blazor wasm application. But when loading and trying to display the name of the cultures, it does not show as intended. By following this link https://learn.microsoft.com/...
1
vote
0
answers
635
views
Use different calender and format info for DateTime.ToString() and DateTime.Parse() in Asp.Net Core 5
I use globalization and localization in my Asp.Net Core app and i want to use PersianCalendar when requested culture is set to 'fa-IR'.
This needs to happen whenever a DateTime.ToString() happens. I ...
0
votes
2
answers
164
views
How to determine upcoming months relative to a given month in any calendar?
How can I find out the upcoming months relative to a given month according to the calendar that I select?
Meaning I selected the Gregorian calendar and the given month is September, a list of the ...
1
vote
1
answer
300
views
Supported ISO language codes in SQL server
• How can I list the supported regional ISO codes per the version I work on?
I need to check an ISO 639-1 (2 characters) language code to see if it is supported.
You don't get a default reply for ...
0
votes
2
answers
1k
views
How to force .Net ToString to use given Globalization / CultureInfo
I'm working with a piece of .Net Core 6 library (dll), in which, amongst other functionality, numbers and date/time information is outputted as strings and this code is required to be globalized ie. ...
0
votes
1
answer
327
views
Resource Globalization using C# - Label and Error message
I have implemented globalization using RESX files in my winform project using the .NET C# 4.7.2 framework. The current RESX files are used for Labels, now I need to have another resource file for ...
2
votes
1
answer
134
views
Visual Studio plugin to show the text from a resource file instead of the code
We've been implementing resource files for our globalisation.
Quite often I'll need to search for some text where a user is reporting a mistake or for whatever reason. Obviously now we use resource ...
1
vote
1
answer
219
views
How to get text element of the given react component in React.cloneElement?
Developers give me the headings of the table:
const CustomersTable = () => {
var headers=<>
<th>Name</th>
<th>Age</th>
<th>Another ...
0
votes
1
answer
189
views
TryParseExact from french dates with month full name
I need to parse dates such as
7 août 2008 (August 7th 2008)
I tried this :
var french = CultureInfo.GetCultureInfo("fr-FR");
DateTime.TryParseExact(input, "d MMMM yyyy", french, ...
1
vote
1
answer
274
views
UWP - Multilingual : Change of language string at runtime
When we have multiple languages in UWP (Xliff and Resx). at runtime windows decides which language to load or manually also we can change using Windows.Globalization.ApplicationLanguages....
0
votes
1
answer
200
views
Change Create button text for kendo grid with globalization
I want to know if there is a way to change the text of the create button of a kendo grid with the system of globalization.
I'm using kendo.culture("fr-FR) on my layout and i'm importing the ...
0
votes
1
answer
321
views
Why might there be a UTF-8 BOM at the end (as the last bytes) of each IIS response?
At the end of every page that runs through the IIS pipeline that emits a Content-Type with charset (per the <globalization> element), the UTF-8 BOM is added at the end of the response. This is ...
8
votes
2
answers
798
views
Azure App Service seems to have NLS enabled in .NET 5 mode
After spending countless of hours on getting to the core of a bug, I eventually boiled down a problem to the use of string.Compare with StringComparison.InvariantCultureIgnoreCase in .NET 5.
Consider ...
0
votes
0
answers
139
views
Sqlplus cannot get special characters like Japanese from the query result
I use sqlplus 12 connecting to Oracle 12c.
I have set the environment variable NLS_LANG = AMERICAN_AMERICA.JA16SJISTILDE.
I changed region and Langue for non-Unicode program to japanese.
But still can'...
1
vote
1
answer
189
views
Blazor using double to set position of component use a comma instead of a dot ( 10,5% in stead of 10.5%)
When I set the position of a Blazor component, it send to the browser 10,5 instead of 10.5. I guess that it should be done with invariant culture but I can't find where to add it.
style="position:...
0
votes
0
answers
161
views
MVC multilanguage project turns back to default language
I want to change navbar titles acording to the choosen language but when i click any title at the navbar, language goes back to default language which is english
navbar
<div class="...
0
votes
0
answers
106
views
Spanish resource RESX file for mutiple countries
I'm working on a .Net Core project using Localization Globalization settings oriented to the settings on the Browser. I just got a problem, that I have a Default.es.resx for example. That works when ...
1
vote
2
answers
180
views
How to get ListDictionary from List with KeyValuePair to translate some string?
I need translation for programmatically changed label text.
Therefor I built a List with translations. The list conpect looks like this:
translation["de"]["label1"] = "german ...
0
votes
1
answer
34
views
Simplify access to service data on Angular2 components
On my Angular2 projects i used to create a service to care about the system authentication, and on this service i store the user data on an observable.
I want to avoid to repeatedly create a local ...
0
votes
2
answers
795
views
Setting the Culture for the rest of the request in an Action
Our application shows invoice data, so the URL is something like https://localhost/Invoices/guid-goes-here
So in the Action handling this request, I retrieve the Invoice data. Included in this data is ...
0
votes
0
answers
321
views
Localisation and globalisation ASP.NET Core MVC 3.1 all views
I have an app where the user must log in before they can access their records, so far I've been able to localised (translate) the login page using exactly this tutorial found here but when they login ...
1
vote
1
answer
282
views
Tests on strings fails inside docker container
I'm using dotnet core and running a couple os tests on customized string extensions inside a docker container and it fail always, but it works well on a windows machine.
i've tryed to enforce the ...
0
votes
2
answers
739
views
Localization and Globalization in ASP.NET Core MVC (.NET 5)
I've been Following this tutorial "https://www.youtube.com/watch?v=Hy9G30nncMM".
with my own modifications.
ConfigureServices:
services.AddLocalization(opt => { opt.ResourcesPath =...
0
votes
0
answers
749
views
'CultureInfo' & 'NumberStyles' does not exist in the current context
when I was writing a basic C# program, I came across the following bugs. enter image description here
I searched online and tried to add references in Solution Explorer but couldn't add any reference?
...
0
votes
1
answer
29
views
Use Database across the globe
I have a generic requirement just like any other big application, I want my user sitting in Asia to access my website hosted in the US region with the lowest latency(fastest speed), currently, it is ...