aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2010-03-23 13:26:41 +0000
committerplegall <plg@piwigo.org>2010-03-23 13:26:41 +0000
commit68a4d1dd9ba32e9973ccf2773e88858685dfc270 (patch)
tree3e8e3a75961ed748d9a1ef578f47d7b3fe4673e6
parentf60f59a4c6099b387eae41691275a8dbec6f6f0d (diff)
Make the admin/photos_add code easier to analyse for missing translation keys.
git-svn-id: http://piwigo.org/svn/trunk@5285 68402e56-0260-453c-a942-63ccdbb3a9ee
-rw-r--r--admin/photos_add.php22
-rw-r--r--admin/photos_add_settings.php2
-rw-r--r--admin/themes/default/template/photos_add_ftp.tpl2
3 files changed, 13 insertions, 13 deletions
diff --git a/admin/photos_add.php b/admin/photos_add.php
index 27e55c696..013150915 100644
--- a/admin/photos_add.php
+++ b/admin/photos_add.php
@@ -56,7 +56,7 @@ $upload_form_config = array(
'max' => 1600,
'pattern' => '/^\d+$/',
'can_be_null' => true,
- 'error_message' => 'The websize maximum width must be a number between %d and %d',
+ 'error_message' => l10n('The websize maximum width must be a number between %d and %d'),
),
'websize_maxheight' => array(
@@ -65,7 +65,7 @@ $upload_form_config = array(
'max' => 1200,
'pattern' => '/^\d+$/',
'can_be_null' => true,
- 'error_message' => 'The websize maximum height must be a number between %d and %d',
+ 'error_message' => l10n('The websize maximum height must be a number between %d and %d'),
),
'websize_quality' => array(
@@ -74,7 +74,7 @@ $upload_form_config = array(
'max' => 100,
'pattern' => '/^\d+$/',
'can_be_null' => false,
- 'error_message' => 'The websize image quality must be a number between %d and %d',
+ 'error_message' => l10n('The websize image quality must be a number between %d and %d'),
),
'thumb_maxwidth' => array(
@@ -83,7 +83,7 @@ $upload_form_config = array(
'max' => 300,
'pattern' => '/^\d+$/',
'can_be_null' => false,
- 'error_message' => 'The thumbnail maximum width must be a number between %d and %d',
+ 'error_message' => l10n('The thumbnail maximum width must be a number between %d and %d'),
),
'thumb_maxheight' => array(
@@ -92,7 +92,7 @@ $upload_form_config = array(
'max' => 300,
'pattern' => '/^\d+$/',
'can_be_null' => false,
- 'error_message' => 'The thumbnail maximum height must be a number between %d and %d',
+ 'error_message' => l10n('The thumbnail maximum height must be a number between %d and %d'),
),
'thumb_quality' => array(
@@ -101,7 +101,7 @@ $upload_form_config = array(
'max' => 100,
'pattern' => '/^\d+$/',
'can_be_null' => false,
- 'error_message' => 'The thumbnail image quality must be a number between %d and %d',
+ 'error_message' => l10n('The thumbnail image quality must be a number between %d and %d'),
),
);
@@ -142,19 +142,19 @@ if (count($inserts) > 0)
$tabs = array(
array(
'code' => 'direct',
- 'label' => 'Upload Photos',
+ 'label' => l10n('Upload Photos'),
),
array(
'code' => 'settings',
- 'label' => 'Settings',
+ 'label' => l10n('Settings'),
),
array(
'code' => 'ploader',
- 'label' => 'Piwigo Uploader',
+ 'label' => l10n('Piwigo Uploader'),
),
array(
'code' => 'ftp',
- 'label' => 'FTP + Synchronisation',
+ 'label' => l10n('FTP + Synchronization'),
),
);
@@ -177,7 +177,7 @@ foreach ($tabs as $tab)
{
$tabsheet->add(
$tab['code'],
- l10n($tab['label']),
+ $tab['label'],
PHOTOS_ADD_BASE_URL.'&amp;section='.$tab['code']
);
}
diff --git a/admin/photos_add_settings.php b/admin/photos_add_settings.php
index 3deecb317..810962e0e 100644
--- a/admin/photos_add_settings.php
+++ b/admin/photos_add_settings.php
@@ -104,7 +104,7 @@ if (isset($_POST['submit']))
array_push(
$page['errors'],
sprintf(
- l10n($upload_form_config[$field]['error_message']),
+ $upload_form_config[$field]['error_message'],
$min,
$max
)
diff --git a/admin/themes/default/template/photos_add_ftp.tpl b/admin/themes/default/template/photos_add_ftp.tpl
index e3902efef..81ce87629 100644
--- a/admin/themes/default/template/photos_add_ftp.tpl
+++ b/admin/themes/default/template/photos_add_ftp.tpl
@@ -1,4 +1,4 @@
-<div class="titrePage" style="height:25px">
+<div class="titrePage">
<h2>{'FTP + Synchronization'|@translate}</h2>
</div>