GettextTranslator.Store.Changelog (gettext_translator v0.4.2)

View Source

Service for managing changelog operations. Maintains status history of translations with a simple 1:1 mapping.

Summary

Functions

Approves a translation in the changelog.

Creates a new changelog entry for a new translation or when one doesn't exist.

Loads changelog files for translations. Maps each translation to its corresponding status record.

Match changelog entries with translations using message_id as the key.

Saves all modified changelog entries to disk, while preserving existing entries. Converts MODIFIED status to APPROVED during persistence.

Updates a changelog entry when a translation is modified from the UI.

Functions

approve_translation(translation)

Approves a translation in the changelog.

create_new_changelog_entry(translation, status \\ "NEW")

Creates a new changelog entry for a new translation or when one doesn't exist.

load_changelog_files(folders, app)

Loads changelog files for translations. Maps each translation to its corresponding status record.

match_changelog_with_translations()

Match changelog entries with translations using message_id as the key.

save_to_files()

Saves all modified changelog entries to disk, while preserving existing entries. Converts MODIFIED status to APPROVED during persistence.

update_for_modified_translation(translation, params)

Updates a changelog entry when a translation is modified from the UI.