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] XLIFF2: Make sure to trim source if it is too long for "name"#26661

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

Merged
fabpot merged 1 commit intosymfony:masterfromNyholm:translation-xliff-name
Mar 30, 2018

Conversation

@Nyholm
Copy link
Member

QA
Branch?master
Bug fix?yes
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets
LicenseMIT
Doc PR

This PR is a follow-up on@javiereguiluz's comment here:symfony/symfony-docs#9302

This feature was introduced in#26149

@NyholmNyholmforce-pushed thetranslation-xliff-name branch frome485a5b toca41fecCompareMarch 27, 2018 07:49
@Nyholm
Copy link
MemberAuthor

I've rebased my PR on master to make Travis happy.

@javiereguiluz
Copy link
Member

I'm not sure about this because translations will have different kinds ofid depending on its contents:

<trans-unitid="http_error_403.suggestion"> ... </trans-unit><trans-unitid="ca41fec"> ... </trans-unit>

Why can't we just apply this md5 ID to all translation nodes? Why it's important to duplicate the translation contents in theid too? XLIFF is already verbose and this is not helping 😓

@Nyholm
Copy link
MemberAuthor

As mentioned in#25758

For backward compatibility I don't expect to see a change to the way the element is used, but for the 1.2 and 2.0 formats to be treated as equivalent it seems the same logic should be applied.

So we usesource asname to be similar to 1.2.

@fabpot
Copy link
Member

Thank you@Nyholm.

@fabpotfabpot merged commitca41fec intosymfony:masterMar 30, 2018
fabpot added a commit that referenced this pull requestMar 30, 2018
…o long for "name" (Nyholm)This PR was merged into the 4.1-dev branch.Discussion----------[Translation] XLIFF2: Make sure to trim source if it is too long for "name"| Q             | A| ------------- | ---| Branch?       | master| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets || License       | MIT| Doc PR        |This PR is a follow-up on@javiereguiluz's comment here:symfony/symfony-docs#9302This feature was introduced in#26149Commits-------ca41fec Make sure to trim source if it is too long
@NyholmNyholm deleted the translation-xliff-name branchFebruary 24, 2021 09:26
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@fabpotfabpotfabpot approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

4.1

Development

Successfully merging this pull request may close these issues.

5 participants

@Nyholm@javiereguiluz@fabpot@nicolas-grekas@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp