From 30f1a84f13dac783d9ec634bfe9e0cff7c26ac0d Mon Sep 17 00:00:00 2001 From: chakra <154978378+r0manas-dev@users.noreply.github.com> Date: Tue, 9 Jul 2024 15:22:11 -0700 Subject: [PATCH 1/3] Update languages.c --- jni/languages.c | 96 ++++++++++++++++++++++++------------------------- 1 file changed, 48 insertions(+), 48 deletions(-) diff --git a/jni/languages.c b/jni/languages.c index b66c7f9..73c149c 100755 --- a/jni/languages.c +++ b/jni/languages.c @@ -25,58 +25,58 @@ extern "C" { #include struct pmt_langdb_general en = { - .lang_by_s = "YZBruh", + .lang_by_s = "YZBruh and r0manas", .language = "English", .lang_prefix = "en", - .not_logical = "This device does not have logical partitions!", - .not_file = "is a not file.", - .not_dir = "is a not directory.", - .not_in_dev = "You're going through my wave? There's nothing about this /dev. Use force mode if you don't want this error.", - .not_open = "Could not open", - .not_block = "The specified partition is not the block. I mean, it's not actually an episode (disc). I'm sure it needs to applaud those mistakes.", - .not_read = "Couldn't read", - .not_write = "Couldn't write", - .not_gen = "Couldn't generate", - .no_root = "Root access could not be detected! Please run this binary with root.", - .no_target = "No target (backup, flash or format).", + .not_logical = "This device does not have logical partitions!", + .not_file = "is not a file.", + .not_dir = "is not a directory.", + .not_in_dev = "Nothing found in /dev. Use force mode to avoid this error.", + .not_open = "Couldn't open", + .not_block = "The specified partition is not recognized as a block device.", + .not_read = "Couldn't read", + .not_write = "Couldn't write", + .not_gen = "Couldn't generate", + .no_root = "Root access could not be detected! Please run this with root permissions.", + .no_target = "No target specified (backup, flash, or format).", .expected_backup_arg = "Expected backup argument 2 (1 of them are not mandatory), retrieved", .expected_flash_arg = "Expected flash argument 2, retrieved", .expected_format_arg = "Expected format argument 2, retrieved", - .missing_operand = "missing operand", - .multiple_wiewers = "Multiple viewers cannot be used at the same line.", - .common_symbol_rule = "When entering the attached argument of an option, an argument of another option type cannot be used. In short, the rule is: there can be no '-' at the beginning of the attached argument.", - .req_part_name = "Required partition name.", - .part_not_found = "Partition not found!", - .unsupported_fs = "Formatter: unsupported filesystem", - .cannot_stat = "Cannot stat", - .ffile_more_part = "Size of the file to flash more than the partition size.", - .cannot_get_bsz = "The partition block size could not be obtained!", - .format_fail = "Formatting failed! There may be a chance that something has been damaged!", - .logical_warn = "Device using logical partition type.", - .ab_warn = "Device using A/B partition style.", - .out_not_spec = "The output file name was not specified. The output file name will be", - .please_rerun = "Please re run", - .part_disk_sz = "Disk size of the partition", - .flash_file_sz = "Size of flash file", - .part_disk_sz_fail = "Failed to get target partition disk size", - .flash_file_sz_fail = "Failed to get flash file size.", - .list_of_dir = "List of dir", - .see_license = "See licenses with -L argument.", - .success_backup = "Success. Output", - .success_flash = "Success.", - .warn = "WARNING", - .fatal = "FATAL ERROR", - .switching_lang = "Switching language...", - .welcome = "language!", - .welcome_ = "Welcome to ", - .for_more = "for more information", - .try_h = "Try", - .usage_head = "Usage", - .compiler_str = "Compiler", - .version_str = "version", - .bin_str = "binary", - .unknw_str = "unknown", - .by_str = "By" + .missing_operand = "Missing operand", + .multiple_viewers = "Multiple viewers can't be used on the same line.", + .common_symbol_rule = "When specifying arguments for an option, ensure they do not begin with '-'. Each argument must correspond correctly to its respective option." + .req_part_name = "Partition name required.", + .part_not_found = "Partition not found!", + .unsupported_fs = "Formatter: unsupported filesystem", + .cannot_stat = "Can't retrieve file status", + .ffile_more_part = "Flash file size exceeds partition capacity." + .cannot_get_bsz = "Failed to retrieve partition block size." + .format_fail = "Formatting failed! There is a possibility of data damage." + .logical_warn = "This device uses logical partitions.", + .ab_warn = "This device uses A/B partition style.", + .out_not_spec = "Output file name not specified. Using default name:", + .please_rerun = "Please rerun the command.", + .part_disk_sz = "Partition disk size" + .flash_file_sz = "Flash file size" + .part_disk_sz_fail = "Failed to retrieve partition disk size.", + .flash_file_sz_fail = "Failed to retrieve flash file size.", + .list_of_dir = "Directory listing" + .see_license = "View licenses using the -L argument." + .success_backup = "Backup successful. Output:", + .success_flash = "Flash successful.", + .warn = "WARNING", + .fatal = "FATAL ERROR", + .switching_lang = "Switching language...", + .welcome = "language!", + .welcome_ = "Welcome to ", + .for_more = "for more information", + .try_h = "Try", + .usage_head = "Usage", + .compiler_str = "Compiler", + .version_str = "version", + .bin_str = "binary", + .unknw_str = "unknown", + .by_str = "By" }; struct pmt_langdb_general tr = { @@ -98,7 +98,7 @@ struct pmt_langdb_general tr = { .expected_flash_arg = "Beklenen flaş argümanı 2, alınan", .expected_format_arg = "Beklenen format argümanı 2, alınan", .missing_operand = "işlem belirtilmedi", - .multiple_wiewers = "Birden fazla görüntüleme işlemi yapan fonksiyonlar bir arada kullanılamaz. Aynı anda sadece bir tanesi kullanılabilir.", + .multiple_viewers = "Birden fazla görüntüleme işlemi yapan fonksiyonlar bir arada kullanılamaz. Aynı anda sadece bir tanesi kullanılabilir.", .common_symbol_rule = "Bir seçeneğin argümanını verirken argüman önüne '-' sembolü getirilemez. Sembolü kaldırın ve tekrar deneyin.", .req_part_name = "Bölüm adı gereklidir.", .part_not_found = "Bölüm bulunamadı!", From c6163bc7528551a6de0f67683f3ae8d7b135bfa8 Mon Sep 17 00:00:00 2001 From: chakra <154978378+r0manas-dev@users.noreply.github.com> Date: Tue, 9 Jul 2024 15:26:38 -0700 Subject: [PATCH 2/3] Update languages.c --- jni/languages.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jni/languages.c b/jni/languages.c index 73c149c..c26a777 100755 --- a/jni/languages.c +++ b/jni/languages.c @@ -43,7 +43,7 @@ struct pmt_langdb_general en = { .expected_flash_arg = "Expected flash argument 2, retrieved", .expected_format_arg = "Expected format argument 2, retrieved", .missing_operand = "Missing operand", - .multiple_viewers = "Multiple viewers can't be used on the same line.", + .multiple_wiewers = "Multiple viewers can't be used on the same line.", .common_symbol_rule = "When specifying arguments for an option, ensure they do not begin with '-'. Each argument must correspond correctly to its respective option." .req_part_name = "Partition name required.", .part_not_found = "Partition not found!", @@ -98,7 +98,7 @@ struct pmt_langdb_general tr = { .expected_flash_arg = "Beklenen flaş argümanı 2, alınan", .expected_format_arg = "Beklenen format argümanı 2, alınan", .missing_operand = "işlem belirtilmedi", - .multiple_viewers = "Birden fazla görüntüleme işlemi yapan fonksiyonlar bir arada kullanılamaz. Aynı anda sadece bir tanesi kullanılabilir.", + .multiple_wiewers = "Birden fazla görüntüleme işlemi yapan fonksiyonlar bir arada kullanılamaz. Aynı anda sadece bir tanesi kullanılabilir.", .common_symbol_rule = "Bir seçeneğin argümanını verirken argüman önüne '-' sembolü getirilemez. Sembolü kaldırın ve tekrar deneyin.", .req_part_name = "Bölüm adı gereklidir.", .part_not_found = "Bölüm bulunamadı!", From 7943fa312c0bdaced8fa8cc9c5b29a671bda8a7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ya=C4=9F=C4=B1z=20Zengin?= Date: Wed, 10 Jul 2024 01:45:30 +0300 Subject: [PATCH 3/3] pmt: fix broken syntax --- jni/languages.c | 82 ++++++++++++++++++++++++------------------------- 1 file changed, 41 insertions(+), 41 deletions(-) diff --git a/jni/languages.c b/jni/languages.c index c26a777..190f1db 100755 --- a/jni/languages.c +++ b/jni/languages.c @@ -25,58 +25,58 @@ extern "C" { #include struct pmt_langdb_general en = { - .lang_by_s = "YZBruh and r0manas", + .lang_by_s = "YZBruh & r0manas", .language = "English", .lang_prefix = "en", - .not_logical = "This device does not have logical partitions!", - .not_file = "is not a file.", - .not_dir = "is not a directory.", - .not_in_dev = "Nothing found in /dev. Use force mode to avoid this error.", - .not_open = "Couldn't open", + .not_logical = "This device does not have logical partitions!", + .not_file = "is not a file.", + .not_dir = "is not a directory.", + .not_in_dev = "Nothing found in /dev. Use force mode to avoid this error.", + .not_open = "Couldn't open", .not_block = "The specified partition is not recognized as a block device.", - .not_read = "Couldn't read", - .not_write = "Couldn't write", - .not_gen = "Couldn't generate", - .no_root = "Root access could not be detected! Please run this with root permissions.", - .no_target = "No target specified (backup, flash, or format).", + .not_read = "Couldn't read", + .not_write = "Couldn't write", + .not_gen = "Couldn't generate", + .no_root = "Root access could not be detected! Please run this with root permissions.", + .no_target = "No target specified (backup, flash, or format).", .expected_backup_arg = "Expected backup argument 2 (1 of them are not mandatory), retrieved", .expected_flash_arg = "Expected flash argument 2, retrieved", .expected_format_arg = "Expected format argument 2, retrieved", - .missing_operand = "Missing operand", - .multiple_wiewers = "Multiple viewers can't be used on the same line.", + .missing_operand = "Missing operand", + .multiple_wiewers = "Multiple viewers can't be used on the same line.", .common_symbol_rule = "When specifying arguments for an option, ensure they do not begin with '-'. Each argument must correspond correctly to its respective option." - .req_part_name = "Partition name required.", - .part_not_found = "Partition not found!", - .unsupported_fs = "Formatter: unsupported filesystem", - .cannot_stat = "Can't retrieve file status", + .req_part_name = "Partition name required.", + .part_not_found = "Partition not found!", + .unsupported_fs = "Formatter: unsupported filesystem", + .cannot_stat = "Can't retrieve file status", .ffile_more_part = "Flash file size exceeds partition capacity." .cannot_get_bsz = "Failed to retrieve partition block size." .format_fail = "Formatting failed! There is a possibility of data damage." - .logical_warn = "This device uses logical partitions.", - .ab_warn = "This device uses A/B partition style.", - .out_not_spec = "Output file name not specified. Using default name:", - .please_rerun = "Please rerun the command.", - .part_disk_sz = "Partition disk size" - .flash_file_sz = "Flash file size" - .part_disk_sz_fail = "Failed to retrieve partition disk size.", - .flash_file_sz_fail = "Failed to retrieve flash file size.", - .list_of_dir = "Directory listing" + .logical_warn = "This device uses logical partitions.", + .ab_warn = "This device uses A/B partition style.", + .out_not_spec = "Output file name not specified. Using default name:", + .please_rerun = "Please rerun the command.", + .part_disk_sz = "Partition disk size", + .flash_file_sz = "Flash file size", + .part_disk_sz_fail = "Failed to retrieve partition disk size.", + .flash_file_sz_fail = "Failed to retrieve flash file size.", + .list_of_dir = "Directory listing", .see_license = "View licenses using the -L argument." - .success_backup = "Backup successful. Output:", - .success_flash = "Flash successful.", - .warn = "WARNING", - .fatal = "FATAL ERROR", - .switching_lang = "Switching language...", - .welcome = "language!", - .welcome_ = "Welcome to ", - .for_more = "for more information", - .try_h = "Try", - .usage_head = "Usage", - .compiler_str = "Compiler", - .version_str = "version", - .bin_str = "binary", - .unknw_str = "unknown", - .by_str = "By" + .success_backup = "Backup successful. Output:", + .success_flash = "Flash successful.", + .warn = "WARNING", + .fatal = "FATAL ERROR", + .switching_lang = "Switching language...", + .welcome = "language!", + .welcome_ = "Welcome to ", + .for_more = "for more information", + .try_h = "Try", + .usage_head = "Usage", + .compiler_str = "Compiler", + .version_str = "version", + .bin_str = "binary", + .unknw_str = "unknown", + .by_str = "By" }; struct pmt_langdb_general tr = {