<?php //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// $addonfolder = str_replace(DIRECTORY_SEPARATOR . 'lang' . DIRECTORY_SEPARATOR . 'en.php', '', __FILE__); $addonarray = explode(DIRECTORY_SEPARATOR, $addonfolder); $addonname = end($addonarray); $addontype = rtrim(prev($addonarray), 's'); /* LANGUAGE */ $facebook_language['title'] = setLanguageValue('title', 'Facebook Fan Page', $lang, $addontype, $addonname); //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// ${$addonname . '_key_mapping'} = array('100' => 'title'); $facebook_language = mapLanguageKeys($facebook_language, ${$addonname . '_key_mapping'}, 'modules', 'facebook');
<?php //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// $addonfolder = str_replace(DIRECTORY_SEPARATOR . 'lang' . DIRECTORY_SEPARATOR . 'en.php', '', __FILE__); $addonarray = explode(DIRECTORY_SEPARATOR, $addonfolder); $addonname = end($addonarray); $addontype = rtrim(prev($addonarray), 's'); /* LANGUAGE */ ${$addonname . '_language'}['title'] = setLanguageValue('title', 'Add a smiley', $lang, $addontype, $addonname); ${$addonname . '_language'}['select_smiley'] = setLanguageValue('select_smiley', 'Which smiley would you like?', $lang, $addontype, $addonname); ${$addonname . '_language'}['people'] = setLanguageValue('people', 'People', $lang, $addontype, $addonname); ${$addonname . '_language'}['nature'] = setLanguageValue('nature', 'Nature', $lang, $addontype, $addonname); ${$addonname . '_language'}['objects'] = setLanguageValue('objects', 'Objects', $lang, $addontype, $addonname); ${$addonname . '_language'}['places'] = setLanguageValue('places', 'Places', $lang, $addontype, $addonname); ${$addonname . '_language'}['symbols'] = setLanguageValue('symbols', 'Symbols', $lang, $addontype, $addonname); ${$addonname . '_language'}['more'] = setLanguageValue('more', 'More', $lang, $addontype, $addonname); ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// ${$addonname . '_key_mapping'} = array('0' => 'title', '1' => 'select_smiley', '2' => 'people', '3' => 'nature', '4' => 'objects', '5' => 'places', '6' => 'symbols', '7' => 'more'); ${$addonname . '_language'} = mapLanguageKeys(${$addonname . '_language'}, ${$addonname . '_key_mapping'}, $addontype, $addonname);
$language['unblock_user'] = setLanguageValue('unblock_user', 'Are you sure you want to unblock this user?', $lang, 'core', 'default'); $language['ok'] = setLanguageValue('ok', 'Ok', $lang, 'core', 'default'); $language['delete_messages'] = setLanguageValue('delete_messages', 'This PM and chat history will be deleted forever. Are you sure?', $lang, 'core', 'default'); $language['blocked'] = setLanguageValue('blocked', 'Blocked', $lang, 'core', 'default'); $language['no_conversations'] = setLanguageValue('no_conversations', 'You have no conversations. To start a conversation, click on the instant PM button in forum thread.', $lang, 'core', 'default'); $language['logout_message'] = setLanguageValue('logout_message', 'You have been logged out because your session has expired.', $lang, 'core', 'default'); $language['disable_last_seen'] = setLanguageValue('disable_last_seen', 'Disable Last Seen', $lang, 'core', 'default'); $language['last_seen_at'] = setLanguageValue('last_seen_at', 'Last seen at', $lang, 'core', 'default'); $language['n_supported_on_ios'] = setLanguageValue('n_supported_on_ios', 'This feature is not supported on iOS devices.', $lang, 'core', 'default'); $language['click_here'] = setLanguageValue('click_here', 'Click here', $lang, 'core', 'default'); $language['to_use_chat'] = setLanguageValue('to_use_chat', ' to use the chat', $lang, 'core', 'default'); $language['disable_message_receipt'] = setLanguageValue('disable_message_receipt', 'Disable Read Receipts', $lang, 'core', 'default'); $language['use_mobileapp'] = setLanguageValue('open_mobileapp', 'Use Mobile App?', $lang, 'core', 'default'); $language['jan'] = setLanguageValue('jan', 'January', $lang, 'core', 'default'); $language['feb'] = setLanguageValue('feb', 'February', $lang, 'core', 'default'); $language['mar'] = setLanguageValue('mar', 'March', $lang, 'core', 'default'); $language['apr'] = setLanguageValue('apr', 'April', $lang, 'core', 'default'); $language['may'] = setLanguageValue('may', 'May', $lang, 'core', 'default'); $language['jun'] = setLanguageValue('jun', 'June', $lang, 'core', 'default'); $language['jul'] = setLanguageValue('jul', 'July', $lang, 'core', 'default'); $language['aug'] = setLanguageValue('aug', 'August', $lang, 'core', 'default'); $language['sep'] = setLanguageValue('sep', 'September', $lang, 'core', 'default'); $language['oct'] = setLanguageValue('oct', 'October', $lang, 'core', 'default'); $language['nov'] = setLanguageValue('nov', 'November', $lang, 'core', 'default'); $language['dec'] = setLanguageValue('dec', 'December', $lang, 'core', 'default'); $language['today'] = setLanguageValue('today', 'Today', $lang, 'core', 'default'); $language['yesterday'] = setLanguageValue('yesterday', 'Yesterday', $lang, 'core', 'default'); /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// $key_mapping = array('0' => 'chat_options', '1' => 'type_status', '2' => 'my_status', '3' => 'status_option_a', '4' => 'status_option_b', '5' => 'status_option_i', '6' => 'blank1', '7' => 'blank2', '8' => 'loggedout_tooltip', '9' => 'chat_now_tab', '10' => 'me', '11' => 'status_option_o', '12' => 'who_is_online', '13' => 'sound_notifications', '14' => 'no_friends', '15' => 'new_messages_notify', '16' => 'blank3', '17' => 'user_tab_o', '18' => 'find_a_user', '19' => 'user_online', '20' => 'user_offline', '21' => 'user_busy', '22' => 'set_my_status', '23' => 'i_am', '24' => 'popup_notifications', '25' => 'blank4', '26' => 'start_chatting', '27' => 'close_this_bar', '28' => 'no_users_online', '29' => 'no_friends_online', '30' => 'status_a', '31' => 'status_b', '32' => 'status_o', '33' => 'status_i', '34' => 'status_aw', '35' => 'separator', '36' => 'and', '37' => 'more_notifications', '38' => 'close_existing_popup', '39' => 'navigate_page', '40' => 'others', '41' => 'loading', '42' => 'blank5', '43' => 'my_name', '44' => 'set_my_name', '45' => 'type_name_status', '46' => 'messages_from', '47' => 'view', '48' => 'new_message_from', '49' => 'updated', '50' => 'failed', '51' => 'chat_now', '52' => 'read_message', '53' => 'spam', '54' => 'new_messages', '55' => 'send_a_message', '56' => 'loggedout', '57' => 'no_change', '58' => 'no_user_found', '59' => 'message_with_smiley', '60' => 'web', '61' => 'mobile', '62' => 'minimize_user_tab', '63' => 'minimize_setting_tab', '64' => 'clear_conversation', '65' => 'report_conversation', '66' => 'share_image', '67' => 'capture_photo', '68' => 'share_video', '69' => 'capture_video', '70' => 'leave_chatroom', '71' => 'invite_users', '72' => 'create_chatroom', '73' => 'options', '74' => 'close_tab', '75' => 'minimize_tab', '76' => 'close_popup', '77' => 'login_options', '78' => 'minimize', '79' => 'login_mode', '80' => 'logout', '81' => 'logout_unsuccessful', '82' => 'login_here', '83' => 'load_earlier_messages', '84' => 'no_more_messages', '85' => 'type_message', '86' => 'active_chats', '87' => 'all_users', '88' => 'unread', '89' => 'hello', '90' => 'select_a_user', '91' => 'exclamation', '92' => 'go_online', '93' => 'chat_with_users', '94' => 'contact_admin', '95' => 'plugins', '96' => 'instant_pm', '97' => 'edit', '98' => 'user_currently_offline', '99' => 'blocked_user_message', '100' => 'do_not_disturb', '101' => 'cancel', '102' => 'unblock_user', '103' => 'ok', '104' => 'delete_messages', '105' => 'blocked', '106' => 'no_conversations', '107' => 'logout_message', '108' => 'disable_last_seen', '109' => 'last_seen_at', '110' => 'n_supported_on_ios', '111' => 'click_here', '112' => 'to_use_chat'); $language = mapLanguageKeys($language, $key_mapping, 'core', 'default');