Skip to content

Commit 2f24787

Browse files
committed
Added Browse Button Language
1 parent 4b050f3 commit 2f24787

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

language/en-GB/en-GB.mod_jdsimplecontactform.ini

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,8 @@ MOD_JDSCF_NUMBER_MIN_LENGTH_ERROR="%s should have %s characters or more."
100100
MOD_JDSCF_NUMBER_MAX_LENGTH_ERROR="%s should have %s characters or fewer."
101101
MOD_JDSCF_NUMBER_MIN_ERROR="%s should be greater than or equal to %s."
102102
MOD_JDSCF_NUMBER_MAX_ERROR="%s should be lower than or equal to %s."
103-
MOD_JDSCF_FILE_BTN_LBL="Choose file"
103+
MOD_JDSCF_FILE_LBL="Choose file"
104+
MOD_JDSCF_FILE_BTN_LBL="Browse"
104105

105106
MOD_JDSCF_MIN_LENGTH_LBL="Min Length"
106107
MOD_JDSCF_MIN_LENGTH_DESC="Enter a number if you'd like to limit the field input to a minimum number of chracters."

language/nl-NL/nl-NL.mod_jdsimplecontactform.ini

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,8 @@ MOD_JDSCF_NUMBER_MIN_LENGTH_ERROR="%s moet %s karakters of meer hebben."
9999
MOD_JDSCF_NUMBER_MAX_LENGTH_ERROR="%s moet %s karakters of minder hebben."
100100
MOD_JDSCF_NUMBER_MIN_ERROR="%s moet groter of gelijk zijn aan %s."
101101
MOD_JDSCF_NUMBER_MAX_ERROR="%s moet kleiner of gelijk zijn aan %s."
102-
MOD_JDSCF_FILE_BTN_LBL="Kies een bestand."
102+
MOD_JDSCF_FILE_LBL="Kies een bestand."
103+
MOD_JDSCF_FILE_BTN_LBL="Browse"
103104

104105
MOD_JDSCF_MIN_LENGTH_LBL="Minimale Lengte"
105106
MOD_JDSCF_MIN_LENGTH_DESC="Vul een nummer in als je een wilt dat een veldwaarde een minimaal aantal karakters moet hebben."

layouts/fields/file.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,20 @@
2626
$style = '.filesize-err {'
2727
. 'display: none;'
2828
. 'margin-top: 10px;'
29+
. '}'
30+
. '.custom-file-label::after {'
31+
. 'content: "' . JText::sprintf('MOD_JDSCF_FILE_BTN_LBL') . '" !important;'
2932
. '}';
3033
$document->addStyleDeclaration($style);
3134
?>
3235
<div class="custom-file">
3336
<input id="<?php echo $field->name; ?>-<?php echo $module->id; ?>" accept="<?php foreach ($allowable as $type) { echo ".".$type.","; } ?>" type="file" name="jdscf[<?php echo $field->name; ?>]" class="custom-file-input" <?php echo implode(' ', $attrs); ?>>
34-
<label class="custom-file-label" for="<?php echo $field->name; ?>-<?php echo $module->id; ?>"><?php echo JText::_('MOD_JDSCF_FILE_BTN_LBL'); ?></label>
37+
<label class="custom-file-label" for="<?php echo $field->name; ?>-<?php echo $module->id; ?>"><?php echo JText::_('MOD_JDSCF_FILE_LBL'); ?></label>
3538
</div>
3639

3740
<div class="filesize-err filesize-error-<?php echo $field->name; ?>-<?php echo $module->id; ?> alert alert-danger alert-dismissable">
3841
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
39-
File size is too big!
42+
File size is too big!
4043
</div>
4144

4245

0 commit comments

Comments
 (0)