langthis

Have an account?

Forgot your password?

You don´t have a account?

Help

Installing LangThis

LangThis can be added to many kinds of websites and platforms. It has to be added directly to the code by the programmer.
You can find the instructions for this in the Code section.
LangThis also has a broad list of plugins for different systems as, WordPress and PHPFusion. These can be found on the plugins page.

The Code

This will create the default button that can be used on any website. You can start with this code, or generate your own by Signing in or Signing up and pressing the Get Your Button link on the right of your site.


Default Menu Code

<script type="text/javascript" src="/langthisjs.php?site=YOUR LANGTHIS SITE ID&amp;user=YOUR LANGTHIS USERNAME&amp;from=YOUR SITES LANGUAGE"></script>

<a href="http://www.langthis.com/" class="langthis"><img src="http://www.langthis.com/img/btn-gb1.png" alt="langthis!" /></a>

Don´t you know what to write in the variables (writen in bold), please see the variables section.


The Code can be split into two sections: HTML and External Javascript.

Back to Top

HTML Code

This is what you will see on your webpage. In this example you will see a button.

This part of the code is where you can make changes to customize the button. For more information on customization visit the design customize page.

<a href="http://www.langthis.com/" class="langthis"><img src="http://www.langthis.com/img/btn-gb1.png" alt="langthis!" /></a>
Back to Top

External Javascript

The variables (writen in bold), are very important for your button to work.

<script type="text/javascript" src="/langthisjs.php?site=YOUR LANGTHIS SITE ID&amp;user=YOUR LANGTHIS USERNAME&amp;from=YOUR SITES LANGUAGE"></script>

Don´t you know what to write in the variables (writen in bold), please see the variables section.

Back to Top

LangThis Variables

YOUR LANGTHIS SITE ID *

The Site ID variable is important for your translation stats to work.

If you don´t have a user, leave this variable blank or set it as 0.

On the picture below you can see where to find your Site ID, when you are logged in. There is a unique ID for each site!

help id

* This variable requires user registration.

Back to Top

YOUR LANGTHIS USERNAME *

The Username variable is important for your translation stats to work.

If you don´t have a user, leave this variable blank or set it as 0. Otherwise if you have a user the variable is the username you registered as.

* This variable requires user registration.

Back to Top

YOUR SITES LANGUAGE

The site language variable is required for your button to work.

Find your language in the left row, and choose the language variable from the right row.

LanguageVariable for this language
Albanianal
Arabicarab
Bulgarianbg
Brazilian P.br
Belarusianby
Catalancatalan
Chinese S.cn
Czechcz
Germande
Danishdk
Spanishes
Finnishfi
Frenchfr
Galiciangalician
Englishgb
Greekgr
Croatianhr
Hungarianhu
Indonesianid
Irishie
Hebrewil
Hindiin
Persianir
Icelandicis
Italianit
Japanesejp
Koreankr
Latinlatin
Latin A.latinamerica
Lithuanianlt
Latvianlv
Macedonianmk
Maltesemt
Malaymy
Dutchnl
Norwegianno
Filipinoph
Polishpl
Portuguesept
Romanianro
Serbianrs
Russianru
Swedishse
Sloveniansi
Slovaksk
Thaith
Turkishtr
Chinese T.tw
Swahilitz
Ukrainianua
Vietnamesevn
Welshwales
Yiddishyiddish
Afrikaansza
Back to Top