Port wgettext wrapper from wutil.cpp

This introduces a string allocations on lookups of strings that are not
known at compile time; we should get rid of these allocations in future.
This commit is contained in:
Johannes Altmanninger
2024-01-01 20:39:38 +01:00
parent cd19f00531
commit 3e3441429a
6 changed files with 106 additions and 23 deletions

View File

@@ -74,6 +74,7 @@ corrosion_set_env_vars(${fish_rust_target}
"DATADIR=${CMAKE_INSTALL_FULL_DATADIR}"
"SYSCONFDIR=${CMAKE_INSTALL_FULL_SYSCONFDIR}"
"BINDIR=${CMAKE_INSTALL_FULL_BINDIR}"
"LOCALEDIR=${CMAKE_INSTALL_FULL_LOCALEDIR}"
)
# this needs an extra fish-rust due to the poor source placement