Make translations possible

Bug #1416389 reported by Daniel Holbach
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu Help App
Fix Released
High
Daniel Holbach

Bug Description

Make translations possible. Ok, so this needs a bit more explanation.

So far we have:
 - generate-pot which generates a .pot file, leaving out the
   pelican-specific meta data (Title, Save_as, etc.)

What we need is:
1) generate-pot to leave in "Title:" as we want that translated.
2) a new command to generate translated content. What we
   currently have in Makefile is this:

translate:
        $(foreach po_file,$(PO_FILES),$(shell mkdir $(INPUTDIR)/pages/$(shell basename $(po_file) .po)))
        $(foreach md_file,\
                  $(MD_FILES),\
                  $(foreach po_file,\
                            $(PO_FILES),\
                            $(shell po4a-translate -k 0 -f text -o markdown -M utf-8 -L utf-8 \
                                -m $(md_file) -p $(po_file) \
                > $(INPUTDIR)/pages/$(shell basename $(po_file) .po)/$(shell basename $(md_file)))))

   but that's not good enough. It won't figure out the pelican-
   specific meta-data

3) Once done, we need to update the 'translate' and 'update-pot'
   targets in the Makefile
4) Update HACKING.

Changed in ubuntu-devices-help:
importance: Undecided → High
summary: - Create script to add directory structure for new language
+ Make translations possible
description: updated
Changed in ubuntu-devices-help:
assignee: nobody → Daniel Holbach (dholbach)
status: New → In Progress
Changed in ubuntu-devices-help:
status: In Progress → Fix Committed
Changed in ubuntu-devices-help:
status: Fix Committed → In Progress
Revision history for this message
Daniel Holbach (dholbach) wrote :

I'm calling it a day for today, any help will be appreciated.

description: updated
description: updated
Changed in ubuntu-devices-help:
assignee: Daniel Holbach (dholbach) → nobody
Revision history for this message
Daniel Holbach (dholbach) wrote :

This is all done in lp:~dholbach/ubuntu-devices-help/1416389 (prereq: lp:~dholbach/ubuntu-devices-help/translations-module), except it doesn't work.

The meta-data strings are excluded from the .pot file (works fine), but they get re-added twice (once through us, as expected - once through po4a-translate).

I need help fixing this.

Changed in ubuntu-devices-help:
assignee: nobody → Daniel Holbach (dholbach)
Changed in ubuntu-devices-help:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.