Localization File Upload

Dec 1, 2010 at 2:13 PM

In my application i need localize all UI element in Control, but in this version localise only some custom property.

Dec 1, 2010 at 3:42 PM

That is correct. It needs to modified to support localization. This is on the road map, but unfortunately probably not soon enough for your needs. You can download the source and modify as necessary, this is licensed under MIT so you're free to make your own customizations as you wish.

Dec 13, 2010 at 10:25 AM

For support in localise a found some bug in code 

//in HSS.Interlink.Web.FileQuery
#region Methods
internal static FileQuery ParseRequestQuery(string rawQuery)
{
	FileQuery query = new FileQuery();
	if (!string.IsNullOrEmpty(rawQuery))
	{
		string raw = DecodeQuery(rawQuery);
		string[] parts = raw.Split(',');
		query.TimestampUtc = DateTime.Parse(parts[0], CultureInfo.InvariantCulture);//You need use InvariantCulture because DateTime format varios
		query.HandlerKey = parts[1];
		query.JobId = Guid.Parse(parts[2]);
		query.FileName = parts[3];
		query.Command = (FileQueryCommand)Enum.Parse(typeof(FileQueryCommand), parts[4]);
	}
	return query;
}
//in HSS.Interlink.FileQuery
static string GetEncodedQuery(string handler, string jobId, string fileName, string command)
{
    return GetEncodedQuery(DateTime.UtcNow.ToString(CultureInfo.InvariantCulture) + "," + handler + "," + jobId + "," + fileName + "," + command);//Fixed
}

with best regards, Dart_Vaider!


Dec 13, 2010 at 2:12 PM

Good points, thanks for the info...

Mar 4, 2011 at 1:57 PM

A new release is coming with these corrections. Thanks for the help!