Infralution Support Forum Index Infralution Support
Support groups for Infralution products
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Plugin Interface for Import/Export

 
Post new topic   Reply to topic    Infralution Support Forum Index -> Globalizer Feature Requests
View previous topic :: View next topic  
Author Message
sheitman



Joined: 27 Apr 2010
Posts: 98

PostPosted: Thu Sep 06, 2012 10:44 am    Post subject: Plugin Interface for Import/Export Reply with quote

Hi.

We started to do some asp.net application and have some string in javascript files which I wanted to add to Globalizer but I noticed I can't really find a matching type.

What would be nice if is there is some plugin architectuer where I could write my own import export functionality based on some interface from you.

My current file looks like that.
Code:

jQuery(function ($) {
   CommonStringResources = {
      Ok: "OK",
      Cancel: "Cancel",
      Yes: "Yes",
      No: "No"
   };
});

I'm not sure if there is some standard way of doing localization in a javascript file which you may support.

Kind regards
Sven
Back to top
View user's profile Send private message
Infralution



Joined: 28 Feb 2005
Posts: 4920

PostPosted: Fri Sep 14, 2012 12:06 am    Post subject: Reply with quote

There is no standard way of localizing javascript. See the following stackoverflow thread on localizing javascript:

http://stackoverflow.com/questions/104022/localize-strings-in-javascript

In particular if you are using ASP.NET take a look at the link to:

http://madskristensen.net/post/Localize-text-in-JavaScript-files-in-ASPNET.aspx

This solution pulls the translations from standard .NET resx files - which could then be translated using Globalizer.
_________________
Infralution Support
Back to top
View user's profile Send private message Visit poster's website
sheitman



Joined: 27 Apr 2010
Posts: 98

PostPosted: Tue Sep 18, 2012 12:00 pm    Post subject: Reply with quote

Thanks I will take a look into this.
Back to top
View user's profile Send private message
pragatisatpute



Joined: 24 Jun 2019
Posts: 1

PostPosted: Mon Jun 24, 2019 9:50 am    Post subject: Reply with quote

Thanks, it was a helpful post for me! Keep up the good work!
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Infralution Support Forum Index -> Globalizer Feature Requests All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group