refactor: replace numeric translation keys with named keys

- Extract shared i18n.sh library with tr() function (replaces 5 duplicated text_lang functions)
- Replace numeric IDs (001, 002, ...) with human-readable keys (already_started, delete, etc.)
- Update all language files (en_US, en_GB, de_DE) to use named key format
- Update all scripts (jdautoenc, rename, addrename, removerename, config) to use tr() from i18n.sh
This commit is contained in:
2026-08-12 05:50:48 +02:00
parent a862b7be7c
commit 05e07a3857
21 changed files with 1914 additions and 2193 deletions
+21 -21
View File
@@ -1,21 +1,21 @@
001 Do you want a
002 film
003 or a
004 anime
005 series
006 to rename? (Type exit to exit)
007 Enter anime, series or movie
008 By which
009 keyword
010 should the
011 entry be matched?
012 If you want
013 now enter a second keyword
014 This is the anime:
015 Is this correct? (Y/n)
016 Unfortunately your request could not be processed automatically. But you can still add an entry manually
017 This is the series:
018 This is the movie:
019 Now enter the
020 number.
021 number in the URL
add_prompt Do you want a
film film
or_a or a
anime anime
series series
to_rename to rename? (Type exit to exit)
enter_type Enter anime, series or movie
by_which By which
keyword keyword
should_the should the
entry_matched entry be matched?
if_you_want If you want
second_keyword now enter a second keyword
this_is_anime This is the anime:
is_correct Is this correct? (Y/n)
manual_add Unfortunately your request could not be processed automatically. But you can still add an entry manually
this_is_series This is the series:
this_is_movie This is the movie:
enter_now Now enter the
number number.
url_number number in the URL
+109 -200
View File
@@ -1,200 +1,109 @@
001 Is the path of the JDAutoConfig correct?
002 What is the correct path?
003 Enter here the complete path to the JDAutoConfig
004 Path was not changed
005 Path was not changed
006 The path from
007 was changed!
008 The new path is:
009 Error changing the path!
010 The new path:
011 Could not be changed!
012 Select the database to use:
013 Bitrate settings
014 Enter here the Kbits (without ending) for
015 Space to select, Enter to confirm.
016 Select
017 Exit
018 Preset settings
019 Enter here the FFmpeg preset to use for
020 Fastest, Lowest Quality
021 Fast Low quality
022 Fast acceptable quality
023 Recommended. Relatively fast, quality according to VMAF tool averages 96-99% of source media.
024 Balanced
025 Somewhat slow. Only smaller file sizes, no relevant quality loss anymore.
026 Even slower.
027 Really slow.
028 Maybe better wait for a remux?
029 Well, best to switch off encoding, huh?
030 What do you want to configure?
031 WIP. The possibilities for fine tuning will be extended.
032 If you have problems, open an issue at: shorturl.at/bvDQ6 (Github link, easier to type or https://exe.io/jdautoenc if you want to support me via advertisement)
033 Folder paths
034 Log colors
035 Notification system
036 Encoding settings
037 Encoding hardware
038 FileBot settings
039 Are all scripts in the same place?
040 The JDAutoConfig was
041 found. Is this the path of all scripts?
042 ATTENTION! Only the scripts are adapted thereby. the Unpacked and the Encoding folder as well as the path for the log must be set manually!
043 Which folder path do you want to adjust?
044 Please select
045 Unpacked folder
046 Encodes folder
047 Log path
048 Movies:
049 Series:
050 Anime:
051 Change path setting
052 New path for
053 Folder path for the folder where videos unzipped by JD2 are located:
054 New path for the folder where the Finished encoded videos are/should be.
055 Movies folder
056 Series folder
057 Anime folder
058 Which messaging service do you want to configure?
059 Choose the messaging system:
060 Configure the Discord WebHook
061 Enter the full address of the Discord Webhook here. Currently:
062 Here you can set the Nextcloud notifications.
063 Choose here the settings you want to change
064 Currently:
065 Configuration for Nextcloud
066 Enter here the full address to your Nextcloud.
067 This can be a domain to Nextcloud: https://meineNextcloud.domain
068 Or IP (+Port if not 80/443) if JDownloader and Nextcloud are in the same network: 10.0.0.4:85
069 Enter here the Nextcloud user who writes the messages.
070 Enter the password of the user.
071 Specify here the token of the chat channel.
072 Example: https://nextcloud.domain/call/ne6ht3u7 ne6ht3u7 would be the token in this case.
073 The encoding settings have been changed to nVidia.
074 Here you can change the FFmpeg Settings
075 Select here the settings to change
076 Encoding:
077 Bitrate Anime Current:
078 FFmpeg Preset Animes Current:
079 Bitrate Series Current:
080 FFmpeg Preset Series Current:
081 Bitrate Movies Current:
082 FFmpeg Preset Movies Current:
083 Encode on/off
084 Choose if you want to encode
085 Graphics card
086 Discover!
087 Which hardware do you want to use?
088 Please select the hardware you want to use. The following hardware seems to be installed:
089 The encoding settings have been changed to nVidia.
090 The Cuda processors with the NVENC encoder are used.
091 The encoding settings have been changed to AMD.
092 AMD transistors with the amf encoder are used.
093 The encoding settings have been changed to nVidia.
094 The Intel QuickSync chip with qsv encoder is used.
095 Encoding by software is currently not supported!
096 Change FileBot specific settings
097 What do you want to change?
098 Movie database currently:
099 Series database currently:
100 Anime database currently:
101 Movie naming scheme currently:
102 Series naming scheme currently:
103 Anime naming scheme currently:
104 Language to be deducted currently:
105 New path for movies. For examples and possibilities: https://www.filebot.net/naming.html examples:
106 New path for series. For examples and possibilities: https://www.filebot.net/naming.html Examples:
107 New path for anime. For examples and possibilities: https://www.filebot.net/naming.html Examples:
108 The naming scheme has not been changed!
109 Select language to be used by Filebot
110 Select the language to be used by FileBot
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
config_path_correct Is the path of the JDAutoConfig correct?
config_path_what What is the correct path?
config_path_enter Enter here the complete path to the JDAutoConfig
path_not_changed Path was not changed
path_not_changed_title Path was not changed
path_from The path from
path_changed was changed!
new_path The new path is:
error_path Error changing the path!
new_path_err The new path:
could_not_change Could not be changed!
select_db Select the database to use:
bitrate_settings Bitrate settings
enter_kbits Enter here the Kbits (without ending) for
space_select Space to select, Enter to confirm.
select Select
exit Exit
preset_settings Preset settings
enter_preset Enter here the FFmpeg preset to use for
fastest Fastest, Lowest Quality
fast_low Fast Low quality
fast_accept Fast acceptable quality
recommended Recommended. Relatively fast, quality according to VMAF tool averages 96-99% of source media.
balanced Balanced
somewhat_slow Somewhat slow. Only smaller file sizes, no relevant quality loss anymore.
even_slower Even slower.
really_slow Really slow.
wait_remux Maybe better wait for a remux?
switch_off Well, best to switch off encoding, huh?
what_configure What do you want to configure?
wip WIP. The possibilities for fine tuning will be extended.
open_issue If you have problems, open an issue at: shorturl.at/bvDQ6 (Github link, easier to type or https://exe.io/jdautoenc if you want to support me via advertisement)
folder_paths Folder paths
log_colors Log colors
notification_system Notification system
encoding_settings Encoding settings
encoding_hardware Encoding hardware
filebot_settings FileBot settings
scripts_same_place Are all scripts in the same place?
jdautconfig_found The JDAutoConfig was
found_path found. Is this the path of all scripts?
attention_paths ATTENTION! Only the scripts are adapted thereby. the Unpacked and the Encoding folder as well as the path for the log must be set manually!
which_path Which folder path do you want to adjust?
please_select Please select
unpacked_folder Unpacked folder
encodes_folder Encodes folder
log_path Log path
movies_label Movies:
series_label Series:
anime_label Anime:
change_path Change path setting
new_path_for New path for
unpacked_path_desc Folder path for the folder where videos unzipped by JD2 are located:
encodes_path_desc New path for the folder where the Finished encoded videos are/should be.
movies_folder Movies folder
series_folder Series folder
anime_folder Anime folder
which_messaging Which messaging service do you want to configure?
choose_messaging Choose the messaging system:
discord_hook Configure the Discord WebHook
discord_enter Enter the full address of the Discord Webhook here. Currently:
nextcloud_set Here you can set the Nextcloud notifications.
nextcloud_choose Choose here the settings you want to change
currently Currently:
nextcloud_config Configuration for Nextcloud
nextcloud_domain Enter here the full address to your Nextcloud.
nextcloud_domain_desc This can be a domain to Nextcloud: https://meineNextcloud.domain
nextcloud_ip Or IP (+Port if not 80/443) if JDownloader and Nextcloud are in the same network: 10.0.0.4:85
nextcloud_user Enter here the Nextcloud user who writes the messages.
nextcloud_pass Enter the password of the user.
nextcloud_token Specify here the token of the chat channel.
nextcloud_example Example: https://nextcloud.domain/call/ne6ht3u7 ne6ht3u7 would be the token in this case.
ffmpeg_settings Here you can change the FFmpeg Settings
ffmpeg_choose Select here the settings to change
encoding_label Encoding:
bitrate_anime Bitrate Anime Current:
preset_anime FFmpeg Preset Animes Current:
bitrate_series Bitrate Series Current:
preset_series FFmpeg Preset Series Current:
bitrate_movies Bitrate Movies Current:
preset_movies FFmpeg Preset Movies Current:
encode_toggle Encode on/off
encode_choose Choose if you want to encode
gpu Graphics card
discovered Discover!
which_hardware Which hardware do you want to use?
select_hardware Please select the hardware you want to use. The following hardware seems to be installed:
nvidia_changed The encoding settings have been changed to nVidia.
cuda_used The Cuda processors with the NVENC encoder are used.
amd_changed The encoding settings have been changed to AMD.
amd_used AMD transistors with the amf encoder are used.
intel_changed The encoding settings have been changed to Intel.
intel_used The Intel QuickSync chip with qsv encoder is used.
software_not_supported Encoding by software is currently not supported!
filebot_change Change FileBot specific settings
filebot_what_change What do you want to change?
movie_db Movie database currently:
series_db Series database currently:
anime_db Anime database currently:
movie_naming Movie naming scheme currently:
series_naming Series naming scheme currently:
anime_naming Anime naming scheme currently:
language_deduct Language to be deducted currently:
movie_path_desc New path for movies. For examples and possibilities: https://www.filebot.net/naming.html examples:
series_path_desc New path for series. For examples and possibilities: https://www.filebot.net/naming.html Examples:
anime_path_desc New path for anime. For examples and possibilities: https://www.filebot.net/naming.html Examples:
naming_not_changed The naming scheme has not been changed!
select_language Select language to be used by Filebot
filebot_language Select the language to be used by FileBot
+22 -22
View File
@@ -1,22 +1,22 @@
001 jdautoenc has already been started, wait for it to finish.
002 Delete
003 source file
004 Error deleting source file
005 Duration of the video does not match!
006 Could
007 not with
008 convert
009 Start
010 script
011 is a
012 anime
013 Checking video codec.
014 Encode from
015 to
016 is already HEVC, check audio codec. If in eac3 or dts then encode audio to AC3.
017 move
018 to rename.
019 Series
020 remove jdautoenc.lock
021 empty folder in unpack directory.
022 Movie
already_started jdautoenc has already been started, wait for it to finish.
delete Delete
source_file source file
error_deleting_source Error deleting source file
duration_mismatch Duration of the video does not match!
could Could
not_with not with
convert convert
start Start
script script
is_a is a
anime anime
checking_video_codec Checking video codec.
encode_from Encode from
to to
already_hevc is already HEVC, check audio codec. If in eac3 or dts then encode audio to AC3.
move move
to_rename to rename.
series Series
remove_lock remove jdautoenc.lock
empty_folder empty folder in unpack directory.
movie Movie
+6 -6
View File
@@ -1,6 +1,6 @@
001 Select the entry to be deleted:
002 Exit
003 Are you sure you want to
004 delete
005 want?
006 Invalid entry.
select_delete Select the entry to be deleted:
exit Exit
sure_delete Are you sure you want to
delete delete
want want?
invalid Invalid entry.
+19 -19
View File
@@ -1,19 +1,19 @@
001 Wait for encoding to finish.
002 Renaming is already running. Wait for it to run.
003 Start
004 Script
005 Name
006 does not match
007 match.
008 Go to next entry.
009 Is a movie, extract names for folders.
010 Create folder:
011 Move
012 to
013 Start renaming.
014 If renaming successful,
015 Delete
016 folder
017 Error during renaming!
018 Failed attempts.
019 Everything was completed successfully!
wait_encoding Wait for encoding to finish.
renaming_running Renaming is already running. Wait for it to run.
start Start
script Script
name Name
does_not_match does not match
match match.
next_entry Go to next entry.
is_movie Is a movie, extract names for folders.
create_folder Create folder:
move Move
to to
start_renaming Start renaming.
if_successful If renaming successful,
delete Delete
folder folder
error_renaming Error during renaming!
failed_attempts Failed attempts.
completed_successfully Everything was completed successfully!