Skip to content
This repository has been archived by the owner on Dec 30, 2023. It is now read-only.

Commit

Permalink
Processing simple reference links for transifex (3)
Browse files Browse the repository at this point in the history
  • Loading branch information
andresgutierrez committed Mar 10, 2014
1 parent f49d5af commit 4bb46ee
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 45 deletions.
4 changes: 2 additions & 2 deletions generate-trstrings.php
Expand Up @@ -98,7 +98,7 @@ public function processUniqueSection($section, &$uniqueStrings)
if (preg_match_all('#[a-zA-Z0-9]+_ #', $line, $matches, PREG_SET_ORDER)) {
foreach ($matches as $position => $match) {
$placeholders[$position] = $match[0];
$listMatches[1] = str_replace($match[0], ':' . ($number) . ':', $listMatches[1]);
$listMatches[1] = str_replace($match[0], ':' . ($number) . ': ', $listMatches[1]);
$number++;
}
}
Expand Down Expand Up @@ -143,7 +143,7 @@ public function processUniqueSection($section, &$uniqueStrings)
if (preg_match_all('#[a-zA-Z0-9]+_ #', $section1, $matches, PREG_SET_ORDER)) {
foreach ($matches as $position => $match) {
$placeholders[$position] = $match[0];
$section1 = str_replace($match[0], ':' . ($number) . ':', $section1);
$section1 = str_replace($match[0], ':' . ($number) . ': ', $section1);
$number++;
}
}
Expand Down
2 changes: 1 addition & 1 deletion transifex/base-rst/en/reference/benchmark/hello-world.rst
Expand Up @@ -20,7 +20,7 @@

%{hello-world_cfd6d0dbc2b5533200c7d0c3369a32d8}%
-----------------------
* `Zend Framework`_
* FuelPHP_
* Symfony_
* `Zend Framework`_
* {%hello-world_974854eecb92ef6958153031d2980ebf%}
Expand Down

0 comments on commit 4bb46ee

Please sign in to comment.