Skip to content

Commit f2f6305

Browse files
committed
include a separation line between description and headers #253
1 parent 432cf36 commit f2f6305

3 files changed

Lines changed: 9 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
77

88
Previous releases are documented in [github releases](https://github.com/oscarotero/Gettext/releases)
99

10+
## [5.4.1] - 2020-03-15
11+
### Fixed
12+
- PoGenerator includes the description and flags of the translations [#253]
13+
1014
## [5.4.0] - 2020-03-07
1115
### Added
1216
- Added `_` function to the list of functions scanned by default
@@ -63,7 +67,9 @@ Previous releases are documented in [github releases](https://github.com/oscarot
6367
[#246]: https://github.com/php-gettext/Gettext/issues/246
6468
[#247]: https://github.com/php-gettext/Gettext/issues/247
6569
[#251]: https://github.com/php-gettext/Gettext/issues/251
70+
[#253]: https://github.com/php-gettext/Gettext/issues/253
6671

72+
[5.4.1]: https://github.com/php-gettext/Gettext/compare/v5.4.0...v5.4.1
6773
[5.4.0]: https://github.com/php-gettext/Gettext/compare/v5.3.0...v5.4.0
6874
[5.3.0]: https://github.com/php-gettext/Gettext/compare/v5.2.2...v5.3.0
6975
[5.2.2]: https://github.com/php-gettext/Gettext/compare/v5.2.1...v5.2.2

src/Generator/PoGenerator.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ public function generateString(Translations $translations): string
2020
foreach ($description as $line) {
2121
$lines[] = sprintf('# %s', $line);
2222
}
23+
24+
$lines[] = '#';
2325
}
2426

2527
if (count($translations->getFlags())) {

tests/PoGeneratorTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ public function testPoLoader()
5757
# Copyright (C) YEAR Free Software Foundation, Inc.
5858
# This file is distributed under the same license as the PACKAGE package.
5959
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
60+
#
6061
#, fuzzy
6162
msgid ""
6263
msgstr ""

0 commit comments

Comments
 (0)