Localization - Show Hindi Fonts On Web Application?
Jan 8, 2010
how can i show matter in Hindi Language on my asp.net page. and the main thing is that my text should be visible even if the Hindi font is not installed at client side. for that i researched on Google and find out that unicode can do it.. but i dont know how to work with it.
I want to display Hindi/malayalam text in webpages. i done a sample by pasteing a Hindi text in a rich text box and tried to display in a literal control. it's working fine.But, I save that Hindi text to database basically it is the image descrtption. Image description datatype in sql server is Nvarchar(Max). After reading the description and puting back in literial control it just showing some question marks. How to resolve this issue.
I am Exporting Crystal Report to pdf in hindi font it displaying as boxes i have installed adobe reader 11.0 with asian extended language pack in my local system. (English is working fine problem is with only with hindi font)
I want to make a user control,language for this control should be hindi.and all values in dropdownlist in this control should be in hindi.How to accomplish this?
I have an urgent issue with US datetime, in my application I am tring to achieve the following:
1. Enter a datetime in a text box in web form 1 2. Show the date time in the label in the web form 2 3. In web form 2, create a dropdownlist to get a nearest date from database (datatype = DateTime in dd/MM/yyyy) to the date entered from step 1.
In step 1, I am only allowed to enter the date time in US style in text box and I have tried manything like:
- Insert <globalization culture="auto:en-GB" uiCulture="auto:en-GB"/> in web.config - Set above culture on page webform 1 and 2
I am based in UK, PC reginal and datetime setting are UK dd/MM/yyyy, sql database is in UK.
In my application i used .resx files. Now i need to deploy my application in a single dll. Once i deploy and add this dll as a refernce in other client applications then the culture specific dlls are added under Bin directory in client application. I don't want this to happen. Should i embed or link the satellite assembly in my applicaion to avoid this? if so how to do this?
I had created ASP.Net Web Application named 'Traning Management System' (in English) for my company. Now my boss wants me to translate that application to Arabic language. He wants everything to be in arabic. I don't know how to do it. I searched in google and came to know about localization and globalization. I could not understand the topics. My application contains 1 master page, 5 .aspx pages. The pages mostly contains labels, textboxes, gridview, buttons and other controls. The project also contains reports.
I need to build a globalized web application, and I already have those resource files in the App_GlobalResources folder. My web application is built upon an N-tier architecture: DAL, BLL and Presentation are the layers, and we are using SQL Server 2008. We have decided that the database, BLL and DAL will always be operating using the en-US culture, but the culture in the Presentation layer can vary.
ASP.NET works with two culture properties: Culture and UICulture. There's an article in MSDN that states that a thread's UICulture determines which resource files ASP.NET picks, and Culture determines datetime/currency formating, etc.
So, to have a fully globalized application, I think I must set both Culture and UICulture, so that both Resources and datetime/currency formating are displayed using the same culture.
Then I thought I would set those culture properties (both of them) in the BeginRequest event in my web application, based on the user's choice, and that everytime a method in the BLL is called, it sets the thread's Culture property to "en-US" and, just before it returns, it sets the thread's Culture back to what it was before.
I am working on a web forms application that needs to support multiple languages based on a user's preference. Here are some considerations to keep in mind about the needed solution:
I want to avoid using resource files to store the different text translations because I'd like the ability to change them without having to recompile and deploy the application.
Also the translations ideally need to be adminstratable.
It seems its a considerable amount of effort to add this support to an existing application.
I'm creating a multi-language web site using ASP.NET and Framework 3.5. So far no login required. Everything has been working fine. But when I update my windows 7 and software and compile the site the follow error appear
Server Error in '/' Application.
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. review the following specific error details and modify your source code appropriately.
Compiler Error Message: BC30554: 'ProfileCommon' is ambiguous.
Set compilation debug="true" to insert debugging symbols into the compiled page. Because this affects performance, set this value to true only during development.
The <authentication> section enables configuration of the security authentication mode used by ASP.NET to identify an incoming user.
--> <authentication mode="Windows"/> default.aspx <script runat="server"> Protected Overrides Sub InitializeCulture() Dim CurrentContext As HttpContext = HttpContext.Current Dim UserCulture As String = CurrentContext.Profile.GetPropertyValue("PreferredCulture").ToString() If UserCulture <> "" Then Thread.CurrentThread.CurrentUICulture = New CultureInfo(UserCulture) Thread.CurrentThread.CurrentCulture = CultureInfo.CreateSpecificCulture(UserCulture) End If End Sub Private Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs) Handles MyBase.Load If Not IsPostBack Or CStr(Session("CultureName")) <> CultureInfo.CurrentCulture.Name Then Session("CultureName") = CultureInfo.CurrentCulture.Name End If End Sub 'Page_Load Protected Sub SetLanguage(ByVal sender As Object, ByVal e As EventArgs) 'Save selected user language in profile Profile.SetPropertyValue("PreferredCulture", "es-PR") 'Force re-initialization of the page to fire InitializeCulture() Response.Redirect(Request.Url.LocalPath) End Sub Protected Sub SetLanguageEn(ByVal sender As Object, ByVal e As EventArgs) 'Save selected user language in profile Profile.SetPropertyValue("PreferredCulture", "en") 'Force re-initialization of the page to fire InitializeCulture() Response.Redirect(Request.Url.LocalPath) End Sub </script>
If I run the olds files with the precompiled file this work.
I am little confused regarding the concepts of localisation and globalization.I was working on a project which was totally database driven. All the data, images and flash stuff was coming from the database. Now the site is fully loaded with the data.Now the client wants the currently running site in 5 different languages. So I read the resource files concept. Now the confusion arises. I have 2 types data on the site, one is static(ie text on labels, titles, buttons) and dynamic data that was added from the admin panel.Now my question is: If at this stage I want to make the site in 5 different languages, then I have to make the resource files for all those languages so that the static data can be displayed in different languages.But what about the dynamic data that was entered by the client. Client uploaded huge amount of data. Should I make the changes in the database tables and add 4 other columns for different languages and again upload that much data in those 4 languages.
My application is in arabic. When i run my application locally it is working fine but after uploading it on the server, the arabic content is not showing. All my labels and HTML content are not showing in arabic. I am using Master Page.
I have VS 2008 and 3.5 framework.I want to set up my application that I can store my content to database.I have lots of controls that from labels to images, datagrids, telerik controls, etc to keep in mind.I use SQL server 2005.
How do we determine which country I'm.Let's say I created the application and i want to have a flag in upper right of the page.if the user browse my page it display the flag where he from.let's say he's browsing my page in america the American Flag will be displayed.if i browse my page here in the Philippines the Philippine Flag will be displayed.
I am trying to programatically create a bitmap with a specified font in ASP.Net. The idea is that the text, font name, size color etc. will be passed in from variables and a bitmap of the text using the font etc will be returned. However, I have been finding that I am only able to do so using the following code with certain fonts.
<div> <% string fontName = "Segoe Script"; //Change Font here System.Drawing.Bitmap bmp = new System.Drawing.Bitmap(100, 100); System.Drawing.Graphics graph = System.Drawing.Graphics.FromImage(bmp);
[Code]...
If I change the font name in the areas indicated by the comments to Arial or Verdana both the image and the label appear with the correct font. If however, I change the font name in both locations to something "Segoe Script" the Label will show up in Segoe Script but the image is in what looks like Arial.
Update:
Based on this question here I was able to get it working by using a PrivateFontCollection() and loading the font file like so.