Merge lp://staging/~dholbach/help-app/1423871 into lp://staging/~ubuntu-touch-coreapps-drivers/help-app/trunk

Proposed by Daniel Holbach
Status: Merged
Merged at revision: 50
Proposed branch: lp://staging/~dholbach/help-app/1423871
Merge into: lp://staging/~ubuntu-touch-coreapps-drivers/help-app/trunk
Diff against target: 610 lines (+119/-114)
14 files modified
.bzrignore (+1/-1)
HACKING (+1/-1)
Makefile (+6/-2)
edit-here/content/pages/apps.md (+0/-2)
edit-here/content/pages/faq.md (+1/-3)
edit-here/content/pages/get-in-touch.md (+0/-2)
edit-here/content/pages/index.md (+2/-4)
edit-here/generate-pot (+2/-0)
edit-here/pelicanconf.py (+7/-0)
edit-here/po/de.po (+25/-17)
edit-here/po/help.pot (+20/-46)
edit-here/theme/templates/base.html (+2/-1)
edit-here/theme/templates/page.html (+1/-0)
edit-here/translations.py (+51/-35)
To merge this branch: bzr merge lp://staging/~dholbach/help-app/1423871
Reviewer Review Type Date Requested Status
Daniel Holbach (community) Approve
David Planella Needs Fixing
Nicholas Skaggs (community) Needs Information
Review via email: mp+250467@code.staging.launchpad.net
To post a comment you must log in.
Revision history for this message
Nicholas Skaggs (nskaggs) wrote :

Our Makefile assumes a dirty build:

bzr ignored | cut -d' ' -f1 | xargs rm -r
rm: missing operand
Try 'rm --help' for more information.
Makefile:4: recipe for target 'clean' failed
make: [clean] Error 123 (ignored)

As for this merge, it appears you cloned the english into the german translation? It does indeed generate the proper files, but the linking seems to be off.

review: Needs Information
59. By Daniel Holbach

fix clean target

Revision history for this message
Daniel Holbach (dholbach) wrote :

The clean target in the makefile would ignore failures of the rm call. (Note the '-' at the start of the line.) Still I just pushed a cleaner version of the code.

I'll look into the linking next.

60. By Daniel Holbach

update .pot file

61. By Daniel Holbach

Remove erroneous 'Title' from generated markdown

62. By Daniel Holbach

make cleanup more robust and smaller

63. By Daniel Holbach

update .pot file

64. By Daniel Holbach

catch NotADirectoryError error more appropriately

Revision history for this message
Daniel Holbach (dholbach) wrote :

Hum, so I have problems figuring out how to make the linking work properly. According to http://docs.getpelican.com/en/latest/content.html we should be all set.

65. By Daniel Holbach

update German translation

66. By Daniel Holbach

fix typo

67. By Daniel Holbach

mention ubuntu-html5-ui-toolkit as a prerequisite

Revision history for this message
Daniel Holbach (dholbach) wrote :

Can we please get this merged? I'll file a separate bug for the broken links.

Revision history for this message
Daniel Holbach (dholbach) wrote :

I filed bug 1424953 for this.

68. By Daniel Holbach

fix python code style issues

69. By Daniel Holbach

define common po4a args centrally, add comment

70. By Daniel Holbach

run po4a-updatepo as well

71. By Daniel Holbach

update German translation

72. By Daniel Holbach

update paths

Revision history for this message
David Planella (dpm) wrote :

Looks good to me, thanks!

Just two comments:

- I initially suggested using a directory for each language to contain the generated files. In a conversation on IRC, Daniel mentioned that this presents an issue with CSS/JS relative imports' for the toolkit theme.
- On second thoughts, and if we cannot use the above, I'd suggest keeping the same filename for all files, but adding the language as a suffix, just as the Apache docs suggest to load translations [1]. That is:
 - index.en-us.html
 - index.de.html
 - get-in-touch.en-us.html (*)
 - get-in-touch.de.html

[1] http://httpd.apache.org/docs/2.2/content-negotiation.html
(*) Note the - vs. _ and lowercase. This is for converting gettext language codes to BCP-47 language codes, which are understood by the browser: http://www.rfc-editor.org/rfc/bcp/bcp47.txt

review: Needs Fixing
Revision history for this message
David Planella (dpm) wrote :

If this requires a big change to the branch, we could do the above on a separate one.

Revision history for this message
Daniel Holbach (dholbach) wrote :

<dholbach> dpm, ok, I'll work on bug 1425010 next now, but maybe it'd make sense to land the branches now, so it'll be easier for others to look at the branches
<dholbach> the code is in better shape now then it was
 and I'll try to make the following MPs more targetted
<dpm> dholbach, makes sense, thanks!
<dholbach> ok

review: Approve

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