mirror of
https://github.com/mitb-archive/filebot
synced 2025-01-08 12:28:04 -05:00
Use simple language codes for compspec
This commit is contained in:
parent
8e446625f2
commit
9ac097252f
@ -93,8 +93,8 @@ function _picocli_filebot() {
|
||||
order_OPTION_ARGS="Airdate DVD Absolute AbsoluteAirdate" # --order values
|
||||
action_OPTION_ARGS="move copy keeplink symlink hardlink clone duplicate test" # --action values
|
||||
conflict_OPTION_ARGS="skip override fail auto index" # --conflict values
|
||||
lang_OPTION_ARGS="Albanian Arabic Armenian Bulgarian Catalan Croatian Czech Danish Dutch English Finnish French Canadian French German Greek Hebrew Hindi Hungarian Icelandic Indonesian Italian Japanese Romanized Japanese Korean Latvian Lithuanian Macedonian Malay Chinese Taiwanese Chinese Cantonese Norwegian Persian Polish Portuguese Brazilian Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Mexican Spanish Swedish Thai Turkish Ukrainian Vietnamese" # --lang values
|
||||
encoding_OPTION_ARGS="UTF-8 Windows-1252 ISO-8859-1" # --encoding values
|
||||
lang_OPTION_ARGS="sq ar hy bg ca hr cs da nl en fi fr qc de el he hi hu is id it ja x-jat ko lv lt mk ms zh tw hk no fa pl pt pb ro ru sr sk sl es mx sv th tr uk vi" # --lang values
|
||||
encoding_OPTION_ARGS="UTF-8 Windows-1252" # --encoding values
|
||||
StringString_OPTION_ARGS="name=value" # --def values
|
||||
log_OPTION_ARGS="OFF SEVERE WARNING INFO CONFIG FINE FINER FINEST ALL" # --log values
|
||||
|
||||
|
@ -174,7 +174,7 @@ class BashCompletionBuilder {
|
||||
|
||||
@Override
|
||||
public Iterator<String> iterator() {
|
||||
return Language.availableLanguages().stream().map(Language::getName).iterator();
|
||||
return Language.availableLanguages().stream().map(Language::getISO2).iterator();
|
||||
}
|
||||
}
|
||||
|
||||
@ -190,7 +190,7 @@ class BashCompletionBuilder {
|
||||
|
||||
@Override
|
||||
public Iterator<String> iterator() {
|
||||
return Stream.of("UTF-8", "Windows-1252", "ISO-8859-1").iterator();
|
||||
return Stream.of("UTF-8", "Windows-1252").iterator();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user