Support forum of the software localization tool Sisulizer


.NET, Delphi, ... - Sisulizer Localization Tool Support Home

Get in contact with the makers of Sisulizer.
Our forum is open for all questions around Sisulizer from customers and prospects.
Don't hesitate to register and ask. The Sisulizer team will answer ASAP.

Search     Help Home Sisulizer Website Download
Search by username
Not logged in - Login | Register 

 Moderated by: Sisusupport, Renate.Reinartz, Markus.Kreisel, Ilkka.Salmenius Page:    1  2  Next Page Last Page  
New Topic Reply Printer Friendly
ASP.NET Core - Wish list for software localization tool - Technical Support (You need to be registered at the forum to write) - .NET, Delphi, ... - Sisulizer Localization Tool Support
AuthorPost
 Posted: Tue Jan 31st, 2017 01:12 pm
PM Private Upload Quote Reply
martin.buehlmann
Member


Joined: Wed Mar 23rd, 2016
Location:  
Posts: 21
Status: 
Offline
Hi,
I am using Sisulizer already for our existing WPF-based software. Now we start to develop a ASP.NET Core based project, which we also like to localize using Sisulizer.

We put the resources into view-specific resx files. When I try to localize the resulting assembly, Sisulizer creates me a .NET Framework based assembly, not one for the .NET Core runtime.

Is there a way to build satellite assemblies for .NET Core or are there plans to support that soon?

Kind regards,
Martin

Back To Top PM Private Upload Quote Reply

 Posted: Wed Feb 1st, 2017 03:10 am
PM Private Upload Quote Reply
Ilkka.Salmenius
Administrator


Joined: Wed Aug 8th, 2007
Location: Tokyo, Japan
Posts: 1961
Status: 
Offline
I am working on this. How do you localize ASP.NET Core project with Sisulizer at the moment?

If you follow localization guidelines written by Microsoft then your ASP.NET Core project does not contain any resources so Sisulizer cannnot locate anything.

Is it so that you have created the original neutral resource (file.resx not file.de.resx) and included them into VS project.

In MS's way I need to modify the scan logic. In the case of neutral resources I need to modify the satellite assembly compilation.

Ilkka



____________________
http://www.sisulizer.com - Three simple steps to localize
Back To Top PM Private Upload Quote Reply

 Posted: Wed Feb 1st, 2017 03:28 am
PM Private Upload Quote Reply
Ilkka.Salmenius
Administrator


Joined: Wed Aug 8th, 2007
Location: Tokyo, Japan
Posts: 1961
Status: 
Offline
Is your project file .xproj or .csproj?

Ilkka



____________________
http://www.sisulizer.com - Three simple steps to localize
Back To Top PM Private Upload Quote Reply

 Posted: Wed Feb 1st, 2017 03:42 am
PM Private Upload Quote Reply
martin.buehlmann
Member


Joined: Wed Mar 23rd, 2016
Location:  
Posts: 21
Status: 
Offline
I do it the way that I add neutral resource files to the project (see http://andrewlock.net/adding-localisation-to-an-asp-net-core-application/).

I only want to add the neutral files and create the localized satellite assemblies using Sisulizer. The part with the definition of supported languages I'll do more generic by scanning the file system for available localizations.

Can you tell me when I can expect a version of Sisulizer that supports that scenario (not the exact release date, I know that this can change).

Martin

Back To Top PM Private Upload Quote Reply

 Posted: Wed Feb 1st, 2017 03:43 am
PM Private Upload Quote Reply
martin.buehlmann
Member


Joined: Wed Mar 23rd, 2016
Location:  
Posts: 21
Status: 
Offline
It's .xproj (VS2015). We will move to VS2017 when released.

Back To Top PM Private Upload Quote Reply

 Posted: Wed Feb 1st, 2017 05:34 am
PM Private Upload Quote Reply
Ilkka.Salmenius
Administrator


Joined: Wed Aug 8th, 2007
Location: Tokyo, Japan
Posts: 1961
Status: 
Offline
Hi Martin,

I am working on it. It will take from few days to two weeks. Next build will have it.

Ilkka



____________________
http://www.sisulizer.com - Three simple steps to localize
Back To Top PM Private Upload Quote Reply

 Posted: Wed Feb 1st, 2017 05:38 am
PM Private Upload Quote Reply
Ilkka.Salmenius
Administrator


Joined: Wed Aug 8th, 2007
Location: Tokyo, Japan
Posts: 1961
Status: 
Offline
First I make it such way that it works with projects you have (i.e. having neutral resources). After that I need to figure how to handle cases where there are no neutral resources but only calls to localizer["..."]. I believe I have to write a scanner that scans .cs file to create neutral resources. It would have been better that Microsoft had written that :-)

Ilkka



____________________
http://www.sisulizer.com - Three simple steps to localize
Back To Top PM Private Upload Quote Reply

 Posted: Wed Feb 1st, 2017 08:19 am
PM Private Upload Quote Reply
martin.buehlmann
Member


Joined: Wed Mar 23rd, 2016
Location:  
Posts: 21
Status: 
Offline
Great! If you need a "beta tester" you can send me a prerelease version to test it on our project as soon as you have implemented this stuff.

Regards, Martin

Back To Top PM Private Upload Quote Reply

 Posted: Sat Feb 4th, 2017 02:43 am
PM Private Upload Quote Reply
Ilkka.Salmenius
Administrator


Joined: Wed Aug 8th, 2007
Location: Tokyo, Japan
Posts: 1961
Status: 
Offline
Hi Martin,

I will send you beta as soon as I get it working.

Past two days I have been learning ASP.NET Core localization and I ran into a problem. What I try to do is to get my app to choose the active language based on HTTP's headers Accept-Language. According to MS documentation the following code should work but it does not.

public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory)
{
app.UseRequestLocalization(BuildLocalizationOptions());
...
}

private RequestLocalizationOptions BuildLocalizationOptions()
{
var supportedCultures = new List<CultureInfo>
{
new CultureInfo("en"),
new CultureInfo("de"),
new CultureInfo("fi")
};

var options = new RequestLocalizationOptions
{
DefaultRequestCulture = new RequestCulture("en"),
SupportedCultures = supportedCultures,
SupportedUICultures = supportedCultures
};

return options;
}


BuildLocalizationOptions return options and those include three languages: en, de and fi. Then in Configure I use it. Finally I have Finnish and German resource and satellite assemblies. My HTTP header has "fi" or "de" in Accept-Language. However this does not make ASP.NET Core to use Finnish or German resources.

After Googling some other have noticed the same problem. For example this guy.

http://andrewlock.net/adding-localisation-to-an-asp-net-core-application/

Have you managed to get this working? If so can you please tell me what I do wrong.

Best regards,
Ilkka



____________________
http://www.sisulizer.com - Three simple steps to localize
Back To Top PM Private Upload Quote Reply

 Posted: Sun Feb 5th, 2017 03:53 pm
PM Private Upload Quote Reply
Ilkka.Salmenius
Administrator


Joined: Wed Aug 8th, 2007
Location: Tokyo, Japan
Posts: 1961
Status: 
Offline
Can you send me your Sisulizer project file (.slp)?

Ilkka



____________________
http://www.sisulizer.com - Three simple steps to localize
Back To Top PM Private Upload Quote Reply

 Posted: Sun Feb 5th, 2017 04:12 pm
PM Private Upload Quote Reply
Markus.Kreisel
Administrator


Joined: Sat Apr 8th, 2006
Location: Monschau, Germany
Posts: 3005
Status: 
Offline
Remember to use the Private Upload button right above this post to send the file.

Markus



____________________
http://www.sisulizer.com - Three simple steps to localize
Back To Top PM Private Upload Quote Reply

 Posted: Tue Feb 7th, 2017 12:10 am
PM Private Upload Quote Reply
Ilkka.Salmenius
Administrator


Joined: Wed Aug 8th, 2007
Location: Tokyo, Japan
Posts: 1961
Status: 
Offline
I got Accept-Language header working. For some reason when VS launched my Chrome language settings were always cleared.

Ilkka



____________________
http://www.sisulizer.com - Three simple steps to localize
Back To Top PM Private Upload Quote Reply

 Posted: Thu Feb 9th, 2017 01:43 pm
PM Private Upload Quote Reply
martin.buehlmann
Member


Joined: Wed Mar 23rd, 2016
Location:  
Posts: 21
Status: 
Offline
Hi Ilkka

Sorry that I did not respond earlier, but I was sick since last weekend.

We currently are just starting our new ASP.NET Core project. So I do not have a .slp file at the moment.

We work mainly on backend functionality, so the only translatable text we currently have is more or less a "Hello World"...

Tell me if I still should create a .slp file for you.

Regards,
Martin

Back To Top PM Private Upload Quote Reply

 Posted: Wed Feb 15th, 2017 02:27 am
PM Private Upload Quote Reply
Ilkka.Salmenius
Administrator


Joined: Wed Aug 8th, 2007
Location: Tokyo, Japan
Posts: 1961
Status: 
Offline
I go binary localization working. This means that you specify .dll instead of .csproj or .xproj. I will send you the new build tomorrow.

Ilkka



____________________
http://www.sisulizer.com - Three simple steps to localize
Back To Top PM Private Upload Quote Reply

 Posted: Mon Feb 20th, 2017 12:47 pm
PM Private Upload Quote Reply
martin.buehlmann
Member


Joined: Wed Mar 23rd, 2016
Location:  
Posts: 21
Status: 
Offline
Hi
I created a .slp file where I pointed to my assembly that contains the localizable resources (currently a single .resx). Then I created the localization assembly with Sisulizer.

Sadly, the localized assembly doesn't get loaded at runtime. As it seems, the Sisulizer generated assembly is not a .NET Core assembly =>compare the png's I've sent you with a PN.

I send you a .zip file containing screenshots from ILDASM to see the difference between the assembly created by Visual Studio and Sisulizer. It also contains both versions of the satellite assembly, so you can do your own investigations.

Regards,
Martin

Back To Top PM Private Upload Quote Reply

 Posted: Tue Feb 21st, 2017 02:45 pm
PM Private Upload Quote Reply
Ilkka.Salmenius
Administrator


Joined: Wed Aug 8th, 2007
Location: Tokyo, Japan
Posts: 1961
Status: 
Offline
Hi Martin,

Can you please resend the zip file. I haven't received it.

Ilkka



____________________
http://www.sisulizer.com - Three simple steps to localize
Back To Top PM Private Upload Quote Reply

 Posted: Tue Feb 21st, 2017 02:48 pm
PM Private Upload Quote Reply
Markus.Kreisel
Administrator


Joined: Sat Apr 8th, 2006
Location: Monschau, Germany
Posts: 3005
Status: 
Offline
I just send you a copy of my email notification.

Markus



____________________
http://www.sisulizer.com - Three simple steps to localize
Back To Top PM Private Upload Quote Reply

 Posted: Tue Feb 21st, 2017 03:00 pm
PM Private Upload Quote Reply
Ilkka.Salmenius
Administrator


Joined: Wed Aug 8th, 2007
Location: Tokyo, Japan
Posts: 1961
Status: 
Offline
I got it. Thanks.

Ilkka



____________________
http://www.sisulizer.com - Three simple steps to localize
Back To Top PM Private Upload Quote Reply

 Posted: Tue Mar 7th, 2017 05:56 am
PM Private Upload Quote Reply
martin.buehlmann
Member


Joined: Wed Mar 23rd, 2016
Location:  
Posts: 21
Status: 
Offline
How is the progress?

Back To Top PM Private Upload Quote Reply

 Posted: Fri Mar 17th, 2017 01:44 am
PM Private Upload Quote Reply
Ilkka.Salmenius
Administrator


Joined: Wed Aug 8th, 2007
Location: Tokyo, Japan
Posts: 1961
Status: 
Offline
I am working on this.

Ilkka



____________________
http://www.sisulizer.com - Three simple steps to localize
Back To Top PM Private Upload Quote Reply

Current time is 09:51 pm Page:    1  2  Next Page Last Page    
.NET, Delphi, ... - Sisulizer Localization Tool Support > Technical Support (You need to be registered at the forum to write) > Wish list for software localization tool > ASP.NET Core



WowUltra modified by Sisulizer Copyright © 2007-09 by Jim Hale - Based on WowBB Copyright © 2003-2006 Aycan Gulez

Sisulizer software localization tool - Three simple steps to localize