Coder Social home page Coder Social logo

nfsmaniac / vivaldi_pakpo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from an-dz/chromiumpopak

0.0 2.0 1.0 44 KB

Fork that allows conversion of language PAK files to Gettext PO and from PO to PAK

Python 100.00%
chromium vivaldi pak string translation localization po gettext

vivaldi_pakpo's Introduction

Vivaldi Translation Team PAK–PO converter

Fork with focus on Vivaldi browser that allows conversion of language PAK files to Gettext PO and from PO to PAK

Requirments

  • Python 3 (tested on 3.5)
    • polib module pip install polib

Guide

From PAK to Gettext PO

Call unpack.py with directory as a po file. Example: python unpack.py en-US.pak cs.pak cs.po

From Gettext PO to PAK

Simply call pack.py with directory as a po file. Example: python pack.py en_US.po

Batch conversion

Call batch-unpack.py with in_dir as input folder containing multiple PAK files and out_dir as output folder where PO files will be saved. You don't need to create the output directory first. Also if you leave there some PO file, the script will make a backup first. Example: python batch-unpack.py Locales converted

Call batch-pack.py with in_dir as input folder containing multiple PO files and out_dir as output folder where PAK files will be saved. You don't need to create the output directory first. Also if you leave there some PAK file, the script will make a backup first. Example: python batch-pack.py converted Locales

Create & Apply patch

For easy migration of translation between Vivaldi browser releases, it is needed to create a patch. Call mkpatch.py with originalPO as stock PO file generated from official PAK file and editedPO as changed PO file by you. Example: python mkpatch.py cs.po cs_edit.po

To apply a patch, call apply-patch.py with originalPO as stock PO file generated from official PAK file and patchPO as a patch file generated in previous step. Example: python apply-patch.py cs.po cs_patch.po

vivaldi_pakpo's People

Contributors

an-dz avatar denniskehrig avatar nfsmaniac avatar

Watchers

 avatar  avatar

Forkers

marcellodash

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.