This repository has been archived by the owner on Nov 9, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
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.
- Getting Started
- Main AcspNet principles
- AcspNet controllers
- Controllers basics
- Controllers attributes
- Controllers routing
- Controllers responses
- Controllers properties
- Controllers model binding
- AcspNet views
- AcspNet templates
- Template factory
- Data collector
- String table
- File reader
- AcspNet context
- Environment
- Language manager
- Redirector
- HTML