Index: trunk/extensions/Translate/scripts/sync-group.php |
— | — | @@ -68,7 +68,11 @@ |
69 | 69 | |
70 | 70 | foreach ( $codes as $code ) { |
71 | 71 | |
72 | | - $file = $group->getMessageFileWithPath( $code ); |
| 72 | + if ( $group instanceof FileBasedMessageGroup ) { |
| 73 | + $file = $group->getSourceFilePath( $code ); |
| 74 | + } else { |
| 75 | + $file = $group->getMessageFileWithPath( $code ); |
| 76 | + } |
73 | 77 | if ( !$file ) continue; |
74 | 78 | |
75 | 79 | if ( !file_exists( $file ) ) continue; |