Merge lp:~mvo/snappy/snappy-i18n-for-go-flags into lp:~snappy-dev/snappy/snappy-moved-to-github
Proposed by
Michael Vogt
on 2015-07-08
| Status: | Merged |
|---|---|
| Approved by: | John Lenton on 2015-07-24 |
| Approved revision: | 572 |
| Merged at revision: | 604 |
| Proposed branch: | lp:~mvo/snappy/snappy-i18n-for-go-flags |
| Merge into: | lp:~snappy-dev/snappy/snappy-moved-to-github |
| Diff against target: |
696 lines (+226/-47) 18 files modified
cmd/snappy/cmd_build.go (+2/-1) cmd/snappy/cmd_config.go (+5/-3) cmd/snappy/cmd_hwassign.go (+5/-3) cmd/snappy/cmd_hwinfo.go (+3/-2) cmd/snappy/cmd_hwunassign.go (+5/-3) cmd/snappy/cmd_info.go (+5/-3) cmd/snappy/cmd_install.go (+9/-5) cmd/snappy/cmd_list.go (+4/-2) cmd/snappy/cmd_login.go (+3/-2) cmd/snappy/cmd_purge.go (+3/-2) cmd/snappy/cmd_remove.go (+3/-2) cmd/snappy/cmd_rollback.go (+5/-3) cmd/snappy/cmd_search.go (+2/-1) cmd/snappy/cmd_set_test.go (+0/-10) cmd/snappy/cmd_update.go (+5/-3) cmd/snappy/common.go (+27/-1) cmd/snappy/common_test.go (+76/-0) po/snappy.pot (+64/-1) |
| To merge this branch: | bzr merge lp:~mvo/snappy/snappy-i18n-for-go-flags |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| John Lenton | 2015-07-08 | Approve on 2015-07-24 | |
|
Review via email:
|
|||
Commit Message
Make all go-flag options translatable.
Description of the Change
This branch makes all the go-flag optios we use translatable. Its a bit ugly because we need to iterate over the options for each command to find the right one, but AFAICT this is the only way with go-flags.
To post a comment you must log in.
| Sergio Schvezov (sergiusens) wrote : | # |
| Michael Vogt (mvo) wrote : | # |
I'm happy to remove the "orPanic()", breakage should be very obvious as this is all called in init() so if there is a typo on first program start we get the panic.
lp:~mvo/snappy/snappy-i18n-for-go-flags
updated
on 2015-07-09
- 571. By Michael Vogt on 2015-07-09
-
rename addOptionDescri
ptionOrPanic to addOptionDescri ption (it will still panic if the long option is not found). thanks Sergio!
| Michael Vogt (mvo) wrote : | # |
The branch is now updated and does not use "orPanic()" anymore.
lp:~mvo/snappy/snappy-i18n-for-go-flags
updated
on 2015-07-24
- 572. By Michael Vogt on 2015-07-24
-
cmd/snappy/
cmd_update. go: fix incorrect copy/paste
review:
Approve


looks good, one small itsy bitsy iota of a problem