From 359f0d473c451bcd018eb4c8a8cd1993f9499998 Mon Sep 17 00:00:00 2001 From: Manolis Papadeas <35376950+OverloadedOrama@users.noreply.github.com> Date: Sat, 12 Dec 2020 15:05:03 +0200 Subject: [PATCH] Added Japanese translation --- CHANGELOG.md | 2 +- project.godot | 2 +- src/Autoload/Global.gd | 2 +- src/Preferences/HandleLanguages.gd | 1 + src/UI/Dialogs/AboutDialog.gd | 6 +++++- 5 files changed, 9 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c71f8256e..f98986c39 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,7 +19,7 @@ PinyaColada, Rémi Verschelde (akien-mga), dasimonde, gschwind, AbhinavKDev - More options have been added to Tile mode; Tile only in X Axis, Y Axis or both Axis. ([#378](https://github.com/Orama-Interactive/Pixelorama/pull/378)) - Added a "Mirror View" option in the View menu, which is used to flip the canvas horizontally and non-destructively. ([#227](https://github.com/Orama-Interactive/Pixelorama/issues/227)) - macOS: It is now possible to pan and zoom the canvas from a touchpad. ([#391](https://github.com/Orama-Interactive/Pixelorama/pull/391)) -- Added Turkish translation. +- Added Turkish and Japanese translations. ### Changed - `~` is now used as a random brush prefix instead of `%`. ([#362](https://github.com/Orama-Interactive/Pixelorama/pull/362)) diff --git a/project.godot b/project.godot index a9fb9f85b..2c2cbc633 100644 --- a/project.godot +++ b/project.godot @@ -422,7 +422,7 @@ mirror_view={ [locale] -translations=PoolStringArray( "res://Translations/zh_TW.po", "res://Translations/pt_BR.po", "res://Translations/de_DE.po", "res://Translations/el_GR.po", "res://Translations/en_US.po", "res://Translations/fr_FR.po", "res://Translations/it_IT.po", "res://Translations/pl_PL.po", "res://Translations/ru_RU.po", "res://Translations/es_ES.po", "res://Translations/zh_CN.po", "res://Translations/lv_LV.po", "res://Translations/eo_UY.po", "res://Translations/cs_CZ.po", "res://Translations/id_ID.po", "res://Translations/hu_HU.po", "res://Translations/ro_RO.po", "res://Translations/ko_KR.po", "res://Translations/tr_TR.po" ) +translations=PoolStringArray( "res://Translations/zh_TW.po", "res://Translations/pt_BR.po", "res://Translations/de_DE.po", "res://Translations/el_GR.po", "res://Translations/en_US.po", "res://Translations/fr_FR.po", "res://Translations/it_IT.po", "res://Translations/pl_PL.po", "res://Translations/ru_RU.po", "res://Translations/es_ES.po", "res://Translations/zh_CN.po", "res://Translations/lv_LV.po", "res://Translations/eo_UY.po", "res://Translations/cs_CZ.po", "res://Translations/id_ID.po", "res://Translations/hu_HU.po", "res://Translations/ro_RO.po", "res://Translations/ko_KR.po", "res://Translations/tr_TR.po", "res://Translations/ja_JP.po" ) locale_filter=[ 0, [ ] ] [logging] diff --git a/src/Autoload/Global.gd b/src/Autoload/Global.gd index 8420dcde3..4f65ca04c 100644 --- a/src/Autoload/Global.gd +++ b/src/Autoload/Global.gd @@ -516,7 +516,7 @@ Hold %s to make a line""") % [InputMap.get_action_list("left_eraser_tool")[0].as func is_cjk(locale : String) -> bool: - return "zh" in locale or "ko" in locale + return "zh" in locale or "ko" in locale or "ja" in locale func _exit_tree() -> void: diff --git a/src/Preferences/HandleLanguages.gd b/src/Preferences/HandleLanguages.gd index 866cbdf72..3edebe4f1 100644 --- a/src/Preferences/HandleLanguages.gd +++ b/src/Preferences/HandleLanguages.gd @@ -22,6 +22,7 @@ const languages_dict := { "ro_RO" : ["Română", "Romanian"], "ko_KR" : ["한국어", "Korean"], "tr_TR" : ["Türkçe", "Turkish"], + "ja_JP" : ["日本語", "Japanese"], } var loaded_locales : Array diff --git a/src/UI/Dialogs/AboutDialog.gd b/src/UI/Dialogs/AboutDialog.gd index 13569f68d..661d19564 100644 --- a/src/UI/Dialogs/AboutDialog.gd +++ b/src/UI/Dialogs/AboutDialog.gd @@ -104,6 +104,7 @@ func create_donors() -> void: donors.create_item(donors_root).set_text(0, " Isambard") donors.create_item(donors_root).set_text(0, " Hugo Locurcio") donors.create_item(donors_root).set_text(0, " MysteryStudio") + donors.create_item(donors_root).set_text(0, " Daniel Gagnon") func create_contributors() -> void: @@ -186,7 +187,10 @@ func create_translators() -> void: translators.create_item(translators_root).set_text(0, " Aninuscsalas - " + tr("Hungarian")) translators.create_item(translators_root).set_text(0, " jaehyeon1090 - " + tr("Korean")) translators.create_item(translators_root).set_text(0, " sfun_G - " + tr("Korean")) - translators.create_item(translators_root).set_text(0, " KripC2160 - " + tr("Korean")) + translators.create_item(translators_root).set_text(0, " KripC2160 - " + tr("Korean") + " " + tr("and") + " " + tr("Japanese")) + translators.create_item(translators_root).set_text(0, " daisuke osada (barlog) - " + tr("Japanese")) + translators.create_item(translators_root).set_text(0, " Motomo.exe - " + tr("Japanese")) + translators.create_item(translators_root).set_text(0, " hebekeg - " + tr("Japanese")) translators.create_item(translators_root).set_text(0, " M. Gabriel Lup - " + tr("Romanian")) translators.create_item(translators_root).set_text(0, " ANormalKnife - " + tr("Turkish")) translators.create_item(translators_root).set_text(0, " kmsecer - " + tr("Turkish"))