Archive for 十一月, 2012

How to use XLF files in TYPO3

Adding a localization to an “Extension Builder” generated TYPO3 extbase extension could be a little tricky as it uses the xlf (XLIFF) format.

This is a simple way to add new localizations without using extra tools like Virtaal or a Pootle server.

1. copy file and prefix filename with language coed: example.xlf to de.example.xlf
2. add target-language=”de” attribute to node file
3. change source nodes to target

Please make sure…
your files are UTF8 encoded
to encapsulate special chars in CDATA



  
    
Dummy text Default language xlf file (locallang.xlf)


  
    
Das ist ein Test. German language xlf file (de.locallang.xlf)

MAC上的PHP工作环境搭建

Part 1: MacPorts
一步步来,首先需要解决的软件安装工具的问题,毕竟谁也不想php、cgi、mysql一串软件全部自己手动下源码编译吧。所以我们需要安装MacPorts这个软件,这个软件会很方便地提供软件的安装,就像debian、ubuntu的apt和centos的yum一样。 (continue reading…)


Sphinx中文指南

Sphinx中文入门指南

  • 1、简介
  • 1.1.Sphinx是什么
  • 1.2.Sphinx的特性
  • 1.3.Sphinx中文分词
  • 2、安装配置实例
  • 2.1 在GNU/Linux/unix系统上安装
    • 2.1.1 sphinx安装
    • 2.1.2.sfc安装(见另文)
    • 2.1.3.coreseek安装(见另文)
  • 2.2 在windows下安装
  • 3、 配置实例
  • 4、应用
  • 4.1 在CLI上测试
  • 4.2 使用API调用
  • 5、附录

(continue reading…)


Copyright © 1996-2010 Add Lives. All rights reserved.
iDream theme by Templates Next | Powered by WordPress