summaryrefslogtreecommitdiffstats
path: root/gtk/src/hb-backend.c
diff options
context:
space:
mode:
authorJohn Stebbins <[email protected]>2016-09-16 09:50:55 -0700
committerJohn Stebbins <[email protected]>2016-09-16 09:50:55 -0700
commitce96a7ae0903b382134c0b15fb0ce5a3e950e81e (patch)
tree301d125ba775abdee40a1bdd3628e958946e426e /gtk/src/hb-backend.c
parent45745f92b095c8521c8ed79c9a8c84962f35bdf1 (diff)
LinGui: Fix audio and subtitle lang list "Unknown" entry
It should read "Any" instead of "Unknown" for these lists.
Diffstat (limited to 'gtk/src/hb-backend.c')
-rw-r--r--gtk/src/hb-backend.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/gtk/src/hb-backend.c b/gtk/src/hb-backend.c
index 17ab63d28..f72fa85b5 100644
--- a/gtk/src/hb-backend.c
+++ b/gtk/src/hb-backend.c
@@ -2750,8 +2750,12 @@ void ghb_init_lang_list_box(GtkListBox *list_box)
iso639 = lang_get_next(iso639), ii++)
{
const char *lang;
- if (iso639->native_name != NULL &&
- iso639->native_name[0] != 0)
+ if (ii == 0)
+ {
+ lang = _("Any");
+ }
+ else if (iso639->native_name != NULL &&
+ iso639->native_name[0] != 0)
{
lang = iso639->native_name;
}