Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/site/app/views/elements/developers/translationbox.thtml
diff options
context:
space:
mode:
Diffstat (limited to 'site/app/views/elements/developers/translationbox.thtml')
-rw-r--r--site/app/views/elements/developers/translationbox.thtml33
1 files changed, 16 insertions, 17 deletions
diff --git a/site/app/views/elements/developers/translationbox.thtml b/site/app/views/elements/developers/translationbox.thtml
index 6fdc479..ff8e4c0 100644
--- a/site/app/views/elements/developers/translationbox.thtml
+++ b/site/app/views/elements/developers/translationbox.thtml
@@ -61,7 +61,7 @@
if (!isset($graybox) || $graybox === true) {
echo '<div class="translation-box graybox rounded spaced" style="width: '.(!empty($width) ? $width : '600px').';">';
}
- echo (!empty($displayName) ? '<h4><a href="#" title="Help (does not leave page)" onclick="translation_box.showHelp(this); return false;">'.$html->image('developers/help.png', array('alt' => 'Help')).'</a>'.$displayName.' </h4>' : '');
+ echo (!empty($displayName) ? '<h4><a href="#" title="'.___('devcp_transbox_a_title_help').'" onclick="translation_box.showHelp(this); return false;">'.$html->image('developers/help.png', array('alt' => ___('devcp_transbox_alt_help'))).'</a>'.$displayName.' </h4>' : '');
echo (!empty($description) ? "<p>{$description}</p>" : '');
?>
<div class="translation-row">
@@ -78,8 +78,8 @@ if (!isset($graybox) || $graybox === true) {
}
?>
</div>
- <div class="translation-button"><?=$html->image('developers/tab_add.png', array('onclick' => 'translation_box.addTab(this);', 'alt' => 'Add Translation', 'title' => 'Add Translation'))?></div>
- <div class="translation-button remove" style="display: none;"><?=$html->image('developers/tab_delete.png', array('onclick' => 'translation_box.confirmRemove(this);', 'alt' => 'Remove Translation', 'title' => 'Remove Translation'))?></div>
+ <div class="translation-button"><?=$html->image('developers/tab_add.png', array('onclick' => 'translation_box.addTab(this);', 'alt' => ___('devcp_transbox_img_add_trans'), 'title' => ___('devcp_transbox_img_add_trans')))?></div>
+ <div class="translation-button remove" style="display: none;"><?=$html->image('developers/tab_delete.png', array('onclick' => 'translation_box.confirmRemove(this);', 'alt' => ___('devcp_transbox_img_remove_trans'), 'title' => ___('devcp_transbox_img_remove_trans')))?></div>
</div>
<div class="translation-area" table="<?=$this->translationBox['table']?>" field="<?=$field?>" defaultLocale="<?=$this->translationBox['defaultLocale']?>"<?=(!empty($id) ? ' itemID="'.$id.'"' : '')?>>
<?php
@@ -94,7 +94,7 @@ if (!isset($graybox) || $graybox === true) {
}
if (!empty($maxLength)) {
- echo '<div class="translation-maxlength '.$locale.($this->translationBox['defaultLocale'] == $locale ? ' selected' : '').'">'.$html->image('developers/exclamation.png', array('alt' => '')).' Characters used:&nbsp;&nbsp;<span>'.strlen($translation).'</span> / '.$maxLength.'</div>';
+ echo '<div class="translation-maxlength '.$locale.($this->translationBox['defaultLocale'] == $locale ? ' selected' : '').'">'.$html->image('developers/exclamation.png', array('alt' => '')).sprintf(___('devcp_transbox_chars_used'), '<span>'.strlen($translation).'</span>', $maxLength).'</div>';
}
}
?>
@@ -110,7 +110,7 @@ if (!isset($graybox) || $graybox === true) {
<div class="translation-newlocale-container">
<div class="translation-newlocale new selected">
<div class="padded">
- Select the locale of the translation to add:
+ <?=___('devcp_transbox_select_locale')?>
<select>
<?php
foreach ($this->translationBox['languages'] as $code => $name) {
@@ -119,9 +119,9 @@ if (!isset($graybox) || $graybox === true) {
?>
</select>
<div class="buttons">
- <input type="button" value="Add Locale" onclick="translation_box.addLocale(this, false);" />
- <input type="button" value="Add Locale to All" onclick="translation_box.addLocale(this, true);" />
- <input type="button" value="Cancel" onclick="translation_box.cancelAdd(this);" />
+ <input type="button" value="<?=___('devcp_transbox_input_add_locale')?>" onclick="translation_box.addLocale(this, false);" />
+ <input type="button" value="<?=___('devcp_transbox_input_add_all')?>" onclick="translation_box.addLocale(this, true);" />
+ <input type="button" value="<?=___('devcp_transbox_input_cancel')?>" onclick="translation_box.cancelAdd(this);" />
</div>
</div>
</div>
@@ -129,10 +129,10 @@ if (!isset($graybox) || $graybox === true) {
<div class="translation-deletelocale-container">
<div class="translation-deletelocale">
<div class="padded">
- Are you sure you wish to delete this translation?
+ <?=___('devcp_transbox_delete_sure')?>
<div class="buttons">
- <input type="button" value="Delete It" onclick="translation_box.removeLocale(this);" />
- <input type="button" value="Cancel" onclick="translation_box.cancelRemove(this);" />
+ <input type="button" value="<?=___('devcp_transbox_input_delete')?>" onclick="translation_box.removeLocale(this);" />
+ <input type="button" value="<?=___('devcp_transbox_input_cancel')?>" onclick="translation_box.cancelRemove(this);" />
</div>
</div>
</div>
@@ -140,12 +140,11 @@ if (!isset($graybox) || $graybox === true) {
<div class="translation-help-container">
<div class="translation-help bluebox-tr"><div class="bluebox-tl">
<div class="padded">
- <h4>What are these "<?=$this->translationBox['defaultLocale']?>" tabs?</h4>
- <p>This is a <i>Translation Box</i>. It allows you to localize a specific field into any other languages for which you might have a translation. You can add, edit, and remove translations using the locale tabs.</p>
-
- <h4>What if I don't have any translations?</h4>
- <p>If a user browses the site and a translation isn't available in their own language, it will fall back to your add-on's Default Locale, specified in the Edit Add-on Properties area. If you don't have any translations, just enter what you can into your Default Locale, which should be a language you speak.</p>
- <div style="text-align: right;"><a href="#" onclick="translation_box.hideHelp(this); return false;">Hide Help</a></div>
+ <h4><?=sprintf(___('devcp_transbox_help_header_tabs'), $this->translationBox['defaultLocale'])?></h4>
+ <p><?=___('devcp_transbox_help_transbox')?></p>
+ <h4><?=___('devcp_transbox_help_header_what')?></h4>
+ <p><?=___('devcp_transbox_help_if')?>
+ <div style="text-align: right;"><a href="#" onclick="translation_box.hideHelp(this); return false;"><?=___('devcp_transbox_help_hide')?></a></div>
</div>
<div class="bluebox-br"><div class="bluebox-bl"></div></div>
</div></div>