Skip to content

Commit

Permalink
Normalize capitalization ticket #596
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Almdal committed Oct 28, 2009
1 parent 8ef78de commit 7ea13b3
Show file tree
Hide file tree
Showing 48 changed files with 137 additions and 137 deletions.
4 changes: 2 additions & 2 deletions modules/akismet/views/admin_akismet.html.php
@@ -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",
Expand All @@ -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 ?>

Expand Down
4 changes: 2 additions & 2 deletions modules/comment/helpers/comment_block.php
Expand Up @@ -19,15 +19,15 @@
*/
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) {
$block = new Block();
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();
Expand Down
2 changes: 1 addition & 1 deletion modules/comment/helpers/comment_rss.php
Expand Up @@ -61,7 +61,7 @@ static function feed($feed_id, $offset, $limit, $id) {
$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;
}
Expand Down
12 changes: 6 additions & 6 deletions modules/comment/views/admin_comments.html.php
Expand Up @@ -35,7 +35,7 @@ function(data) {
</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 -->
Expand All @@ -46,13 +46,13 @@ function(data) {
<!-- @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>

Expand Down Expand Up @@ -196,6 +196,6 @@ class="g-button ui-state-default ui-icon-left">
<div class="g-pager">
<?= $pager ?>
</div>

</div>
</div>
2 changes: 1 addition & 1 deletion modules/exif/views/exif_dialog.html.php
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion modules/exif/views/exif_sidebar.html.php
@@ -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") ?>
Expand Down
2 changes: 1 addition & 1 deletion modules/g2_import/helpers/g2_import.php
Expand Up @@ -271,7 +271,7 @@ static function import_user(&$queue) {

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 =
Expand Down
2 changes: 1 addition & 1 deletion modules/g2_import/views/admin_g2_import.html.php
@@ -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>
Expand Down
2 changes: 1 addition & 1 deletion modules/gallery/controllers/admin_languages.php
Expand Up @@ -115,7 +115,7 @@ private function _share_translations_form() {
? 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"));
Expand Down
26 changes: 13 additions & 13 deletions modules/gallery/helpers/gallery_block.php
Expand Up @@ -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) {
Expand All @@ -43,23 +43,23 @@ static function get($block_id) {

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);
break;

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);
break;

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();
Expand All @@ -68,7 +68,7 @@ static function get($block_id) {

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 =
Expand All @@ -80,14 +80,14 @@ static function get($block_id) {

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;

Expand All @@ -99,7 +99,7 @@ static function get($block_id) {
}
$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);
Expand Down
4 changes: 2 additions & 2 deletions modules/gallery/helpers/gallery_installer.php
Expand Up @@ -199,12 +199,12 @@ static function install() {
}

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");
Expand Down
4 changes: 2 additions & 2 deletions modules/gallery/helpers/gallery_rss.php
Expand Up @@ -39,8 +39,8 @@ static function feed($feed_id, $offset, $limit, $id) {
->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":
Expand Down
4 changes: 2 additions & 2 deletions modules/gallery/views/admin_advanced_settings.html.php
@@ -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>
Expand Down
2 changes: 1 addition & 1 deletion modules/gallery/views/admin_block_platform.html.php
Expand Up @@ -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"))) ?>
Expand Down
6 changes: 3 additions & 3 deletions modules/gallery/views/admin_graphics.html.php
Expand Up @@ -13,21 +13,21 @@
</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: ?>
<?= new View("admin_graphics_$active.html", array("tk" => $tk->$active, "is_active" => true)) ?>
<? 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)) ?>
Expand Down
2 changes: 1 addition & 1 deletion modules/gallery/views/admin_graphics_none.html.php
@@ -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>
Expand Down
2 changes: 1 addition & 1 deletion modules/gallery/views/admin_identity.html.php
Expand Up @@ -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>
Expand Down
4 changes: 2 additions & 2 deletions modules/gallery/views/admin_languages.html.php
Expand Up @@ -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">

Expand Down Expand Up @@ -107,6 +107,6 @@ class="g-button ui-state-default ui-corner-all ui-icon-left">
<?= $share_translations_form ?>
</div>
</div>

</div>
</div>
12 changes: 6 additions & 6 deletions modules/gallery/views/admin_maintenance.html.php
@@ -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>
Expand Down Expand Up @@ -43,11 +43,11 @@ class="g-dialog-link g-button ui-icon-left ui-state-default ui-corner-all">

<? 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") ?>
Expand Down Expand Up @@ -116,11 +116,11 @@ class="g-button g-right ui-icon-left ui-state-default ui-corner-all">

<? 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") ?>
Expand Down
6 changes: 3 additions & 3 deletions modules/gallery/views/admin_sidebar.html.php
Expand Up @@ -36,23 +36,23 @@
</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>

<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 ?>
</ul>
</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 ?>
Expand Down

0 comments on commit 7ea13b3

Please sign in to comment.