Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Translation] Add support for fuzzy tags in PoFileLoader#18175

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed
nud wants to merge1 commit intosymfony:masterfromnud:po-skip-fuzzy

Conversation

@nud
Copy link
Contributor

@nudnud commentedMar 15, 2016

QA
Bug fix?yes
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets#18161
LicenseMIT
Doc PR-

The traditional gettext tools usually try to find similar strings when
updating translations. This results in some strings having a translation
but being marked as "fuzzy", even if the translation is not correct.

The expected result when a string is marked as fuzzy is that it should
not be used by the translation system. Using symfony, though, the
translations were used, which could result in "funny" messages being
displayed in the interface despite being often completely out of
context.

This commit discards messages in .po files that have a '#, fuzzy' flag.

This commit can (and imo should) be back-ported as-is to the 2.x branch.

@javiereguiluzjaviereguiluz changed the titlebug #18161 [Translation] Add support for fuzzy tags in PoFileLoader[Translation] Add support for fuzzy tags in PoFileLoaderMar 15, 2016
$item =$defaults;
$flags =array();
}elseif (substr($line,0,2) ==='#,') {
$flags =array_map('trim',explode(',',substr($line,2)));

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

wrong identation

@nicolas-grekas
Copy link
Member

👍 with minor comments

…oaderThe traditional gettext tools usually try to find similar strings whenupdating translations. This results in some strings having a translationbut being marked as "fuzzy", even if the translation is not correct.The expected result when a string is marked as fuzzy is that it shouldnot be used by the translation system. Using symfony, though, thetranslations were used, which could result in "funny" messages beingdisplayed in the interface despite being often completely out ofcontext.This commit discards messages in .po files that have a '#, fuzzy' flag.| Q             | A| ------------- | ---| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets | 18161| License       | MIT| Doc PR        | -
@fabpot
Copy link
Member

Thank you@nud.

fabpot added a commit that referenced this pull requestMar 15, 2016
…nud)This PR was submitted for the master branch but it was merged into the 2.3 branch instead (closes#18175).Discussion----------[Translation] Add support for fuzzy tags in PoFileLoader| Q             | A| ------------- | ---| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets |#18161| License       | MIT| Doc PR        | -The traditional gettext tools usually try to find similar strings whenupdating translations. This results in some strings having a translationbut being marked as "fuzzy", even if the translation is not correct.The expected result when a string is marked as fuzzy is that it shouldnot be used by the translation system. Using symfony, though, thetranslations were used, which could result in "funny" messages beingdisplayed in the interface despite being often completely out ofcontext.This commit discards messages in .po files that have a '#, fuzzy' flag.This commit can (and imo should) be back-ported as-is to the 2.x branch.Commits-------970b956 bug#18161 [Translation] Add support for fuzzy tags in PoFileLoader
@fabpotfabpot closed thisMar 15, 2016
This was referencedMar 25, 2016
@fabpotfabpot mentioned this pull requestApr 29, 2016
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

5 participants

@nud@nicolas-grekas@fabpot@javiereguiluz@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp