Skip to content
This repository has been archived by the owner on Nov 25, 2021. It is now read-only.
/ xgettext-endless-sky Public archive

Utilities to extract translatable texts from the program and data files of of Endless Sky and its plugins.

License

Notifications You must be signed in to change notification settings

oo13/xgettext-endless-sky

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

xgettext-endless-sky

Utilities to extract translatable texts from the program and data files of of Endless Sky and its plugins. You can use it in an unofficial translatable version of Endless Sky. You need python3, and some convenient scripts run on sh.

cmd/make_source_pot

A wrapper script to extract translatable texts from the sources of Endless Sky. This script uses xgettext.

Example:

% cmd/make_source_pot /usr/src/endless-sky/source > endless-sky-source.pot

cmd/make_data_pot

A wrapper script to extract translatable texts from the data files of Endless Sky and its plugins. This script uses xgettext.endless_sky_data.

Example:

% cmd/make_data_pot /usr/src/endless-sky > endless-sky-data.pot

cmd/xgettext.endless_sky_data

This program extracts translatable texts from the data files of Endless Sky and its plugins.

Example:

% cmd/xgettext.endless_sky_data -o endless-sky-data.pot *.txt

cmd/check_translated_data

This program shows data files replaced translatable texts with translated. Note: Some texts, such as the outfit's and mission's names, are not replaced.

Example:

% cmd/check_translated_data -p endless-sky-data-ja.po *.txt | less

About

Utilities to extract translatable texts from the program and data files of of Endless Sky and its plugins.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published