1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-30 21:40:43 +02:00

- removed useless code from style.php

- added a view template cache mode to acp_styles
- syntax highlighting for the acp css
- completed refresh actions for themes and templates
- fixed theme and template installation
- use a function for generating database theme data
- removed useless code from mcp_queue.php

we might need to do some more tests of acp_styles with safe_mode on


git-svn-id: file:///svn/phpbb/trunk@6007 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Nils Adermann
2006-06-03 22:19:41 +00:00
parent 9aa9cb4bb6
commit 6ba50e34d6
12 changed files with 512 additions and 169 deletions

View File

@@ -536,13 +536,15 @@ $lang = array_merge($lang, array(
'LOG_STYLE_EDIT_DETAILS' => '<b>Edited style</b><br />&#187; %s',
'LOG_STYLE_EXPORT' => '<b>Exported style</b><br />&#187; %s',
'LOG_TEMPLATE_ADD_DB' => '<b>Added new template set to database</b><br />&#187; %s',
'LOG_TEMPLATE_ADD_FS' => '<b>Add new template set on filesystem</b><br />&#187; %s',
'LOG_TEMPLATE_DELETE' => '<b>Deleted template set</b><br />&#187; %s',
'LOG_TEMPLATE_EDIT' => '<b>Edited template set <i>%s</i></b><br />&#187; %s',
'LOG_TEMPLATE_EDIT_DETAILS' => '<b>Edited template details</b><br />&#187; %s',
'LOG_TEMPLATE_EXPORT' => '<b>Exported template set</b><br />&#187; %s',
'LOG_TEMPLATE_ADD_DB' => '<b>Added new template set to database</b><br />&#187; %s',
'LOG_TEMPLATE_ADD_FS' => '<b>Add new template set on filesystem</b><br />&#187; %s',
'LOG_TEMPLATE_CACHE_CLEARED' => '<b>Deleted cached versions of template files in template set <i>%s</i></b><br />&#187; %s',
'LOG_TEMPLATE_DELETE' => '<b>Deleted template set</b><br />&#187; %s',
'LOG_TEMPLATE_EDIT' => '<b>Edited template set <i>%s</i></b><br />&#187; %s',
'LOG_TEMPLATE_EDIT_DETAILS' => '<b>Edited template details</b><br />&#187; %s',
'LOG_TEMPLATE_EXPORT' => '<b>Exported template set</b><br />&#187; %s',
'LOG_TEMPLATE_REFRESHED' => '<b>Refreshed template set</b><br />&#187; %s',
'LOG_THEME_ADD_DB' => '<b>Added new theme to database</b><br />&#187; %s',
'LOG_THEME_ADD_FS' => '<b>Add new theme on filesystem</b><br />&#187; %s',
'LOG_THEME_DELETE' => '<b>Theme deleted</b><br />&#187; %s',

View File

@@ -49,17 +49,24 @@ $lang = array_merge($lang, array(
'BACKGROUND_REPEAT' => 'Background repeat',
'BOLD' => 'Bold',
'CACHE' => 'Cache',
'COPYRIGHT' => 'Copyright',
'CREATE_IMAGESET' => 'Create new imageset',
'CREATE_STYLE' => 'Create new style',
'CREATE_TEMPLATE' => 'Create new template set',
'CREATE_THEME' => 'Create new theme',
'CSS_CLASS_NAME' => 'CSS class name',
'CSS_COLOUR_EXPLAIN' => 'You can either enter a hex number for the colour or use the web safe colour swatch to select one.',
'CURRENT_IMAGE' => 'Current Image',
'CUSTOM_CLASS' => 'Custom class',
'CUSTOM_CLASS_EXPLAIN' => 'You can add additional classes to this theme if you wish. You must provide the actual CSS class name below, it must be the same as that you have or will use in your template. Please remember that class names may contain only alphanumeric characters, periods (.), colons (:), dash (-) and number/hash/pound (#). The new class will be added to class selection above.',
'CACHE' => 'Cache',
'CACHE_CACHED' => 'Cached',
'CACHE_FILENAME' => 'Template file',
'CACHE_FILESIZE' => 'Filesize',
'CACHE_MODIFIED' => 'Modified',
'CONFIRM_TEMPLATE_CLEAR_CACHE' => 'Are you sure you wish to clear all cached versions of your template files?',
'CONFIRM_TEMPLATE_REFRESH' => 'Are you sure you wish to refresh all template data in the database with the contents of the template files on the filesystem? This will overwrite all modifications which have been carried out with the template editor while the template was stored in the database.',
'CONFIRM_THEME_REFRESH' => 'Are you sure you wish to refresh the theme data stored in the database with the contents of the theme on the filesystem? This will overwrite all modifications which have been carried out with the theme editor while the theme was stored in the database.',
'COPYRIGHT' => 'Copyright',
'CREATE_IMAGESET' => 'Create new imageset',
'CREATE_STYLE' => 'Create new style',
'CREATE_TEMPLATE' => 'Create new template set',
'CREATE_THEME' => 'Create new theme',
'CSS_CLASS_NAME' => 'CSS class name',
'CSS_COLOUR_EXPLAIN' => 'You can either enter a hex number for the colour or use the web safe colour swatch to select one.',
'CURRENT_IMAGE' => 'Current Image',
'CUSTOM_CLASS' => 'Custom class',
'CUSTOM_CLASS_EXPLAIN' => 'You can add additional classes to this theme if you wish. You must provide the actual CSS class name below, it must be the same as that you have or will use in your template. Please remember that class names may contain only alphanumeric characters, periods (.), colons (:), dash (-) and number/hash/pound (#). The new class will be added to class selection above.',
'DEACTIVATE_DEFAULT' => 'You cannot deactivate the default style.',
'DELETE_FROM_FS' => 'Delete from filesystem',
@@ -301,16 +308,19 @@ $lang = array_merge($lang, array(
'STYLE_THEME' => 'Theme',
'STYLE_USED_BY' => 'Used by',
'TEMPLATE_EDITOR' => 'Raw HTML template editor',
'TEMPLATE_EDITOR_HEIGHT' => 'Template editor height',
'TEMPLATE_FILE' => 'Template file',
'TEMPLATE_FILE_UPDATED' => 'Template file updated successfully',
'TEMPLATE_ADDED' => 'Template set added and stored on filesystem',
'TEMPLATE_ADDED_DB' => 'Template set added and stored in database',
'TEMPLATE_CACHE' => 'Template cache',
'TEMPLATE_CACHE_EXPLAIN' => 'By default phpBB caches the compiled version of its templates. This decreases the load on the server each time a page is viewed and thus may reduce the page generation time. Here you can view the cache status of each file and delete individual files or the entire cache.',
'TEMPLATE_CACHE_CLEARED' => 'Template cache cleared successfully',
'TEMPLATE_CACHE_EMPTY' => 'There are no cached templates.',
'TEMPLATE_DELETED' => 'Template set deleted successfully',
'TEMPLATE_DELETED_FS' => 'Template set removed from database but some files may remain on the filesystem',
'TEMPLATE_DETAILS_UPDATED' => 'Template details successfully updated',
'TEMPLATE_EDITOR' => 'Raw HTML template editor',
'TEMPLATE_EDITOR_HEIGHT' => 'Template editor height',
'TEMPLATE_ERR_ARCHIVE' => 'Please select an archive method',
'TEMPLATE_ERR_CACHE_READ' => 'The cache directory used to store cached versions of template files could not be opened.',
'TEMPLATE_ERR_COPY_LONG' => 'The copyright can be no longer than 60 characters',
'TEMPLATE_ERR_NAME_CHARS' => 'The template name can only contain alphanumeric characters, -, +, _ and space',
'TEMPLATE_ERR_NAME_EXIST' => 'A template set with that name already exists',
@@ -320,12 +330,16 @@ $lang = array_merge($lang, array(
'TEMPLATE_EXPORT' => 'Export Templates',
'TEMPLATE_EXPORT_EXPLAIN' => 'Here you can export a template set in the form of an archive. This archive will contain all the files necessary to install the templates on another board. You may select whether to download the file directly or to place it in your store folder for download later or via FTP.',
'TEMPLATE_EXPORTED' => 'Templates exported succesfully and stored in %s',
'TEMPLATE_FILE' => 'Template file',
'TEMPLATE_FILE_UPDATED' => 'Template file updated successfully',
'TEMPLATE_LOCATION' => 'Store templates in',
'TEMPLATE_LOCATION_EXPLAIN' => 'Images are always stored on the filesystem.',
'TEMPLATE_NAME' => 'Template name',
'TEMPLATE_REFRESHED' => 'Template refreshed successfully',
'THEME_ADDED' => 'New theme added on filesystem',
'THEME_ADDED_DB' => 'New theme added to database',
'THEME_CLASS_ADDED' => 'Custom class added successfully',
'THEME_DELETED' => 'Theme deleted successfully',
'THEME_DELETED_FS' => 'Theme removed from database but files remain on the filesystem',
'THEME_DETAILS_UPDATED' => 'Theme details successfully updated',
@@ -338,6 +352,7 @@ $lang = array_merge($lang, array(
'THEME_ERR_NAME_EXIST' => 'A theme with that name already exists',
'THEME_ERR_NAME_LONG' => 'The theme name can be no longer than 30 characters',
'THEME_ERR_NOT_THEME' => 'The archive you specified does not contain a valid theme.',
'THEME_ERR_REFRESH_FS' => 'This theme is stored on the filesystem so there is no need to refresh it.',
'THEME_ERR_STYLE_NAME' => 'You must supply a name for this theme',
'THEME_EXPORT' => 'Export Theme',
'THEME_EXPORT_EXPLAIN' => 'Here you can export a theme in the form of an archive. This archive will contain all the data necessary to install the theme on another board. You may select whether to download the file directly or to place it in your store folder for download later or via FTP.',
@@ -345,7 +360,7 @@ $lang = array_merge($lang, array(
'THEME_LOCATION' => 'Store stylesheet in',
'THEME_LOCATION_EXPLAIN' => 'Images are always stored on the filesystem.',
'THEME_NAME' => 'Theme Name',
'THEME_CLASS_ADDED' => 'Custom class added successfully',
'THEME_REFRESHED' => 'Theme refreshed successfully',
'THEME_UPDATED' => 'Class updated successfully',
'UNDERLINE' => 'Underline',

View File

@@ -51,6 +51,7 @@ $lang = array_merge($lang, array(
'ADMINISTRATOR' => 'Administrator',
'ADMINISTRATORS' => 'Administrators',
'ALLOWED' => 'Allowed',
'ALL_FILES' => 'All files',
'ALL_FORUMS' => 'All forums',
'ALL_MESSAGES' => 'All messages',
'ALL_POSTS' => 'All posts',