Normalize capitalization ticket #596

This commit is contained in:
Tim Almdal
2009-10-28 12:15:52 -07:00
parent 8ef78de3f7
commit 7ea13b3869
48 changed files with 137 additions and 137 deletions

View File

@@ -1,6 +1,6 @@
<?php defined("SYSPATH") or die("No direct script access.") ?>
<div id="g-admin-akismet" class="g-block">
<h1> <?= t("Akismet Spam Filtering") ?> </h1>
<h1> <?= t("Akismet spam filtering") ?> </h1>
<p>
<?= t("Akismet is a free, automated spam filtering service. In order to use it, you need to sign up for a <a href=\"%api_key_url\">Wordpress.com API Key</a>, which is also free. Your comments will be automatically relayed to <a href=\"%akismet_url\">Akismet.com</a> where they'll be scanned for spam. Spam messages will be flagged accordingly and hidden from your vistors until you approve or delete them.",
array("api_key_url" => "http://wordpress.com/api-keys",
@@ -9,7 +9,7 @@
<div class="g-block-content">
<? if ($valid_key): ?>
<div class="g-module-status g-success">
<?= t("Your API Key is valid. Your comments will be filtered!") ?>
<?= t("Your API key is valid. Your comments will be filtered!") ?>
</div>
<? endif ?>

View File

@@ -19,7 +19,7 @@
*/
class comment_block_Core {
static function get_admin_list() {
return array("recent_comments" => t("Recent Comments"));
return array("recent_comments" => t("Recent comments"));
}
static function get($block_id) {
@@ -27,7 +27,7 @@ class comment_block_Core {
switch ($block_id) {
case "recent_comments":
$block->css_id = "g-recent-comments";
$block->title = t("Recent Comments");
$block->title = t("Recent comments");
$block->content = new View("admin_block_recent_comments.html");
$block->content->comments =
ORM::factory("comment")->orderby("created", "DESC")->limit(5)->find_all();

View File

@@ -61,7 +61,7 @@ class comment_rss_Core {
$feed->max_pages = ceil($comments->count_all() / $limit);
$feed->title = htmlspecialchars(t("Recent Comments"));
$feed->uri = url::abs_site("albums/" . (empty($id) ? "1" : $id));
$feed->description = t("Recent Comments");
$feed->description = t("Recent comments");
return $feed;
}

View File

@@ -35,7 +35,7 @@
</script>
<div id="g-admin-comments" class="g-block">
<h1> <?= t("Manage Comments") ?> </h1>
<h1> <?= t("Manage comments") ?> </h1>
<div class="g-block-content">
<!-- @todo: Highlight active menu option -->
@@ -46,13 +46,13 @@
<!-- @todo: Remove after setting active option? -->
<h2>
<? if ($state == "published"): ?>
<?= t("Approved Comments") ?>
<?= t("Approved comments") ?>
<? elseif ($state == "unpublished"): ?>
<?= t("Comments Awaiting Moderation") ?>
<?= t("Comments awaiting moderation") ?>
<? elseif ($state == "spam"): ?>
<?= t("Spam Comments") ?>
<?= t("Spam comments") ?>
<? elseif ($state == "deleted"): ?>
<?= t("Recently Deleted Comments") ?>
<?= t("Recently deleted comments") ?>
<? endif ?>
</h2>
@@ -196,6 +196,6 @@
<div class="g-pager">
<?= $pager ?>
</div>
</div>
</div>

View File

@@ -4,7 +4,7 @@
.g-odd { background: #bdd2ff; }
.g-even { background: #dfeffc; }
</style>
<h1 style="display: none;"><?= t("Photo Detail") ?></h1>
<h1 style="display: none;"><?= t("Photo detail") ?></h1>
<div id="g-exif-data">
<table class="g-metadata" >
<tbody>

View File

@@ -1,5 +1,5 @@
<?php defined("SYSPATH") or die("No direct script access.") ?>
<a id="g-exif-data-link" href="<?= url::site("exif/show/{$item->id}") ?>" title="<?= t("Photo Details")->for_html_attr() ?>"
<a id="g-exif-data-link" href="<?= url::site("exif/show/{$item->id}") ?>" title="<?= t("Photo details")->for_html_attr() ?>"
class="g-dialog-link g-button ui-icon-left ui-state-default ui-corner-all">
<span class="ui-icon ui-icon-info"></span>
<?= t("View more information") ?>

View File

@@ -271,7 +271,7 @@ class g2_import_Core {
if (g2(GalleryCoreApi::isAnonymousUser($g2_user_id))) {
self::set_map($g2_user_id, identity::guest()->id);
return t("Skipping Anonymous User");
return t("Skipping anonymous user");
}
$g2_admin_group_id =

View File

@@ -1,6 +1,6 @@
<?php defined("SYSPATH") or die("No direct script access.") ?>
<div id="g-admin-g2-import" class="g-block">
<h1> <?= t("Gallery 2 Import") ?> </h1>
<h1> <?= t("Gallery 2 import") ?> </h1>
<p>
<?= t("Import your Gallery 2 users, photos, movies, comments and tags into your new Gallery 3 installation.") ?>
</p>

View File

@@ -115,7 +115,7 @@ class Admin_Languages_Controller extends Admin_Controller {
? t("This is a unique key that will allow you to send translations to the remote
server. To get your API key go to %server-link.",
array("server-link" => html::mark_clean(html::anchor($server_link))))
: t("API Key"))
: t("API key"))
->value($api_key)
->error_messages("invalid", t("The API key you provided is invalid."));
$group->submit("save")->value(t("Save settings"));

View File

@@ -21,15 +21,15 @@ class gallery_block_Core {
static function get_admin_list() {
return array(
"welcome" => t("Welcome to Gallery 3!"),
"photo_stream" => t("Photo Stream"),
"log_entries" => t("Log Entries"),
"stats" => t("Gallery Stats"),
"platform_info" => t("Platform Information"),
"project_news" => t("Gallery Project News"));
"photo_stream" => t("Photo stream"),
"log_entries" => t("Log entries"),
"stats" => t("Gallery stats"),
"platform_info" => t("Platform information"),
"project_news" => t("Gallery project news"));
}
static function get_site_list() {
return array("language" => t("Language Preference"));
return array("language" => t("Language preference"));
}
static function get($block_id) {
@@ -43,7 +43,7 @@ class gallery_block_Core {
case "photo_stream":
$block->css_id = "g-photo-stream";
$block->title = t("Photo Stream");
$block->title = t("Photo stream");
$block->content = new View("admin_block_photo_stream.html");
$block->content->photos =
ORM::factory("item")->where("type", "photo")->orderby("created", "DESC")->find_all(10);
@@ -51,7 +51,7 @@ class gallery_block_Core {
case "log_entries":
$block->css_id = "g-log-entries";
$block->title = t("Log Entries");
$block->title = t("Log entries");
$block->content = new View("admin_block_log_entries.html");
$block->content->entries = ORM::factory("log")
->orderby(array("timestamp" => "DESC", "id" => "DESC"))->find_all(5);
@@ -59,7 +59,7 @@ class gallery_block_Core {
case "stats":
$block->css_id = "g-stats";
$block->title = t("Gallery Stats");
$block->title = t("Gallery stats");
$block->content = new View("admin_block_stats.html");
$block->content->album_count =
ORM::factory("item")->where("type", "album")->where("id <>", 1)->count_all();
@@ -68,7 +68,7 @@ class gallery_block_Core {
case "platform_info":
$block->css_id = "g-platform";
$block->title = t("Platform Information");
$block->title = t("Platform information");
$block->content = new View("admin_block_platform.html");
if (is_readable("/proc/loadavg")) {
$block->content->load_average =
@@ -80,14 +80,14 @@ class gallery_block_Core {
case "project_news":
$block->css_id = "g-project-news";
$block->title = t("Gallery Project News");
$block->title = t("Gallery project news");
$block->content = new View("admin_block_news.html");
$block->content->feed = feed::parse("http://gallery.menalto.com/node/feed", 3);
break;
case "block_adder":
$block->css_id = "g-block-adder";
$block->title = t("Dashboard Content");
$block->title = t("Dashboard content");
$block->content = self::get_add_block_form();
break;
@@ -99,7 +99,7 @@ class gallery_block_Core {
}
$block = new Block();
$block->css_id = "g-user-language-block";
$block->title = t("Language Preference");
$block->title = t("Language preference");
$block->content = new View("user_languages_block.html");
$block->content->installed_locales =
array_merge(array("" => t("« none »")), $locales);

View File

@@ -199,12 +199,12 @@ class gallery_installer {
}
access::register_permission("view", "View");
access::register_permission("view_full", "View Full Size");
access::register_permission("view_full", "View full size");
access::register_permission("edit", "Edit");
access::register_permission("add", "Add");
// Mark for translation (must be the same strings as used above)
t("View Full Size");
t("View full size");
t("View");
t("Edit");
t("Add");

View File

@@ -39,8 +39,8 @@ class gallery_rss_Core {
->orderby("created", "DESC");
$feed->max_pages = ceil($all_children->find_all()->count() / $limit);
$feed->title = t("Recent Updates");
$feed->description = t("Recent Updates");
$feed->title = t("Recent updates");
$feed->description = t("Recent updates");
return $feed;
case "album":

View File

@@ -1,10 +1,10 @@
<?php defined("SYSPATH") or die("No direct script access.") ?>
<div id="g-admin-advanced-settings" class="g-block">
<h1> <?= t("Advanced Settings") ?> </h1>
<h1> <?= t("Advanced settings") ?> </h1>
<p>
<?= t("Here are internal Gallery configuration settings. Most of these settings are accessible elsewhere in the administrative console.") ?>
</p>
<ul id="g-action-status" class="g-message-block">
<li class="g-warning"><?= t("Change these values at your own risk!") ?></li>
</ul>

View File

@@ -4,7 +4,7 @@
<?= t("Host name: %host_name", array("host_name" => php_uname("n"))) ?>
</li>
<li>
<?= t("Operating System: %os %version", array("os" => php_uname("s"), "version" => php_uname("r"))) ?>
<?= t("Operating system: %os %version", array("os" => php_uname("s"), "version" => php_uname("r"))) ?>
</li>
<li>
<?= t("Apache: %apache_version", array("apache_version" => function_exists("apache_get_version") ? apache_get_version() : t("Unknown"))) ?>

View File

@@ -13,13 +13,13 @@
</script>
<div id="g-admin-graphics" class="g-block ui-helper-clearfix">
<h1> <?= t("Graphics Settings") ?> </h1>
<h1> <?= t("Graphics settings") ?> </h1>
<p>
<?= t("Gallery needs a graphics toolkit in order to manipulate your photos. Please choose one from the list below.") ?>
</p>
<div class="g-block-content">
<h2> <?= t("Active Toolkit") ?> </h2>
<h2> <?= t("Active toolkit") ?> </h2>
<? if ($active == "none"): ?>
<?= new View("admin_graphics_none.html") ?>
<? else: ?>
@@ -27,7 +27,7 @@
<? endif ?>
<div class="g-available">
<h2> <?= t("Available Toolkits") ?> </h2>
<h2> <?= t("Available toolkits") ?> </h2>
<? foreach (array_keys((array)$tk) as $id): ?>
<? if ($id != $active): ?>
<?= new View("admin_graphics_$id.html", array("tk" => $tk->$id, "is_active" => false)) ?>

View File

@@ -1,7 +1,7 @@
<?php defined("SYSPATH") or die("No direct script access.") ?>
<div id="none" class="g-module-status g-warning g-block">
<h3> <?= t("No Active Toolkit") ?> </h3>
<h3> <?= t("No active toolkit") ?> </h3>
<p>
<?= t("We were unable to detect a graphics program. You must install one of the toolkits below in order to use many Gallery features.") ?>
</p>

View File

@@ -34,7 +34,7 @@
</script>
<div id="g-modules">
<h1> <?= t("Manage Identity Providers") ?> </h1>
<h1> <?= t("Manage identity providers") ?> </h1>
<p>
<?= t("Choose a different user/group management provider.") ?>
</p>

View File

@@ -26,7 +26,7 @@
</script>
<div class="g-block">
<h1> <?= t("Languages and Translation") ?> </h1>
<h1> <?= t("Languages and translation") ?> </h1>
<div class="g-block-content">
@@ -107,6 +107,6 @@
<?= $share_translations_form ?>
</div>
</div>
</div>
</div>

View File

@@ -1,13 +1,13 @@
<?php defined("SYSPATH") or die("No direct script access.") ?>
<div id="g-admin-maintenance" class="g-block">
<h1> <?= t("Maintenance Tasks") ?> </h1>
<h1> <?= t("Maintenance tasks") ?> </h1>
<p>
<?= t("Occasionally your Gallery will require some maintenance. Here are some tasks you can use to keep it running smoothly.") ?>
</p>
<div class="g-block-content">
<div id="g-available-tasks">
<h2> <?= t("Available Tasks") ?> </h2>
<h2> <?= t("Available tasks") ?> </h2>
<table>
<tr>
<th>
@@ -43,11 +43,11 @@
<? if ($running_tasks->count()): ?>
<div id="g-running-tasks">
<h2> <?= t("Running Tasks") ?> </h2>
<h2> <?= t("Running tasks") ?> </h2>
<table>
<tr>
<th>
<?= t("Last Updated") ?>
<?= t("Last updated") ?>
</th>
<th>
<?= t("Name") ?>
@@ -116,11 +116,11 @@
<? if ($finished_tasks->count()): ?>
<div id="g-finished-tasks">
<h2> <?= t("Finished Tasks") ?> </h2>
<h2> <?= t("Finished tasks") ?> </h2>
<table>
<tr>
<th>
<?= t("Last Updated") ?>
<?= t("Last updated") ?>
</th>
<th>
<?= t("Name") ?>

View File

@@ -36,7 +36,7 @@
</script>
<div id="g-block-admin" class="g-block ui-helper-clearfix">
<h1> <?= t("Manage Sidebar") ?> </h1>
<h1> <?= t("Manage sidebar") ?> </h1>
<p>
<?= t("Select and drag blocks from the available column to the active column to add to the sidebar; remove by dragging the other way.") ?>
</p>
@@ -44,7 +44,7 @@
<div class="g-block-content">
<div id="g-site-blocks" ref="<?= url::site("admin/sidebar/update?csrf={$csrf}__ACTIVE__") ?>">
<div class="g-admin-blocks-list">
<div><h3><?= t("Available Blocks") ?></h3></div>
<div><h3><?= t("Available blocks") ?></h3></div>
<div>
<ul id="g-available-blocks" class="g-sortable-blocks">
<?= $available ?>
@@ -52,7 +52,7 @@
</div>
</div>
<div class="g-admin-blocks-list">
<div><h3><?= t("Active Blocks") ?></h3></div>
<div><h3><?= t("Active blocks") ?></h3></div>
<div>
<ul id="g-active-blocks" class="g-sortable-blocks">
<?= $active ?>

View File

@@ -8,7 +8,7 @@
</script>
<div class="g-block ui-helper-clearfix">
<h1> <?= t("Theme Choice") ?> </h1>
<h1> <?= t("Theme choice") ?> </h1>
<p>
<?= t("Gallery allows you to choose a theme for browsing your Gallery, as well as a special theme for the administration interface. Click a theme to preview and activate it.") ?>
</p>
@@ -89,6 +89,6 @@
<? endif ?>
</div>
</div>
</div>
</div>

View File

@@ -6,9 +6,9 @@
<a id="g-close-l10n" title="<?= t("Stop the translation mode")->for_html_attr() ?>"
href="<?= html::clean_attribute(url::site("l10n_client/toggle_l10n_mode?csrf=".access::csrf_token())) ?>">X</a>
</span>
<div class="label strings"><h2><?= t("Page Text") ?>
<div class="label strings"><h2><?= t("Page text") ?>
<? if (!Input::instance()->get('show_all_l10n_messages')): ?>
<a style="background-color:#fff" href="<?= url::site("admin/languages?show_all_l10n_messages=1") ?>"><?= t("(Show All)") ?></a>
<a style="background-color:#fff" href="<?= url::site("admin/languages?show_all_l10n_messages=1") ?>"><?= t("(Show all)") ?></a>
<? endif; ?>
</h2></div>
<div class="label source"><h2><?= t("Source") ?></div>
@@ -73,7 +73,7 @@
</div>
</div>
<script type="text/javascript">
var MSG_TRANSLATE_TEXT = <?= t("Translate Text")->for_js() ?>;
var MSG_TRANSLATE_TEXT = <?= t("Translate text")->for_js() ?>;
var l10n_client_data = <?= json_encode($string_list) ?>;
var plural_forms = <?= json_encode($plural_forms) ?>;
var toggle_l10n_mode_url = <?= html::js_string(url::site("l10n_client/toggle_l10n_mode")) ?>;

View File

@@ -11,7 +11,7 @@
<? if (identity::is_writable()): ?>
<?= t('Logged in as %name', array('name' => html::mark_clean(
'<a href="' . url::site("form/edit/users/{$user->id}") .
'" title="' . t("Edit Your Profile")->for_html_attr() .
'" title="' . t("Edit your profile")->for_html_attr() .
'" id="g-user-profile-link" class="g-dialog-link">' .
html::clean($user->display_name()) . '</a>'))) ?>
<? else: ?>

View File

@@ -6,7 +6,7 @@
url: "<?= url::site("password/reset") ?>",
success: function(data) {
$("#g-login").html(data);
$("#ui-dialog-title-g-dialog").html(<?= t("Reset Password")->for_js() ?>);
$("#ui-dialog-title-g-dialog").html(<?= t("Reset password")->for_js() ?>);
$(".submit").addClass("g-button ui-state-default ui-corner-all");
$(".submit").gallery_hover_init();
ajaxify_login_reset_form();
@@ -38,7 +38,7 @@
</li>
<? if (identity::is_writable()): ?>
<li>
<a href="#" id="g-password-reset" class="g-right g-txt-small"><?= t("Forgot Your Password?") ?></a>
<a href="#" id="g-password-reset" class="g-right g-txt-small"><?= t("Forgot your password?") ?></a>
</li>
<? endif ?>
</ul>

View File

@@ -2,7 +2,7 @@
<html>
<head>
<title>
<?= t("Gallery - Maintenance Mode") ?>
<?= t("Gallery - maintenance mode") ?>
</title>
<style>
body {
@@ -38,7 +38,7 @@
</head>
<body>
<h1>
<?= t("Gallery - Maintenance Mode") ?>
<?= t("Gallery - maintenance mode") ?>
</h1>
<p>
<?= t("This site is currently only accessible by site administrators.") ?>

View File

@@ -34,7 +34,7 @@
</ul>
<div id="g-uploadqueue-infobar">
<?= t("Upload Queue") ?>
<?= t("Upload queue") ?>
<span id="g-uploadstatus"></span>
<a id="g-cancelupload" title="<?= t("Cancel all the pending uploads")->for_html_attr() ?>" onclick="swfu.cancelQueue();"><?= t("cancel") ?></a>
</div>
@@ -60,7 +60,7 @@
"csrf" => $csrf)) ?>,
file_size_limit: <?= html::js_string(ini_get("upload_max_filesize") ? num::convert_to_bytes(ini_get("upload_max_filesize"))."B" : "100MB") ?>,
file_types: "*.gif;*.jpg;*.jpeg;*.png;*.flv;*.mp4;*.GIF;*.JPG;*.JPEG;*.PNG;*.FLV;*.MP4",
file_types_description: <?= t("Photos and Movies")->for_js() ?>,
file_types_description: <?= t("Photos and movies")->for_js() ?>,
file_upload_limit: 1000,
file_queue_limit: 0,
custom_settings: { },

View File

@@ -1,7 +1,7 @@
<?php defined("SYSPATH") or die("No direct script access.") ?>
<html>
<head>
<title><?= t("Gallery 3 Upgrader") ?></title>
<title><?= t("Gallery 3 upgrader") ?></title>
<link rel="stylesheet" type="text/css" href="<?= url::file("modules/gallery/css/upgrader.css") ?>"
media="screen,print,projection" />
<script src="<?= url::file("lib/jquery.js") ?>" type="text/javascript"></script>

View File

@@ -16,10 +16,10 @@
<p>
<a href="<?= url::site("form/edit/users/{$user->id}") ?>"
title="<?= t("Edit Your Profile")->for_html_attr() ?>"
title="<?= t("Edit your profile")->for_html_attr() ?>"
id="g-after-install-change-password-link"
class="g-button ui-state-default ui-corners-all">
<?= t("Change Password Now") ?>
<?= t("Change password now") ?>
</a>
<script>
$("#g-after-install-change-password-link").gallery_dialog();

View File

@@ -19,7 +19,7 @@
*/
class image_block_block_Core {
static function get_site_list() {
return array("random_image" => t("Random Image"));
return array("random_image" => t("Random image"));
}
static function get($block_id, $theme) {
@@ -28,7 +28,7 @@ class image_block_block_Core {
case "random_image":
$block = new Block();
$block->css_id = "g-image-block";
$block->title = t("Random Image");
$block->title = t("Random image");
$block->content = new View("image_block_block.html");
$random = ((float)mt_rand()) / (float)mt_getrandmax();

View File

@@ -29,7 +29,7 @@ class info_block_Core {
if ($theme->item()) {
$block = new Block();
$block->css_id = "g-metadata";
$block->title = $theme->item()->is_album() ? t("Album Info") : t("Photo Info");
$block->title = $theme->item()->is_album() ? t("Album info") : t("Photo info");
$block->content = new View("info_block.html");
}
break;

View File

@@ -11,11 +11,11 @@
<td><?= nl2br(html::purify($comment->text)) ?></td>
</tr>
<tr>
<td><?= t("Author Name:") ?></td>
<td><?= t("Author name:") ?></td>
<td><?= html::clean($comment->author_name()) ?></td>
</tr>
<tr>
<td><?= t("Author Email:") ?></td>
<td><?= t("Author email:") ?></td>
<td><?= html::clean($comment->author_email()) ?></td>
</tr>
<tr>

View File

@@ -8,7 +8,7 @@
<table>
<tr>
<? if ($item->original("title") != $item->title): ?>
<td><?= t("New Title:") ?></td>
<td><?= t("New title:") ?></td>
<td><?= html::clean($item->title) ?></td>
<? else: ?>
<td><?= t("Title:") ?></td>
@@ -21,7 +21,7 @@
</tr>
<? if ($item->original("description") != $item->description): ?>
<tr>
<td><?= t("New Description:") ?></td>
<td><?= t("New description:") ?></td>
<td><?= html::clean($item->description) ?></td>
</tr>
<? elseif (!empty($item->description)): ?>

View File

@@ -1,6 +1,6 @@
<?php defined("SYSPATH") or die("No direct script access.") ?>
<div class="g-block">
<h1> <?= t("reCAPTCHA Challenge Filtering") ?> </h1>
<h1> <?= t("reCAPTCHA challenge filtering") ?> </h1>
<p>
<?= t("reCAPTCHA is a free CAPTCHA service that helps to digitize books, newspapers and old time radio shows. In order to use it, you need to sign up for a <a href=\"%domain_url\">reCAPTCHA Public/Private Key pair</a>, which is also free. Once registered, the challenge and response strings are evaluated at <a href=\"%recaptcha_url\">recaptcha.net</a> to determine if the form content has been entered by a bot.",
array("domain_url" => $form->get_key_url,
@@ -12,7 +12,7 @@
<? if ($public_key && $private_key): ?>
<div id="g-admin-recaptcha-test">
<h2> <?= t("reCAPTCHA Test") ?> </h2>
<h2> <?= t("reCAPTCHA test") ?> </h2>
<p>
<?= t("If you see a CAPTCHA form below, then reCAPTCHA is functioning properly.") ?>
</p>
@@ -30,6 +30,6 @@
</div>
</div>
<? endif ?>
</div>
</div>

View File

@@ -19,7 +19,7 @@
*/
class rss_block_Core {
static function get_site_list() {
return array("rss_feeds" => t("Available RSS Feeds"));
return array("rss_feeds" => t("Available RSS feeds"));
}
static function get($block_id, $theme) {
@@ -37,7 +37,7 @@ class rss_block_Core {
if (!empty($feeds)) {
$block = new Block();
$block->css_id = "g-rss";
$block->title = t("Available RSS Feeds");
$block->title = t("Available RSS feeds");
$block->content = new View("rss_block.html");
$block->content->feeds = $feeds;
}

View File

@@ -18,7 +18,7 @@
</form>
<div id="g-search-results">
<h1><?= t("Search Results") ?></h1>
<h1><?= t("Search results") ?></h1>
<? if (count($items)): ?>
<ul id="g-album-grid" class="ui-helper-clearfix">

View File

@@ -35,7 +35,7 @@ class server_add_event_Core {
$menu->get("add_menu")
->append(Menu::factory("dialog")
->id("server_add")
->label(t("Server add"))
->label(t("Server Add"))
->url(url::site("server_add/browse/$item->id")));
}
}

View File

@@ -1,12 +1,12 @@
<?php defined("SYSPATH") or die("No direct script access.") ?>
<div class="g-block">
<h1> <?= t("Add From Server Admininstration") ?> </h1>
<h1> <?= t("Add from server admininstration") ?> </h1>
<div class="g-block-content">
<?= $form ?>
<h2><?= t("Authorized Paths") ?></h2>
<h2><?= t("Authorized paths") ?></h2>
<ul id="g-server-add-paths">
<? if (empty($paths)): ?>
<li class="g-module-status g-info"><?= t("No Authorized image source paths defined yet") ?></li>
<li class="g-module-status g-info"><?= t("No authorized image source paths defined yet") ?></li>
<? endif ?>
<? foreach ($paths as $id => $path): ?>
<li>

View File

@@ -19,7 +19,7 @@
*/
class tag_block_Core {
static function get_site_list() {
return array("tag" => t("Popular Tags"));
return array("tag" => t("Popular tags"));
}
static function get($block_id, $theme) {
@@ -28,7 +28,7 @@ class tag_block_Core {
case "tag":
$block = new Block();
$block->css_id = "g-tag";
$block->title = t("Popular Tags");
$block->title = t("Popular tags");
$block->content = new View("tag_block.html");
$block->content->cloud = tag::cloud(30);

View File

@@ -43,7 +43,7 @@
</script>
<div class="g-block">
<h1> <?= t("Users and Groups") ?> </h1>
<h1> <?= t("Users and groups") ?> </h1>
<div class="g-block-content">
<div class="g-block">
@@ -54,7 +54,7 @@
<?= t("Add a new user") ?>
</a>
<h2> <?= t("User Admin") ?> </h2>
<h2> <?= t("User admin") ?> </h2>
<div class="g-block-content">
<table id="g-user-admin-list">
@@ -87,17 +87,17 @@
</td>
<td class="g-actions">
<a href="<?= url::site("admin/users/edit_user_form/$user->id") ?>"
open_text="<?= t("close") ?>"
open_text="<?= t("Close") ?>"
class="g-panel-link g-button ui-state-default ui-corner-all ui-icon-left">
<span class="ui-icon ui-icon-pencil"></span><span class="g-button-text"><?= t("edit") ?></span></a>
<span class="ui-icon ui-icon-pencil"></span><span class="g-button-text"><?= t("Edit") ?></span></a>
<? if (identity::active_user()->id != $user->id && !$user->guest): ?>
<a href="<?= url::site("admin/users/delete_user_form/$user->id") ?>"
class="g-dialog-link g-button ui-state-default ui-corner-all ui-icon-left">
<span class="ui-icon ui-icon-trash"></span><?= t("delete") ?></a>
<span class="ui-icon ui-icon-trash"></span><?= t("Delete") ?></a>
<? else: ?>
<span title="<?= t("This user cannot be deleted")->for_html_attr() ?>"
class="g-button ui-state-disabled ui-corner-all ui-icon-left">
<span class="ui-icon ui-icon-trash"></span><?= t("delete") ?></span>
<span class="ui-icon ui-icon-trash"></span><?= t("Delete") ?></span>
<? endif ?>
</td>
</tr>
@@ -115,7 +115,7 @@
</a>
<h2>
<?= t("Group Admin") ?>
<?= t("Group admin") ?>
</h2>
<div class="g-block-content">

View File

@@ -5,11 +5,11 @@
<a href="<?= url::site("admin/users/delete_group_form/$group->id") ?>"
title="<?= t("Delete the %name group", array("name" => $group->name))->for_html_attr() ?>"
class="g-dialog-link g-button ui-state-default ui-corner-all">
<span class="ui-icon ui-icon-trash"><?= t("delete") ?></span></a>
<span class="ui-icon ui-icon-trash"><?= t("Delete") ?></span></a>
<? else: ?>
<a title="<?= t("This default group cannot be deleted")->for_html_attr() ?>"
class="g-dialog-link g-button ui-state-disabled ui-corner-all ui-icon-left">
<span class="ui-icon ui-icon-trash"><?= t("delete") ?></span></a>
<span class="ui-icon ui-icon-trash"><?= t("Delete") ?></span></a>
<? endif ?>
</h4>
@@ -23,7 +23,7 @@
class="g-button ui-state-default ui-corner-all ui-icon-left"
title="<?= t("Remove %user from %group group",
array("user" => $user->name, "group" => $group->name))->for_html_attr() ?>">
<span class="ui-icon ui-icon-closethick"><?= t("remove") ?></span>
<span class="ui-icon ui-icon-closethick"><?= t("Remove") ?></span>
</a>
<? endif ?>
</li>
@@ -32,7 +32,7 @@
<? else: ?>
<div>
<p>
<?= t("Drag &amp; drop users from the User Admin above into this group box to add group members.") ?>
<?= t("Drag &amp; drop users from the \"User admin\" above into this group box to add group members.") ?>
</p>
</div>
<? endif ?>

View File

@@ -1,10 +1,10 @@
<?php defined("SYSPATH") or die("No direct script access.") ?>
<html>
<head>
<title><?= t("Password Reset Request") ?> </title>
<title><?= t("Password reset request") ?> </title>
</head>
<body>
<h2><?= t("Password Reset Request") ?> </h2>
<h2><?= t("Password reset request") ?> </h2>
<p>
<?= t("Hello, %name,", array("name" => $user->full_name ? $user->full_name : $user->name)) ?>
</p>

View File

@@ -11,7 +11,7 @@
title="<?= t("Upload a watermark")->for_html_attr() ?>"
class="g-dialog-link g-button ui-icon-left ui-state-default ui-corner-all"><span class="ui-icon ui-icon-document-b"></span><?= t("Upload a watermark") ?></a>
<? else: ?>
<h2> <?= t("Active Watermark") ?> </h2>
<h2> <?= t("Active watermark") ?> </h2>
<p>
<?= t("Note that changing this watermark will require you to rebuild all of your thumbnails and resized images.") ?>
</p>
@@ -27,10 +27,10 @@
</div>
<div class="controls">
<a href="<?= url::site("admin/watermarks/form_edit") ?>"
title="<?= t("Edit Watermark")->for_html_attr() ?>"
title="<?= t("Edit watermark")->for_html_attr() ?>"
class="g-dialog-link g-button ui-icon-left ui-state-default ui-corner-all"><span class="ui-icon ui-icon-pencil"></span><?= t("edit") ?></a>
<a href="<?= url::site("admin/watermarks/form_delete") ?>"
title="<?= t("Delete Watermark")->for_html_attr() ?>"
title="<?= t("Delete watermark")->for_html_attr() ?>"
class="g-dialog-link g-button ui-icon-left ui-state-default ui-corner-all"><span class="ui-icon ui-icon-trash"></span><?= t("delete") ?></a>
</div>
</div>

View File

@@ -4,7 +4,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<title><?= t("Admin Dashboard") ?></title>
<title><?= t("Admin dashboard") ?></title>
<link rel="shortcut icon" href="<?= url::file("lib/images/favicon.ico") ?>" type="image/x-icon" />
<?= $theme->css("yui/reset-fonts-grids.css") ?>
@@ -23,7 +23,7 @@
<?= $theme->script("gallery.common.js") ?>
<? /* MSG_CANCEL is required by gallery.dialog.js */ ?>
<script type="text/javascript">
var MSG_CANCEL = <?= t('Cancel')->for_js() ?>;
var MSG_CANCEL = <?= t("Cancel")->for_js() ?>;
</script>
<?= $theme->script("gallery.ajax.js") ?>
<?= $theme->script("gallery.dialog.js") ?>
@@ -48,7 +48,7 @@
<? if (identity::is_writable()): ?>
<?= t('Logged in as %name', array('name' => html::mark_clean(
'<a href="' . url::site("form/edit/users/{$user->id}") .
'" title="' . t("Edit Your Profile")->for_html_attr() .
'" title="' . t("Edit your profile")->for_html_attr() .
'" id="g-user-profile-link" class="g-dialog-link">' .
html::clean($user->display_name()) . '</a>'))) ?>
<? else: ?>

View File

@@ -11,34 +11,34 @@
<li>
<? if ($first_page): ?>
<a href="<?= str_replace('{page}', 1, $url) ?>" class="g-button ui-icon-left ui-state-default ui-corner-all">
<span class="ui-icon ui-icon-seek-first"></span><?= t("first") ?></a>
<span class="ui-icon ui-icon-seek-first"></span><?= t("First") ?></a>
<? else: ?>
<a class="g-button ui-icon-left ui-state-disabled ui-corner-all">
<span class="ui-icon ui-icon-seek-first"></span><?= t("first") ?></a>
<span class="ui-icon ui-icon-seek-first"></span><?= t("First") ?></a>
<? endif ?>
<? if ($previous_page): ?>
<a href="<?= str_replace('{page}', $previous_page, $url) ?>" class="g-button ui-icon-left ui-state-default ui-corner-all">
<span class="ui-icon ui-icon-seek-prev"></span><?= t("previous") ?></a>
<span class="ui-icon ui-icon-seek-prev"></span><?= t("Previous") ?></a>
<? else: ?>
<a class="g-button ui-icon-left ui-state-disabled ui-corner-all">
<span class="ui-icon ui-icon-seek-prev"></span><?= t("previous") ?></a>
<span class="ui-icon ui-icon-seek-prev"></span><?= t("Previous") ?></a>
<? endif ?>
</li>
<li class="g-info"><?= $from_to_msg ?></li>
<li class="g-txt-right">
<? if ($next_page): ?>
<a href="<?= str_replace('{page}', $next_page, $url) ?>" class="g-button ui-icon-right ui-state-default ui-corner-all">
<span class="ui-icon ui-icon-seek-next"></span><?= t("next") ?></a>
<span class="ui-icon ui-icon-seek-next"></span><?= t("Next") ?></a>
<? else: ?>
<a class="g-button ui-state-disabled ui-icon-right ui-corner-all">
<span class="ui-icon ui-icon-seek-next"></span><?= t("next") ?></a>
<span class="ui-icon ui-icon-seek-next"></span><?= t("Next") ?></a>
<? endif ?>
<? if ($last_page): ?>
<a href="<?= str_replace('{page}', $last_page, $url) ?>" class="g-button ui-icon-right ui-state-default ui-corner-all">
<span class="ui-icon ui-icon-seek-end"></span><?= t("last") ?></a>
<span class="ui-icon ui-icon-seek-end"></span><?= t("Last") ?></a>
<? else: ?>
<a class="g-button ui-state-disabled ui-icon-right ui-corner-all">
<span class="ui-icon ui-icon-seek-end"></span><?= t("last") ?></a>
<span class="ui-icon ui-icon-seek-end"></span><?= t("Last") ?></a>
<? endif ?>
</li>
</ul>

View File

@@ -6,20 +6,20 @@
<li>
<? if ($previous_item): ?>
<a href="<?= $previous_item->url() ?>" class="g-button ui-icon-left ui-state-default ui-corner-all">
<span class="ui-icon ui-icon-triangle-1-w"></span><?= t("previous") ?></a>
<span class="ui-icon ui-icon-triangle-1-w"></span><?= t("Previous") ?></a>
<? else: ?>
<a class="g-button ui-icon-left ui-state-disabled ui-corner-all">
<span class="ui-icon ui-icon-triangle-1-w"></span><?= t("previous") ?></a>
<span class="ui-icon ui-icon-triangle-1-w"></span><?= t("Previous") ?></a>
<? endif; ?>
</li>
<li class="g-info"><?= t("%position of %total", array("position" => $position, "total" => $sibling_count)) ?></li>
<li class="g-txt-right">
<? if ($next_item): ?>
<a href="<?= $next_item->url() ?>" class="g-button ui-icon-right ui-state-default ui-corner-all">
<span class="ui-icon ui-icon-triangle-1-e"></span><?= t("next") ?></a>
<span class="ui-icon ui-icon-triangle-1-e"></span><?= t("Next") ?></a>
<? else: ?>
<a class="g-button ui-icon-right ui-state-disabled ui-corner-all">
<span class="ui-icon ui-icon-triangle-1-e"></span><?= t("next") ?></a>
<span class="ui-icon ui-icon-triangle-1-e"></span><?= t("Next") ?></a>
<? endif ?>
</li>
</ul>

View File

@@ -11,34 +11,34 @@
<li>
<? if ($first_page): ?>
<a href="<?= str_replace('{page}', 1, $url) ?>" class="g-button ui-icon-left ui-state-default ui-corner-all">
<span class="ui-icon ui-icon-seek-first"></span><?= t("first") ?></a>
<span class="ui-icon ui-icon-seek-first"></span><?= t("First") ?></a>
<? else: ?>
<a class="g-button ui-icon-left ui-state-disabled ui-corner-all">
<span class="ui-icon ui-icon-seek-first"></span><?= t("first") ?></a>
<span class="ui-icon ui-icon-seek-first"></span><?= t("First") ?></a>
<? endif ?>
<? if ($previous_page): ?>
<a href="<?= str_replace('{page}', $previous_page, $url) ?>" class="g-button ui-icon-left ui-state-default ui-corner-all">
<span class="ui-icon ui-icon-seek-prev"></span><?= t("previous") ?></a>
<span class="ui-icon ui-icon-seek-prev"></span><?= t("Previous") ?></a>
<? else: ?>
<a class="g-button ui-icon-left ui-state-disabled ui-corner-all">
<span class="ui-icon ui-icon-seek-prev"></span><?= t("previous") ?></a>
<span class="ui-icon ui-icon-seek-prev"></span><?= t("Previous") ?></a>
<? endif ?>
</li>
<li class="g-info"><?= $from_to_msg ?></li>
<li class="g-txt-right">
<? if ($next_page): ?>
<a href="<?= str_replace('{page}', $next_page, $url) ?>" class="g-button ui-icon-right ui-state-default ui-corner-all">
<span class="ui-icon ui-icon-seek-next"></span><?= t("next") ?></a>
<span class="ui-icon ui-icon-seek-next"></span><?= t("Next") ?></a>
<? else: ?>
<a class="g-button ui-state-disabled ui-icon-right ui-corner-all">
<span class="ui-icon ui-icon-seek-next"></span><?= t("next") ?></a>
<span class="ui-icon ui-icon-seek-next"></span><?= t("Next") ?></a>
<? endif ?>
<? if ($last_page): ?>
<a href="<?= str_replace('{page}', $last_page, $url) ?>" class="g-button ui-icon-right ui-state-default ui-corner-all">
<span class="ui-icon ui-icon-seek-end"></span><?= t("last") ?></a>
<span class="ui-icon ui-icon-seek-end"></span><?= t("Last") ?></a>
<? else: ?>
<a class="g-button ui-state-disabled ui-icon-right ui-corner-all">
<span class="ui-icon ui-icon-seek-end"></span><?= t("last") ?></a>
<span class="ui-icon ui-icon-seek-end"></span><?= t("Last") ?></a>
<? endif ?>
</li>
</ul>

View File

@@ -6,20 +6,20 @@
<li>
<? if ($previous_item): ?>
<a href="<?= $previous_item->url() ?>" class="g-button ui-icon-left ui-state-default ui-corner-all">
<span class="ui-icon ui-icon-triangle-1-w"></span><?= t("previous") ?></a>
<span class="ui-icon ui-icon-triangle-1-w"></span><?= t("Previous") ?></a>
<? else: ?>
<a class="g-button ui-icon-left ui-state-disabled ui-corner-all">
<span class="ui-icon ui-icon-triangle-1-w"></span><?= t("previous") ?></a>
<span class="ui-icon ui-icon-triangle-1-w"></span><?= t("Previous") ?></a>
<? endif; ?>
</li>
<li class="g-info"><?= t("%position of %total", array("position" => $position, "total" => $sibling_count)) ?></li>
<li class="g-txt-right">
<? if ($next_item): ?>
<a href="<?= $next_item->url() ?>" class="g-button ui-icon-right ui-state-default ui-corner-all">
<span class="ui-icon ui-icon-triangle-1-e"></span><?= t("next") ?></a>
<span class="ui-icon ui-icon-triangle-1-e"></span><?= t("Next") ?></a>
<? else: ?>
<a class="g-button ui-icon-right ui-state-disabled ui-corner-all">
<span class="ui-icon ui-icon-triangle-1-e"></span><?= t("next") ?></a>
<span class="ui-icon ui-icon-triangle-1-e"></span><?= t("Next") ?></a>
<? endif ?>
</li>
</ul>

View File

@@ -11,34 +11,34 @@
<li>
<? if ($first_page): ?>
<a href="<?= str_replace('{page}', 1, $url) ?>" class="g-button ui-icon-left ui-state-default ui-corner-all">
<span class="ui-icon ui-icon-seek-first"></span><?= t("first") ?></a>
<span class="ui-icon ui-icon-seek-first"></span><?= t("First") ?></a>
<? else: ?>
<a class="g-button ui-icon-left ui-state-disabled ui-corner-all">
<span class="ui-icon ui-icon-seek-first"></span><?= t("first") ?></a>
<span class="ui-icon ui-icon-seek-first"></span><?= t("First") ?></a>
<? endif ?>
<? if ($previous_page): ?>
<a href="<?= str_replace('{page}', $previous_page, $url) ?>" class="g-button ui-icon-left ui-state-default ui-corner-all">
<span class="ui-icon ui-icon-seek-prev"></span><?= t("previous") ?></a>
<span class="ui-icon ui-icon-seek-prev"></span><?= t("Previous") ?></a>
<? else: ?>
<a class="g-button ui-icon-left ui-state-disabled ui-corner-all">
<span class="ui-icon ui-icon-seek-prev"></span><?= t("previous") ?></a>
<span class="ui-icon ui-icon-seek-prev"></span><?= t("Previous") ?></a>
<? endif ?>
</li>
<li class="g-info"><?= $from_to_msg ?></li>
<li class="g-txt-right">
<? if ($next_page): ?>
<a href="<?= str_replace('{page}', $next_page, $url) ?>" class="g-button ui-icon-right ui-state-default ui-corner-all">
<span class="ui-icon ui-icon-seek-next"></span><?= t("next") ?></a>
<span class="ui-icon ui-icon-seek-next"></span><?= t("Next") ?></a>
<? else: ?>
<a class="g-button ui-state-disabled ui-icon-right ui-corner-all">
<span class="ui-icon ui-icon-seek-next"></span><?= t("next") ?></a>
<span class="ui-icon ui-icon-seek-next"></span><?= t("Next") ?></a>
<? endif ?>
<? if ($last_page): ?>
<a href="<?= str_replace('{page}', $last_page, $url) ?>" class="g-button ui-icon-right ui-state-default ui-corner-all">
<span class="ui-icon ui-icon-seek-end"></span><?= t("last") ?></a>
<span class="ui-icon ui-icon-seek-end"></span><?= t("Last") ?></a>
<? else: ?>
<a class="g-button ui-state-disabled ui-icon-right ui-corner-all">
<span class="ui-icon ui-icon-seek-end"></span><?= t("last") ?></a>
<span class="ui-icon ui-icon-seek-end"></span><?= t("Last") ?></a>
<? endif ?>
</li>
</ul>