Skip to content

[Translation] Po/MoFileLoader parse plurization rules #3023

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 4, 2012

Conversation

stealth35
Copy link
Contributor

Bug fix: yes
Feature addition: no
Backwards compatibility break: no
Symfony2 tests pass: Build StatusFixes the following tickets: #2630
Todo: Not happy with the pluralize style

msgid "foo"
msgid_plural "foos"
msgstr[0] "bar"
msgstr[1] "bars"

to

array (
    'foo' => 'bar',
    'foos' => '{0} bar|{1} bars'
)

fabpot added a commit that referenced this pull request Jan 4, 2012
Commits
-------

f4890c2 [Translation] Po/MoFileLoader parse plurization rules

Discussion
----------

[Translation] Po/MoFileLoader parse plurization rules

Bug fix: yes
Feature addition: no
Backwards compatibility break: no
Symfony2 tests pass: [![Build Status](https://secure.travis-ci.org/stealth35/symfony.png?branch=fix_2630)](http://travis-ci.org/stealth35/symfony)Fixes the following tickets: #2630
Todo: Not happy with the pluralize style

```
msgid "foo"
msgid_plural "foos"
msgstr[0] "bar"
msgstr[1] "bars"
```
to

```
array (
    'foo' => 'bar',
    'foos' => '{0} bar|{1} bars'
)
```
@fabpot fabpot merged commit f4890c2 into symfony:master Jan 4, 2012
@clemens-tolboom
Copy link
Contributor

Headers are loaded and saved by #4249

We need PluralizationRules expose it's implementation when implementing ie writing a header from a PhpLoader through PoFileDumper right?

ondrejmirtes pushed a commit to ondrejmirtes/symfony that referenced this pull request Nov 25, 2013
This PR was merged into the master branch.

Commits
-------

320fb6c [Translation] changed the MetadataAwareInterface method signatures
11ff433 [Translation] fixed CS in unit tests
c40db35 [Translation] removed some code that is not done anywhere else in Symfony
63719a0 [Translation] created a new interface to avoid breaking BC
23e9e65 [Translation] fixed name
5607732 [Translation] added Metadata to MessageCatalogue

Discussion
----------

[MessageCatalogue] Add Metadata to MessageCatalogue

rework of symfony#4399

For improving the Gettext tools (PO, MO File Loader/Dumper) we need at least storage for their meta data.

This patch allows for issues below to store and process ie Po Header, Po Header Pluralisation rule.

Open
- [[WIP]: Allow Drupal to use Translate component](symfony#4249)
- [[2.1][Translator] Symfony translation process & gettext](symfony#4245)

Closed:
- [[Translation] Po/MoFileLoader parse plurization rules](symfony#3023)

It has 1 TODO regarding addCatalogue: it now just override old values with new.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants