Updating l10n stuff before removing it.

This commit is contained in:
Daniel Baumann 2012-06-05 20:34:13 +02:00
parent 2c5004a358
commit 46f13db55a
5 changed files with 1855 additions and 2893 deletions

View File

@ -13,11 +13,11 @@ Echo ()
STRING="${1}"
shift
if [ "${_L10N}" = "false" ]
if [ "${_L10N}" = "true" ]
then
printf "${STRING}\n" "${@}"
else
printf "$(eval_gettext "${STRING}")" "${@}"; echo;
else
printf "${STRING}\n" "${@}"
fi
}
@ -28,11 +28,11 @@ Echo_debug ()
STRING="${1}"
shift
if [ "${_L10N}" = "false" ]
if [ "${_L10N}" = "true" ]
then
printf "D: ${STRING}\n" "${@}"
else
printf "D: $(eval_gettext "${STRING}")" "${@}"; echo;
else
printf "D: ${STRING}\n" "${@}"
fi
fi
}
@ -44,11 +44,11 @@ Echo_debug_running ()
STRING="${1}"
shift
if [ "${_L10N}" = "false" ]
if [ "${_L10N}" = "true" ]
then
printf "D: ${STRING}" "${@}"
else
printf "D: $(eval_gettext "${STRING}")" "${@}"
else
printf "D: ${STRING}" "${@}"
fi
if [ "${_COLOR}" = "false" ]
@ -72,11 +72,11 @@ Echo_error ()
printf "${RED}E${NO_COLOR}:"
fi
if [ "${_L10N}" = "false" ]
if [ "${_L10N}" = "true" ]
then
printf " ${STRING}\n" "${@}" >&2
else
(printf " $(eval_gettext "${STRING}")" "${@}"; echo;) >&2
else
printf " ${STRING}\n" "${@}" >&2
fi
}
@ -94,11 +94,11 @@ Echo_message ()
printf "${WHITE}P${NO_COLOR}:"
fi
if [ "${_L10N}" = "false" ]
if [ "${_L10N}" = "true" ]
then
printf " ${STRING}\n" "${@}"
else
printf " $(eval_gettext "${STRING}")" "${@}"; echo;
else
printf " ${STRING}\n" "${@}"
fi
fi
}
@ -117,18 +117,18 @@ Echo_message_running ()
printf "${WHITE}P${NO_COLOR}:"
fi
if [ "${_L10N}" = "false" ]
if [ "${_L10N}" = "true" ]
then
printf " ${STRING}" "${@}"
else
printf " $(eval_gettext "${STRING}")" "${@}";
else
printf " ${STRING}" "${@}"
fi
if [ "${_COLOR}" = "false" ]
if [ "${_COLOR}" = "true" ]
then
printf "..."
else
printf "... ${YELLOW}${BLINK}running${NO_COLOR}"
else
printf "..."
fi
fi
}
@ -140,11 +140,11 @@ Echo_verbose ()
STRING="${1}"
shift
if [ "${_L10N}" = "false" ]
if [ "${_L10N}" = "true" ]
then
printf "I: ${STRING}\n" "${@}"
else
printf "I: $(eval_gettext "${STRING}")" "${@}"; echo;
else
printf "I: ${STRING}\n" "${@}"
fi
fi
}
@ -156,18 +156,18 @@ Echo_verbose_running ()
STRING="${1}"
shift
if [ "${_L10N}" = "false" ]
if [ "${_L10N}" = "true" ]
then
printf "I: ${STRING}" "${@}"
else
printf "I: $(eval_gettext "${STRING}")" "${@}";
else
printf "I: ${STRING}" "${@}"
fi
if [ "${_COLOR}" = "false" ]
if [ "${_COLOR}" = "true" ]
then
printf "..."
else
printf "... ${YELLOW}${BLINK}running${NO_COLOR}"
else
printf "..."
fi
fi
}
@ -184,11 +184,11 @@ Echo_warning ()
printf "${YELLOW}W${NO_COLOR}:"
fi
if [ "${_L10N}" = "false" ]
if [ "${_L10N}" = "true" ]
then
printf " ${STRING}\n" "${@}"
else
printf " $(eval_gettext "${STRING}")" "${@}"; echo;
else
printf " ${STRING}\n" "${@}"
fi
}

View File

@ -1,7 +1,7 @@
# Makefile to manage gettext files
DOMAIN=live-helper
ECHO_FUNCTIONS="Echo_message Echo_verbose Echo_warning Echo_debug Echo_error Echo_breakage Echo"
DOMAIN=live-build
ECHO_FUNCTIONS="Echo Echo_debug Echo_debug_running Echo_error Echo_message Echo_message_running Echo_verbose Echo_verbose_running Echo_warning Echo_status Echo_done Echo_file Echo_breakage"
POFILES=$(wildcard *.po)
MOFILES=$(patsubst %.po,%.mo,$(POFILES))
@ -20,7 +20,7 @@ XGETTEXT_KEYWORDS=$(shell echo $(ECHO_FUNCTIONS) |sed -e 's,\S\+,-k&,g')
$(DOMAIN).pot: $(GETTEXTFILES)
$(shell xgettext $(XGETTEXT_KEYWORDS) -L Shell -o $(DOMAIN).pot $(GETTEXTFILES))
update-po: live-helper.pot
update-po: live-build.pot
-for lang in $(LINGUAS); do\
msgmerge -U $$lang.po $(DOMAIN).pot; \
done
@ -34,6 +34,6 @@ install: $(MOFILES)
all: update-po $(MOFILES)
clean:
- rm *.mo *~
rm -f *.mo *~
.PHONY: update-po

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff