预览模式: 普通 | 列表

Building Boost.Locale

1. download and install cmake
2. download and uncompress icu 4.4 binary format
3. download and uncompress boost 1.33.1+.
3. download boost locale library source code and uncompress.
4. create build directory:

查看更多...

Tags: boost locale ICU build cmake

分类:程序员 | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 165

Enabling subtitles in MediaPortal

I have many movies comes with external soft subtitle files in popular formats such as .srt, or .sub/.idx. These subtitles load perfectly fine if you use an external media player such as MediaPlayerClassi HomeCinema, or even Windows Media Player, as long as you have DirectVobSub(AutoLoading version) installed.

Unfortunately it seems, with default configuration, MediaPortal does not load DirectVobSub and hence does not load subtitles.

It took me a while to google around to find the answer. Below is the solution to enable subtitle in mediaportal for video playback. After this, you should be able to use the shortcut key "l" to switch between different subtitle languages.

查看更多...

Tags: MediaPortal subtitle vobsub

分类:数码时代 | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 141

Basic GNU Gettext how-to

1. Mark the strings using chosen keywoard (for example, '_')

2. Extract text template out of source code with specified keyword and domain name:
程序代码 程序代码

\gettext-0.17\bin\xgettext -k_ PnxErrors.h Error.cpp -ophoenix.po -dPhoenix

查看更多...

Tags: gettext how-to localization

分类:程序员 | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 169

l in Format Specification Fields

It is the first time I noticed that you can use l as a size specification for a string parameter, for example:

程序代码 程序代码

    CStringA strTest;
    strTest.Format("%ls", L"Hello");

查看更多...

Tags: l format_specification

分类:程序员 | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 161