Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgesStavracas committed Oct 10, 2023
1 parent 6c0cb0e commit f4ffa77
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions common/flatpak-dir.c
Original file line number Diff line number Diff line change
Expand Up @@ -16411,6 +16411,10 @@ get_user_locales (FlatpakDir *self)
get_locale_langs_from_accounts_dbus_for_user (accounts_proxy, langs, getuid ());
g_ptr_array_add (langs, NULL);

g_message ("User locales has %u locales", langs->len);
for (size_t i = 0; i < langs->len; i++)
g_message ("%s", g_ptr_array_index (langs, i));

g_once_init_leave (&cached, langs);
}

Expand Down
4 changes: 4 additions & 0 deletions tests/testlibrary.c
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,10 @@ test_languages_config (void)

value = flatpak_installation_get_default_languages (inst, &error);
g_assert_no_error (error);

for (size_t i = 0; value && value[i]; i++)
g_message ("language: %s", value[i]);

g_assert_cmpstr (value[0], ==, "en");
g_assert_null (value[1]);

Expand Down

0 comments on commit f4ffa77

Please sign in to comment.