Skip to content
This repository has been archived by the owner on Nov 9, 2018. It is now read-only.

String table

Alexanderius edited this page Oct 24, 2014 · 3 revisions

StringTable class loads and keeps a localizable table of strings (can be HTML content) from specified string table files (Can be set via AcspNet configuration)

String table file example (StringTable.en.xml):

<?xml version="1.0" encoding="utf-8" ?>

<items>
	<item name="SiteTitle" value="AcspNet example application" />

	<item name="PageTitleAbout" value="About Page" />
	<item name="PageTitleLogin" value="Login" />
	<item name="PageTitleProfile" value="Profile" />


	<item name="PageTitle404" value="404 Not Found" />
</items>

Data from string table can be used programmatically via StringTable or StringTableManager controllers and views properties or directly in templates via {StringTable.SomeValue} syntax.

<< Previous page Next page >>

Clone this wiki locally