• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

niltsh/MPlayerX-Localization: the sub-project for localizing MPlayerX

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

niltsh/MPlayerX-Localization

开源软件地址(OpenSource Url):

https://github.com/niltsh/MPlayerX-Localization

开源编程语言(OpenSource Language):

Makefile 88.8%

开源软件介绍(OpenSource Introduction):

MPlayerX-Localization instruction

INTRO

Welcome to MPlayerX-Localization Project.
This is a sub-project of MPlayerX, which is a open-source media player project on Mac OS X. You could take a look at http://github.com/niltsh/MPlayerX
This is the document will help you to understand how to make a localization package of MPlayerX.
There is also a svn repo at http://code.google.com/p/mplayerx-localization/ and this git repo was started at r50 of the svn repo.

REPO STRUCTURE

┬─ root
├┬─ 1.0.0
│├─ English.lproj
│└─ zh_CN.lproj
├┬─ 1.0.1
│├─ English.lproj
│└─ zh_CN.lproj
├── …

BASIC WORKFLOW

  1. With every release, the [version number] folder will be created in the root.
  2. The MASTER lproj is English.lproj, [the project owner] will upload this lproj when the UI is finalized for every release.
  3. Basically, English.lproj will be uploaded only ONCE for every release. But there might be some incidence that [the project owner] have to update English.lproj.
  4. Every time the English.lproj was uploaded or updated, [the project owner] should email to all the contributors.
  5. The notification email should include.
    • what were uploaded or updated.
    • the branch in the MPlayerX repo for this update.
    • the version number in the MPlayerX repo for this update.
  6. After received the email, the contributors could start the work any time(if not too late).
  7. Except [the project owner], It is PROHIBITED for contributors to modify any files in English.lproj.
  8. Contributors could create any files or folders for their own localization.
  9. Since the lproj folder has naming rules, if not known, please look into http://developer.apple.com/mac/library/documentation/MacOSX/Conceptual/BPInternational/Articles/LanguageDesignations.html
  10. There are three sorts of files contributors could upload or update, .xib, .strings and .rtf.
    • xib should be the raw, editable xib files. please DO NOT upload the compiled nib files.
    • strings should be encoded by UTF-16.
    • please DO NOT use microsoft word or wordpad to modify the rtf, since it will mess up the file totally. I recommend TextEdit.app
  11. When contributors is going to finish the localization, there are two ways to let [the project owner] know.
    • email to [the project owner]
    • write some commit messages in the final commit.(PLEASE use English, rather than you own language, in the final commit)
  12. Contributors should be responsible for the test, [the project owner] may know nothing about the specific language.
  13. Finally, localization is really a lengthy job and need much much carefulness and patience.
    I really appreciate your help and THANK YOU VERY VERY MUCH.

HOW TO MAKE A TRANSLATION

  • Necessary Tools
    1. Interface Builder
    2. any Text Editor
    3. if there are any diff/merge tools in hand, that will save much time.
      I recommend TextWrangler, DiffMerge.
  • For xib files
    1. Use Interface Builder to open the file.
    2. In the MenuBar, hit Tools->Strings, there will pop up a window, which will list all the strings could be translated in the xib file.
    3. Double click the text area in that window, translate it, enter key.
      And I don’t recommand to edit the text in the UI directly, since It may change the Font, AFAIK.
    4. Adjust the layout,
    5. Save the file and quit Interface Builder,
  • For strings files
    1. Use the diff/merge tools to compare the new untranslated file and old translated file.
    2. And you could see which items are added, deleted, modified, unchanged.
    3. According to the changes, to transfer the translated item to the untranslated file as many as possible.
    4. Then translate the items which are added and modified.
  • For others
    There are no easy ways.

USAGE OF MAKEFILE

There is a template.Makfile, you could make the necessary lproj files with just a make command

  1. copy the temple.Makefile to [version number] folder
  2. rename it to Makefile
  3. in Terminal, goto the [version number] folder
  4. make
  5. the compiled lprojs will be placed in the results/

INFO

2010/06/08 – now [the project owner] = Zongyao QU, zongyao.qu@gmail.com

Appendix

  • How to make a increment localization
    • For strings file
      There is no better way.
      Just use a difftool(such as FileMerge.app) to compare the latest untranslated file with the last version,
      then merge the items you have translated.
    • For xib files
      Before start to translate, you could run this command to transfer your previous work to the new one.
      ibtool --previous-file {old master}/MyNib.nib --incremental-file {old translated}/MyNib.nib --localize-incremental --write {new translated}/MyNib.nib {new master}/MyNib.nib
      Then use InterfaceBuilder to open the xib files, in Menubar Tools->Strings, you could find all the items you should translate.



鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
pspachos/RSSI-Dataset-for-Indoor-Localization-Fingerprinting: RSSI dataset for F ...发布时间:2022-08-16
下一篇:
UUUii/Reika_mods_Localization发布时间:2022-08-16
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap