APP321
Building World-Ready Windows Mobile© Applications by Mel Sampat
這堂演講的主題是寫程式的人該如何撰寫
讓application在轉換語言及使用設定(ex 時間日期格式)時可以輕鬆移植
Design strategies
- Larger Text Fields -> 30% larger is a general rule.
- Avoid Run-time string composition (各國語法不同 )
"are you sure you want to delete file?"
"are you sure you want to delete directory?"
"are you sure you want to delete subdirectory?"
char String[] = "are you sure you want to delete";
char FinalString[] = String + object + "?";
- Avoid reusing resources (指重複相同的名詞但意義上不同會造成翻譯人員的困擾 orz)
- Use FORMATMESSAGE instead of wsprintf (避免格式化時data buffer不足)
- Use MUI DLLs (multilingual user interface DLLs)
- Use NLS APIs (national language support APIs)
International API
0 comments:
Post a Comment