MKINSTALLDIRS = @MKINSTALLDIRS@
mkinstalldirs = $(SHELL) $(MKINSTALLDIRS)
+AWK = @AWK@
+
GMSGFMT = @GMSGFMT@
MSGFMT = @MSGFMT@
XGETTEXT = @XGETTEXT@
rm -f $@-t \
&& ( cd $(top_srcdir); \
grep -l "_(\".*\")" `find src \( -name '*.[Cch]' -o -name '*.C.in' \) -print` |\
- sed -e '/xforms.forms/d' | grep -v -e "src/support/path_defines.C$$" |\
+ sed -e '/xforms.forms/d'| grep -v -e "src/support/package.C$$" |\
sort | uniq ) > $@-t \
&& mv $@-t $@
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);\
gsub(/&/, "\\&", line); \
gsub(/</, "<", line); \
gsub(/>/, ">", line); \
- gsub(/\"/, "\\\"", line); \
+ gsub(/"/, "\\\"", line); \
if (length(line) > 0) {\
printf("#: %s:%d\nmsgid \"%s\"\nmsgstr \"\"\n\n",\
fixupfilename(), FNR, line); \
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);\
/^Style / { \
line=$$0; \
sub(/Style /, "", 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); \
+ if (line != "") \
+ printf("#: %s:%d\nmsgid \"%s\"\nmsgstr \"\"\n\n", \
+ fixupfilename(), FNR, line); \
+ } \
/GuiName/ { \
line=$$0; \
sub(/[[:space:]]*GuiName[[:space:]]*/, "", line); \
printf("#: %s:%d\nmsgid \"%s\"\nmsgstr \"\"\n\n", \
fixupfilename(), FNR, line); \
}' \
- ${top_srcdir}/lib/layouts/*.layout ${top_srcdir}/lib/layouts/*.inc > $@
+ ${top_srcdir}/lib/layouts/*.layout ${top_srcdir}/lib/layouts/*.inc \
+ | sed 's/\\/\\\\/g' > $@
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);\
{ \
match($$0,"\"[^\"]*\""); \
lang=substr($$0,RSTART,RLENGTH); \
- gsub(/\"/, "", lang); \
+ gsub(/"/, "", lang); \
printf("#: %s:%d\nmsgid \"%s\"\nmsgstr \"\"\n\n", \
fixupfilename(), FNR, lang); \
}' \
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);\
}' \
${top_srcdir}/lib/ui/*.ui > $@
+i18n.php: $(POFILES)
+ (cd $(srcdir) ; ./postats.sh $(POFILES)) >$@
+
force:
# Tell versions [3.59,3.63) of GNU make not to export all variables.