Permalink
Browse files

added transifex support to cmake (gettext-export, gettext-update)

  • Loading branch information...
Jan Silhan Ales Kozumplik
Jan Silhan authored and Ales Kozumplik committed Mar 3, 2014
1 parent 311004d commit 5581bbf54d593ae96ced4e4ca7517caf3a5878e5
Showing with 20 additions and 481 deletions.
  1. +8 −0 .tx/config
  2. +1 −0 CMakeLists.txt
  3. +1 −1 dnf/cli/cli.py
  4. +10 −0 po/CMakeLists.txt
  5. +0 −42 po/POTFILES.in
  6. +0 −1 po/POTFILES.skip
  7. 0 po/{yum.pot → dnf.pot}
  8. +0 −437 po/pygettext.py
View
@@ -0,0 +1,8 @@
+[main]
+host = https://www.transifex.com
+
+[dnf.master]
+file_filter = po/<lang>.po
+host = https://www.transifex.com/projects/p/dnf/resource/master/
+source_file = po/dnf.pot
+source_lang = en
View
@@ -26,6 +26,7 @@ ADD_SUBDIRECTORY (dnf)
ADD_SUBDIRECTORY (bin)
ADD_SUBDIRECTORY (etc)
ADD_SUBDIRECTORY (doc)
+ADD_SUBDIRECTORY (po)
ENABLE_TESTING()
ADD_SUBDIRECTORY (tests)
View
@@ -211,7 +211,7 @@ def do_transaction(self):
total_cb = self.output.download_callback_total_cb
self.download_packages(downloadpkgs, self.output.progress, total_cb)
except dnf.exceptions.DownloadError as e:
- errstring = _('Error downloading packages:\n %s' % e)
+ errstring = _('Error downloading packages:\n %s') % e
raise dnf.exceptions.Error(errstring)
# Check GPG signatures
View
@@ -0,0 +1,10 @@
+# pushing/pulling translations to transifex
+ADD_CUSTOM_TARGET (gettext-export
+ find ${CMAKE_SOURCE_DIR}/../dnf -iname "*.py" |
+ xargs xgettext --from-code=UTF-8 --output=dnf.pot &&
+ tx push -s
+ COMMENT "Pushing translation source file to transifex")
+ADD_CUSTOM_TARGET (gettext-update
+ tx pull -f
+ DEPENDS gettext-export
+ COMMENT "Updating translation files from transifex")
View
@@ -1,42 +0,0 @@
-[encoding: UTF-8]
-callback.py
-cli.py
-output.py
-shell.py
-utils.py
-yumcommands.py
-yummain.py
-yum-updatesd.py
-yum/callbacks.py
-yum/comps.py
-yum/config.py
-yum/constants.py
-yum/depsolve.py
-yum/Errors.py
-yum/failover.py
-yum/i18n.py
-yum/__init__.py
-yum/logginglevels.py
-yum/mdparser.py
-yum/metalink.py
-yum/misc.py
-yum/packageSack.py
-yum/packages.py
-yum/parser.py
-yum/pgpmsg.py
-yum/plugins.py
-yum/repoMDObject.py
-yum/repos.py
-yum/rpmsack.py
-yum/rpmtrans.py
-yum/sqlitesack.py
-yum/sqlutils.py
-yum/transactioninfo.py
-yum/update_md.py
-yum/yumRepo.py
-rpmUtils/arch.py
-rpmUtils/__init__.py
-rpmUtils/miscutils.py
-rpmUtils/oldUtils.py
-rpmUtils/transaction.py
-rpmUtils/updates.py
View
@@ -1 +0,0 @@
-pygettext.py
File renamed without changes.
Oops, something went wrong.

0 comments on commit 5581bbf

Please sign in to comment.