feat: Japanese radio translation 🇯🇵 (#2456)
* Japanese radio translation `jp.h` based on #2006 (Kudos to @ToshihiroMakuuchi) * fix: Gyro is now IMU * Japanese modifications were made to the display. (#2171) * Update JP translation file * Update JP fonts * Fix rotary encoder mode string Co-authored-by: Peter Feerick <peter.feerick@gmail.com> Co-authored-by: まっく まるちぷろとこる <36994795+ToshihiroMakuuchi@users.noreply.github.com>
This commit is contained in:
co-authored by
Peter Feerick
まっく まるちぷろとこる
parent
c19373538a
commit
786fbcb411
+2
-1
@@ -10,11 +10,12 @@ standard_chars = """ !"#$%&'()*+,-./0123456789:;<=>?°ABCDEFGHIJKLMNOPQRSTUVWXYZ
|
||||
extra_chars = "".join([chr(0x10000+i) for i in range(21)])
|
||||
|
||||
def is_special_char(c):
|
||||
# only 'our' special chars and CJK Unified Ideographs
|
||||
return 192 <= ord(c) <= 383 or 0x4E00 <= ord(c) <= 0x9FFF
|
||||
|
||||
def get_special_chars():
|
||||
result = {}
|
||||
for lang in["en", "fr", "da", "de", "cz", "nl", "es", "fi", "it", "pl", "pt", "se", "cn", "tw"]:
|
||||
for lang in["en", "fr", "da", "de", "cz", "nl", "es", "fi", "it", "pl", "pt", "se", "cn", "tw", "jp"]:
|
||||
charset = set()
|
||||
tools_path = os.path.dirname(os.path.realpath(__file__))
|
||||
with open(os.path.join(tools_path, "../radio/src/translations/%s.h" % lang), encoding='utf-8') as f:
|
||||
|
||||
Reference in New Issue
Block a user