dict->dictname = g_strdup(dictionary);
}
+ if (strchr(dict->fullname, '-')) {
+ *(strchr(dict->fullname, '-')) = '\0';
+ *(strchr(dict->dictname, '-')) = '\0';
+ }
gtkaspeller = gtkaspeller_new(dict);
dictionary_delete(dict);
alt_dict->fullname = g_strdup(alt_dictionary);
alt_dict->dictname = g_strdup(alt_dictionary);
}
+ if (strchr(alt_dict->fullname, '-')) {
+ *(strchr(alt_dict->fullname, '-')) = '\0';
+ *(strchr(alt_dict->dictname, '-')) = '\0';
+ }
alt_gtkaspeller = gtkaspeller_new(alt_dict);
dictionary_delete(alt_dict);
dict->dictname = g_strdup(dictionary);
}
+ if (strchr(dict->fullname, '-')) {
+ *(strchr(dict->fullname, '-')) = '\0';
+ *(strchr(dict->dictname, '-')) = '\0';
+ }
+
gtkaspeller = gtkaspeller_new(dict);
if (!gtkaspeller) {
dict->dictname = g_strdup(alt_dictionary);
}
+ if (strchr(dict->fullname, '-')) {
+ *(strchr(dict->fullname, '-')) = '\0';
+ *(strchr(dict->dictname, '-')) = '\0';
+ }
+
gtkaspeller = gtkaspeller_new(dict);
if (!gtkaspeller) {