Create .lang<->.po conversion script

RESOLVED FIXED

Status

Webtools Graveyard
Verbatim
RESOLVED FIXED
10 years ago
2 years ago

People

(Reporter: clouserw, Assigned: dschafer)

Tracking

Details

Attachments

(4 attachments, 2 obsolete attachments)

(Reporter)

Description

10 years ago
Example of .lang file:

http://svn.mozilla.org/projects/mozilla.com/trunk/en-US/includes/l10n/main.lang

The tiny bit of code that converts the .lang to a PHP array:

http://svn.mozilla.org/projects/mozilla.com/trunk/includes/l10n_moz.class.php
(Assignee)

Comment 1

10 years ago
Created attachment 323740 [details]
Conversion script from .lang to .po
Attachment #323740 - Flags: review?(clouserw)
(Assignee)

Comment 2

10 years ago
Created attachment 323741 [details]
Conversion script from .po to .lang
Attachment #323741 - Flags: review?(clouserw)
(Assignee)

Updated

10 years ago
Status: NEW → ASSIGNED
(Assignee)

Comment 3

10 years ago
Created attachment 324543 [details]
A lang storage file for the translation toolkit

This file is needed (in the same directory) for the new versions of the po2lang and lang2po scripts.
Attachment #324543 - Flags: review?(clouserw)
(Assignee)

Comment 4

10 years ago
Created attachment 324544 [details]
A conversion script from .lang to .po using translation tookit methods

Requires attachment 324543 [details].

This uses the standard translation toolkit methods to perform a .lang to .po conversion.
Attachment #323740 - Attachment is obsolete: true
Attachment #324544 - Flags: review?(clouserw)
Attachment #323740 - Flags: review?(clouserw)
(Assignee)

Updated

10 years ago
Attachment #324544 - Attachment mime type: application/octet-stream → text/plain
(Assignee)

Comment 5

10 years ago
Created attachment 324545 [details]
A conversion script from .po to .lang using translation tookit methods

Requires attachment 324543 [details].

This uses the standard translation toolkit methods to perform a .po to .lang
conversion.
Attachment #323741 - Attachment is obsolete: true
Attachment #324545 - Flags: review?(clouserw)
Attachment #323741 - Flags: review?(clouserw)
(Assignee)

Updated

10 years ago
Blocks: 437341
(Reporter)

Updated

10 years ago
Attachment #324543 - Flags: review?(clouserw) → review+
(Reporter)

Updated

10 years ago
Attachment #324544 - Flags: review?(clouserw) → review+
(Reporter)

Updated

10 years ago
Attachment #324545 - Flags: review?(clouserw) → review+
(Reporter)

Comment 6

10 years ago
Great stuff here Dan. :)
(Assignee)

Updated

9 years ago
Status: ASSIGNED → RESOLVED
Last Resolved: 9 years ago
Resolution: --- → FIXED
(Assignee)

Comment 7

9 years ago
These scripts are included in revision 7989 of Mozootle.
(Assignee)

Comment 8

9 years ago
Created attachment 332392 [details] [diff] [review]
A patch for .lang file parsing

This modifies attachment 324543 [details] to properly deal with .lang files of the following format: http://svn.mozilla.org/projects/google_snippets/fr.lang

This is in revision 7991 of Mozootle.
Product: Webtools → Webtools Graveyard
You need to log in before you can comment on or make changes to this bug.