Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions locale/ossn.es.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php
/**
* Open Source Social Network
*
* @package Open Source Social Network
* @author OSSN Core Team <info@openteknik.com>
* @copyright (C) OPENTEKNIK LLC, COMMERCIAL LICENSE
* @license OPENTEKNIK LLC, COMMERCIAL LICENSE, COMMERCIAL LICENSE https://www.openteknik.com/license/commercial-license-v1
* @link http://www.opensource-socialnetwork.org/licence
*/
$es = array(
'singupprofilephoto' => 'Imagen de perfil (Tamaño máximo: %s MB)',
'singupprofilephoto:error:matching' => 'Imagen de perfil inválida agregada. Por favor, asegúrese de agregar solo archivos de imagen.',
);
ossn_register_languages('es', $es);
15 changes: 15 additions & 0 deletions locale/ossn.pt.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php
/**
* Open Source Social Network
*
* @package Open Source Social Network
* @author OSSN Core Team <info@openteknik.com>
* @copyright (C) OPENTEKNIK LLC, COMMERCIAL LICENSE
* @license OPENTEKNIK LLC, COMMERCIAL LICENSE, COMMERCIAL LICENSE https://www.openteknik.com/license/commercial-license-v1
* @link http://www.opensource-socialnetwork.org/licence
*/
$pt = array(
'singupprofilephoto' => 'Imagem de perfil (Tam. Máx : %s MB)',
'singupprofilephoto:error:matching' => 'A imagem do perfil é inválida. Use somente arquivos de imagem.',
);
ossn_register_languages('pt', $pt);
4 changes: 2 additions & 2 deletions plugins/default/signup_profile_photo/input.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
?>
<script>
$(document).ready(function(){
var image = '<div> <label><?php echo ossn_print('singupprofilephoto', array($memory_limit));?></label> <input type="file" name="profilephoto" class="form-control" /> <div class="margin-top-10"></div> </div>';
var image = '<div> <label><?php echo ossn_print('singupprofilephoto', array($memory_limit));?></label> <input type="file" name="profilephoto" class="form-control" accept="image/*"/> <div class="margin-top-10"></div> </div>';
$(image).insertBefore('#ossn-home-signup #ossn-signup-errors');
});
</script>
</script>