2010年7月8日 星期四

Wolke JQuery Language Tools, Wolke JQuery 語言包工具(JQuery Plugin)






Wolke JQuery Language Tools:

this is design for replace your words
it means when your web or blog need to service to different language,
you don't have to do the same copy action for your web,
just link this in your code and set the words liberty
like:





window.WL_LANG.words={
  welcome:{
   en_us:'Welcome',
   zh_tw:'歡迎您',
   zh_cn:'欢迎你'
  },
  hi:{
   en_us:'Hi',
   zh_tw:'嗨',
   zh_cn:'嗨'
  }
}
這個是語言替換工具,
如果的網站或是Blog有同時需要服務多種語系,
置入此工具於你的Blog中,
便不需因為其他的語言而做重複性質的工作,
僅需定義語言包。
例如:





window.WL_LANG.words={
  welcome:{
   en_us:'Welcome',
   zh_tw:'歡迎您',
   zh_cn:'欢迎你'
  },
  hi:{
   en_us:'Hi',
   zh_tw:'嗨',
   zh_cn:'嗨'
  }
}
至於置入js文件如下:





WL_LANG.GL('message') //呼叫換字,參數是原本定義的參數名。
WL_LANG.changeLang('.word'); //一口氣全換,參數同Jquery的selector規則。

沒有留言:

張貼留言