Skip to content

aliosmanyuksel/jsonlanguagemanagement

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

json-language-management

Demo is available at / Demo bağlantısı : [Demo](http://plugin.softbax.com/jsonLM "Demo URL" target="_blank")

SUGGESTIONS / ÖNERİLER

Easy to implement your projects / Projelerinize eklemesi kolaydır.

If you develop a big project, so you should use database to provide multi language / Eğer büyük bir proje geliştiriyorsanız, dil yönetimi için database kullanmanızı öneririm.

You can use this for static pages / Statik sayfalarınız için kullanabilirsiniz.

HOW TO USE / NASIL KULLANIRIM

Include lib.js and api.js and jquery library / lib.js ve api.js ve jquery kütüphanesini ekleyin

Inside lib.js you can manage languages. Inside AvailableLanguages function you can add languages as json format. / lib.js dosyası içinde dilleri yönetebilirsiniz. AvailableLanguages fonksiyonu içerisine json formatında dil seçenekleri ekleyebilirsiniz Ex. / Örn.

var languages = {

  `"en" : "English",`
  
 ` "tr" : "Türkçe",`
 
 ` "de" : "Deutsche",`
 
`  ...`

};

Use loadLanguages function to append languages options inside select element / loadLanguages fonksiyonunu kullanarak select elementi içerisine dil seçeneklerini ekleyebilirsiniz.

Call LoadContent function to load language contents / LoadContent fonksiyonunu dil içeriklerini yüklemek için kullanın

Usage example / Kullanım örneği

<div class="qenruJsonContent" data-label="home"></div>

"home" Content will be appended inside div element. "home" matches with key value inside related json file. "home" içeriği div elementi arasına basılır. "home" ilgili json dosyasındaki key value ile ile eşleştirilir.

<input type="text" class="qenruJsonContent" data-label="user_name|placeholder"/>

if you use key|placeholder inside data-label, you provide content for related element's placeholder attribute. Eğer key|placeholder data-label içerisinde kullanırsanız, ilişkili elementin placeholder attribute değeri için dil yönetimi sağlarsınız.

<input type="submit" class="qenruJsonContent" data-label="user_name|value"/>

if you use key|value inside data-label, you provide content for related element's value attribute. Eğer key|value data-label içerisinde kullanırsanız, ilişkili elementin value attribute değeri için dil yönetimi sağlarsınız.

#Copyright and License

##Copyright © 2007-2013 M. Alsup.

The BlockUI plugin is dual licensed under the MIT and GPL licenses.

You may use either license. The MIT license is recommended for most projects because it is simple and easy to understand and it places almost no restrictions on what you can do with the plugin.

If the GPL suits your project better you are also free to use the plugin under that license.

You do not have to do anything special to choose one license or the other and you don't have to notify anyone which license you are using. You are free to use the BlockUI plugin in commercial projects as long as the copyright header is left intact.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 57.9%
  • JavaScript 37.6%
  • CSS 4.5%