]> granicus.if.org Git - handbrake/commitdiff
LinGui: Fix audio and subtitle lang list "Unknown" entry
authorJohn Stebbins <jstebbins.hb@gmail.com>
Fri, 16 Sep 2016 16:50:55 +0000 (09:50 -0700)
committerJohn Stebbins <jstebbins.hb@gmail.com>
Fri, 16 Sep 2016 16:50:55 +0000 (09:50 -0700)
It should read "Any" instead of "Unknown" for these lists.

gtk/src/hb-backend.c

index 17ab63d28ec1fe2a20acfaaa868b13cf08cfaf62..f72fa85b5da7a2653e18224839c03dc5b4284570 100644 (file)
@@ -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;
         }