diff --git a/example/includes/config.yml b/example/includes/config.yml index d6e3de6..1f1c5b3 100644 --- a/example/includes/config.yml +++ b/example/includes/config.yml @@ -13,12 +13,6 @@ upload_tmp_directory: ${tmp_root_directory}/uploading" # Main pagetitle main_pagetitle: "Eesyphp" -# Theme CSS file -included_css_files: - #- css/custom.css -included_js_files: - #- js/custom.js - # Debug Ajax request/response debug_ajax: false @@ -81,12 +75,17 @@ sentry: traces_sample_rate: 0.2 # -# Smarty template configuration +# Smarty templates configuration # -template: +templates: # Smarty directories directory: "${root_directory_path}/templates" cache_directory: "${tmp_root_directory}/templates_c" + # Theme CSS file + included_css_files: + #- css/custom.css + included_js_files: + #- js/custom.js # # Translations diff --git a/example/includes/core.php b/example/includes/core.php index 1adb010..30605b3 100644 --- a/example/includes/core.php +++ b/example/includes/core.php @@ -24,7 +24,7 @@ $root_dir_path = realpath(dirname($script).'/../'); set_include_path($root_dir_path.'/includes' . PATH_SEPARATOR . get_include_path()); // Load composer autoload.php -require("$root_dir_path/../vendor/autoload.php"); +require("$root_dir_path/vendor/autoload.php"); // Initialize EesyPHP application App::init( diff --git a/example/includes/templates.php b/example/includes/templates.php index 2cb7c12..478dc16 100644 --- a/example/includes/templates.php +++ b/example/includes/templates.php @@ -22,15 +22,6 @@ Tpl :: enable_security_mode( array('range', 'implode', 'stripslashes') ); -// Defined some global template variables -Tpl :: assign('public_root_url', App::get('public_root_url', '/', 'string')); -Tpl :: assign('main_pagetitle', App::get('main_pagetitle', null, 'string')); -Tpl :: assign('session_key', $_SESSION['session_key']); - -// Handle CSS & JS files included -Tpl :: add_css_file(App::get('included_css_files', array(), 'array')); -Tpl :: add_js_file(App::get('included_js_files', array(), 'array')); - function define_common_template_variables($event) { global $status_list, $admin; Tpl :: assign( diff --git a/example/includes/url-public.php b/example/includes/url-public.php index f1e7e67..249e315 100644 --- a/example/includes/url-public.php +++ b/example/includes/url-public.php @@ -10,11 +10,6 @@ use function EesyPHP\vardump; if (php_sapi_name() == "cli") return true; -function handle_homepage($request) { - Tpl :: display("homepage.tpl", _("Hello world !")); -} -Url :: add_url_handler('#^$#', 'handle_homepage'); - function handle_search($request) { global $status_list; diff --git a/example/locales/eesyphp-messages.pot b/example/locales/eesyphp-messages.pot new file mode 100644 index 0000000..ad93693 --- /dev/null +++ b/example/locales/eesyphp-messages.pot @@ -0,0 +1,305 @@ +#: Cli.php:34 +#, php-format +msgid "The CLI command '%s' already exists." +msgstr "" + +#: Cli.php:39 +#, php-format +msgid "The CLI command '%s' handler is not callable !" +msgstr "" + +#: Cli.php:71 +#, php-format +msgid "Usage: %s [-h] [-qd] command\n" +msgstr "" + +#: Cli.php:72 +msgid " -h Show this message\n" +msgstr "" + +#: Cli.php:73 +msgid " -q / -d Quiet/Debug mode\n" +msgstr "" + +#: Cli.php:74 +msgid " --trace Trace mode (the most verbose)\n" +msgstr "" + +#: Cli.php:75 +msgid " command Command to run\n" +msgstr "" + +#: Cli.php:77 +msgid "Available commands:\n" +msgstr "" + +#: Cli.php:125 +msgid "Only one command could be executed !" +msgstr "" + +#: Cli.php:153 +#, php-format +msgid "" +"Invalid parameter \"%s\".\n" +"Note: Command's parameter/argument must be place after the command." +msgstr "" + +#: Cli.php:178 +#, php-format +msgid "An exception occured running command %s" +msgstr "" + +#: Db.php:74 +msgid "Unable to connect to the database." +msgstr "" + +#: Email.php:141 +#, php-format +msgid "
Mail initialy intended for %s.
" +msgstr "" + +#: Email.php:142 +#, php-format +msgid "" +"\n" +"\n" +"\n" +"Mail initialy intended for %s." +msgstr "" + +#: Email.php:178 +#, php-format +msgid "%s: %s
" +msgstr "" + +#: Email.php:179 +#, php-format +msgid "" +"\n" +"%s: %s" +msgstr "" + +#: Tpl.php:339 +msgid "No template specified." +msgstr "" + +#: Tpl.php:370 +msgid "An error occurred while displaying this page." +msgstr "" + +#: Url.php:141 +msgid "Bad request" +msgstr "" + +#: Url.php:142 +msgid "Invalid request." +msgstr "" + +#: Url.php:145 +msgid "Authentication required" +msgstr "" + +#: Url.php:146 +msgid "You have to be authenticated to access to this page." +msgstr "" + +#: Url.php:149 +msgid "Access denied" +msgstr "" + +#: Url.php:150 +msgid "" +"You do not have access to this application. If you think this is an error, " +"please contact support." +msgstr "" + +#: Url.php:153 +msgid "Whoops ! Page not found" +msgstr "" + +#: Url.php:154 +msgid "The requested page can not be found." +msgstr "" + +#: Url.php:162 +msgid "Error" +msgstr "" + +#: Url.php:163 +msgid "An unknown error occurred. If problem persist, please contact support." +msgstr "" + +#: Url.php:226 +msgid "" +"Unable to determine the requested page. If the problem persists, please " +"contact support." +msgstr "" + +#: Url.php:376 +msgid "" +"Unable to determine the requested page (loop detected). If the problem " +"persists, please contact support." +msgstr "" + +#: Url.php:407 +msgid "This request cannot be processed." +msgstr "" + +#: Url.php:420 +msgid "" +"Authentication required but force_authentication function is not defined." +msgstr "" + +#: Url.php:429 +msgid "This request could not be processed correctly." +msgstr "" + +#: I18n.php:114 App.php:120 +msgid "Hello world !" +msgstr "" + +#: I18n.php:130 +msgid "Extract messages that need to be translated" +msgstr "" + +#: I18n.php:132 +msgid "This command could be used to generate/update lang/messages.pot file." +msgstr "" + +#: I18n.php:138 +msgid "Update messages in translation PO lang files" +msgstr "" + +#: I18n.php:140 +msgid "" +"This command could be used to init/update PO files in lang/*/LC_MESSAGES " +"directories." +msgstr "" + +#: I18n.php:147 +msgid "" +"Compile messages from existing translation PO lang files to corresponding MO " +"files and JSON catalogs" +msgstr "" + +#: I18n.php:152 +msgid "" +"This command could be used to compile PO files in lang/*/LC_MESSAGES " +"directories to MO files and as JSON catalogs in public_html/translations." +msgstr "" + +#: I18n.php:277 I18n.php:307 +msgid "Fail to list PHP files." +msgstr "" + +#: I18n.php:296 I18n.php:326 +msgid "Fail to extract messages from PHP files using xgettext." +msgstr "" + +#: I18n.php:338 +#, php-format +msgid "Fail to list JS files in '%s' static directory." +msgstr "" + +#: I18n.php:358 +msgid "Fail to extract messages from JS files using xgettext." +msgstr "" + +#: I18n.php:374 +msgid "" +"Fail to extract messages from template files using tsmarty2c.php script." +msgstr "" + +#: I18n.php:402 +msgid "Fail to merge messages using msgcat." +msgstr "" + +#: I18n.php:416 +#, php-format +msgid "Compendium file %s not found." +msgstr "" + +#: I18n.php:423 +#, php-format +msgid "POT file not found (%s). Please run extract_messages first." +msgstr "" + +#: I18n.php:435 I18n.php:543 +#, php-format +msgid "Lang directory '%s' found" +msgstr "" + +#: I18n.php:441 I18n.php:549 +#, php-format +msgid "LC_MESSAGES directory not found in lang '%s' directory, ignore it." +msgstr "" + +#: I18n.php:456 +#, php-format +msgid "Fail to init messages in %s PO file using msginit (%s)." +msgstr "" + +#: I18n.php:474 +#, php-format +msgid "Fail to update messages in %s PO file using msgmerge (%s)." +msgstr "" + +#: I18n.php:480 I18n.php:557 +#, php-format +msgid "PO file not found in lang '%s' directory, ignore it." +msgstr "" + +#: I18n.php:487 I18n.php:597 +#, php-format +msgid "Fail to open root lang directory (%s)." +msgstr "" + +#: I18n.php:513 +#, php-format +msgid "Lang alias symlink found: %s -> %s" +msgstr "" + +#: I18n.php:520 +#, php-format +msgid "JSON catalog symlink for %s -> %s created (%s)" +msgstr "" + +#: I18n.php:524 +#, php-format +msgid "Fail to create JSON catalog symlink for %s -> %s (%s)" +msgstr "" + +#: I18n.php:530 +#, php-format +msgid "JSON catalog symlink for %s -> %s already exist (%s)" +msgstr "" + +#: I18n.php:535 +#, php-format +msgid "" +"JSON catalog file for %s already exist, but it's not a symlink to %s (%s)" +msgstr "" + +#: I18n.php:570 +#, php-format +msgid "Fail to compile messages from %s PO file as MO file using msgfmt (%s)." +msgstr "" + +#: I18n.php:580 +#, php-format +msgid "Fail to open %s JSON catalog file in write mode (%s)." +msgstr "" + +#: I18n.php:585 +#, php-format +msgid "Fail to write %s JSON catalog in file (%s)." +msgstr "" + +#: I18n.php:590 +#, php-format +msgid "%s JSON catalog writed (%s)." +msgstr "" + +#: App.php:122 +msgid "Hello world!" +msgstr "" diff --git a/example/locales/php-messages.pot b/example/locales/php-messages.pot index 8615dc5..20c277d 100644 --- a/example/locales/php-messages.pot +++ b/example/locales/php-messages.pot @@ -1,554 +1,259 @@ -#: /home/brenard/dev/eesyphp/includes/url-helpers.php:5 +#: includes/cli.php:23 +#, php-format +msgid "Item #%s:\n" +msgstr "" + +#: includes/cli.php:24 +#, php-format +msgid "ID: %s" +msgstr "" + +#: includes/cli.php:25 +#, php-format +msgid "Name: '%s'" +msgstr "" + +#: includes/cli.php:26 +#, php-format +msgid "Date: %s" +msgstr "" + +#: includes/cli.php:28 +#, php-format +msgid "Description: %s" +msgstr "" + +#: includes/cli.php:29 +msgid "Not set" +msgstr "" + +#: includes/cli.php:31 +#, php-format +msgid "Status: %s" +msgstr "" + +#: includes/cli.php:84 +msgid "No item.\n" +msgstr "" + +#: includes/cli.php:110 +#, php-format +msgid "%d item(s)" +msgstr "" + +#: includes/cli.php:116 +msgid "List/search items" +msgstr "" + +#: includes/cli.php:117 +msgid "[patterns]" +msgstr "" + +#: includes/cli.php:119 +msgid "-o|--orderby Ordering list criterion. Possible values:" +msgstr "" + +#: includes/cli.php:121 +msgid "-r|--reverse Reverse order" +msgstr "" + +#: includes/cli.php:122 +msgid "-s|--status Filter on status. Possible values:" +msgstr "" + +#: includes/cli.php:129 +msgid "You must provide a valid ID." +msgstr "" + +#: includes/cli.php:135 includes/cli.php:159 +#, php-format +msgid "Item #%s not found." +msgstr "" + +#: includes/cli.php:143 +msgid "Show item" +msgstr "" + +#: includes/cli.php:144 +msgid "[ID]" +msgstr "" + +#: includes/cli.php:149 +msgid "You must provide item ID." +msgstr "" + +#: includes/cli.php:153 +msgid "Invalid item ID" +msgstr "" + +#: includes/cli.php:164 +msgid "Are you sure you want to delete this item? Type 'yes' to continue: " +msgstr "" + +#: includes/cli.php:168 +msgid "User cancel" +msgstr "" + +#: includes/cli.php:174 +#, php-format +msgid "An error occured deleting item #%d." +msgstr "" + +#: includes/cli.php:181 +msgid "Delete item" +msgstr "" + +#: includes/cli.php:182 +msgid "[item ID]" +msgstr "" + +#: includes/cli.php:194 +msgid "Export items (as CSV)" +msgstr "" + +#: includes/cli.php:195 +msgid "[output file path]" +msgstr "" + +#: includes/cli.php:210 +msgid "Restore items (from CSV)" +msgstr "" + +#: includes/cli.php:211 +msgid "[input file path]" +msgstr "" + +#: includes/cli.php:278 +msgid "Cron to handle item expiration" +msgstr "" + +#: includes/cli.php:281 +msgid "-j/--just-try Just-try mode : do not really removed expired item(s)" +msgstr "" + +#: includes/cli.php:282 +msgid "-m/--max-age Item expiration limit (in days, optional)" +msgstr "" + +#: includes/url-helpers.php:9 msgid "Invalid element identifier." msgstr "" -#: /home/brenard/dev/eesyphp/includes/url-helpers.php:9 -#: /home/brenard/dev/eesyphp/includes/url-public.php:222 -#: /home/brenard/dev/eesyphp/includes/url-public.php:246 +#: includes/url-helpers.php:13 includes/url-public.php:220 +#: includes/url-public.php:242 #, php-format msgid "Item #% s not found." msgstr "" -#: /home/brenard/dev/eesyphp/includes/smarty.php:61 -msgid "Smarty version not supported." +#: includes/core.php:51 +msgid "Pending" msgstr "" -#: /home/brenard/dev/eesyphp/includes/smarty.php:148 -msgid "No template specified." +#: includes/core.php:52 +msgid "Validated" msgstr "" -#: /home/brenard/dev/eesyphp/includes/smarty.php:166 -msgid "An error occurred while viewing this page." +#: includes/core.php:53 +msgid "Refused" msgstr "" -#: /home/brenard/dev/eesyphp/includes/url-public.php:7 -#: /home/brenard/dev/eesyphp/includes/translation.php:140 -msgid "Hello world !" +#: includes/core.php:54 +msgid "Archived" msgstr "" -#: /home/brenard/dev/eesyphp/includes/url-public.php:31 +#: includes/url-public.php:33 msgid "Any" msgstr "" -#: /home/brenard/dev/eesyphp/includes/url-public.php:89 +#: includes/url-public.php:91 msgid "" "An error occurred while listing the items. If the problem persists, please " "contact support." msgstr "" -#: /home/brenard/dev/eesyphp/includes/url-public.php:104 +#: includes/url-public.php:106 msgid "Search" msgstr "" -#: /home/brenard/dev/eesyphp/includes/url-public.php:128 +#: includes/url-public.php:128 #, php-format msgid "Element %s" msgstr "" -#: /home/brenard/dev/eesyphp/includes/url-public.php:142 +#: includes/url-public.php:142 #, php-format msgid "The element '% s' has been created." msgstr "" -#: /home/brenard/dev/eesyphp/includes/url-public.php:146 +#: includes/url-public.php:146 msgid "An error occurred while saving this item." msgstr "" -#: /home/brenard/dev/eesyphp/includes/url-public.php:153 +#: includes/url-public.php:153 msgid "" "There are errors preventing this item from being saved. Please correct them " "before attempting to add this item." msgstr "" -#: /home/brenard/dev/eesyphp/includes/url-public.php:160 +#: includes/url-public.php:160 msgid "New" msgstr "" -#: /home/brenard/dev/eesyphp/includes/url-public.php:170 +#: includes/url-public.php:170 msgid "You cannot edit this item." msgstr "" -#: /home/brenard/dev/eesyphp/includes/url-public.php:183 +#: includes/url-public.php:183 #, php-format msgid "You have not made any changes to element '% s'." msgstr "" -#: /home/brenard/dev/eesyphp/includes/url-public.php:187 +#: includes/url-public.php:187 #, php-format msgid "The element '% s' has been updated successfully." msgstr "" -#: /home/brenard/dev/eesyphp/includes/url-public.php:191 +#: includes/url-public.php:191 msgid "An error occurred while updating this item." msgstr "" -#: /home/brenard/dev/eesyphp/includes/url-public.php:199 +#: includes/url-public.php:199 msgid "" "There are errors preventing this item from being saved. Please correct them " "before attempting to save your changes." msgstr "" -#: /home/brenard/dev/eesyphp/includes/url-public.php:211 +#: includes/url-public.php:211 #, php-format msgid "Element %s: Modification" msgstr "" -#: /home/brenard/dev/eesyphp/includes/url-public.php:226 +#: includes/url-public.php:224 msgid "This item is already archived." msgstr "" -#: /home/brenard/dev/eesyphp/includes/url-public.php:229 +#: includes/url-public.php:227 msgid "You cannot archive this item." msgstr "" -#: /home/brenard/dev/eesyphp/includes/url-public.php:232 +#: includes/url-public.php:230 #, php-format msgid "The element '% s' has been archived successfully." msgstr "" -#: /home/brenard/dev/eesyphp/includes/url-public.php:235 +#: includes/url-public.php:233 msgid "An error occurred while archiving this item." msgstr "" -#: /home/brenard/dev/eesyphp/includes/url-public.php:249 +#: includes/url-public.php:245 msgid "You cannot delete this item." msgstr "" -#: /home/brenard/dev/eesyphp/includes/url-public.php:252 +#: includes/url-public.php:248 #, php-format msgid "The element '% s' has been deleted successfully." msgstr "" -#: /home/brenard/dev/eesyphp/includes/url-public.php:255 +#: includes/url-public.php:251 msgid "An error occurred while deleting this item." msgstr "" - -#: /home/brenard/dev/eesyphp/includes/db.php:31 -msgid "Unable to connect to the database." -msgstr "" - -#: /home/brenard/dev/eesyphp/includes/core.php:44 -msgid "Pending" -msgstr "" - -#: /home/brenard/dev/eesyphp/includes/core.php:45 -msgid "Validated" -msgstr "" - -#: /home/brenard/dev/eesyphp/includes/core.php:46 -msgid "Refused" -msgstr "" - -#: /home/brenard/dev/eesyphp/includes/core.php:47 -msgid "Archived" -msgstr "" - -#: /home/brenard/dev/eesyphp/includes/translation-cli.php:59 -msgid "Fail to list PHP files." -msgstr "" - -#: /home/brenard/dev/eesyphp/includes/translation-cli.php:76 -msgid "Fail to extract messages from PHP files using xgettext." -msgstr "" - -#: /home/brenard/dev/eesyphp/includes/translation-cli.php:86 -msgid "Fail to list JS files." -msgstr "" - -#: /home/brenard/dev/eesyphp/includes/translation-cli.php:103 -msgid "Fail to extract messages from JS files using xgettext." -msgstr "" - -#: /home/brenard/dev/eesyphp/includes/translation-cli.php:116 -msgid "" -"Fail to extract messages from template files using tsmarty2c.php script." -msgstr "" - -#: /home/brenard/dev/eesyphp/includes/translation-cli.php:142 -msgid "Fail to merge messages using msgcat." -msgstr "" - -#: /home/brenard/dev/eesyphp/includes/translation-cli.php:147 -msgid "Extract messages that need to be translated" -msgstr "" - -#: /home/brenard/dev/eesyphp/includes/translation-cli.php:149 -msgid "This command could be used to generate/update lang/messages.pot file." -msgstr "" - -#: /home/brenard/dev/eesyphp/includes/translation-cli.php:165 -#, php-format -msgid "Compendium file %s not found." -msgstr "" - -#: /home/brenard/dev/eesyphp/includes/translation-cli.php:172 -#, php-format -msgid "POT file not found (%s). Please run extract_messages first." -msgstr "" - -#: /home/brenard/dev/eesyphp/includes/translation-cli.php:184 -#: /home/brenard/dev/eesyphp/includes/translation-cli.php:301 -#, php-format -msgid "Lang directory '%s' found" -msgstr "" - -#: /home/brenard/dev/eesyphp/includes/translation-cli.php:190 -#: /home/brenard/dev/eesyphp/includes/translation-cli.php:307 -#, php-format -msgid "LC_MESSAGES directory not found in lang '%s' directory, ignore it." -msgstr "" - -#: /home/brenard/dev/eesyphp/includes/translation-cli.php:205 -#, php-format -msgid "Fail to init messages in %s PO file using msginit (%s)." -msgstr "" - -#: /home/brenard/dev/eesyphp/includes/translation-cli.php:223 -#, php-format -msgid "Fail to update messages in %s PO file using msgmerge (%s)." -msgstr "" - -#: /home/brenard/dev/eesyphp/includes/translation-cli.php:229 -#: /home/brenard/dev/eesyphp/includes/translation-cli.php:315 -#, php-format -msgid "PO file not found in lang '%s' directory, ignore it." -msgstr "" - -#: /home/brenard/dev/eesyphp/includes/translation-cli.php:236 -#: /home/brenard/dev/eesyphp/includes/translation-cli.php:356 -#, php-format -msgid "Fail to open root lang directory (%s)." -msgstr "" - -#: /home/brenard/dev/eesyphp/includes/translation-cli.php:241 -msgid "Update messages in translation PO lang files" -msgstr "" - -#: /home/brenard/dev/eesyphp/includes/translation-cli.php:243 -msgid "" -"This command could be used to init/update PO files in lang/*/LC_MESSAGES " -"directories." -msgstr "" - -#: /home/brenard/dev/eesyphp/includes/translation-cli.php:270 -#, php-format -msgid "Lang alias symlink found: %s -> %s" -msgstr "" - -#: /home/brenard/dev/eesyphp/includes/translation-cli.php:277 -#, php-format -msgid "JSON catalog symlink for %s -> %s created (%s)" -msgstr "" - -#: /home/brenard/dev/eesyphp/includes/translation-cli.php:281 -#, php-format -msgid "Fail to create JSON catalog symlink for %s -> %s (%s)" -msgstr "" - -#: /home/brenard/dev/eesyphp/includes/translation-cli.php:287 -#, php-format -msgid "JSON catalog symlink for %s -> %s already exist (%s)" -msgstr "" - -#: /home/brenard/dev/eesyphp/includes/translation-cli.php:293 -#, php-format -msgid "" -"JSON catalog file for %s already exist, but it's not a symlink to %s (%s)" -msgstr "" - -#: /home/brenard/dev/eesyphp/includes/translation-cli.php:329 -#, php-format -msgid "Fail to compile messages from %s PO file as MO file using msgfmt (%s)." -msgstr "" - -#: /home/brenard/dev/eesyphp/includes/translation-cli.php:339 -#, php-format -msgid "Fail to open %s JSON catalog file in write mode (%s)." -msgstr "" - -#: /home/brenard/dev/eesyphp/includes/translation-cli.php:344 -#, php-format -msgid "Fail to write %s JSON catalog in file (%s)." -msgstr "" - -#: /home/brenard/dev/eesyphp/includes/translation-cli.php:349 -#, php-format -msgid "%s JSON catalog writed (%s)." -msgstr "" - -#: /home/brenard/dev/eesyphp/includes/translation-cli.php:362 -msgid "" -"Compile messages from existing translation PO lang files to corresponding MO " -"files and JSON catalogs" -msgstr "" - -#: /home/brenard/dev/eesyphp/includes/translation-cli.php:367 -msgid "" -"This command could be used to compile PO files in lang/*/LC_MESSAGES " -"directories to MO files and as JSON catalogs in public_html/translations." -msgstr "" - -#: /home/brenard/dev/eesyphp/includes/mail.php:14 -#, php-format -msgid "" -"\n" -"\n" -"\n" -"Mail initialy intended for %s." -msgstr "" - -#: /home/brenard/dev/eesyphp/includes/url.php:98 -msgid "Bad request" -msgstr "" - -#: /home/brenard/dev/eesyphp/includes/url.php:99 -msgid "Invalid request." -msgstr "" - -#: /home/brenard/dev/eesyphp/includes/url.php:102 -msgid "Authentication required" -msgstr "" - -#: /home/brenard/dev/eesyphp/includes/url.php:103 -msgid "You have to be authenticated to access to this page." -msgstr "" - -#: /home/brenard/dev/eesyphp/includes/url.php:106 -msgid "Access denied" -msgstr "" - -#: /home/brenard/dev/eesyphp/includes/url.php:107 -msgid "" -"You do not have access to this application. If you think this is an error, " -"please contact support." -msgstr "" - -#: /home/brenard/dev/eesyphp/includes/url.php:110 -msgid "Whoops ! Page not found" -msgstr "" - -#: /home/brenard/dev/eesyphp/includes/url.php:111 -msgid "The requested page can not be found." -msgstr "" - -#: /home/brenard/dev/eesyphp/includes/url.php:119 -msgid "Error" -msgstr "" - -#: /home/brenard/dev/eesyphp/includes/url.php:120 -msgid "An unknown error occurred. If problem persist, please contact support." -msgstr "" - -#: /home/brenard/dev/eesyphp/includes/url.php:165 -msgid "" -"Unable to determine the requested page. If the problem persists, please " -"contact support." -msgstr "" - -#: /home/brenard/dev/eesyphp/includes/url.php:318 -msgid "" -"Unable to determine the requested page (loop detected). If the problem " -"persists, please contact support." -msgstr "" - -#: /home/brenard/dev/eesyphp/includes/url.php:347 -msgid "This request cannot be processed." -msgstr "" - -#: /home/brenard/dev/eesyphp/includes/url.php:360 -msgid "" -"Authentication required but force_authentication function is not defined." -msgstr "" - -#: /home/brenard/dev/eesyphp/includes/url.php:368 -msgid "This request could not be processed correctly." -msgstr "" - -#: /home/brenard/dev/eesyphp/includes/cli.php:8 -#, php-format -msgid "The CLI command '%s' already exists." -msgstr "" - -#: /home/brenard/dev/eesyphp/includes/cli.php:13 -#, php-format -msgid "The CLI command '%s' handler is not callable !" -msgstr "" - -#: /home/brenard/dev/eesyphp/includes/cli.php:54 -#, php-format -msgid "Usage: %s [-h] [-qd] command\n" -msgstr "" - -#: /home/brenard/dev/eesyphp/includes/cli.php:55 -msgid " -h Show this message\n" -msgstr "" - -#: /home/brenard/dev/eesyphp/includes/cli.php:56 -msgid " -q / -d Quiet/Debug mode\n" -msgstr "" - -#: /home/brenard/dev/eesyphp/includes/cli.php:57 -msgid " --trace Trace mode (the most verbose)\n" -msgstr "" - -#: /home/brenard/dev/eesyphp/includes/cli.php:58 -msgid " command Command to run\n" -msgstr "" - -#: /home/brenard/dev/eesyphp/includes/cli.php:60 -msgid "Available commands:\n" -msgstr "" - -#: /home/brenard/dev/eesyphp/includes/cli.php:102 -msgid "Only one command could be executed !" -msgstr "" - -#: /home/brenard/dev/eesyphp/includes/cli.php:127 -#, php-format -msgid "" -"Invalid parameter \"%s\".\n" -"Note: Command's parameter/argument must be place after the command." -msgstr "" - -#: /home/brenard/dev/eesyphp/includes/cli.php:149 -#, php-format -msgid "An exception occured running command %s" -msgstr "" - -#: /home/brenard/dev/eesyphp/includes/cli.php:155 -#, php-format -msgid "Item #%s:\n" -msgstr "" - -#: /home/brenard/dev/eesyphp/includes/cli.php:156 -#, php-format -msgid "ID: %s" -msgstr "" - -#: /home/brenard/dev/eesyphp/includes/cli.php:157 -#, php-format -msgid "Name: '%s'" -msgstr "" - -#: /home/brenard/dev/eesyphp/includes/cli.php:158 -#, php-format -msgid "Date: %s" -msgstr "" - -#: /home/brenard/dev/eesyphp/includes/cli.php:160 -#, php-format -msgid "Description: %s" -msgstr "" - -#: /home/brenard/dev/eesyphp/includes/cli.php:161 -msgid "Not set" -msgstr "" - -#: /home/brenard/dev/eesyphp/includes/cli.php:163 -#, php-format -msgid "Status: %s" -msgstr "" - -#: /home/brenard/dev/eesyphp/includes/cli.php:216 -msgid "No item.\n" -msgstr "" - -#: /home/brenard/dev/eesyphp/includes/cli.php:242 -#, php-format -msgid "%d item(s)" -msgstr "" - -#: /home/brenard/dev/eesyphp/includes/cli.php:248 -msgid "List/search items" -msgstr "" - -#: /home/brenard/dev/eesyphp/includes/cli.php:249 -msgid "[patterns]" -msgstr "" - -#: /home/brenard/dev/eesyphp/includes/cli.php:251 -msgid "-o|--orderby Ordering list criterion. Possible values:" -msgstr "" - -#: /home/brenard/dev/eesyphp/includes/cli.php:253 -msgid "-r|--reverse Reverse order" -msgstr "" - -#: /home/brenard/dev/eesyphp/includes/cli.php:254 -msgid "-s|--status Filter on status. Possible values:" -msgstr "" - -#: /home/brenard/dev/eesyphp/includes/cli.php:261 -msgid "You must provide a valid ID." -msgstr "" - -#: /home/brenard/dev/eesyphp/includes/cli.php:267 -#: /home/brenard/dev/eesyphp/includes/cli.php:291 -#, php-format -msgid "Item #%s not found." -msgstr "" - -#: /home/brenard/dev/eesyphp/includes/cli.php:275 -msgid "Show item" -msgstr "" - -#: /home/brenard/dev/eesyphp/includes/cli.php:276 -msgid "[ID]" -msgstr "" - -#: /home/brenard/dev/eesyphp/includes/cli.php:281 -msgid "You must provide item ID." -msgstr "" - -#: /home/brenard/dev/eesyphp/includes/cli.php:285 -msgid "Invalid item ID" -msgstr "" - -#: /home/brenard/dev/eesyphp/includes/cli.php:296 -msgid "Are you sure you want to delete this item? Type 'yes' to continue: " -msgstr "" - -#: /home/brenard/dev/eesyphp/includes/cli.php:300 -msgid "User cancel" -msgstr "" - -#: /home/brenard/dev/eesyphp/includes/cli.php:306 -#, php-format -msgid "An error occured deleting item #%d." -msgstr "" - -#: /home/brenard/dev/eesyphp/includes/cli.php:313 -msgid "Delete item" -msgstr "" - -#: /home/brenard/dev/eesyphp/includes/cli.php:314 -msgid "[item ID]" -msgstr "" - -#: /home/brenard/dev/eesyphp/includes/cli.php:326 -msgid "Export items (as CSV)" -msgstr "" - -#: /home/brenard/dev/eesyphp/includes/cli.php:327 -msgid "[output file path]" -msgstr "" - -#: /home/brenard/dev/eesyphp/includes/cli.php:342 -msgid "Restore items (from CSV)" -msgstr "" - -#: /home/brenard/dev/eesyphp/includes/cli.php:343 -msgid "[input file path]" -msgstr "" - -#: /home/brenard/dev/eesyphp/includes/cli.php:412 -msgid "Cron to handle item expiration" -msgstr "" - -#: /home/brenard/dev/eesyphp/includes/cli.php:415 -msgid "-j/--just-try Just-try mode : do not really removed expired item(s)" -msgstr "" - -#: /home/brenard/dev/eesyphp/includes/cli.php:416 -msgid "-m/--max-age Item expiration limit (in days, optional)" -msgstr "" diff --git a/example/templates/form.tpl b/example/templates/form.tpl index d7c3ce3..bf2b73e 100644 --- a/example/templates/form.tpl +++ b/example/templates/form.tpl @@ -1,4 +1,4 @@ -{extends file='empty.tpl'} +{extends file='Tpl:empty.tpl'} {block name="content"}