tools/export-translations.php 1 location
|
@@ 16-22 (lines=7) @@
|
| 13 |
|
* |
| 14 |
|
* @param string $message |
| 15 |
|
*/ |
| 16 |
|
function die_error( $message ) { |
| 17 |
|
global $argv; |
| 18 |
|
|
| 19 |
|
fwrite( STDERR, "php $argv[0] DIRECTORY SOURCE_URL\n" ); |
| 20 |
|
fwrite( STDERR, "$message\n" ); |
| 21 |
|
exit( 1 ); |
| 22 |
|
} |
| 23 |
|
|
| 24 |
|
/** |
| 25 |
|
* Converts GlotPress URL into a GlotPress API URL. |
tools/import-translations.php 1 location
|
@@ 14-20 (lines=7) @@
|
| 11 |
|
* |
| 12 |
|
* @param string $message |
| 13 |
|
*/ |
| 14 |
|
function die_error( $message ) { |
| 15 |
|
global $argv; |
| 16 |
|
|
| 17 |
|
fwrite( STDERR, "php $argv[0] DESTINATION_URL SOURCE_URL [SOURCE_URL ...]\n" ); |
| 18 |
|
fwrite( STDERR, "$message\n" ); |
| 19 |
|
exit( 1 ); |
| 20 |
|
} |
| 21 |
|
|
| 22 |
|
/** |
| 23 |
|
* Converts GlotPress URL into a GlotPress API URL |