Find Jobs
Hire Freelancers

Autoload multiple language versions of a wikipedia page

$30-250 USD

Completed
Posted over 10 years ago

$30-250 USD

Paid on delivery
Looking for the following functionality; design & additional ui features will be added later as a separate project: I want a single page to receive input from the user. Via the url, we can specify the languages wanted. e.g. it could be: [login to view URL] This would lead to a page with 5 text input boxes, one for each of the languages specified in the url. en : ___________ fr : ____________ zh: ____________ kr: _____________ zh-yue: ___________ The user types something into any of the text boxes and submits with Enter or by pressing a button. The page then loads the wikipedia article for the language input via the url constructed as follows: [login to view URL] So for example, if the user input the word "Fleur" on the "fr" (French) line, then the page would fetch [login to view URL] Next, it would parse the source of that page to look for the links for the other languages required, in this case: en (English), zh (Chinese), kr (Korean), and zh-yue (Cantonese.) These links look like this : <li class="interlanguage-link interwiki-en"><a href="//[login to view URL]" title="Flower — anglais" lang="en" hreflang="en">English</a></li> By looking for "interlanguage-link interwiki-en", we find the "en" (English) version. By looking for "interlanguage-link interwiki-kr", we would find the kr (Korean) version etc. These links give us the translated name of the article in each of the other languages, plus a link to the wikipedia article in each. Not every article has an equivalent in every other language. Sometimes none will appear, or all, but typically we may have e.g. 3 out of 5, or 6 out of 8. The idea is to display, at the top of the page, the translated names as follows : en: Flower zh:花 ko:꽃 zh-yue:花 Below, would appear the full version of the page in the main language (in our example, French). The translated names at the top of the page would link to the full version of the page in the that language, keeping all the other languages' translated names/links at the top of the page. e.g. if I click on the ko:꽃 link it should display a page that starts with en: Flower fr:Fleur zh:花 zh-yue:花 (note that ko has been replaced with fr) and then the full text of [login to view URL]%EA%BD%83 which is the Korean version of the page. Bonus Feature #1) The page should pre-load the content of each of the other full pages, to be able to switch back and forth quickly if the user decides to click on the links at the top Bonus Feature #2) Mobile-friendly version should work the same way but with wikipedia's mobile version. I believe the only difference is the insertion of a "m." subdomain in the url between the language and the [login to view URL], though there may be other twists.
Project ID: 5312538

About the project

4 proposals
Remote project
Active 10 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
Greetings, I have tried to understand what you want and have come up with an example of it: [login to view URL] If it's something like this you want, I'm your guy. Everything can be changed if you want it. Best regards, Magnus
$100 USD in 2 days
5.0 (1 review)
2.0
2.0
4 freelancers are bidding on average $165 USD for this job
User Avatar
A proposal has not yet been provided
$206 USD in 3 days
4.1 (7 reviews)
2.8
2.8
User Avatar
Hi. I get the outline of the project but, I do need to understand something. other than that, i can get this done. Looking forward to work for you a log term relationship... thank you.
$200 USD in 6 days
0.0 (1 review)
0.0
0.0
User Avatar
La propuesta todavía no ha sido proveída
$155 USD in 3 days
0.0 (0 reviews)
0.0
0.0

About the client

Flag of CANADA
Montreal, Canada
5.0
2
Payment method verified
Member since Jan 12, 2014

Client Verification

Other jobs from this client

UI Skeleton
$30-250 CAD
Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.