Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make translation easier and faster #20

Closed
wants to merge 1 commit into from

Conversation

jmartsch
Copy link
Contributor

This commit overhauls the translation functions in the RockFrontend module for a simpler and more concise implementation. The changes replace earlier function mechanisms with a more direct approach, via a new function 'getTextdomain'.

This function directly pulls the textdomain from the file invoking the function, rather than fetching it from the module. These changes result in denser, cleaner code, reducing dependency on external object fetches. Also, the return types for certain functions were specifically defined, providing added clarity.

This commit overhauls the translation functions in the RockFrontend module for a simpler and more concise implementation. The changes replace earlier function mechanisms with a more direct approach, via a new function 'getTextdomain'. 

This function directly pulls the textdomain from the file invoking the function, rather than fetching it from the module. These changes result in denser, cleaner code, reducing dependency on external object fetches. Also, the return types for certain functions were specifically defined, providing added clarity.
@jmartsch jmartsch closed this Nov 12, 2023
BernhardBaumrock added a commit that referenced this pull request Nov 12, 2023
@jmartsch jmartsch deleted the optimize-translations branch December 3, 2023 17:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant