Skip to content

Commit bfa532a

Browse files
fix(i18n): allow localizing preferences page (#398)
1 parent 19573c1 commit bfa532a

File tree

3 files changed

+68
-26
lines changed

3 files changed

+68
-26
lines changed

Contents/DefaultPrefs.json

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -2,140 +2,140 @@
22
{
33
"id": "bool_plex_movie_support",
44
"type": "bool",
5-
"label": "Plex Movie agent support (Add themes to the updated Plex Movie agent)",
5+
"label": "bool_plex_movie_support",
66
"default": "True",
77
"secure": "false"
88
},
99
{
1010
"id": "bool_plex_series_support",
1111
"type": "bool",
12-
"label": "Plex Series agent support (Add themes to the updated Plex Series agent)",
12+
"label": "bool_plex_series_support",
1313
"default": "True",
1414
"secure": "false"
1515
},
1616
{
1717
"id": "bool_overwrite_plex_provided_themes",
1818
"type": "bool",
19-
"label": "Overwrite Plex provided themes",
19+
"label": "bool_overwrite_plex_provided_themes",
2020
"default": "False",
2121
"secure": "false"
2222
},
2323
{
2424
"id": "bool_prefer_mp4a_codec",
2525
"type": "bool",
26-
"label": "Prefer MP4A AAC Codec (Improves compatibility with Apple devices)",
26+
"label": "bool_prefer_mp4a_codec",
2727
"default": "True",
2828
"secure": "false"
2929
},
3030
{
3131
"id": "bool_remove_unused_theme_songs",
3232
"type": "bool",
33-
"label": "Remove unused theme songs (frees up space in your Plex metadata directory)",
33+
"label": "bool_remove_unused_theme_songs",
3434
"default": "True",
3535
"secure": "false"
3636
},
3737
{
3838
"id": "bool_remove_unused_art",
3939
"type": "bool",
40-
"label": "Remove unused art (applies to collections, frees up space in your Plex metadata directory)",
40+
"label": "bool_remove_unused_art",
4141
"default": "False",
4242
"secure": "false"
4343
},
4444
{
4545
"id": "bool_remove_unused_posters",
4646
"type": "bool",
47-
"label": "Remove unused posters (applies to collections, frees up space in your Plex metadata directory)",
47+
"label": "bool_remove_unused_posters",
4848
"default": "False",
4949
"secure": "false"
5050
},
5151
{
5252
"id": "bool_auto_update_items",
5353
"type": "bool",
54-
"label": "Automatically update items (only items changed or previously missing in ThemerrDB)",
54+
"label": "bool_auto_update_items",
5555
"default": "True",
5656
"secure": "false"
5757
},
5858
{
5959
"id": "bool_auto_update_movie_themes",
6060
"type": "bool",
61-
"label": "Update movie themes during automatic update",
61+
"label": "bool_auto_update_movie_themes",
6262
"default": "True",
6363
"secure": "false"
6464
},
6565
{
6666
"id": "bool_auto_update_tv_themes",
6767
"type": "bool",
68-
"label": "Update tv show themes during automatic update",
68+
"label": "bool_auto_update_tv_themes",
6969
"default": "True",
7070
"secure": "false"
7171
},
7272
{
7373
"id": "bool_auto_update_collection_themes",
7474
"type": "bool",
75-
"label": "Update collection themes during automatic update",
75+
"label": "bool_auto_update_collection_themes",
7676
"default": "True",
7777
"secure": "false"
7878
},
7979
{
8080
"id": "bool_update_collection_metadata_plex_movie",
8181
"type": "bool",
82-
"label": "Update collection metadata for Plex Movie agent (Updates poster, art, and summary)",
82+
"label": "bool_update_collection_metadata_plex_movie",
8383
"default": "False",
8484
"secure": "false"
8585
},
8686
{
8787
"id": "bool_update_collection_metadata_legacy",
8888
"type": "bool",
89-
"label": "Update collection metadata for legacy agents (Updates poster, art, and summary)",
89+
"label": "bool_update_collection_metadata_legacy",
9090
"default": "True",
9191
"secure": "false"
9292
},
9393
{
9494
"id": "int_update_themes_interval",
9595
"type": "text",
96-
"label": "Interval for automatic update task, in minutes (min: 15)",
96+
"label": "int_update_themes_interval",
9797
"default": "60",
9898
"secure": "false"
9999
},
100100
{
101101
"id": "int_update_database_cache_interval",
102102
"type": "text",
103-
"label": "Interval for database cache update task, in minutes (min: 15)",
103+
"label": "int_update_database_cache_interval",
104104
"default": "60",
105105
"secure": "false"
106106
},
107107
{
108108
"id": "int_plexapi_plexapi_timeout",
109109
"type": "text",
110-
"label": "PlexAPI Timeout, in seconds (min: 1)",
110+
"label": "int_plexapi_plexapi_timeout",
111111
"default": "180",
112112
"secure": "false"
113113
},
114114
{
115115
"id": "int_plexapi_upload_retries_max",
116116
"type": "text",
117-
"label": "Max Retries, integer (min: 0)",
117+
"label": "int_plexapi_upload_retries_max",
118118
"default": "6",
119119
"secure": "false"
120120
},
121121
{
122122
"id": "int_plexapi_upload_threads",
123123
"type": "text",
124-
"label": "Multiprocessing Threads, integer (min: 1)",
124+
"label": "int_plexapi_upload_threads",
125125
"default": "3",
126126
"secure": "false"
127127
},
128128
{
129129
"id": "str_youtube_cookies",
130130
"type": "text",
131-
"label": "YouTube Cookies (JSON format)",
131+
"label": "str_youtube_cookies",
132132
"default": "",
133133
"secure": "true"
134134
},
135135
{
136136
"id": "enum_webapp_locale",
137137
"type": "enum",
138-
"label": "Web UI Locale",
138+
"label": "enum_webapp_locale",
139139
"default": "en",
140140
"values": [
141141
"de",
@@ -153,42 +153,42 @@
153153
{
154154
"id": "str_webapp_http_host",
155155
"type": "text",
156-
"label": "Web UI Host Address (requires Plex Media Server restart)",
156+
"label": "str_webapp_http_host",
157157
"default": "0.0.0.0",
158158
"secure": "false"
159159
},
160160
{
161161
"id": "int_webapp_http_port",
162162
"type": "text",
163-
"label": "Web UI Port (requires Plex Media Server restart)",
163+
"label": "int_webapp_http_port",
164164
"default": "9494",
165165
"secure": "false"
166166
},
167167
{
168168
"id": "bool_webapp_log_werkzeug_messages",
169169
"type": "bool",
170-
"label": "Log all web server messages (requires Plex Media Server restart)",
170+
"label": "bool_webapp_log_werkzeug_messages",
171171
"default": "False",
172172
"secure": "false"
173173
},
174174
{
175175
"id": "bool_migrate_locked_themes",
176176
"type": "bool",
177-
"label": "Migrate themes from < v0.3.0 (If you used Themerr before v0.3.0, set this to True)",
177+
"label": "bool_migrate_locked_themes",
178178
"default": "False",
179179
"secure": "false"
180180
},
181181
{
182182
"id": "bool_migrate_locked_collection_fields",
183183
"type": "bool",
184-
"label": "Migrate collection metadata from < v0.3.0 (If you used Themerr before v0.3.0, set this to True)",
184+
"label": "bool_migrate_locked_collection_fields",
185185
"default": "False",
186186
"secure": "false"
187187
},
188188
{
189189
"id": "bool_ignore_locked_fields",
190190
"type": "bool",
191-
"label": "Ignore locked fields (Always upload media, even if fields are locked)",
191+
"label": "bool_ignore_locked_fields",
192192
"default": "False",
193193
"secure": "false"
194194
}

Contents/Strings/en.json

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"bool_plex_movie_support": "Plex Movie agent support (Add themes to the updated Plex Movie agent)",
3+
"bool_plex_series_support": "Plex Series agent support (Add themes to the updated Plex Series agent)",
4+
"bool_overwrite_plex_provided_themes": "Overwrite Plex provided themes",
5+
"bool_prefer_mp4a_codec": "Prefer MP4A AAC Codec (Improves compatibility with Apple devices)",
6+
"bool_remove_unused_theme_songs": "Remove unused theme songs (frees up space in your Plex metadata directory)",
7+
"bool_remove_unused_art": "Remove unused art (applies to collections, frees up space in your Plex metadata directory)",
8+
"bool_remove_unused_posters": "Remove unused posters (applies to collections, frees up space in your Plex metadata directory)",
9+
"bool_auto_update_items": "Automatically update items (only items changed or previously missing in ThemerrDB)",
10+
"bool_auto_update_movie_themes": "Update movie themes during automatic update",
11+
"bool_auto_update_tv_themes": "Update tv show themes during automatic update",
12+
"bool_auto_update_collection_themes": "Update collection themes during automatic update",
13+
"bool_update_collection_metadata_plex_movie": "Update collection metadata for Plex Movie agent (Updates poster, art, and summary)",
14+
"bool_update_collection_metadata_legacy": "Update collection metadata for legacy agents (Updates poster, art, and summary)",
15+
"int_update_themes_interval": "Interval for automatic update task, in minutes (min: 15)",
16+
"int_update_database_cache_interval": "Interval for database cache update task, in minutes (min: 15)",
17+
"int_plexapi_plexapi_timeout": "PlexAPI Timeout, in seconds (min: 1)",
18+
"int_plexapi_upload_retries_max": "Max Retries, integer (min: 0)",
19+
"int_plexapi_upload_threads": "Multiprocessing Threads, integer (min: 1)",
20+
"str_youtube_cookies": "YouTube Cookies (JSON format)",
21+
"enum_webapp_locale": "Web UI Locale",
22+
"str_webapp_http_host": "Web UI Host Address (requires Plex Media Server restart)",
23+
"int_webapp_http_port": "Web UI Port (requires Plex Media Server restart)",
24+
"bool_webapp_log_werkzeug_messages": "Log all web server messages (requires Plex Media Server restart)",
25+
"bool_migrate_locked_themes": "Migrate themes from < v0.3.0 (If you used Themerr before v0.3.0, set this to True)",
26+
"bool_migrate_locked_collection_fields": "Migrate collection metadata from < v0.3.0 (If you used Themerr before v0.3.0, set this to True)",
27+
"bool_ignore_locked_fields": "Ignore locked fields (Always upload media, even if fields are locked)"
28+
}

crowdin.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,19 @@
1818
"en-US": "en_US"
1919
}
2020
}
21+
},
22+
{
23+
"source": "/Contents/Strings/en.json",
24+
"translation": "/Contents/Strings/%two_letters_code%.%file_extension%",
25+
"translation_replace": {
26+
"en": "themerr-plex"
27+
},
28+
"languages_mapping": {
29+
"two_letters_code": {
30+
# map non-two letter codes here, left side is crowdin designation, right side is plex designation
31+
"en-GB": "en-gb",
32+
"en-US": "en-us"
33+
}
34+
}
2135
}
2236
]

0 commit comments

Comments
 (0)