+ function get_type_i18n(){
+ $type = $this->get_type();
+
+ if (!empty($type)) {
+ $this->set_type_i18n();
+
+ $types = array();
+ foreach ($type as $k => $v) {
+ $types[$k]['name'] = $v;
+ if (isset($this->type_settings[$v])) {
+ $types[$k]['title'] = $this->type_settings[$v]['title'];
+ $types[$k]['description'] = $this->type_settings[$v]['description'];
+ } else {
+ $types[$k]['title'] = '';
+ $types[$k]['description'] = '';
+ }
+ }
+ $type = $types;
+ }
+ return $type;
+ }
+ function set_type_i18n() {
+ $this->type_settings = array(
+ 'member' => array(
+ 'title' => '',
+ 'description' => '',
+ ),
+ 'creators' => array(
+ 'title' => __('Creators/Publishers', true),
+ 'description' => __('The website of TRPG creators/Publishers.', true),
+ ),
+ 'portal' => array(
+ 'title' => __('Portal/Search', true),
+ 'description' => __('The portal site or the search site for TRPG.', true),
+ ),
+ 'ring' => array(
+ 'title' => __('WebRing', true),
+ 'description' => __('Joined Webrings', true),
+ ),
+ 'thanks' => array(
+ 'title' => __('Thanks links', true),
+ 'description' => __('Thanks sites. Some site have NO relation to TRPG.', true),
+ ),
+ );
+ }