Merge lp://qastaging/~unity-api-team/unity-scope-snappy/setup_translations into lp://qastaging/~unity-api-team/unity-scope-snappy/trunk

Proposed by Antti Kaijanmäki
Status: Needs review
Proposed branch: lp://qastaging/~unity-api-team/unity-scope-snappy/setup_translations
Merge into: lp://qastaging/~unity-api-team/unity-scope-snappy/trunk
Prerequisite: lp://qastaging/~unity-api-team/unity-scope-snappy/add_gettext_to_vendors
Diff against target: 236 lines (+134/-0)
12 files modified
.bzrignore (+2/-0)
Makefile (+1/-0)
README.dev (+7/-0)
debian/control (+2/-0)
debian/rules (+2/-0)
debian/unity-scope-snappy.install (+1/-0)
po/Makefile (+14/-0)
po/fi_FI.UTF-8.po (+23/-0)
po/sv_SV.UTF-8.po (+22/-0)
po/unity-scope-snappy.pot (+21/-0)
po/update-unity-scopes-snappy-pot.sh (+32/-0)
store/main.go (+7/-0)
To merge this branch: bzr merge lp://qastaging/~unity-api-team/unity-scope-snappy/setup_translations
Reviewer Review Type Date Requested Status
Kyle Fazzari (community) Needs Fixing
PS Jenkins bot (community) continuous-integration Approve
Review via email: mp+269292@code.qastaging.launchpad.net

Commit message

Set up gettext translations in the tree and packaging.

Description of the change

To post a comment you must log in.
Revision history for this message
Antti Kaijanmäki (kaijanmaki) wrote :

the dummy string and translations will be removed by the next MP which will have the proper strings marked for translation.

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
46. By Antti Kaijanmäki

merge trunk.

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
47. By Antti Kaijanmäki

merge prerequisite

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Kyle Fazzari (kyrofa) wrote :

The `make install` command shouldn't be repurposed here. I can understand the misunderstanding since golang does things a little strangely, but `make install` simply runs `go install` for a few packages, which simply places things in $GOPATH/bin. This rule is simply a convenience function to save some typing, and isn't actually used by the debian/rules, which means your .mo injection doesn't actually result in .mo files being placed in the .deb. Not only that, but your injection breaks the convenience function by requiring the undocumented definition of $BUILDDIR.

Instead of using the install rule, let's add a convenience Makefile rule for generating the .mo files, and place the generated files somewhere in the codebase (even leaving them in po/ is fine, or take a PREFIX or something), and call it from debian/rules. Then place it using the debian .install file.

A few other comments are inline.

review: Needs Fixing

Unmerged revisions

47. By Antti Kaijanmäki

merge prerequisite

46. By Antti Kaijanmäki

merge trunk.

45. By Antti Kaijanmäki

add initial POC to store/main.go

44. By Antti Kaijanmäki

debian/unity-scope-snappy.install

43. By Antti Kaijanmäki

debian/rules

42. By Antti Kaijanmäki

debian/control

41. By Antti Kaijanmäki

Makefile

40. By Antti Kaijanmäki

.bzrignore

39. By Antti Kaijanmäki

po/update-unity-scopes-snappy-pot.sh

38. By Antti Kaijanmäki

test .pot

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches