mirror of
https://github.com/labwc/labwc.git
synced 2025-11-04 13:30:07 -05:00
desktop-entry: localize application names
This commit localizes application names in the window switcher set via 'desktop_entry_name' or '%n' specifier.
This commit is contained in:
parent
885919fc5f
commit
fdc8537eee
1 changed files with 6 additions and 1 deletions
|
|
@ -81,7 +81,12 @@ desktop_entry_init(struct server *server)
|
||||||
sfdo_icon_ctx_set_log_handler(
|
sfdo_icon_ctx_set_log_handler(
|
||||||
sfdo->icon_ctx, level, log_handler, "sfdo-icon");
|
sfdo->icon_ctx, level, log_handler, "sfdo-icon");
|
||||||
|
|
||||||
sfdo->desktop_db = sfdo_desktop_db_load(sfdo->desktop_ctx, NULL);
|
char *locale = NULL;
|
||||||
|
#if HAVE_NLS
|
||||||
|
locale = setlocale(LC_ALL, "");
|
||||||
|
#endif
|
||||||
|
|
||||||
|
sfdo->desktop_db = sfdo_desktop_db_load(sfdo->desktop_ctx, locale);
|
||||||
if (!sfdo->desktop_db) {
|
if (!sfdo->desktop_db) {
|
||||||
goto err_desktop_db;
|
goto err_desktop_db;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue