mirror of
https://github.com/nix-community/home-manager
synced 2024-11-23 11:39:46 +01:00
treewide: make a few more strings translatable
This commit is contained in:
parent
5f00024e75
commit
8e7a10602d
4 changed files with 77 additions and 38 deletions
|
@ -8,7 +8,7 @@ msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: Home Manager\n"
|
"Project-Id-Version: Home Manager\n"
|
||||||
"Report-Msgid-Bugs-To: https://github.com/nix-community/home-manager/issues\n"
|
"Report-Msgid-Bugs-To: https://github.com/nix-community/home-manager/issues\n"
|
||||||
"POT-Creation-Date: 2021-12-14 18:53+0100\n"
|
"POT-Creation-Date: 2022-01-02 11:55+0100\n"
|
||||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||||
|
@ -117,19 +117,19 @@ msgstr ""
|
||||||
msgid "Home Manager is uninstalled but your home.nix is left untouched."
|
msgid "Home Manager is uninstalled but your home.nix is left untouched."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: home-manager/home-manager:645
|
#: home-manager/home-manager:646
|
||||||
msgid "%s: unknown option '%s'"
|
msgid "%s: unknown option '%s'"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: home-manager/home-manager:646
|
#: home-manager/home-manager:647
|
||||||
msgid "Run '%s --help' for usage help"
|
msgid "Run '%s --help' for usage help"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: home-manager/home-manager:680
|
#: home-manager/home-manager:681
|
||||||
msgid "expire-generations expects one argument, got %d."
|
msgid "expire-generations expects one argument, got %d."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: home-manager/home-manager:702
|
#: home-manager/home-manager:703
|
||||||
msgid "Unknown command: %s"
|
msgid "Unknown command: %s"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
|
|
@ -585,21 +585,8 @@ in
|
||||||
else
|
else
|
||||||
''
|
''
|
||||||
if ! $DRY_RUN_CMD nix-env -i ${cfg.path} ; then
|
if ! $DRY_RUN_CMD nix-env -i ${cfg.path} ; then
|
||||||
cat <<EOF
|
echo
|
||||||
|
_iError $'Oops, nix-env failed to install your new Home Manager profile!\n\nPerhaps there is a conflict with a package that was installed using\n"nix-env -i"? Try running\n\n nix-env -q\n\nand if there is a conflicting package you can remove it with\n\n nix-env -e {package name}\n\nThen try activating your Home Manager configuration again.'
|
||||||
Oops, nix-env failed to install your new Home Manager profile!
|
|
||||||
|
|
||||||
Perhaps there is a conflict with a package that was installed using
|
|
||||||
'nix-env -i'? Try running
|
|
||||||
|
|
||||||
nix-env -q
|
|
||||||
|
|
||||||
and if there is a conflicting package you can remove it with
|
|
||||||
|
|
||||||
nix-env -e {package name}
|
|
||||||
|
|
||||||
Then try activating your Home Manager configuration again.
|
|
||||||
EOF
|
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
''
|
''
|
||||||
|
|
|
@ -27,17 +27,12 @@ function setupVars() {
|
||||||
declare -gr oldGenPath
|
declare -gr oldGenPath
|
||||||
fi
|
fi
|
||||||
|
|
||||||
$VERBOSE_ECHO "Sanity checking oldGenNum and oldGenPath"
|
$VERBOSE_RUN _i "Sanity checking oldGenNum and oldGenPath"
|
||||||
if [[ -v oldGenNum && ! -v oldGenPath
|
if [[ -v oldGenNum && ! -v oldGenPath
|
||||||
|| ! -v oldGenNum && -v oldGenPath ]]; then
|
|| ! -v oldGenNum && -v oldGenPath ]]; then
|
||||||
errorEcho "Invalid profile number and current profile values! These"
|
_i $'The previous generation number and path are in conflict! These\nmust be either both empty or both set but are now set to\n\n \'%s\' and \'%s\'\n\nIf you don\'t mind losing previous profile generations then\nthe easiest solution is probably to run\n\n rm %s/home-manager*\n rm %s/current-home\n\nand trying home-manager switch again. Good luck!' \
|
||||||
errorEcho "must be either both empty or both set but are now set to"
|
"${oldGenNum:-}" "${oldGenPath:-}" \
|
||||||
errorEcho " '${oldGenNum:-}' and '${oldGenPath:-}'"
|
"$profilesPath" "$gcPath"
|
||||||
errorEcho "If you don't mind losing previous profile generations then"
|
|
||||||
errorEcho "the easiest solution is probably to run"
|
|
||||||
errorEcho " rm $profilesPath/home-manager*"
|
|
||||||
errorEcho " rm $gcPath/current-home"
|
|
||||||
errorEcho "and trying home-manager switch again. Good luck!"
|
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
@ -45,34 +40,35 @@ function setupVars() {
|
||||||
if [[ -v VERBOSE ]]; then
|
if [[ -v VERBOSE ]]; then
|
||||||
export VERBOSE_ECHO=echo
|
export VERBOSE_ECHO=echo
|
||||||
export VERBOSE_ARG="--verbose"
|
export VERBOSE_ARG="--verbose"
|
||||||
|
export VERBOSE_RUN=""
|
||||||
else
|
else
|
||||||
export VERBOSE_ECHO=true
|
export VERBOSE_ECHO=true
|
||||||
export VERBOSE_ARG=""
|
export VERBOSE_ARG=""
|
||||||
|
export VERBOSE_RUN=true
|
||||||
fi
|
fi
|
||||||
|
|
||||||
_i "Starting Home Manager activation"
|
_i "Starting Home Manager activation"
|
||||||
|
|
||||||
# Verify that we can connect to the Nix store and/or daemon. This will
|
# Verify that we can connect to the Nix store and/or daemon. This will
|
||||||
# also create the necessary directories in profiles and gcroots.
|
# also create the necessary directories in profiles and gcroots.
|
||||||
$VERBOSE_ECHO "Sanity checking Nix"
|
$VERBOSE_RUN _i "Sanity checking Nix"
|
||||||
nix-build --expr '{}' --no-out-link
|
nix-build --expr '{}' --no-out-link
|
||||||
|
|
||||||
setupVars
|
setupVars
|
||||||
|
|
||||||
if [[ -v DRY_RUN ]] ; then
|
if [[ -v DRY_RUN ]] ; then
|
||||||
echo "This is a dry run"
|
_i "This is a dry run"
|
||||||
export DRY_RUN_CMD=echo
|
export DRY_RUN_CMD=echo
|
||||||
else
|
else
|
||||||
$VERBOSE_ECHO "This is a live run"
|
$VERBOSE_RUN _i "This is a live run"
|
||||||
export DRY_RUN_CMD=""
|
export DRY_RUN_CMD=""
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -v VERBOSE ]]; then
|
if [[ -v VERBOSE ]]; then
|
||||||
echo -n "Using Nix version: "
|
_i 'Using Nix version: %s' "$(nix-env --version)"
|
||||||
nix-env --version
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
$VERBOSE_ECHO "Activation variables:"
|
$VERBOSE_RUN _i "Activation variables:"
|
||||||
if [[ -v oldGenNum ]] ; then
|
if [[ -v oldGenNum ]] ; then
|
||||||
$VERBOSE_ECHO " oldGenNum=$oldGenNum"
|
$VERBOSE_ECHO " oldGenNum=$oldGenNum"
|
||||||
$VERBOSE_ECHO " oldGenPath=$oldGenPath"
|
$VERBOSE_ECHO " oldGenPath=$oldGenPath"
|
||||||
|
|
|
@ -8,7 +8,7 @@ msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: Home Manager Modules\n"
|
"Project-Id-Version: Home Manager Modules\n"
|
||||||
"Report-Msgid-Bugs-To: https://github.com/nix-community/home-manager/issues\n"
|
"Report-Msgid-Bugs-To: https://github.com/nix-community/home-manager/issues\n"
|
||||||
"POT-Creation-Date: 2021-12-13 00:45+0100\n"
|
"POT-Creation-Date: 2022-01-02 11:55+0100\n"
|
||||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||||
|
@ -33,10 +33,66 @@ msgstr ""
|
||||||
msgid "No change so reusing latest profile generation %s"
|
msgid "No change so reusing latest profile generation %s"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: modules/home-environment.nix:633
|
#: modules/home-environment.nix:589
|
||||||
|
msgid ""
|
||||||
|
"Oops, nix-env failed to install your new Home Manager profile!\n"
|
||||||
|
"\n"
|
||||||
|
"Perhaps there is a conflict with a package that was installed using\n"
|
||||||
|
"\"nix-env -i\"? Try running\n"
|
||||||
|
"\n"
|
||||||
|
" nix-env -q\n"
|
||||||
|
"\n"
|
||||||
|
"and if there is a conflicting package you can remove it with\n"
|
||||||
|
"\n"
|
||||||
|
" nix-env -e {package name}\n"
|
||||||
|
"\n"
|
||||||
|
"Then try activating your Home Manager configuration again."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: modules/home-environment.nix:620
|
||||||
msgid "Activating %s"
|
msgid "Activating %s"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: modules/lib-bash/activation-init.sh:53
|
#: modules/lib-bash/activation-init.sh:30
|
||||||
|
msgid "Sanity checking oldGenNum and oldGenPath"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: modules/lib-bash/activation-init.sh:33
|
||||||
|
msgid ""
|
||||||
|
"The previous generation number and path are in conflict! These\n"
|
||||||
|
"must be either both empty or both set but are now set to\n"
|
||||||
|
"\n"
|
||||||
|
" '%s' and '%s'\n"
|
||||||
|
"\n"
|
||||||
|
"If you don't mind losing previous profile generations then\n"
|
||||||
|
"the easiest solution is probably to run\n"
|
||||||
|
"\n"
|
||||||
|
" rm %s/home-manager*\n"
|
||||||
|
" rm %s/current-home\n"
|
||||||
|
"\n"
|
||||||
|
"and trying home-manager switch again. Good luck!"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: modules/lib-bash/activation-init.sh:50
|
||||||
msgid "Starting Home Manager activation"
|
msgid "Starting Home Manager activation"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: modules/lib-bash/activation-init.sh:54
|
||||||
|
msgid "Sanity checking Nix"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: modules/lib-bash/activation-init.sh:60
|
||||||
|
msgid "This is a dry run"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: modules/lib-bash/activation-init.sh:63
|
||||||
|
msgid "This is a live run"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: modules/lib-bash/activation-init.sh:68
|
||||||
|
msgid "Using Nix version: %s"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: modules/lib-bash/activation-init.sh:71
|
||||||
|
msgid "Activation variables:"
|
||||||
|
msgstr ""
|
||||||
|
|
Loading…
Reference in a new issue