Commit Graph

18 Commits

Author SHA1 Message Date
Dominik Schilling (ocean90) 4e00e36e0f i18n tools: Use https for `msgid-bugs-address` URLs.
git-svn-id: https://develop.svn.wordpress.org/trunk@33448 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-27 19:37:13 +00:00
Aaron Jorbin 4a60647ab7 Deprecate php4 style constructors
PHP7 is deprecating PHP4 style constructors, so we need to modify our code to have _construct methods that fire before the named PHP4 style constructors.  The PHP4 style constructors will call the PHP5 style constructor in case it is being called directly (usually via parent::METHOD).

This modifies external libraries to add PHP5 style constructors, but doesn't add a notice for when they are used.  In WordPress core code, PHP4 style constructors are being given a call to _deprecated_constructor. To the PHP4 style constructor I say "I know that I can't take no more | It ain't no lie | I wanna see you out that door | Baby, bye, bye, bye..."

Upstream: https://wiki.php.net/rfc/remove_php4_constructors

Props jdgrimes, netweb, jorbin
See #31982



git-svn-id: https://develop.svn.wordpress.org/trunk@32990 602fd350-edb4-49c9-b593-d223f7449a82
2015-06-28 15:26:41 +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
Dominik Schilling (ocean90) 917af97d4f i18n tools: Sync makepot.php with i18n.svn.
fixes #31193.

git-svn-id: https://develop.svn.wordpress.org/trunk@31319 602fd350-edb4-49c9-b593-d223f7449a82
2015-01-31 22:01:33 +00:00
Dominik Schilling (ocean90) 606c88fe75 i18n tools: Exclude wp-includes/class-pop3.php in wp_frontend().
The external library uses the underscore alias for the native gettext() function. Makepot extracts these strings too, which results in having 25 unused translations.

fixes #31179.

git-svn-id: https://develop.svn.wordpress.org/trunk@31315 602fd350-edb4-49c9-b593-d223f7449a82
2015-01-31 20:27:16 +00:00
Dominik Schilling (ocean90) 125897c70e i18n tools: Tabs, not spaces for indentation.
git-svn-id: https://develop.svn.wordpress.org/trunk@31314 602fd350-edb4-49c9-b593-d223f7449a82
2015-01-31 19:51:03 +00:00
Sergey Biryukov 2b3bf48338 Fix strict notices in makepot.
props jdgrimes.
fixes #29254.

git-svn-id: https://develop.svn.wordpress.org/trunk@29563 602fd350-edb4-49c9-b593-d223f7449a82
2014-08-21 02:53:16 +00:00
Andrew Nacin 58dc8ab25c i18n tools: Have makepot search for the main file of the plugin.
props Otto42.
fixes #25665.


git-svn-id: https://develop.svn.wordpress.org/trunk@27399 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-04 21:06:48 +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
Nikolay Bachiyski 54e6261a34 Extract: `_` and `_c` aren't among the common gettext function names
Let's just remove them from the default rules


git-svn-id: https://develop.svn.wordpress.org/trunk@25919 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-26 00:46:34 +00:00
Nikolay Bachiyski 97a7dfc936 Extract: add default rules
Two purposes:

 * Helps people, reading the code to have a better idea of the structure of the array
 * Reciprocity with `$comment_prefix`, which has a default value

See #25691


git-svn-id: https://develop.svn.wordpress.org/trunk@25918 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-26 00:45:16 +00:00
Nikolay Bachiyski 38f7bf86c6 Extract: add a phpdoc to clarify the class responsibility
First step towards making it do only one thing and cleaning it up


git-svn-id: https://develop.svn.wordpress.org/trunk@25917 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-26 00:41:34 +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 d6cac0502c i18n Tools: Update the default msgid-bugs-address. see #21444.
git-svn-id: https://develop.svn.wordpress.org/trunk@25096 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-22 22:07:08 +00:00
Andrew Nacin 790938d31b i18n Tools: Update msgid-bugs-address for plugins and themes in POT files.
props convissor, fixes #21444.



git-svn-id: https://develop.svn.wordpress.org/trunk@25095 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-22 22:06:16 +00:00
Nikolay Bachiyski f9ff73dc61 Use correct path to src/
See #24976


git-svn-id: https://develop.svn.wordpress.org/trunk@25015 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-07 20:59:09 +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