Updated Translatable.get_name() to accept the translation as argument, avoiding unnecessary queries (where applicable). Split get_name() in two functions so that get_name() handles the cache and _get_name() actually calculates the name. This allows for cleaner overrides (normaly one should only implement the _get_name() method).
Updated Translatable.get_name() to accept the translation as argument,
avoiding unnecessary queries (where applicable). Split get_name() in two
functions so that get_name() handles the cache and _get_name()
actually calculates the name. This allows for cleaner overrides
(normaly one should only implement the _get_name() method).
yawd/yawd-translations