Re: Is it POSSIBLE ??? Translations in specific lines ???
I scanned all the files with DreamWeaver for the word "ago" and got zero results.
I suspect this type of thing is located in includes/functions.php which is Zend Encoded. I don't think the guys at vShare purposely "lied" about the ability to translate vShare, they probably just didn't take into account the fact that some of the language they use is within some of their Zend Encoded files. Which sux for us until Admin can address it.
Try the hostonnet forums.
Re: Is it POSSIBLE ??? Translations in specific lines ???
Weeeeeellll, I found this here under include/smarty/libs/function.html_select_date.php
(Sorry, had the wrong section a couple of minutes ago)
Code:
}
if ($display_years) {
$field_separator_count++;
if (null !== $field_array){
$year_name = $field_array . '[' . $prefix . 'Year]';
} else {
$year_name = $prefix . 'Year';
}
That's not all of it, but it looks to me as though there might be something in there that could be changed perhaps?
In particular this line here, looks like it could have the word Year translated because that sure looks an awful lot like a visible reference.
Code:
$year_name = $prefix . 'Year';
Problem is that I can't even be 100% certain if it'll actually have an effect on the portal at all since smartycode is used so widely, often without being cleaned up real well from one app to the next. But hey, I'll give it a spin shortly after doing some backups 'n stuff. Will report on the results. Later ...
.
Okay, I'm back, went ahead and tried editing the Day, Month, and Year function.
Didn't do any good though, not in the admin section, nor the portal itself.
But if smarty has anything to do with it, I still think that those are the files since there are several of them for date, time, etc. functions. I just don't know enough about that code to be able to figure out exactly where the changes would have to be made ... if that would indeed make a difference in the first place.
Sorry, I'm giving it up for today. My eyeballs feel like they're in the back of my head ... :)
.
Re: Is it POSSIBLE ??? Translations in specific lines ???
Yeah, I noticed those too, ...however, still can't find the "days ago, hours ago"...the common word being "ago", which is what I searched for and came up empty handed. I checked every file, every one of them, including the smarty and java stuff.
I still think that stuff is in the include/function.php which is Zend Encoded.
Re: Is it POSSIBLE ??? Translations in specific lines ???
The code above is a smarty function for building date-based drop down menus. However, changing that code will do nothing for you as "Year" isn't displayed. Rather, PHP uses that to build the dates. It is used on the signup pages where dates are asked for (if you have age turned on).
It would really help you to learn a bit about PHP programming (the basics). By doing this, it will save you a lot of frustration trying to find things that you can translate. There are many things that "look" like they are displayed in the browser but, in fact, are not.
Re: Is it POSSIBLE ??? Translations in specific lines ???
That's why I'm guessing it's in the zend encoded php files. Would I be correct in assuming that?
Re: Is it POSSIBLE ??? Translations in specific lines ???
Yes. A lot of what he is wanting (and needing) to change is in the encrypted files. Some of the files are merely displaying what is written in the DB. Some of his issues (such as the xx days ago) is due to the fact that some of the commands being used in the PHP files are not localized (for example, the function date() is English only. To make the output localized, you have to use the setlocale() and strftime() functions). In order for him to achieve exactly what he is wanting, he is going to need an open-source script. He can spend as much time as he would like on vShare. It's just not going to do him much good.
Re: Is it POSSIBLE ??? Translations in specific lines ???
oh noes.
Hey, since I have your attention and you're a php guru...would you make us a SMF forum bridge...how much would you charge?
Re: Is it POSSIBLE ??? Translations in specific lines ???
What all are you looking for in terms of a "bridge?" Are you just wanting the two applications to share user data? Or are you wanting something more complicated?
Re: Is it POSSIBLE ??? Translations in specific lines ???
What everyone here at vShare has been screaming for is a bridge between vShare and SMF Forms in terms of log in so that ppl don't have to log in twice (one user login for both things).
Think you can do it? You will make a lot of "best friends" if you do. LOL
Re: Is it POSSIBLE ??? Translations in specific lines ???
I'm pretty certain that I can do it. What I'm not certain about is whether it can be done. Here are the challenges:
1. User Information Sharing
2. User Session Sharing
The problem is that with both of those challenges, the easy solution lies within the encrypted PHP files (i.e. having the signup php copy the information into the other program on account creation and having login.php create both sessions when a user logs in). I'd have to really look into this to see how much can be done for this (without violating any of vShare's terms).