Sunday, January 30, 2011

How to support Chinese in XBMC on ATV2

XBMC has built-in multi-lingral support.  However, the font that shipped with it is not unicode and not support all the languages. 
In order to view Chinese character, you need to download arialudi.ttf true type font from the web (just google it).
After downlad the font to your local drive.  You need to copy it to ATV2 box.
Assuming your font file is named arialuni.ttf and stored in your local folder named Downloads.
Coping files through ssh need to done by scp command.  So open your terminal and key in the following commands:

There are 2 locations you need to copy the fonts to:
1. ATV system fonts location, enter the following command in terminal
>scp Downloads/arialuni.ttf root@<your ATV2 ip address>:/Applications/XBMC.frappliance/XBMCData/XBMCHome/media/Fonts

2. Skin font location (Confluence)
>scp Downloads/ARIALUNI.TTF root@<your ATV2 ip address>:/Applications/XBMC.frappliance/XBMCData/XBMCHome/addons/skin.confluence/fonts

After copying the font over to both locations, ssh to ATV and issue the following commands:

>cd /
>cd Applications/XBMC.frappliance/XBMCData/XBMCHome/addons/skin.confluence/fonts
>mv DejaVuSans.ttf backup_original.font (Backup your original font)
>mv arialuni.ttf DejaVuSans.ttf (override the default Confluence font)

Now go to XBMC menu --> Settings --> International
> Change language to Chinese if you want the menu to be in Chinese, otherwise leave it as English (simple or traditional)
> Change character-set to GBK or Big-5, this is important to view Chinese characters
> Then go to XBMC menu --> settings --> skin
> Change skin language to Arial Based
> Finally, go to Setting --> Video --> Subtitle
> Change language to Chinese and font to arialuni.ttf

Done.  Now the XBMC should be in Chinese:



9 comments:

  1. mv DejaVuSans.ttf backup_original.font (Backup your original font)
    mv arialuni.ttf DejaVuSans.ttf (override the default Confluence font)

    Got stuck here...


    Apple-TV:~ root# mv DejaVuSans.ttf backup_original.font
    mv: cannot stat `DejaVuSans.ttf': No such file or directory


    Please advise, thanks.

    ReplyDelete
  2. Jack,

    You should run "mv DejaVuSans.ttf" under your skin font folder not the root. The font resides under

    /Applications/XBMC.frappliance/XBMCData/XBMCHome/addons/skin.confluence/font

    Go to that folder and run the commands.

    ReplyDelete
  3. Hi Leo,

    Thanks for the help.

    I don't know any command about linux at all.

    How can I goto?
    /Applications/XBMC.frappliance/XBMCData/XBMCHome/addons/skin.confluence/font

    with cd command?

    like this?

    cd/Applications/XBMC.frappliance/XBMCData/XBMCHome/addons/skin.confluence/font

    ReplyDelete
  4. Sorry for the late reply.
    Yes, at your ssh command line (>) type:

    >cd /Applications/XBMC.frappliance/XBMCData/XBMCHome/addons/skin.confluence/font

    This is the font folder for Confluence skin. If you installed other skins, you need to go to skin.OTHER_SKIN_NAME/font to do the same step.

    Once you are in the folder, do following two step:

    >mv DejaVuSans.ttf backup_original.font
    >mv arialuni.ttf DejaVuSans.ttf

    You need to make sure arialuni.ttf is in the same folder. If not, use cp or mv command to move the file to this location.

    ReplyDelete
  5. I have done it with CyberDuck, thanks for your help!

    ReplyDelete
  6. nice post, very useful.

    now do you have any chinese tv add-ons to share?

    ReplyDelete
  7. Actually, recently I tried the non-tethered boot seasOnPass to jail brake ATV again, but the apple TV cannot start after that. So I have to restore my apple tv back to factory default. I will update the post once I get the non-tethered boot version to work.

    ReplyDelete
  8. Great news! The seasONPass has updated to version 0.7.4 which fixed the previous bugs and works flawlessly on ATV firmware v4.2.1.
    I have updated to 0.7.4 and successfuly jailbroke the ATV2 and re-installed XBMC.
    The ATV2 after jailbrake is not fully untethered boot, which means you can reboot ATV2 without USB cable anymore.
    I also corrected some typo in my previous post on installing Chinese font for XBMC.
    Have fun guys!

    ReplyDelete
    Replies
    1. How to support Chinese in XBMC 12 Frodo on ATV2?

      Delete