2022-01-25 21:10:25 +00:00
< ? php
2022-02-16 04:08:28 +00:00
namespace Code\Lib ;
2022-01-25 21:10:25 +00:00
2022-02-16 04:08:28 +00:00
use Code\Render\Theme ;
2022-02-17 20:39:21 +00:00
use Code\Lib\System ;
2022-01-25 21:10:25 +00:00
class Stringsjs {
public static function strings ()
{
2022-02-12 20:43:29 +00:00
return replace_macros ( Theme :: get_template ( 'js_strings.tpl' ), array (
2022-02-17 20:39:21 +00:00
'$icon' => System :: get_project_icon (),
2022-01-25 21:10:25 +00:00
'$delitem' => t ( 'Delete this item?' ),
'$comment' => t ( 'Comment' ),
'$showmore' => sprintf ( t ( '%s show all' ), '<i class=\'fa fa-chevron-down\'></i>' ),
'$showfewer' => sprintf ( t ( '%s show less' ), '<i class=\'fa fa-chevron-up\'></i>' ),
'$divgrowmore' => sprintf ( t ( '%s expand' ), '<i class=\'fa fa-chevron-down\'></i>' ),
'$divgrowless' => sprintf ( t ( '%s collapse' ), '<i class=\'fa fa-chevron-up\'></i>' ),
'$pwshort' => t ( " Password too short " ),
'$pwnomatch' => t ( " Passwords do not match " ),
'$everybody' => t ( 'everybody' ),
'$passphrase' => t ( 'Secret Passphrase' ),
'$passhint' => t ( 'Passphrase hint' ),
'$permschange' => t ( 'Notice: Permissions have changed but have not yet been submitted.' ),
'$closeAll' => t ( 'close all' ),
'$nothingnew' => t ( 'Nothing new here' ),
'$submit' => t ( 'Submit' ),
'$linkurl' => t ( 'Please enter a link URL' ),
'$leavethispage' => t ( 'Unsaved changes. Are you sure you wish to leave this page?' ),
'$location' => t ( 'Location' ),
'$lovely' => t ( 'lovely' ),
'$wonderful' => t ( 'wonderful' ),
'$fantastic' => t ( 'fantastic' ),
'$great' => t ( 'great' ),
'$nick_invld1' => t ( 'Your chosen nickname was either already taken or not valid. Please use our suggestion (' ),
'$nick_invld2' => t ( ') or enter a new one.' ),
'$nick_valid' => t ( 'Thank you, this nickname is valid.' ),
'$name_empty' => t ( 'A channel name is required.' ),
'$name_ok1' => t ( 'This is a ' ),
'$name_ok2' => t ( ' channel name' ),
'$pinned' => t ( 'Pinned' ),
'$pin_item' => t ( 'Pin this post' ),
'$unpin_item' => t ( 'Unpin this post' ),
'$tos' => t ( 'Please accept terms to continue' ),
// translatable prefix and suffix strings for jquery.timeago -
// using the defaults set below if left untranslated, empty strings if
// translated to "NONE" and the corresponding language strings
// if translated to anything else
'$t01' => (( t ( 'timeago.prefixAgo' ) == 'timeago.prefixAgo' ) ? '' : (( t ( 'timeago.prefixAgo' ) == 'NONE' ) ? '' : t ( 'timeago.prefixAgo' ))),
'$t02' => (( t ( 'timeago.prefixFromNow' ) == 'timeago.prefixFromNow' ) ? '' : (( t ( 'timeago.prefixFromNow' ) == 'NONE' ) ? '' : t ( 'timeago.prefixFromNow' ))),
'$t03' => (( t ( 'timeago.suffixAgo' ) == 'timeago.suffixAgo' ) ? 'ago' : (( t ( 'timeago.suffixAgo' ) == 'NONE' ) ? '' : t ( 'timeago.suffixAgo' ))),
'$t04' => (( t ( 'timeago.suffixFromNow' ) == 'timeago.suffixFromNow' ) ? 'from now' : (( t ( 'timeago.suffixFromNow' ) == 'NONE' ) ? '' : t ( 'timeago.suffixFromNow' ))),
// translatable main strings for jquery.timeago
'$t05' => t ( 'less than a minute' ),
'$t06' => t ( 'about a minute' ),
'$t07' => t ( '%d minutes' ),
'$t08' => t ( 'about an hour' ),
'$t09' => t ( 'about %d hours' ),
'$t10' => t ( 'a day' ),
'$t11' => t ( '%d days' ),
'$t12' => t ( 'about a month' ),
'$t13' => t ( '%d months' ),
'$t14' => t ( 'about a year' ),
'$t15' => t ( '%d years' ),
'$t16' => t ( ' ' ), // wordSeparator
'$t17' => (( t ( 'timeago.numbers' ) != 'timeago.numbers' ) ? t ( 'timeago.numbers' ) : '[]' ),
'$January' => t ( 'January' ),
'$February' => t ( 'February' ),
'$March' => t ( 'March' ),
'$April' => t ( 'April' ),
'$May' => t ( 'May' , 'long' ),
'$June' => t ( 'June' ),
'$July' => t ( 'July' ),
'$August' => t ( 'August' ),
'$September' => t ( 'September' ),
'$October' => t ( 'October' ),
'$November' => t ( 'November' ),
'$December' => t ( 'December' ),
'$Jan' => t ( 'Jan' ),
'$Feb' => t ( 'Feb' ),
'$Mar' => t ( 'Mar' ),
'$Apr' => t ( 'Apr' ),
'$MayShort' => t ( 'May' , 'short' ),
'$Jun' => t ( 'Jun' ),
'$Jul' => t ( 'Jul' ),
'$Aug' => t ( 'Aug' ),
'$Sep' => t ( 'Sep' ),
'$Oct' => t ( 'Oct' ),
'$Nov' => t ( 'Nov' ),
'$Dec' => t ( 'Dec' ),
'$Sunday' => t ( 'Sunday' ),
'$Monday' => t ( 'Monday' ),
'$Tuesday' => t ( 'Tuesday' ),
'$Wednesday' => t ( 'Wednesday' ),
'$Thursday' => t ( 'Thursday' ),
'$Friday' => t ( 'Friday' ),
'$Saturday' => t ( 'Saturday' ),
'$Sun' => t ( 'Sun' ),
'$Mon' => t ( 'Mon' ),
'$Tue' => t ( 'Tue' ),
'$Wed' => t ( 'Wed' ),
'$Thu' => t ( 'Thu' ),
'$Fri' => t ( 'Fri' ),
'$Sat' => t ( 'Sat' ),
'$today' => t ( 'today' , 'calendar' ),
'$month' => t ( 'month' , 'calendar' ),
'$week' => t ( 'week' , 'calendar' ),
'$day' => t ( 'day' , 'calendar' ),
'$allday' => t ( 'All day' , 'calendar' ),
'$channel_social' => t ( 'A social networking profile that is public by default and private if desired' ),
'$channel_social_restricted' => t ( 'A social networking profile where content is private to your [Friends] Access List by default but can be made public if desired' ),
'$channel_forum' => t ( 'A public group where members are allowed to upload media by default' ),
'$channel_forum_restricted' => t ( 'A private group with no upload permission' ),
'$channel_forum_moderated' => t ( 'A public group where posts are moderated by the owner. The [moderated] permission may be removed from any group member once trust is established' ),
'$channel_collection' => t ( 'A sub-channel of your main channel - often devoted to a specific language or topic. Replies are sent back to your main channel' ),
'$channel_collection_restricted' => t ( 'A private sub-channel of your main channel - often devoted to a specific language or topic. Replies are sent back to your main channel' ),
));
}
}