How to add New Languages

This topic contains 15 replies, has 8 voices, and was last updated by  HeyHey 2 years, 5 months ago.

Viewing 15 posts - 1 through 15 (of 16 total)
  • Author
    Posts
  • #2099

    To add other languages :

    Copy the english language folder under the directory languages ( languages/english ), like

    languages/newlanguage

    rename the english.php inside that folder to newlanguage.php

    then, translate the contents of the newlanguage.php like this :

    $lang[“HOME”] = “Home”;

    $lang[“HOME”] = “Home in newlanguage”;

    DO NOT COPY/PASTE ENTIRE FILE TO GOOGLE TRANSLATE TO TRANSLATE – take what is inside brackets in the RIGHT side of = paste it, translate it, and replace it with the one in the file.

    so,

    to translate

    $lang[“HOME”] = “Home”;

    take the word Home from within “Home”; and translate only the word Home and then, if the new translation is word Frenchhome replace the “Home”; like, “Frenchhome”; So, the line in the file will be like this :

    $lang[“HOME”] = “Frenchhome”;

    do this for all the lines. then save it. you will need to change ALL items in newlanguage.php

    go to your admin.

    in languages tab, you will find the place to add a new language. you can upload a small flag icon too.

    language name should be exactly the name of the language as it is (ie ‘newlanguage). the 2 letter country code should be the code used by that language.

    when you do that, your new language will be ready.

    if you are using a language which needs specific codepage and cannot be handled by utf-8, then go to

    header.php in the root folder, and edit the line

    to that specific language code by replacing utf-8.

    #2102

    zzdown
    Participant

    thank you for your efforts I will try

    #2104

    Anonymous

    Hello

    I found you site through [url=http://google.com]google[/url]
    It is very helpful and well done.

    #2152

    giamatti
    Participant

    I’m currently creating a Dutch language file. After a few translations i tried if it worked, I followed all the steps (except uploading the icon) after refreshing my homepage and click on the language i dont see the words translated i allready had translated.

    then i noticed you saying the thing below

    do this for all the lines. then save it. you will need to change ALL items in newlanguage.php

    does that mean i have to translate ALL LINES before it will work? if so ive got a problem becuase welcome is still welcome in dutch, so i wont be able to translate that.

    #2153

    giamatti
    Participant

    above issue has been fixed, when finished translating il share the files so i can give something back to PHPvalley

    #2154

    does that mean i have to translate ALL LINES before it will work? if so ive got a problem becuase welcome is still welcome in dutch, so i wont be able to translate that.

    It doesnt have to be all lines. whatever you want translated, is in the file – if you need something translated you translate its value in brackets on the right side of the equation. that is only that. If all lines need translation, you need to translate all.

    ty for dutch lang file.

    #2157

    giamatti
    Participant

    Please delete previous post.

    Here is the dutch language file: http://www.4shared.com/file/QWPV8vLI/nederlands.html
    This is a translated for the first time, so expect some minor spelling mistakes and typo’s

    #2160

    Seems you didnt translate the ‘SITE EMAILS’ part ? you can translate them, just do not change \n and \r strings

    #2231

    Montarbot
    Participant

    Hi PHPValley community,
    Here are a human French translation, tomorrow I will post an Arabic translation 🙂

    https://micincome.com/download/Upload.zip

    Extract the content of upload folder in your site root, then go to Site Administration => language and add a new language.
    Language: french
    Abbreviation: fr
    flag image: http://micincome.com/flags/1384237307fr.gif

    Enjoy

    #2232

    thanks.

    #2799

    dimajahiz
    Participant

    arabic please

    #2800

    Montarbot
    Participant

    Hi dimajahiz,
    I work on the Arabic language as soon as it is ready I will share with you here

    #2826

    dimajahiz
    Participant

    Thanks Montarbot

    #2827

    Montarbot
    Participant

    I’m sorry for the delay
    Arabic translation of (PHPValey) without emails

    https://micincome.com/download/arabic.zip
    Extract the content of arabic.zip folder in your site root, then go to Site Administration => language and add a new language.
    Language: arabic
    Abbreviation: ar
    flag image: http://micincome.com/flags/1387706979ar.jpg

    or here in pastebin:

    http://pastebin.com/P4ssckKA

    Enjoy

    #2863

    hssina
    Participant

    Thank you Man for the translations !!
    Just for the arabic translation there is some other lines has to be translated ( SITE EMAILS Part )

    I will try to finish it and when I translate it I will post it here .

    Thanks again!

Viewing 15 posts - 1 through 15 (of 16 total)

You must be logged in to reply to this topic.

Comments are closed, but trackbacks and pingbacks are open.