Added ability to handle custom functions to Portal ACP backend;

Removed unneeded language variables from language files; 
Finished global announcements block (basic function); 
Added missing includes in portal.php; 
Added missing handling of top and bottom column; 
Added unset of $template_module in portal.php in order to prevent incorrect block names; 
Added correct title for page_header and language string for Portal link;
This commit is contained in:
Marc Alexander
2010-08-28 18:25:28 +00:00
parent 438a9cdd59
commit 22b7ebab4d
7 changed files with 133 additions and 197 deletions

View File

@@ -48,41 +48,21 @@ $lang = array_merge($lang, array(
'ACP_PORTAL_GENERAL_INFO' => 'Allgemeine Einstellungen',
'ACP_PORTAL_GENERAL_TITLE' => 'Portal Administration',
'ACP_PORTAL_GENERAL_TITLE_EXP' => 'Thank you for choosing Board3 Portal! This is where you can manage your portal page. The options below let you customize the various general settings.',
'BLOCK_ADDED' => 'The block was successfully added.',
'BLOCK_FILENAME' => 'Block template file',
'BLOCK_FILENAME_EXPLAIN' => 'Use this to define a tempalte file used for the block. The path is relative to the root phpBB directory.',
'BLOCK_ICON' => 'Block icon',
'BLOCK_ICON_EXPLAIN' => 'Use this to define a small icon associated with the block. The path is relative to the root phpBB directory.',
'BLOCK_POSITION' => 'Display position',
'BLOCK_POSITION_EXPLAIN' => 'Select the display position on index page.',
'BLOCK_POSITION_BOTTOM' => 'Bottom',
'BLOCK_POSITION_LEFT' => 'Left',
'BLOCK_POSITION_MIDDLE_BOTTOM' => 'Middle - Bottom',
'BLOCK_POSITION_MIDDLE_TOP' => 'Middle - Top',
'BLOCK_POSITION_NONE' => 'Not display',
'BLOCK_POSITION_RIGHT' => 'Right',
'BLOCK_POSITION_TOP' => 'Top',
'BLOCK_REMOVED' => 'The block was successfully deleted.',
'BLOCK_TEXT' => 'Text',
'BLOCK_TEXT_EXPLAIN' => 'Enter here the content of the block text.',
'BLOCK_TITLE' => 'Block title',
'BLOCK_TITLE_EXPLAIN' => 'Enter the displayed block title. Use language constant if name is served from language file: <samp>language/en/mods/portal.php</samp>',
'BLOCK_TYPE' => 'Block type',
'BLOCK_TYPE_EXPLAIN' => 'Select the block type.',
'BLOCK_UPDATED' => 'The block was successfully updated.',
'PORTAL_ENABLE' => 'Enable Portal',
'PORTAL_ENABLE_EXP' => 'Turns the whole portal on or off',
'PORTAL_LEFT_COLUMN' => 'Enable left column',
'PORTAL_LEFT_COLUMN_EXP' => 'Switch to no if you wish to turn off the left column',
'PORTAL_RIGHT_COLUMN' => 'Enable right column',
'PORTAL_RIGHT_COLUMN_EXP' => 'Switch to no if you wish to turn off the right column',
'PORTAL_VERSION_CHECK' => 'Versioncheck on Portal',
'PORTAL_FORUM_INDEX' => 'Forum Index (Forum list)',
'PORTAL_FORUM_INDEX_EXP' => 'Display this block on the portal.',
'ACP_PORTAL_COLUMN_WIDTH_SETTINGS' => 'Left and right column width settings',
'PORTAL_LEFT_COLUMN_WIDTH' => 'Width of the left column',
'PORTAL_LEFT_COLUMN_WIDTH_EXP' => 'Change the width of the left column in pixels; recommended value is 180',
'PORTAL_RIGHT_COLUMN_WIDTH' => 'Width of the right column',
'PORTAL_RIGHT_COLUMN_WIDTH_EXP' => 'Change the width of the right column in pixels; recommended value is 180',
'MUST_SELECT_BLOCK' => 'You must select a block.',
'NO_BLOCK_HTML' => 'You have created block with template file but havent selected a template file for this block.',
'NO_BLOCK_TEXT' => 'You have created custom text block but havent entered the content for this block.',
'NO_BLOCK_TITLE' => 'You havent specified a title for the block.',
'SELECT_BLOCK_FILE' => 'Select a template file…',
'SELECT_BLOCK_ICON' => 'Select an icon…',
'SELECT_BLOCK_CLOCK' => 'Select an clock…',
'SELECT_BLOCK_POSITION' => 'Select a position…',
'SELECT_BLOCK_TYPE' => 'Select a type…',
// Portal Modules
'ACP_PORTAL_MODULES' => 'Portal Modules',

View File

@@ -33,137 +33,8 @@ if (empty($lang) || !is_array($lang))
// equally where a string contains only two placeholders which are used to wrap text
// in a url you again do not need to specify an order e.g., 'Click %sHERE%s' is fine
// Manage categories
$lang = array_merge($lang, array(
'BIRTHDAYS_AHEAD' => 'In den nächsten %s Tagen',
'NO_BIRTHDAYS_AHEAD' => 'In diesem Zeitraum hat kein Mitglied Geburtstag',
));
// Common
$lang = array_merge($lang, array(
// ACP - General Settings
'ACP_PORTAL_GENERAL_TITLE' => 'Portal administration',
'ACP_PORTAL_GENERAL_TITLE_EXP' => 'Thank you for choosing Board3 Portal! This is where you can manage your portal page. The options below let you customize the various general settings. The links on the left-hand side allow you to customize in detail every aspect of your portal experience.',
'ACP_PORTAL_GENERAL_SETTINGS' => 'General settings',
'PORTAL_ENABLE' => 'Enable Portal',
'PORTAL_ENABLE_EXP' => 'Turns the whole portal on or off.',
'PORTAL_LEFT_COLUMN' => 'Enable left column',
'PORTAL_LEFT_COLUMN_EXP' => 'Switch to no if you wish to turn off the left column',
'PORTAL_RIGHT_COLUMN' => 'Enable right column',
'PORTAL_RIGHT_COLUMN_EXP' => 'Switch to no if you wish to turn off the right column',
'PORTAL_VERSION_CHECK' => 'Versioncheck on Portal',
'PORTAL_FORUM_INDEX' => 'Forum Index (Forum list)',
'PORTAL_FORUM_INDEX_EXP' => 'Display this block on the portal.',
'ACP_PORTAL_COLUMN_WIDTH_SETTINGS' => 'Left and right column width settings',
'PORTAL_LEFT_COLUMN_WIDTH' => 'Width of the left column',
'PORTAL_LEFT_COLUMN_WIDTH_EXP' => 'Change the width of the left column in pixels; recommended value is 180',
'PORTAL_RIGHT_COLUMN_WIDTH' => 'Width of the right column',
'PORTAL_RIGHT_COLUMN_WIDTH_EXP' => 'Change the width of the right column in pixels; recommended value is 180',
'POSTERS' => 'Posters',
// Search engine names
'SEARCH_A9' => 'A9.com',
'SEARCH_ACRONYM_FINDER' => 'AcronymFinder',
'SEARCH_ALEXA' => 'Alexa',
'SEARCH_ALTA_VISTA' => 'AltaVista',
'SEARCH_AMAZON' => 'Amazon',
'SEARCH_AOL' => 'AOL',
'SEARCH_ASK' => 'Ask.com',
'SEARCH_BAAMBOO' => 'BaamBoo',
'SEARCH_BIT_TORRENT' => 'BitTorrent',
'SEARCH_CREATIVE_COMMONS' => 'Crative Commons',
'SEARCH_EBAY' => 'Ebay',
'SEARCH_GOOGLE' => 'Google',
'SEARCH_LIVE' => 'Bing',
'SEARCH_LYCOS' => 'Lycos',
'SEARCH_MININOVA' => 'Mininova',
'SEARCH_REFERENCE' => 'Reference.com',
'SEARCH_SOURCE_FORGE' => 'SourceForge',
'SEARCH_TORRENT_PORTAL' => 'TorrentPortal',
'SEARCH_TORRENT_SPY' => 'TorrentSpy',
'SEARCH_TORRENTZ' => 'TorrentZ',
'SEARCH_VDICT' => 'VDict',
'SEARCH_WIKI_PEDIA' => 'WikiPedia',
'SEARCH_YAHOO' => 'Yahoo! Search',
'WELCOME_YOU' => 'Welcome you',
// paypal
'PORTAL_PAY_ACC' => 'Paypal Account',
'PORTAL_PAY_ACC_EXP' => 'Gib deine e-mail-Adresse an, die du bei Paypal benutzt, z.B. xxx@xxx.com',
// User menu
'UM_LOG_ME_IN' => 'Mich bei jedem Besuch automatisch anmelden',
'UM_HIDE_ME' => 'Meinen Online-Status während dieser Sitzung verbergen',
'UM_MAIN_SUBSCRIBED' => 'Benachrichtigungen verwalten',
'UM_BOOKMARKS' => 'Lesezeichen verwalten',
'M_MENU' => 'Menü',
'M_ACP' => 'Administrations-Bereich',
// search
'GO' => 'Los',
'SEARCH_BOARD' => 'Foren',
'SEARCH_SERVICE' => 'Suchmaschinen',
'SEARCH_LOOKUP' => 'Lookup',
'SEARCH_TORRENT' => 'Torrent',
'SEARCH_ADV' => 'erweiterte Suche',
// Styles
'STYLE_CHOOSE' => '',
// Friends
'FRIENDS_OFFLINE' => 'Offline',
'FRIENDS_ONLINE' => 'Online',
'NO_FRIENDS' => 'Derzeit sind keine Freunde definiert',
'NO_FRIENDS_OFFLINE' => 'Keine Freunde offline',
'NO_FRIENDS_ONLINE' => 'Keine Freunde online',
// Statistics
'ST_TOP' => 'Insgesamt',
'ST_TOP_ANNS' => 'Bekanntmachungen insgesamt:',
'ST_TOP_STICKYS' => 'Wichtig insgesamt:',
'ST_TOT_ATTACH' => 'Dateianhänge insgesamt:',
'TOPICS_PER_DAY_OTHER' => 'Themen pro Tag: <strong>%d</strong>',
'TOPICS_PER_DAY_ZERO' => 'Themen pro Tag: <strong>0</strong>',
'POSTS_PER_DAY_OTHER' => 'Beiträge pro Tag: <strong>%d</strong>',
'POSTS_PER_DAY_ZERO' => 'Beiträge pro Tag: <strong>0</strong>',
'USERS_PER_DAY_OTHER' => 'Benutzer pro Tag: <strong>%d</strong>',
'USERS_PER_DAY_ZERO' => 'Benutzer pro Tag: <strong>0</strong>',
'TOPICS_PER_USER_OTHER' => 'Themen pro Benutzer: <strong>%d</strong>',
'TOPICS_PER_USER_ZERO' => 'Themen pro Benutzer: <strong>0</strong>',
'POSTS_PER_USER_OTHER' => 'Beiträge pro Benutzer: <strong>%d</strong>',
'POSTS_PER_USER_ZERO' => 'Beiträge pro Benutzer: <strong>0</strong>',
'POSTS_PER_TOPIC_OTHER' => 'Beiträge pro Thema: <strong>%d</strong>',
'POSTS_PER_TOPIC_ZERO' => 'Beiträge pro Thema: <strong>0</strong>',
// PayPal
'DONATION' => 'PayPal-Spenden',
'DONATION_TEXT' => 'ist eine Webseite ohne jedes Gewinninteresse. Jeder der dieses Projekt unterstützen möchte, kann dies mit einer kleinen PayPal-Spende tun, damit die Rechnungen für den Server, die Domain, etc. bezahlt werden können.',
'PAY_MSG' => 'Betrag bitte mit Punkt statt Komma trennen, z.B. 3.50',
'PAY_ITEM' => 'Freiwillige Foren-Spende',
'AUD' => 'Australische Dollar (AUD)',
'CAD' => 'Kanadische Dollar (CAD)',
'CZK' => 'Tschechische Kronen (CZK)',
'DKK' => 'Dänische Kronen (DKK)',
'HKD' => 'Hongkong-Dollar (HKD)',
'HUF' => 'Ungarische Forint (HUF)',
'NZD' => 'Neuseeland-Dollar (NZD)',
'NOK' => 'Norwegische Kronen (NOK)',
'PLN' => 'Polnische Zloty (PLN)',
'GBP' => 'Britische Pfund (GBP)',
'SGD' => 'Singapur-Dollar (SGD)',
'SEK' => 'Schwedische Kronen (SEK)',
'CHF' => 'Schweizer Franken (CHF)',
'JPY' => 'Japanische Yen (JPY)',
'USD' => 'US-Dollar (USD)',
'EUR' => 'Euro (EUR)',
'MXN' => 'Mexikanische Pesos (MXN)',
'ILS' => 'Neue Israelische Schekel (ILS)',
'PORTAL' => 'Portal',
));
?>

View File

@@ -32,6 +32,7 @@ if (empty($lang) || !is_array($lang))
// in a url you again do not need to specify an order e.g., 'Click %sHERE%s' is fine
$lang = array_merge($lang, array(
'LATEST_ANNOUNCEMENTS' => 'Latest global announcements',
'GLOBAL_ANNOUNCEMENTS' => 'Global announcements',
'GLOBAL_ANNOUNCEMENT' => 'Global announcement',
'VIEW_LATEST_ANNOUNCEMENT' => '1 announcement',
'VIEW_LATEST_ANNOUNCEMENTS' => '%d announcements',