'archivelink',\r
'bloglist',\r
'category',\r
- 'charset',\r
'loginform',\r
'member',\r
'nucleusbutton',\r
}\r
\r
/**\r
- * Actions::parse_charset()\r
- * Parse skinvar charset\r
- * \r
- * @param void\r
- * @return void\r
- */\r
- public function parse_charset()\r
- {\r
- echo i18n::get_current_charset();\r
- return;\r
- }\r
- \r
- /**\r
* Actions::parse_commentform()\r
* Parse skinvar commentform\r
* \r
/* NOTE: defined actions for this base class */
static private $defined_actions = array(
+ 'charset',
'else',
'elseif',
'elseifnot',
'if',
'ifnot',
'include',
+ 'locale',
'parsedinclude',
'phpinclude',
'set',
}
/**
+ * BaseActions::parse_charset()
+ * Parse charset to appropriate character set name registered to IANA
+ *
+ * @param void
+ * @return void
+ */
+ public function parse_charset()
+ {
+ global $member;
+
+ if ( i18n::get_forced_charset() !== '' )
+ {
+ echo i18n::get_forced_charset();
+ }
+ else
+ {
+ echo i18n::get_current_charset();
+ }
+
+ return;
+ }
+
+ /**
+ * BaseActions::parse_locale()
+ * Parse locale to language-script-region according to RFC 4646
+ *
+ * @param void
+ * @return void
+ */
+ public function parse_locale()
+ {
+ echo preg_replace('#_#', '-', i18n::get_current_locale());
+ return;
+ }
+
+ /**
* BaseActions::parse_include()
* include file (no parsing of php)
*