Turns gettext translation files into handy JavaScript object objects. Finds all .js files from available gettext .po[t] files. Then finds all strings for each file, and outputs them in their own JavaScript files as named object objects.
The script makes the assumption that the .po string bases are stored in the convention: “language/string_dataset.po” and that the output will be in “language/path-to/original.js”. This was done to work in the context of a W3C Widget package’s locales/ folder. This tool is primarily written to be used with the Opera and W3C Widget Packaging platform (used in widgets and browser extensions for Opera, and other implementations). But the tool is fairly generic and can be used as is for other uses, or adapted for different needs (it’s open source, alright!).
Commercial Use
Modify
Distribute
Place Warranty
Sub-License
Hold Liable
Disclose Source
Include Copyright
State Changes
Include License
Include Install Instructions
These details are provided for information only. No information here is legal advice and should not be used as such.
30 Day SummarySep 16 2025 — Oct 16 2025
|
12 Month SummaryOct 16 2024 — Oct 16 2025
|