Commit Graph

9 Commits

Author SHA1 Message Date
Dominik Schilling (ocean90) f8af8cdc6c i18n tools: In `StringExtractor` don't strip slashes from URLs.
Props SergeyBiryukov, ocean90.
Fixes #36015.

git-svn-id: https://develop.svn.wordpress.org/trunk@36781 602fd350-edb4-49c9-b593-d223f7449a82
2016-02-29 20:44:31 +00:00
Dominik Schilling (ocean90) 78ed4e109a i18n-tools: Respect the coding standards when adding textdomains with add-textdomain.php.
Props GaryJ, groovecoder.
Fixes #21616.

git-svn-id: https://develop.svn.wordpress.org/trunk@36603 602fd350-edb4-49c9-b593-d223f7449a82
2016-02-20 21:43:51 +00:00
Peter Westwood 3c88ac14ee i18n tools: Add the text domain to translate_nooped_plural() calls as well.
Fixes #34126 props jrf.


git-svn-id: https://develop.svn.wordpress.org/trunk@36390 602fd350-edb4-49c9-b593-d223f7449a82
2016-01-24 15:28:40 +00:00
Peter Westwood 1e1ac57375 i18n tools: Add a test for the add-textdomain.php script.
git-svn-id: https://develop.svn.wordpress.org/trunk@36389 602fd350-edb4-49c9-b593-d223f7449a82
2016-01-24 15:25:11 +00:00
Dominik Schilling (ocean90) eefd9e3a4c i18n tools: Delete `data/not-gettexted-0-work.php`.
In NotGettextedTest this file is a copy of `data/not-gettexted-0.php` which will be removed after the test has finished.

git-svn-id: https://develop.svn.wordpress.org/trunk@31499 602fd350-edb4-49c9-b593-d223f7449a82
2015-02-22 12:55:34 +00:00
Dominik Schilling (ocean90) 684b992597 i18n tools: Improve support for multi-line comments in StringExtractor.
props SergeyBiryukov.
fixes #30972.

git-svn-id: https://develop.svn.wordpress.org/trunk@31498 602fd350-edb4-49c9-b593-d223f7449a82
2015-02-22 12:46:12 +00:00
Nikolay Bachiyski 04dd14f3b5 Extract: rename method `extract_entries` to `extract_from_code`
The other extract methods are named `extract_from_<something>`, this was
te only one, which wasn't.

Also, it was returning an instance of `Translations`,
not an array of entries, which the name suggested.


git-svn-id: https://develop.svn.wordpress.org/trunk@25920 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-26 00:54:27 +00:00
Scott Taylor 16ef2c2e36 Remove lingering instances of call time pass-by-reference, limited to instances of `callable` - use `$this` instead of `&$this`.
Props jdgrimes.
See #25160.



git-svn-id: https://develop.svn.wordpress.org/trunk@25254 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-05 16:33:50 +00:00
Andrew Nacin e89082c01a Import internationalization tools from i18n.svn.wordpress.org.
Imported from https://i18n.svn.wordpress.org/tools/trunk@22088.

see #24976.



git-svn-id: https://develop.svn.wordpress.org/trunk@25003 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-07 06:44:08 +00:00