CSS/HTML adding a second language - html

How would you add a second language to your website only with html/css? I already have the english version in html/css and need the german one to.

A quick and dirty way to do this would be to create a copy of every page, but in German, then link the pages together based on language. For example, where your English homepage may link to English pages, your German homepage would link to German duplicates. You would only have to check what language the user wants once, on the homepage.

Related

Is there a way of showing an specific html file for my webpage depending on the users location?

I´m developing a webpage and it has some entries in which it would be interesting to force my web server to show an html file not only autotranslated (mainly between english and spanish) but also to load the specific social media links which are created in those languages (as there is an English Instagram version and another Spanish one, an English Twitter account and another for Spanish, and so on), depending on the physical location of the webpage users.
Thanks in advance.
In principle you could detect the location. But I am guessing that what you really want is to detect the language of the user. For this there are multiple ways, see e.g.: JavaScript for detecting browser language preference

Website directory for multi lingual site

Hi I'm building a website in dutch, and on the index.html page there is an english flag for visitors to click on to get an english version on the site.
I'm wondering, specifically keeping SEO in mind, whats good practice considering web directories.
The dutch is www.website.com/index.html
would the english be something along the line of www.website.com/index-en.html?
any light shed would be appreciated.
In first place Google recommend countries specific domain (but is so expensive).
So I recommend subdomains (en.website.com) but if you can not create subdomains also you can use directories like: website.com/en/
Take a look to https://support.google.com/webmasters/answer/182192?hl=en
Basically, Google will just take the default language to crawl which in this case is Dutch. If your website have separate English pages, not those using translator widget those sort, Google will also index it as separate pages. But in search engine, it will look like Dutch and English version of index.html next of another.
Have a look at this >
http://www.w3.org/International/questions/qa-html-language-declarations
Hyphen would be good but remember not to overuse. Refrain from using other symbols. Google regards overusing of symbols as spammy.

Blog widget: How can I show blog from one language within the other one?

Let us assume a website in two languages, e.g. German (default) and English.
Now the blog should be German only and these entries shall be shown automatically on the English page.
How can I achieve this?
I think just read the source code and add some kind of a hack. Shouldn't be the rocket science.

How to enable language navigation for content?

How can I enable the language links on my MedaiWiki install? The one I am talking about is the one that spans the bottom of the page and starts with [Language: English, French, etc...)
Just to be clear, it is the language navigation stuff directly under the download button on the homepage for MediaWiki.
http://www.mediawiki.org/wiki/MediaWiki
That is not a feature built into MediaWiki, it is done with templates and parser functions. If you want something similar, you could copy their Template:Languages and related templates.

Wordpress PerfectPixel theme

I have a problem with my wordpress theme, I have been translating an english page into French, on the english page, the pictures appear properly on the mainfrontpage but it doesn't appear on the french homepage.
Here is the english page: http://www.interactioncamps.org/
Here is the french page:
However you're calling your jquery.cycle plugin, the French page does not appear to be passing it any slides. Take a look at your browser's JavaScript console on the French page:
[cycle] terminating; too few slides: 0
jquery.cycle.all.js:33
Without seeing some reference code it's tough to say exactly what the problem is, but that should point you in the right direction.