Integrate scripts into Verbatim

RESOLVED FIXED

Status

Webtools Graveyard
Verbatim
P1
normal
RESOLVED FIXED
10 years ago
2 years ago

People

(Reporter: clouserw, Assigned: dschafer)

Tracking

Dependency tree / graph

Details

Attachments

(1 attachment)

(Reporter)

Description

10 years ago
We're writing .po translation scripts in some other bugs and we need to figure out how to integrate them into Verbatim.  Since these aren't a part of the translate toolkit we'll need to figure out a way to store them separately.  Maybe a config variable and Pootle can look into that directory and the translate toolkit directory?
(Assignee)

Updated

10 years ago
Status: NEW → ASSIGNED
(Assignee)

Updated

10 years ago
Assignee: nobody → dschafer
Status: ASSIGNED → NEW
(Assignee)

Updated

10 years ago
Status: NEW → ASSIGNED
(Assignee)

Updated

10 years ago
Depends on: 437155, 437157, 437342
(Assignee)

Comment 1

10 years ago
As part of this, we need to figure out how to tell Pootle that the PO file being changed was created from a non-PO file, and thus it needs to update the original file with the new translations in the PO.  My current plan is to just make sure all of the original files are in the same directory as their PO counterparts, and if a file with the same name but different extension exists, convert the PO to that format.  Any thoughts?
(Reporter)

Comment 2

10 years ago
Seems like we should store the conversion process on a per-project basis since our scripts take different arguments (.po<->.lang and .amopo<->.po is different).  I'd like a default rule for a project type but something we can change if we need to (like if a file isn't named 'messages.po' for instance).
(Assignee)

Updated

10 years ago
Priority: -- → P1
(Assignee)

Comment 3

10 years ago
A basic foundation for this was included in revision 7750; see attachment 329573 [details] [diff] [review].
(Assignee)

Comment 4

10 years ago
Created attachment 329854 [details] [diff] [review]
Adds by-project pre/post commit support

This adds a new option to pootle.prefs for "scripts".  Inside the scripts directory are two sub-directories: precommit/ and postcommit/.  If {projectname} exists as an executable script in one of those folders, it will be executed at the requisite time: precommmits before the `svn commit`, postcommits after a successful commit.
Attachment #329854 - Flags: review?(clouserw)
(Reporter)

Updated

10 years ago
Attachment #329854 - Flags: review?(clouserw) → review+
(Assignee)

Comment 5

10 years ago
In revision 7770; tentatively marking this FIXED
Status: ASSIGNED → RESOLVED
Last Resolved: 10 years ago
Resolution: --- → FIXED
Product: Webtools → Webtools Graveyard
You need to log in before you can comment on or make changes to this bug.