Gettext
Gettext copied to clipboard
PHP library to collect and manipulate gettext (.po, .mo, .php, .json, etc)
Hello, First of all thanks for the work on this library, highly appreciated :) Second, I would like to be able to find translations by their ids. Currently it is...
It is possible to make use of msgctxt context into the .po file definition? There is no clear method from native functions to get the translation of a context either....
This is a knock-on issue from https://github.com/oscarotero/Gettext/issues/220. (I hope you won't regret adding that already!) An XLIFF file may contain several units with the same translation content... (silly example but...
If you use brackets in function parameter `PHPFunctionsScanner` will interpret this as a new function and the resulting parameter list is incorrect. Example: ```
Hi, in version 4.6.1 library work fine with extracting translations from template literals in JS files, but after upgrade to 4.8 library doesnt extract translations from template literals for example...
First of all, thank you for a library. Second, I don't know how to load multiple *.mo translation files and use them with `textdomain` context. This is my code so...
Hi, I have been able to load translation.mo with MO loader. Now, how to print translation of string from object created by MO loader, something like: `echo $translations->gettext('Hello world!', 'optional-textdomain');`...
As per https://github.com/wp-cli/i18n-command/pull/217, WP-Cli i18n-command still use v4 (which does not provide Twig scanner, among others) because it stick to package supporting PHP 5.6. What is itself a consequence of...
Hi guys, my integrate Gettext with .po and .mo file and work fine. Yesterday i added new language Czech, after generete .po and .mo file ad uploaded to dedicated folder...
As reported in https://github.com/wp-cli/i18n-command/issues/96, we're currently facing an issue with the PHP extractor where comments are associated with the wrong function call. Here's an example code: ```php $month_abbrev[ __( 'January'...