Link to change language of site - dynamic

Does anyone know or recommend a method for a simple way to convert a site into a different language. I just need the site to change from spanish to english and vice versa, but the site will load in spanish first. Perhaps a plugin is available? Most of the content is dynamic and the site is being developed with Concrete5 CMS. Any ideas would be appreciated. Thank you.

I think you need to install an add-on for this. Check out Internationalization, it's free: http://www.concrete5.org/marketplace/addons/internationalization/
Here is a YouTube video showing it in action, so you can quickly see if it's what you had in mind: https://www.youtube.com/watch?v=Hd936iaDLqw&feature=player_embedded

You need some automatic translation tool (since you said your content is dynamic).There are many in internet, you just have to search for "Automatic translation API".
I recommend you using the Google Translate one.

Related

Objective C get html page's links

I'm quite new in Objective C programming and I'm trying to make an application that returns all the link addresses in HTML page. In that case i shouldn't just parse the HTML, but get these links intercepting them from the page's network request.
Is it possible to intercept the application's network requests or something?
Thanks
Coincidentally, Ray Wenderlich's rather AWESOME iOS tutorial site posted this article in the last hour. As you are new to iOS/ObjC, I highly recommend reading it thoroughly.
Let’s say you want to find some information inside a web page and
display it in a custom way in your app.
This technique is called
“scraping.” Let’s also assume you’ve thought through alternatives to
scraping web pages from inside your app, and are pretty sure that’s
what you want to do.
Well then you get to the question – how can you
programmatically dig through the HTML and find the part you’re looking
for, in the most robust way possible? Believe it or not, regular
expressions won’t cut it!
And before you think Regular Expressions might really be an answer, please read this.

How does Safari's reader feature work?

I want to add a similar feature to a tool I'm making. I'm interested in how it works code-wise. I want to be able get an html page and exclude all but the article.
The Readability project does something similar for chrome and iOS. I'm not sure how it detects the content automatically but I know that Readability has an API for people who want to integrate it's features. You might want to check that out.
http://www.readability.com/learn-more
If you're working with Ruby, you could use Pismo. It extracts an article from a given document.

Embedding PDF on website - without uploading to other service

On our site we use Google's document viewer to let users view PDF and other documents in the browser. But Google's viewer is not very good, when used without being Google. Quite often it doesn't show anything, and the limit for the PDF file is around 10/20mb. The main issue is that it quite often just doesn't show any files.
So, we're looking for a way to show pdf (and other documents) on our site. It would be great if it could be done without us having to upload it to another service as this complicates the process.
The pricing is not an issue, so even if you know an expensive service, it would be great to let us know.
Or if anyone has other solutions then it would be great to hear of that too.
Thanks,
Tobias
Through another source we were suggested to use Scribd, and our first tests shows that it works great. The documentation is good-ish so it's easy enough to set up.

Automated content creation for the web?

I see a lot of new websites lately which create automated content, most notable SiteGuruji and 7zoom:
http://www.siteguruji.com/site/youtube.com
Is there an application framework or text analysis framework available to create such sites? SiteGuruji is doing full SEO analysis of the sites as well. Is there an SEO analysis library available? How do I do such an analysis?
Sorry for the noobish question, but i am new to programming and thus I am not sure which direction to start in.
By SEO did you mean this section of the page?
http://www.siteguruji.com/site/youtube.com#seo_status ?
I don't think any frameworks are available for SEO... however you can check out NLTK for text analysis and natural language processing:
http://www.nltk.org/book
You basically need to write your own classes to scrape content from the site and third party sites and analyse it. I have not found something ready for this. Bits fom here and there, you can use.
Personally, I have created everything from scratch using zend framework as basis.

Google suggest API does not work with Chinese locale

I have a problem with Google suggest API when using Chinese locale. I am picking Chinese hieroglyphs at random and use the REST API to retrieve suggestions. Unfortunately, Google always return an empty list of suggestions (I am completely sure, that I convert my request in utf-8, and it is working fine with other languages, ex. Russian):
Sample request:
http://suggestqueries.google.com/complete/search?qu=%E9%80%9F
Google answer:
window.google.ac.h(["速",[]])
Does anyone know how to retrieve suggestions for Chinese locale? Maybe I am missing some flags or something? Maybe there is an official document from Google, saying that Chinese is not supported? And are there any people from China, using Google toolbar? Does it really work? I'd appreciate any help!
If it matters, I am writing a simple WinAPI application, using C++...
http://googleblog.blogspot.com/2009/03/local-flavor-for-google-suggest.html says, at the bottom, that google suggest now supports "155 domains in 51 languages." This implies a possible solution, which is that you need to use the relevant domain.
http://suggestqueries.google.cn/complete/search?qu=%E9%80%9F
gives me
window.google.ac.h(["速",[["速腾","2,020,000 结果","0"] ...
A bit of experimentation shows that I'm able to get results for japanese only from google.co.jp, but not from google.com. I'm in Japan, YMMV.
Hmm I don't know it seems to work for me. e.g
http://suggestqueries.google.com/complete/search?qu=%e6%9c%a8
yields
window.google.ac.h(["木",[["木村了","297,026 results","0z"]]])