From 7612c8d4045bb8347c8f0548269d8cc7a028bc4a Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Fri, 5 Jun 2009 15:48:04 +0800 Subject: Localize the 'Advanced' menu item Signed-off-by: Bharat Mediratta --- modules/gallery/helpers/gallery_menu.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/gallery/helpers/gallery_menu.php b/modules/gallery/helpers/gallery_menu.php index 2a9e193b..854086c1 100644 --- a/modules/gallery/helpers/gallery_menu.php +++ b/modules/gallery/helpers/gallery_menu.php @@ -133,7 +133,7 @@ class gallery_menu_Core { access::csrf_token()))) ->append(Menu::factory("link") ->id("advanced") - ->label("Advanced") + ->label(t("Advanced")) ->url(url::site("admin/advanced_settings")))) ->append(Menu::factory("link") ->id("modules") -- cgit v1.2.3 From a46c4a64312e0cfbf2e6888742f8136f98b6bc7d Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Fri, 5 Jun 2009 15:48:18 +0800 Subject: Localize the 'Add a comment' message Signed-off-by: Bharat Mediratta --- themes/default/js/ui.init.js | 4 ++-- themes/default/views/photo.html.php | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/themes/default/js/ui.init.js b/themes/default/js/ui.init.js index ae6f1966..9d9d3079 100644 --- a/themes/default/js/ui.init.js +++ b/themes/default/js/ui.init.js @@ -12,7 +12,7 @@ var shortForms = new Array( ); $(document).ready(function() { - + // Initialize Superfish menus $("ul.gMenu").addClass("sf-menu"); $('ul.sf-menu').superfish({ @@ -64,7 +64,7 @@ $(document).ready(function() { // Collapse comments form, insert button to expand if ($("#gAddCommentForm").length) { - var showCommentForm = 'Add a comment'; + var showCommentForm = '' + ADD_A_COMMENT + ''; $("#gAddCommentForm").hide(); $("#gComments").prepend(showCommentForm); $(".showCommentForm").click(function(){ diff --git a/themes/default/views/photo.html.php b/themes/default/views/photo.html.php index 85143da8..cc4cc750 100644 --- a/themes/default/views/photo.html.php +++ b/themes/default/views/photo.html.php @@ -41,5 +41,8 @@
description) ?>
+ photo_bottom() ?> -- cgit v1.2.3 From 62a63676d45d4d87aa126ec8fb8694868be0c27a Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Fri, 5 Jun 2009 15:58:25 +0800 Subject: Add Belarusian to the language list. Signed-off-by: Bharat Mediratta --- modules/gallery/helpers/locale.php | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/gallery/helpers/locale.php b/modules/gallery/helpers/locale.php index 2ba0f255..1ba2f003 100644 --- a/modules/gallery/helpers/locale.php +++ b/modules/gallery/helpers/locale.php @@ -59,6 +59,7 @@ class locale_Core { private static function _init_language_data() { $l["af_ZA"] = "Afrikaans"; // Afrikaans $l["ar_SA"] = "العربية"; // Arabic + $l["be_RU"] = "Belarusian"; // Belarusian $l["bg_BG"] = "Български"; // Bulgarian $l["ca_ES"] = "Catalan"; // Catalan $l["cs_CZ"] = "Česky"; // Czech -- cgit v1.2.3 From 710d13aeceefc4bc5018acd4602c0975f4c6c048 Mon Sep 17 00:00:00 2001 From: unostar Date: Fri, 5 Jun 2009 21:32:06 +0800 Subject: Correct locale and local translation Signed-off-by: Bharat Mediratta --- modules/gallery/helpers/locale.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/gallery/helpers/locale.php b/modules/gallery/helpers/locale.php index 1ba2f003..c176dcc6 100644 --- a/modules/gallery/helpers/locale.php +++ b/modules/gallery/helpers/locale.php @@ -59,7 +59,7 @@ class locale_Core { private static function _init_language_data() { $l["af_ZA"] = "Afrikaans"; // Afrikaans $l["ar_SA"] = "العربية"; // Arabic - $l["be_RU"] = "Belarusian"; // Belarusian + $l["be_BY"] = "Беларускі"; // Belarusian $l["bg_BG"] = "Български"; // Bulgarian $l["ca_ES"] = "Catalan"; // Catalan $l["cs_CZ"] = "Česky"; // Czech -- cgit v1.2.3 From 73a0df1b16605c94be5942f560da5a7bf930b27a Mon Sep 17 00:00:00 2001 From: unostar Date: Fri, 5 Jun 2009 21:37:11 +0800 Subject: corrected misprint Signed-off-by: Bharat Mediratta --- modules/image_block/views/image_block_block.html.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/image_block/views/image_block_block.html.php b/modules/image_block/views/image_block_block.html.php index 48a3c912..c51c1b4a 100644 --- a/modules/image_block/views/image_block_block.html.php +++ b/modules/image_block/views/image_block_block.html.php @@ -1,6 +1,6 @@ -- cgit v1.2.3 From 40c4ce1b8a1928f6f771a4c21a3916eadc278442 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Sat, 6 Jun 2009 02:45:18 +0800 Subject: Use ORIG_SCRIPT_PATH if it's available to detect the base url, for compatibility with the CGI sapi. Signed-off-by: Bharat Mediratta --- application/config/config.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/application/config/config.php b/application/config/config.php index 6a30d91c..d274a31b 100644 --- a/application/config/config.php +++ b/application/config/config.php @@ -23,7 +23,8 @@ * then a full URL will be used, eg: http://localhost/kohana/. If it only includes * the path, and a site_protocol is specified, the domain will be auto-detected. */ -$config["site_domain"] = dirname($_SERVER["SCRIPT_NAME"]); +$config["site_domain"] = dirname( + empty($_SERVER["ORIG_SCRIPT_NAME"]) ? $_SERVER["SCRIPT_NAME"] : $_SERVER["ORIG_SCRIPT_NAME"]); /** * Force a default protocol to be used by the site. If no site_protocol is -- cgit v1.2.3