• Welcome to PHPVIBE Forums. Please log in.

[ Video Sharing CMS v4 ] How to Translate this Text?

Started by megaman79,

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

megaman79Topic starter

Hello, I will use this Post for Text Translating Support.

(Audio Upload Section)

Text: No file choosen
Text: Allowed
"Very Happy with PHPVibe"
  •  

PHPVibe A.

The Allowed is in /lib/maxupload.js

this.fileSp = $( '<span/>').html('Allowed: '+ this.settings.allowedExtensions.join(', '));


the other one, not sure, it's standard browser display for the browser's language on this type of fields.

megaman79Topic starter

Thanks Alexander.


Can I translate this Text: "Save" is located at the Upload Music, when the Upload is completed. The green button say: Save.


Thanks for the support.
"Very Happy with PHPVibe"
  •  

megaman79Topic starter

Where I can translate this text?

Text:
This field is requiered? (located at the Audio and Video Upload Form).
"Very Happy with PHPVibe"
  •  

megaman79Topic starter

I also need translationg guide to change the word:

Views - I change it at the admin but is not working on Front End.
"Very Happy with PHPVibe"
  •  

PHPVibe A.

Quote from: megaman79 on
Thanks Alexander.


Can I translate this Text: "Save" is located at the Upload Music, when the Upload is completed. The green button say: Save.


Thanks for the support.


tpl/{theme}/js/phpvibe_app.js

$('#Subtn').prop('disabled', false).html('Save').addClass("btn-success");

PHPVibe A.

Quote from: megaman79 on
I also need translationg guide to change the word:

Views - I change it at the admin but is not working on Front End.

Where does it show up?

PHPVibe A.

Quote from: megaman79 on
Where I can translate this text?

Text:
This field is requiered? (located at the Audio and Video Upload Form).

alertText":"This field is required"


in
/tpl/{theme}/js/phpvibe_forms.js

megaman79Topic starter

Quote from: Alexander on
Where does it show up?

The Text: views (Show up on all the Videos/Audios) it show how many views has the video/audio.
Example: 20 Views.
"Very Happy with PHPVibe"
  •  

megaman79Topic starter

I also want know how to translate this text.

The text next to Published: 6 hours ago
"Very Happy with PHPVibe"
  •  

PHPVibe A.

lib/functions.php , this function:
//global time ago	
function time_ago($date,$granularity=2) {
	  if (nullval($date)) {
	  return '';
	  }
    $periods         = array("second", "minute", "hour", "day", "week", "month", "year", "decade");
    $lengths         = array("60","60","24","7","4.35","12","10");
 
    $now             = time();
    $unix_date         = strtotime($date);
 
       // check validity of date
    if(empty($unix_date)) {    
        return $date;
    }
 
    // is it future date or past date
    if($now > $unix_date) {    
        $difference     = $now - $unix_date;
        $tense         = "ago";
 
    } else {
        $difference     = $unix_date - $now;
        $tense         = "from now";
    }
 
    for($j = 0; $difference >= $lengths[$j] && $j < count($lengths)-1; $j++) {
        $difference /= $lengths[$j];
    }
 
    $difference = round($difference);
 
    if($difference != 1) {
        $periods[$j].= "s";
    }
 
    return "$difference $periods[$j] {$tense}";
}

Similar topics (7)