Skip to content
This repository has been archived by the owner on Aug 28, 2023. It is now read-only.

Softcatala/catalan-pology-rules

Repository files navigation

Introduction

This repository is intended to facilitate the development of new Pology rules

Once the new rules are completed they will be contributed to upstream (https://invent.kde.org/sdk/pology), except for rules that are very specific to Softcatalà.

In the contributed directory you have pass rules that we contributed

At the root you have the current rules specific to us.

Generating rules from PO files

See isos directory

We created a Python application to systematize the creation of rules from PO files with the intention to generate rules that help to make the translation of ISO standards consistant (languages names, currencies, etc).

The po-to-rules.py works like this:

  • Takes as input a PO file
  • Allows optionally to provide some exceptions (e.g. iso_639-exceptions.json)
  • Uses a mustache template to generate a Pology rules file (e.g. iso_639.mustache)

Example:

po-to-rules.py -i iso_639-3.59.ca.po -t iso_639.mustache -e iso_639-exceptions.json -o iso_639.rules

Contact Information

Jordi Mas: [email protected]

About

Softcatalà's Pology rules for Catalan language

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published