translations: choose the right approach

Registered by massimo

 + we will include in configuration file label (msg_id) for every translatable text
 + for every language we will provide separate translation file

Blueprint information

Status:
Complete
Approver:
None
Priority:
Medium
Drafter:
Vincent Fretin
Direction:
Needs approval
Assignee:
Andrew Mleczko
Definition:
Approved
Series goal:
Accepted for 1.x
Implementation:
Implemented
Milestone target:
milestone icon 1.1
Started by
Andrew Mleczko
Completed by
Andrew Mleczko

Related branches

Sprints

Whiteboard

since we changed the tours format from a dictionary into a configuration-like. e.g.:

[amberjack]
steps =
        0_create-a-new-folder
        1_fill-out-the-fields
        2_publish-the-folder
        3_all-done
title = Add and publish a Folder

[0_create-a-new-folder]
blueprint = collective.amberjack.blueprints.step
title = Create a new folder
url = /
text = Folders are one of ....
validators =
        python: isManager
        python: isNotFolderCreated
microsteps =
        0_0_microstep
        0_1_microstep
        0_2_microstep

[0_0_microstep]
blueprint = collective.amberjack.blueprints.microstep
description = If you don't want to perform the ...
...

obviously, we need to manage translations.

what we would like to have is:
- a set of files like [1]
    - tourX.cfg (contains the tour itself)
    - tourX.pot (the template)
    - tourX_en/it/fr/pl/br.po (for the several translations)
- keep untouched the translations we already have (just renaming the files)
- have a i18ndude-like tool that from a .cfg file can create the .pot one [2]

[1] from a deployment, sharing and distribution point of view those files will be kept in a zip/tgz unique file. that's why we prefer to use a simpler 'tourX_language.po' to a locales/LC.../it/tour.po structure.

[2] is it possibile to extend i18ndude to manage also that format? at the end the labels that need to be translated can be easily got from the file though ConfigParser.

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.