Hi, I’m new here. I’m not sure whether there are discussions of
Language Pack File before, but I’d like to share some of my discovery. Thanks!
You can download
Language Pack Filefrom http://lp.getpebble.com/v1/languages
Now there are files for
There are different files for specific hardware, but I found they seem identical although their filenames are different.
Language Pack Filehas extension
.pblfor filename, and it is just a special
Pebble Resource File
This script may help you: https://github.com/xndcn/pebble-firmware-utils/blob/for-language-pack/pbpack_tool.py
There will be
19raw files unpacked from
Language Pack File, named from
The first file
000, is a
GNU message catalogfile, which has an extension
This file can be transformed to
msgunfmt 000 -o 000.po
000.pois just a
GNU gettext messagefile which contains original strings and localized translation.
You can change it and transform to
msgfmt 000.po -o 000
The other files,
018, are either
Pebble Font Fileor just empty file
You can extract codepoints from the font file by using https://github.com/xndcn/pebble-firmware-utils/blob/for-language-pack/extract_codepoints.py
And then you can replace the font file by
fontgen.pyin Pebble SDK with your favorite font.
However, I didn’t find any font file from
Language Pack Fileexcept
In Chinese pbl, there are
4types font file.
002are identical, which contains only
217characters and their maximum height is 14. Especially, it nearly contains all chinese characters in
004are identical, which contains
9056characters and their maximum height is 18.
008are identical, which also contains
9056characters and their maximum height is 24.
monthnames and its height is 21.
Other files are empty.
I think the order of font file is corresponding to its resource id:
- Conclusion. What can we do by modifying
Language Pack File?
You can do localization or custom system strings as you like.
You can replace the system font with
your favorite font.
At last, after changing those resources, you can repack to a new.pbl and put it inside your mobile phone, then you can open it by
Pebble App to install.