MKINSTALLDIRS = @MKINSTALLDIRS@
mkinstalldirs = $(SHELL) $(MKINSTALLDIRS)
+AWK = @AWK@
+
GMSGFMT = @GMSGFMT@
MSGFMT = @MSGFMT@
XGETTEXT = @XGETTEXT@
xforms_l10n.pot: $(top_srcdir)/src/frontends/xforms/forms/*.fd
LC_ALL=C ; export LC_ALL ; \
- awk -v top_srcdir="$(top_srcdir)" ' \
+ $(AWK) -v top_srcdir="$(top_srcdir)" ' \
function fixupfilename() \
{\
return substr(FILENAME, length(top_srcdir "/") + 1);\
qt_l10n.pot: $(top_srcdir)/src/frontends/qt2/ui/*.ui
LC_ALL=C ; export LC_ALL ; \
- awk -v top_srcdir="$(top_srcdir)" ' \
+ $(AWK) -v top_srcdir="$(top_srcdir)" ' \
function fixupfilename() \
{\
return substr(FILENAME, length(top_srcdir "/") + 1);\
layouts_l10n.pot: $(top_srcdir)/lib/layouts/*.layout $(top_srcdir)/lib/layouts/*.inc
LC_ALL=C ; export LC_ALL ; \
- awk -v top_srcdir="$(top_srcdir)" ' \
+ $(AWK) -v top_srcdir="$(top_srcdir)" ' \
function fixupfilename() \
{\
return substr(FILENAME, length(top_srcdir "/") + 1);\
sub(/Style /, "", line); \
gsub(/\"/, "", line); \
gsub(/_/, " ", line); \
- gsub(/\"/, "", line); \
- gsub(/_/, " ", line); \
printf("#: %s:%d\nmsgid \"%s\"\nmsgstr \"\"\n\n", \
fixupfilename(), FNR, line); \
} \
+ /LabelString[A-Za-z]*/ { \
+ line=$$0; \
+ sub(/[[:space:]]*LabelString[A-Za-z]*[[:space:]]*/, "", line); \
+ gsub(/"/, "", line); \
+ gsub(/\\/, "\\\\", line); \
+ if (line != "") \
+ printf("#: %s:%d\nmsgid \"%s\"\nmsgstr \"\"\n\n", \
+ fixupfilename(), FNR, line); \
+ } \
/GuiName/ { \
line=$$0; \
sub(/[[:space:]]*GuiName[[:space:]]*/, "", line); \
${top_srcdir}/lib/layouts/*.layout ${top_srcdir}/lib/layouts/*.inc > $@
languages_l10n.pot: $(top_srcdir)/lib/languages
- awk -v top_srcdir="$(top_srcdir)" ' \
+ $(AWK) -v top_srcdir="$(top_srcdir)" ' \
function fixupfilename() \
{\
return substr(FILENAME, length(top_srcdir "/") + 1);\
ui_l10n.pot: $(top_srcdir)/lib/ui/*.ui
LC_ALL=C ; export LC_ALL ; \
- awk -v top_srcdir="$(top_srcdir)" ' \
+ $(AWK) -v top_srcdir="$(top_srcdir)" ' \
function fixupfilename() \
{\
return substr(FILENAME, length(top_srcdir "/") + 1);\