Index: trunk/extensions/Translate/scripts/export.php |
— | — | @@ -30,6 +30,8 @@ |
31 | 31 | --ppgettext Group root path for checkout of product. "msgmerge" will post |
32 | 32 | process on the export result based on the current definitionFile |
33 | 33 | in that location |
| 34 | + --no-location Only used combined with "ppgettext". This option will rebuild |
| 35 | + the gettext file without location information. |
34 | 36 | EOT |
35 | 37 | ); |
36 | 38 | exit( 1 ); |
— | — | @@ -71,6 +73,12 @@ |
72 | 74 | $threshold = false; |
73 | 75 | } |
74 | 76 | |
| 77 | +if ( isset( $options['nolocation'] ) ) { |
| 78 | + $noLocation = '--no-location '; |
| 79 | +} else { |
| 80 | + $noLocation = ''; |
| 81 | +} |
| 82 | + |
75 | 83 | $reqLangs = Cli::parseLanguageCodes( $options['lang'] ); |
76 | 84 | |
77 | 85 | $groups = array(); |
— | — | @@ -146,7 +154,7 @@ |
147 | 155 | if ( $definitionFile ) { |
148 | 156 | if ( is_file( $definitionFile ) ) { |
149 | 157 | $targetFileName = $ffs->getWritePath() . $group->getTargetFilename( $collection->code ); |
150 | | - $cmd = "msgmerge --quiet --output-file=" . $targetFileName . ' ' . $targetFileName . ' ' . $definitionFile; |
| 158 | + $cmd = "msgmerge --quiet " . $noLocation . "--output-file=" . $targetFileName . ' ' . $targetFileName . ' ' . $definitionFile; |
151 | 159 | wfShellExec( $cmd, $ret ); |
152 | 160 | |
153 | 161 | // Report on errors. |