dh_translations’ support for cmake is not flexible enough
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pkgbinarymangler (Ubuntu) |
Fix Released
|
Medium
|
Martin Pitt |
Bug Description
Looking at /usr/bin/
set (GETTEXT_PACKAGE "domain")
(replace 'domain' with the actual translation domain)
Specifically, it expects a whitespace between "set" and the following opening parenthesis, so if I omit it the domain is not extracted. It would be nice to make this whitespace optional (to allow for more consistency in CMakeLists.txt where no whitespace is used between function name and following opening parenthesis).
It also expects the domain to be surrounded by double-quotes, but this is not strictly necessary in the cmake syntax, strings may be defined without enclosing them in double quotes. So it would also be nice to make those double-quotes optional.
I.e., allow for something like this:
set(
And a slightly related wishlist item: when using cmake, it’s not uncommon to delegate specific logic to a CMakeLists.txt in a subfolder. Typically, I would be tempted to set GETTEXT_PACKAGE in po/CMakeLists.txt, not in the top-level CMakeLists.txt.
It would be nice if dh_translations looked for that string in both places.
ProblemType: Bug
DistroRelease: Ubuntu 13.04
Package: dh-translations 117
ProcVersionSign
Uname: Linux 3.8.0-21-generic x86_64
NonfreeKernelMo
ApportVersion: 2.9.2-0ubuntu8
Architecture: amd64
CheckboxSubmission: 2c7995ffdf051a6
CheckboxSystem: 7e42599bda39ea7
Date: Fri May 17 12:51:36 2013
EcryptfsInUse: Yes
InstallationDate: Installed on 2013-03-26 (51 days ago)
InstallationMedia: Ubuntu 13.04 "Raring Ringtail" - Alpha amd64+mac (20130326)
MarkForUpload: True
PackageArchitec
SourcePackage: pkgbinarymangler
UpgradeStatus: No upgrade log present (probably fresh install)
Related branches
Changed in pkgbinarymangler (Ubuntu): | |
status: | New → In Progress |
importance: | Undecided → Medium |
assignee: | nobody → Martin Pitt (pitti) |
I replicated both problems in test cases, and fixed this in bzr. Thanks!