New strings

Posted By Supermac Wed 2 Sep 2015
Add to Favorites0
Author Message
Supermac
 Posted Wed 2 Sep 2015
Supreme Being

Supreme Being - (84,867 reputation)Supreme Being - (84,867 reputation)Supreme Being - (84,867 reputation)Supreme Being - (84,867 reputation)Supreme Being - (84,867 reputation)Supreme Being - (84,867 reputation)Supreme Being - (84,867 reputation)Supreme Being - (84,867 reputation)Supreme Being - (84,867 reputation)

Group: Forum Members
Last Active: Wed 22 Jul 2020
Posts: 153, Visits: 874
In backend is possible to insert new strings to be translated in various language used by the site.
This would be really useful for customization work I'm doing but I don't know how can I use that strings in my pages using a syntax similar to this:

<asp:Literal ID="..." runat="server" Text="<%$ Resources: ContactUs, ContentText_AddressAndPhoneContact %>" />

having that new records added in tblKartrisLanguageStrings have NULL LS_className?
Supermac Marked As Answer
 Posted Tue 8 Sep 2015
Supreme Being

Supreme Being - (84,867 reputation)Supreme Being - (84,867 reputation)Supreme Being - (84,867 reputation)Supreme Being - (84,867 reputation)Supreme Being - (84,867 reputation)Supreme Being - (84,867 reputation)Supreme Being - (84,867 reputation)Supreme Being - (84,867 reputation)Supreme Being - (84,867 reputation)

Group: Forum Members
Last Active: Wed 22 Jul 2020
Posts: 153, Visits: 874
I solved with a "personal patch".
I insert all strings I need in database using backend, then I use a query in backend/configuration/database admin like this:

update [dbo].[tblKartrisLanguageStrings] SET LS_className = '_MyClass' WHERE Ls_className=NULL AND LS_VirtualPath=NULL

This adds 'MyClass' class name to new records and allows me to use the following syntax in pages:
<asp:Literal ID="..." runat="server" Text="<%$ Resources: MyClass, ContentText_StringIAdded %>" />

If there's a smarter way to obtain same result I'll be happy to know.

Similar Topics

Expand / Collapse

Reading This Topic

Expand / Collapse

Back To Top