The patch is for the vte.sh of "vte-profile" package, I extracted the vte.sh from the vte-profile RPM package. Its gettext TEXTDOMAIN is vte-profile, 2 strings is able to translate and the patch has been tested with no problems. --- Below is the patch --- --- vte_original.sh 2019-03-05 05:49:30.000000000 +0800 +++ vte.sh 2019-03-08 21:40:39.535164773 +0800 @@ -1,5 +1,6 @@ # Copyright © 2006 Shaun McCance <shaunm@xxxxxxxxx> # Copyright © 2013 Peter De Wachter <pdewacht@xxxxxxxxx> +# Copyright © 2018 Yi-Jyun Pan <pan93412@xxxxxxxxx> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -14,6 +15,10 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. +# Let's load gettext! +export TEXTDOMAIN="vte-profile" +. gettext.sh + # Not bash or zsh? [ -n "$BASH_VERSION" -o -n "$ZSH_VERSION" ] || return 0 @@ -42,7 +47,7 @@ # Print a warning so that anyone who's added this manually to his PS1 can adapt. # The function will be removed in a later version. __vte_ps1() { - echo -n "(__vte_ps1 is obsolete)" + echo -n $(eval_gettext "(__vte_ps1 is obsolete)") } __vte_osc7 () { @@ -54,7 +59,7 @@ command="${command//;/ }" local pwd='~' [ "$PWD" != "$HOME" ] && pwd=${PWD/#$HOME\//\~\/} - printf '\033]777;notify;Command completed;%s\033\\\033]0;%s@%s:%s\033\\%s' "${command}" "${USER}" "${HOSTNAME%%.*}" "${pwd}" "$(__vte_osc7)" + printf '\033]777;notify;%s;%s\033\\\033]0;%s@%s:%s\033\\%s' $(eval_gettext "Command completed.") "${command}" "${USER}" "${HOSTNAME%%.*}" "${pwd}" "$(__vte_osc7)" } case "$TERM" in _______________________________________________ devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx