Skip to content
This repository was archived by the owner on Nov 15, 2025. It is now read-only.

Restore french translations#169

Merged
Samuel12321 merged 2 commits intoModernFlyouts-Community:mainfrom
stlnb:main
Nov 9, 2020
Merged

Restore french translations#169
Samuel12321 merged 2 commits intoModernFlyouts-Community:mainfrom
stlnb:main

Conversation

@stlnb
Copy link
Copy Markdown
Contributor

@stlnb stlnb commented Nov 2, 2020

And it's back another time.

@Samuel12321, I think I understand why translations are being reverted.
When building on Visual Studio, it builds the .resx files from the .xlf, so I think changes must be done to the .xlf files

For what I did : I translated the strings properly on the .resx, then deleted and recreated the .xlf from the Multilingual App Toolkit extension (it automatically imports from the localized .resx file), and manually validated review-requested strings (when source and target are the same) on the standalone editor, and I finally have something clean

So if there are translations added and if you want to apply them from one file to another, make sure you don't build the solution (and at least the ModernFlyouts C# project) before you have done the changes 🙂

Because Visual Studio builds overrides .resx files
Now with sorted .xlf translations
+ Added new strings
+ Sorted by name on original strings.resx
@stlnb
Copy link
Copy Markdown
Contributor Author

stlnb commented Nov 8, 2020

Also sorting the new strings in the base strings.resx file for readability.

@Samuel12321
Copy link
Copy Markdown
Member

Thanks so much @Stealnoob, will merge this for the next release

@Samuel12321 Samuel12321 merged commit 57f41c1 into ModernFlyouts-Community:main Nov 9, 2020
@Samuel12321
Copy link
Copy Markdown
Member

Merged, Thanks so much @Stealnoob

@Samuel12321
Copy link
Copy Markdown
Member

Will be visible in 0.8.2

@stlnb
Copy link
Copy Markdown
Contributor Author

stlnb commented Nov 9, 2020

Wait, the merge commit broke both .resx files, and it doesn't even build (why do I have ocd of sorting things 🙃 ...)
Multilingual builds also fail even if I correct them, don't know why, but probably on my end.

Samuel12321 added a commit that referenced this pull request Nov 10, 2020
Samuel12321 added a commit that referenced this pull request Nov 10, 2020
@ShankarBUS
Copy link
Copy Markdown
Member

@Samuel12321, what is going on?

This guy just did the PR two times and both of the times the translations are overwritten.

This is why we should have a contribution guidelines document.

Should contributors modify the *.xlf files or the *.resx files?

@Samuel12321
Copy link
Copy Markdown
Member

@ShankarBUS there seems to be a problem preventing me and @Stealnoob building recently. This time the translations were applied correctly, i just reverted it to try to se if i could fix the problem.
Are you experiencing XLF verification errors?

Will undo this revert once we fix the problem.

Samuel12321 added a commit that referenced this pull request Nov 10, 2020
@stlnb
Copy link
Copy Markdown
Contributor Author

stlnb commented Nov 10, 2020

@ShankarBUS
Actually the translations didn't get overwritten, the merge commit with upstream duplicated strings, which made the build fail.
Also MAT is somewhat confusing as at build time it changes the .xlf from the source strings.resx and also changes the localized .resx file from the .xlf...

@Samuel12321
Are the build errors the same error on the MSBuild Targets for MAT ? Because it doesn't tell what's wrong and it seems to come from nowhere.

@Samuel12321
Copy link
Copy Markdown
Member

yup, they are ridiculously helpful.
They have me stumped too.

Samuel12321 added a commit that referenced this pull request Nov 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants