diff --git a/.gitignore b/.gitignore index e471371c5..0a4a83fe0 100644 --- a/.gitignore +++ b/.gitignore @@ -53,8 +53,8 @@ freeipa2-dev-doc /daemons/ipa-version.h /daemons/test-driver -/install/po/test.po -/install/po/test_locale/xh_ZA/LC_MESSAGES/ipa.mo +/po/test.po +/po/test_locale/xh_ZA/LC_MESSAGES/ipa.mo !/install/ui/doc/Makefile.in /install/ui/release /install/ui/css/ipa.css diff --git a/Makefile b/Makefile index cf85ac76b..280cc7f6b 100644 --- a/Makefile +++ b/Makefile @@ -113,7 +113,7 @@ client-install: client client-dirs @for subdir in $(CLIENTDIRS); do \ (cd $$subdir && $(MAKE) install) || exit 1; \ done - cd install/po && $(MAKE) install || exit 1; + cd po && $(MAKE) install || exit 1; @for subdir in $(CLIENTPYDIRS); do \ if [ "$(DESTDIR)" = "" ]; then \ (cd $$subdir && $(PYTHON) setup.py install); \ @@ -146,7 +146,7 @@ pylint: bootstrap-autogen PYTHONPATH=. pylint --rcfile=pylintrc $(PYLINTFLAGS) $$FILES || $(LINT_IGNORE_FAIL) po-validate: - $(MAKE) -C install/po validate-src-strings || $(LINT_IGNORE_FAIL) + $(MAKE) -C po validate-src-strings || $(LINT_IGNORE_FAIL) jslint: cd install/ui; jsl -nologo -nosummary -nofilelisting -conf jsl.conf || $(LINT_IGNORE_FAIL) diff --git a/configure.ac b/configure.ac index d4ea256ec..82dd150e3 100644 --- a/configure.ac +++ b/configure.ac @@ -368,11 +368,11 @@ AC_CONFIG_FILES([ install/tools/Makefile install/tools/man/Makefile install/updates/Makefile - install/po/Makefile install/restart_scripts/Makefile install/wsgi/Makefile install/oddjob/Makefile ipatests/man/Makefile + po/Makefile util/Makefile ]) diff --git a/install/Makefile.am b/install/Makefile.am index d13ecb701..c56d7265e 100644 --- a/install/Makefile.am +++ b/install/Makefile.am @@ -13,7 +13,6 @@ SUBDIRS = \ ui \ tools \ updates \ - po \ restart_scripts \ wsgi \ oddjob \ diff --git a/ipatests/i18n.py b/ipatests/i18n.py index 64e078fa8..1f48e65bb 100755 --- a/ipatests/i18n.py +++ b/ipatests/i18n.py @@ -22,7 +22,7 @@ from __future__ import print_function # WARNING: Do not import ipa modules, this is also used as a -# stand-alone script (invoked from install/po Makefile). +# stand-alone script (invoked from po Makefile). import optparse import sys import gettext diff --git a/install/po/LINGUAS b/po/LINGUAS similarity index 100% rename from install/po/LINGUAS rename to po/LINGUAS diff --git a/install/po/Makefile.in b/po/Makefile.in similarity index 92% rename from install/po/Makefile.in rename to po/Makefile.in index 6ab26dacc..7db76becd 100644 --- a/install/po/Makefile.in +++ b/po/Makefile.in @@ -16,7 +16,7 @@ MSGMERGE = @MSGMERGE@ MSGCMP = @MSGCMP@ MSGATTRIB = @MSGATTRIB@ TX = @TX@ -IPA_TEST_I18N = ../../ipatests/i18n.py +IPA_TEST_I18N = ../ipatests/i18n.py DOMAIN = @GETTEXT_DOMAIN@ MSGMERGE_UPDATE = $(MSGMERGE) --update @@ -36,9 +36,9 @@ po_files = $(patsubst %, %.po, $(languages)) mo_files = $(patsubst %.po, %.mo, $(po_files)) po_count=$(words $(po_files)) -PY_FILES = $(shell cd ../..; git ls-files | grep -v -e "^ipatests/" -e "^doc/" -e "^install/po/" -e "^ipapython/test/" -e "setup.py" | grep "\.py$$" | tr '\n' ' '; cd install/po) -C_FILES = $(shell cd ../..; git ls-files | grep "\.c$$" | tr '\n' ' '; cd install/po) -H_FILES = $(shell cd ../..; git ls-files | grep "\.h$$" | tr '\n' ' '; cd install/po) +PY_FILES = $(shell cd ..; git ls-files | grep -v -e "^ipatests/" -e "^doc/" -e "^po/" -e "^ipapython/test/" -e "setup.py" | grep "\.py$$" | tr '\n' ' '; cd po) +C_FILES = $(shell cd ..; git ls-files | grep "\.c$$" | tr '\n' ' '; cd po) +H_FILES = $(shell cd ..; git ls-files | grep "\.h$$" | tr '\n' ' '; cd po) # Please keep this list sorted! PY_EXPLICIT_FILES = \ @@ -122,7 +122,7 @@ create-po: $(DOMAIN).pot pull-po: - cd ../..; $(TX) pull -f + cd ..; $(TX) pull -f $(MAKE) strip-po merge-po: update-pot @@ -133,14 +133,14 @@ update-po: merge-po update-pot: @rm -f $(DOMAIN).pot.update - @pushd ../.. ; \ + @pushd .. ; \ $(XGETTEXT) $(XGETTEXT_OPTIONS) \ - --output install/po/$(DOMAIN).pot.update \ + --output po/$(DOMAIN).pot.update \ --language="python" \ $(PYTHON_POTFILES) \ && \ $(XGETTEXT) $(XGETTEXT_OPTIONS) \ - --output install/po/$(DOMAIN).pot.update \ + --output po/$(DOMAIN).pot.update \ --join-existing \ --language="c" \ --from-code="UTF-8" \ diff --git a/install/po/README b/po/README similarity index 100% rename from install/po/README rename to po/README diff --git a/install/po/bn_IN.po b/po/bn_IN.po similarity index 100% rename from install/po/bn_IN.po rename to po/bn_IN.po diff --git a/install/po/ca.po b/po/ca.po similarity index 100% rename from install/po/ca.po rename to po/ca.po diff --git a/install/po/contributing_translators.txt b/po/contributing_translators.txt similarity index 100% rename from install/po/contributing_translators.txt rename to po/contributing_translators.txt diff --git a/install/po/cs.po b/po/cs.po similarity index 100% rename from install/po/cs.po rename to po/cs.po diff --git a/install/po/de.po b/po/de.po similarity index 100% rename from install/po/de.po rename to po/de.po diff --git a/install/po/es.po b/po/es.po similarity index 100% rename from install/po/es.po rename to po/es.po diff --git a/install/po/eu.po b/po/eu.po similarity index 100% rename from install/po/eu.po rename to po/eu.po diff --git a/install/po/fr.po b/po/fr.po similarity index 100% rename from install/po/fr.po rename to po/fr.po diff --git a/install/po/hi.po b/po/hi.po similarity index 100% rename from install/po/hi.po rename to po/hi.po diff --git a/install/po/hu.po b/po/hu.po similarity index 100% rename from install/po/hu.po rename to po/hu.po diff --git a/install/po/id.po b/po/id.po similarity index 100% rename from install/po/id.po rename to po/id.po diff --git a/install/po/ipa.pot b/po/ipa.pot similarity index 100% rename from install/po/ipa.pot rename to po/ipa.pot diff --git a/install/po/ja.po b/po/ja.po similarity index 100% rename from install/po/ja.po rename to po/ja.po diff --git a/install/po/kn.po b/po/kn.po similarity index 100% rename from install/po/kn.po rename to po/kn.po diff --git a/install/po/mr.po b/po/mr.po similarity index 100% rename from install/po/mr.po rename to po/mr.po diff --git a/install/po/nl.po b/po/nl.po similarity index 100% rename from install/po/nl.po rename to po/nl.po diff --git a/install/po/pl.po b/po/pl.po similarity index 100% rename from install/po/pl.po rename to po/pl.po diff --git a/install/po/pt_BR.po b/po/pt_BR.po similarity index 100% rename from install/po/pt_BR.po rename to po/pt_BR.po diff --git a/install/po/ru.po b/po/ru.po similarity index 100% rename from install/po/ru.po rename to po/ru.po diff --git a/install/po/sk.po b/po/sk.po similarity index 100% rename from install/po/sk.po rename to po/sk.po diff --git a/install/po/tg.po b/po/tg.po similarity index 100% rename from install/po/tg.po rename to po/tg.po diff --git a/install/po/uk.po b/po/uk.po similarity index 100% rename from install/po/uk.po rename to po/uk.po diff --git a/install/po/zh_CN.po b/po/zh_CN.po similarity index 100% rename from install/po/zh_CN.po rename to po/zh_CN.po