Use Tools Like Localize Substitution?
Sep 1, 2010How to use tools like localize substitution?
View 1 RepliesHow to use tools like localize substitution?
View 1 RepliesWhat is Post Cache substitution and how it is implemented in the asp.net page?
View 1 RepliesI'm working with a client that wants the URLs in our web application to be in French. I'm an English developer and we also have English clients. This is an interesting problem is there something int the ASP.NET MVC Framework that would enable me to do this?
Here's the scenario. The route...
Specific EXAMPLE English URL
www.stackoverflow.com/questions/ask
So in MVC my Area, Controller and Actions all need to have both English and French translations.Obviously maintainability would be a HUGE issue if I were to go and hardcode all my Controllers, Views and Action names to French. Is there anyway to localize the route that is presented in the browser without doing this? Keeping in mind there are lots of different routes in the application. A couple Areas each with a handful of Controller each with many Actions?
Note this message is also on SO: http://stackoverflow.com/questions/3935768/is-it-possible-to-localize-a-url-routing-in-asp-net-mvc
http://mydomain/browseproduct?ProID=17 (show all product in category 17 in English language), i click icon to change our website languge to French, i want to still stand at
http://mydomain/browseproduct?ProID=17, but i can not, after i click change language icon it redirect tohttp://mydomain/browseproduct page, no query parameter. In my code i use
Response.Redirect(Request.Url.LocalPath);
I have 2 links, one english one spanish. is there anyway i can localize that in .net? I was thinking of using sitemap
View 1 RepliesThis is my datatable
[Code]....
I want to localize the columns names. Can you tell me how can I do this? I localized my .aspx pages, but I don't know how to localize the text in .cs files.
I am doing my final year project and have decided to make a website in asp.net. For that I'll be using Micrsoft Visual Studio 2008. I'm making a Real ESTATE properties website. I want to know how to localize or create new posts in asp.net( like in WORDPRESS) and also when I hit SEARCH it should search for the desired keyword or the searched post.
If post is not possible then it should display pages...
I am trying to figure out how to get the DisplayAttribute in my MVC 2 ViewModel to work with the Html.LabelFor() helper.
Neither
public class TestModel
{
[Display(ResourceType = typeof(Localization.Labels))][code]...seem to work. Localizing the Required Attribute works as expected:
[Required(ErrorMessageResourceName = "Test", ErrorMessageResourceType = typeof(Localization.Labels))]
I am using VS2010 RC. Has anybody got that running?
I'm just getting started using Resharper with VS-2008, and one of the 'errors' it gave me was to localize a Label's text in the code-behind. I've worked with Localization before to Localize a website from english into french, but I don't understand what the benefit is to localizing beside that usage.
View 2 RepliesI have a question about YUI. I am using YUI calendar component in my website project. I insert the codes inside ASP as javascript. (like that [URL]) Now, i am about to hearing your questions, i am answering them immediately. Yes, this link explains how lo localize YUI calendar, but, it does not work for me. Because, it is static. I want to localize it dynamically. It should depend on user's browser language. For example, if the user's browser language is Deutsch, it is supposed to display 'samstag', if it is English, it is supposed to display 'saturday'.
View 2 RepliesWe are using ASP.Net Membership provider for user management module in our WPF based application. It seems to be working fine. But now we want to localize our WPF application, and don't know how to do that with respect to the data stored as part of Membership Provider. Is Localization supported by Membership Provider ?
View 2 RepliesBelow is static text in some aspx file.How to localize static text in asp.net.I have to use frameowrk 4.0 and vs 2010.There is lot of static text in <p> or <br> tag.?can you explain me how to localize this static text using app_local resource file.I tried with literal and localize control but can anyone explain me how to convert following text.
[Code]....
[Required]
[DisplayName("my date")]
public DateTime? DateReg { get; set; }
so if the user is going to pass in an invalid datetime value he will get this message "The value '02.07.201022' is not valid for my date."
Is there any way to localize the text displayed within the PropertyEditorPart?
[Personalizable(true),
WebBrowsable(true),
WebDisplayName("To Date: "),[code]....
i would localize the text of DisplayName attribute: i know that at the moment is not possible (i hope that the next version of mvc will do it automatically) so i tried to search how to do it and i found this link:
LINK TO BLOG'S POST
but i didn't understand how to finish the lookup function.
My company has new customers in Brazil and we realized that our excel reports are not working when our Brazilian customers tried to open the reports in their Brazilian versions of excel.
For excel output we use spreadsheet gear in our vb.net web application. Our excel worksheets are fairly simple. Mostly outputted text/numbers/dates, a couple of formulas (sum, if) and formatting on the currency and dates.
I've tried several methods to get my excel reports to work: First I left the excel workbook in the "en-US" culture and tried simply chaging the number format for Brazil to:
_-[$R$-416] * #.##0,00_-;-[$R$-416] * #.##0,00_-;_-[$R$-416] * "-"??_-;_-@_-
And this formatted the regular cells but the formulas still failed to show a value. Instead they showed a 0 value.
Next I tried changing the workbook to the "pt-BR" culture and that also forced me to translate the formula names (Sum -> Soma, If -> Se) but they still wouldn't should a value and instead showed a #Name/#Nome error. Interestingly enough the formulas would work if I edited the cell and hit enter. The formula wouldn't change but it would some how fix that cell.
I need to be able to out excel reports that can format dates/currencies and apply simple formulas (IF, Sum) for other excel cultures.
how can I localize calendar in Ajax Control Toolkit? In Web Forms it is easy, I would just set EnableScriptGlobalization to true on ScriptManager, but in MVC I don`t have this server side support.
View 2 RepliesI cannot figure out why HeaderText or validation controls always fallback to default culture - even though rest of the controls are in correct culture.
I have a GridView with HeaderText specified in this way>
<asp:BoundField DataField="totalSales" HeaderText="<%$ Resources:Strings,TotalSales %>" />
In the same way I have validation controls and they can't be localized.
Only this syntax does work: <%= Resources.Strings.Payments %>
I set different culture in Master page using this statement in Page_Init
Me.Page.Culture = "pl-PL"
Me.Page.UICulture = "pl-PL"
How to Localize or globalize static text within <br> ,<span>,<strong> ,<p> using app_local resource file and can you even explain me how to localize
numeric value within <span> or <strong > text.I have some even some text like <strong>1</strong>
Here is some sample text:
[code]....
I have a question about javascript. In my project, there are embedded and non-embedded javascript codes. And i did localization of the embedded codes like below and it works.
CN.DEFAULT_CONFIG = {
strings : {
year: '<%=GetGlobalResourceObject("Resource", "YEAR") %>'
But, this method does not work for non-embedded javascript codes. How can i do localization for them?
I'd like to fully localize my ASP.NET MVC application, and while there are many articles that deal with the various pitfalls of ASP.NET MVC localization, none of them deals with an aspect that I want to deal with, and that is the localization of URLs, including the controller names and actions.
I would like a way to specify the strings that should appear instead of the controller name and action name in the URL, for example in a resource file.
How to implement all controls to localize languages in a Web Page??
View 7 RepliesI have something like this in mind:
<appSettings>
<add key="ConfigName" value="configuration" culture="1033" />
<add key="ConfigName" value="konfiguracja" culture="1045" />
[code]...
I understand how to localize controls like buttons etc. I'm wondering how to accomplish the same thing with META tags.We use the following code to set META tags from code behind:
Title = AppConfig.CompanyName +
" | [some prose that is specific to the page";
// Build META tags
[code]...
I have almost 10 web pages on my corporate website, built on 3.5 framework.
in order to localize my website do i need to create App_LocalResources folder?
Also do i need to move all my 10 webpages into the above folder or can i keep then outside too?
I found two resource files related to english and spanish languages on msdn web, do i need to add then to the App_LocalResources folder?