Commit bfd0d728 authored by Margaux Clerc's avatar Margaux Clerc

Update Czech translation

Add patch for search in friendlist no case sensitive
parent ca42ee87
......@@ -5,7 +5,7 @@
<object class="GtkDialog" id="dscp_settings">
<property name="can_focus">False</property>
<property name="border_width">5</property>
<property name="title" translatable="yes">Dscp settings</property>
<property name="title" translatable="yes">DSCP settings</property>
<property name="modal">True</property>
<property name="type_hint">dialog</property>
<signal name="response" handler="linphone_gtk_dscp_edit_response" swapped="no"/>
......
......@@ -513,7 +513,11 @@ static gboolean friend_search_func(GtkTreeModel *model, gint column,
gboolean ret=TRUE;
gtk_tree_model_get(model,iter,FRIEND_NAME,&name,-1);
if (name!=NULL){
ret=strstr(name,key)==NULL;
gchar *uname=g_utf8_casefold(name,-1); /* need that to perform case-insensitive search in utf8 */
gchar *ukey=g_utf8_casefold(key,-1);
ret=strstr(uname,ukey)==NULL;
g_free(uname);
g_free(ukey);
g_free(name);
}
return ret;
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment