GettextTranslator.Store (gettext_translator v0.4.2)

View Source

In-memory store for translation entries and changelog using ETS. This module is responsible for the low-level persistence layer.

Summary

Functions

Returns a specification to start this module under a supervisor.

Get the current count for approved translations

Counts the number of translations with :modified status.

Increment the approved translations counter

Reset the approved translations counter

Start the ETS table for approved translations when your application starts. Call this in your application's supervision tree.

Starts the ETS store.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

count_approved_translations()

Get the current count for approved translations

count_by_status(status)

count_modified_translations()

Counts the number of translations with :modified status.

get_changelog(id)

get_entries_by_file()

get_translation(id)

increment_approved()

Increment the approved translations counter

insert_changelog(id, entry)

insert_translation(id, translation)

list_changelogs()

list_translations()

reset_approved_counter()

Reset the approved translations counter

reset_changelogs()

reset_translations()

start_approved_counter()

Start the ETS table for approved translations when your application starts. Call this in your application's supervision tree.

start_link(opts \\ [])

Starts the ETS store.