Skip to content

Commit

Permalink
[dotnet] Fix line endings in template localizations. (#16981)
Browse files Browse the repository at this point in the history
The automatic translation apparently runs on windows, creates files with crlf,
and will check in the corresponding files as such. During the local build
these files will be read and written out again, but now with lf endings,
leaving all these files modified.

So set the 'text' git attribute for these files, so that they're stored as
'lf' and converted to 'crlf' on Windows.
  • Loading branch information
rolfbjarne authored Dec 12, 2022
1 parent 697a571 commit 85b4b79
Show file tree
Hide file tree
Showing 274 changed files with 1,428 additions and 1,417 deletions.
11 changes: 11 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# By default to the default thing

* text=auto

# The automatic translation apparently runs on windows, creates files with
# crlf, and will check in the corresponding files as such. During the local
# build these files will be read and written out again, but now with lf
# endings. So set the 'text' git attribute for these files, so that they're
# stored as 'lf' and converted to 'crlf' on Windows.

**/.template.config/localize/templatestrings.*.json text
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"author": "Microsoft",
"name": "Mac Catalyst Controller",
"description": "A MacCatalyst Controller class",
"symbols/namespace/description": "namespace for the generated code"
{
"author": "Microsoft",
"name": "Mac Catalyst Controller",
"description": "A MacCatalyst Controller class",
"symbols/namespace/description": "namespace for the generated code"
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"author": "Microsoft",
"name": "Mac Catalyst Controller",
"description": "A MacCatalyst Controller class",
"symbols/namespace/description": "namespace for the generated code"
{
"author": "Microsoft",
"name": "Mac Catalyst Controller",
"description": "A MacCatalyst Controller class",
"symbols/namespace/description": "namespace for the generated code"
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"author": "Microsoft",
"name": "Mac Catalyst Controller",
"description": "A MacCatalyst Controller class",
"symbols/namespace/description": "namespace for the generated code"
{
"author": "Microsoft",
"name": "Mac Catalyst Controller",
"description": "A MacCatalyst Controller class",
"symbols/namespace/description": "namespace for the generated code"
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"author": "Microsoft",
"name": "Mac Catalyst Controller",
"description": "A MacCatalyst Controller class",
"symbols/namespace/description": "namespace for the generated code"
{
"author": "Microsoft",
"name": "Mac Catalyst Controller",
"description": "A MacCatalyst Controller class",
"symbols/namespace/description": "namespace for the generated code"
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"author": "Microsoft",
"name": "Mac Catalyst Controller",
"description": "A MacCatalyst Controller class",
"symbols/namespace/description": "namespace for the generated code"
{
"author": "Microsoft",
"name": "Mac Catalyst Controller",
"description": "A MacCatalyst Controller class",
"symbols/namespace/description": "namespace for the generated code"
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"author": "Microsoft",
"name": "Mac Catalyst Controller",
"description": "A MacCatalyst Controller class",
"symbols/namespace/description": "namespace for the generated code"
{
"author": "Microsoft",
"name": "Mac Catalyst Controller",
"description": "A MacCatalyst Controller class",
"symbols/namespace/description": "namespace for the generated code"
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"author": "Microsoft",
"name": "Mac Catalyst Controller",
"description": "A MacCatalyst Controller class",
"symbols/namespace/description": "namespace for the generated code"
{
"author": "Microsoft",
"name": "Mac Catalyst Controller",
"description": "A MacCatalyst Controller class",
"symbols/namespace/description": "namespace for the generated code"
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"author": "Microsoft",
"name": "Mac Catalyst Controller",
"description": "A MacCatalyst Controller class",
"symbols/namespace/description": "namespace for the generated code"
{
"author": "Microsoft",
"name": "Mac Catalyst Controller",
"description": "A MacCatalyst Controller class",
"symbols/namespace/description": "namespace for the generated code"
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"author": "Microsoft",
"name": "Mac Catalyst Controller",
"description": "A MacCatalyst Controller class",
"symbols/namespace/description": "namespace for the generated code"
{
"author": "Microsoft",
"name": "Mac Catalyst Controller",
"description": "A MacCatalyst Controller class",
"symbols/namespace/description": "namespace for the generated code"
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"author": "Microsoft",
"name": "Mac Catalyst Controller",
"description": "A MacCatalyst Controller class",
"symbols/namespace/description": "namespace for the generated code"
{
"author": "Microsoft",
"name": "Mac Catalyst Controller",
"description": "A MacCatalyst Controller class",
"symbols/namespace/description": "namespace for the generated code"
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"author": "Microsoft",
"name": "Mac Catalyst Controller",
"description": "A MacCatalyst Controller class",
"symbols/namespace/description": "namespace for the generated code"
{
"author": "Microsoft",
"name": "Mac Catalyst Controller",
"description": "A MacCatalyst Controller class",
"symbols/namespace/description": "namespace for the generated code"
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"author": "Microsoft",
"name": "Mac Catalyst Controller",
"description": "A MacCatalyst Controller class",
"symbols/namespace/description": "namespace for the generated code"
{
"author": "Microsoft",
"name": "Mac Catalyst Controller",
"description": "A MacCatalyst Controller class",
"symbols/namespace/description": "namespace for the generated code"
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"author": "Microsoft",
"name": "Mac Catalyst Controller",
"description": "A MacCatalyst Controller class",
"symbols/namespace/description": "namespace for the generated code"
{
"author": "Microsoft",
"name": "Mac Catalyst Controller",
"description": "A MacCatalyst Controller class",
"symbols/namespace/description": "namespace for the generated code"
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"author": "Microsoft",
"name": "Mac Catalyst Storyboard",
"description": "A MacCatalyst Storyboard"
{
"author": "Microsoft",
"name": "Mac Catalyst Storyboard",
"description": "A MacCatalyst Storyboard"
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"author": "Microsoft",
"name": "Mac Catalyst Storyboard",
"description": "A MacCatalyst Storyboard"
{
"author": "Microsoft",
"name": "Mac Catalyst Storyboard",
"description": "A MacCatalyst Storyboard"
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"author": "Microsoft",
"name": "Mac Catalyst Storyboard",
"description": "A MacCatalyst Storyboard"
{
"author": "Microsoft",
"name": "Mac Catalyst Storyboard",
"description": "A MacCatalyst Storyboard"
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"author": "Microsoft",
"name": "Mac Catalyst Storyboard",
"description": "A MacCatalyst Storyboard"
{
"author": "Microsoft",
"name": "Mac Catalyst Storyboard",
"description": "A MacCatalyst Storyboard"
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"author": "Microsoft",
"name": "Mac Catalyst Storyboard",
"description": "A MacCatalyst Storyboard"
{
"author": "Microsoft",
"name": "Mac Catalyst Storyboard",
"description": "A MacCatalyst Storyboard"
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"author": "Microsoft",
"name": "Mac Catalyst Storyboard",
"description": "A MacCatalyst Storyboard"
{
"author": "Microsoft",
"name": "Mac Catalyst Storyboard",
"description": "A MacCatalyst Storyboard"
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"author": "Microsoft",
"name": "Mac Catalyst Storyboard",
"description": "A MacCatalyst Storyboard"
{
"author": "Microsoft",
"name": "Mac Catalyst Storyboard",
"description": "A MacCatalyst Storyboard"
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"author": "Microsoft",
"name": "Mac Catalyst Storyboard",
"description": "A MacCatalyst Storyboard"
{
"author": "Microsoft",
"name": "Mac Catalyst Storyboard",
"description": "A MacCatalyst Storyboard"
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"author": "Microsoft",
"name": "Mac Catalyst Storyboard",
"description": "A MacCatalyst Storyboard"
{
"author": "Microsoft",
"name": "Mac Catalyst Storyboard",
"description": "A MacCatalyst Storyboard"
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"author": "Microsoft",
"name": "Mac Catalyst Storyboard",
"description": "A MacCatalyst Storyboard"
{
"author": "Microsoft",
"name": "Mac Catalyst Storyboard",
"description": "A MacCatalyst Storyboard"
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"author": "Microsoft",
"name": "Mac Catalyst Storyboard",
"description": "A MacCatalyst Storyboard"
{
"author": "Microsoft",
"name": "Mac Catalyst Storyboard",
"description": "A MacCatalyst Storyboard"
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"author": "Microsoft",
"name": "Mac Catalyst Storyboard",
"description": "A MacCatalyst Storyboard"
{
"author": "Microsoft",
"name": "Mac Catalyst Storyboard",
"description": "A MacCatalyst Storyboard"
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"author": "Microsoft",
"name": "Mac Catalyst Storyboard",
"description": "A MacCatalyst Storyboard"
{
"author": "Microsoft",
"name": "Mac Catalyst Storyboard",
"description": "A MacCatalyst Storyboard"
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"author": "Microsoft",
"name": "Mac Catalyst View",
"description": "A MacCatalyst View",
"symbols/namespace/description": "namespace for the generated code"
{
"author": "Microsoft",
"name": "Mac Catalyst View",
"description": "A MacCatalyst View",
"symbols/namespace/description": "namespace for the generated code"
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"author": "Microsoft",
"name": "Mac Catalyst View",
"description": "A MacCatalyst View",
"symbols/namespace/description": "namespace for the generated code"
{
"author": "Microsoft",
"name": "Mac Catalyst View",
"description": "A MacCatalyst View",
"symbols/namespace/description": "namespace for the generated code"
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"author": "Microsoft",
"name": "Mac Catalyst View",
"description": "A MacCatalyst View",
"symbols/namespace/description": "namespace for the generated code"
{
"author": "Microsoft",
"name": "Mac Catalyst View",
"description": "A MacCatalyst View",
"symbols/namespace/description": "namespace for the generated code"
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"author": "Microsoft",
"name": "Mac Catalyst View",
"description": "A MacCatalyst View",
"symbols/namespace/description": "namespace for the generated code"
{
"author": "Microsoft",
"name": "Mac Catalyst View",
"description": "A MacCatalyst View",
"symbols/namespace/description": "namespace for the generated code"
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"author": "Microsoft",
"name": "Mac Catalyst View",
"description": "A MacCatalyst View",
"symbols/namespace/description": "namespace for the generated code"
{
"author": "Microsoft",
"name": "Mac Catalyst View",
"description": "A MacCatalyst View",
"symbols/namespace/description": "namespace for the generated code"
}
Loading

4 comments on commit 85b4b79

@vs-mobiletools-engineering-service2
Copy link
Collaborator

Choose a reason for hiding this comment

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

✅ API diff for current PR / commit

Legacy Xamarin (No breaking changes)
  • iOS (no change detected)
  • tvOS (no change detected)
  • watchOS (no change detected)
  • macOS (no change detected)
NET (empty diffs)
  • iOS: (empty diff detected)
  • tvOS: (empty diff detected)
  • MacCatalyst: (empty diff detected)
  • macOS: (empty diff detected)

❗ API diff vs stable (Breaking changes)

Legacy Xamarin (:heavy_exclamation_mark: Breaking changes :heavy_exclamation_mark:)
.NET (:heavy_exclamation_mark: Breaking changes :heavy_exclamation_mark:)
Legacy Xamarin (stable) vs .NET

✅ Generator diff

Generator diff is empty

Pipeline on Agent
Hash: 85b4b791a2ac504017c9f0342c3b2995600eea9d [CI build]

@vs-mobiletools-engineering-service2
Copy link
Collaborator

Choose a reason for hiding this comment

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

💻 [CI Build] Tests on macOS M1 - Mac Big Sur (11.5) passed 💻

All tests on macOS M1 - Mac Big Sur (11.5) passed.

Pipeline on Agent
Hash: 85b4b791a2ac504017c9f0342c3b2995600eea9d [CI build]

@vs-mobiletools-engineering-service2
Copy link
Collaborator

Choose a reason for hiding this comment

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

📚 [CI Build] Artifacts 📚

Artifacts were not provided.

Pipeline on Agent XAMMINI-052.Monterey'
Hash: 85b4b791a2ac504017c9f0342c3b2995600eea9d [CI build]

@vs-mobiletools-engineering-service2

This comment was marked as outdated.

Please sign in to comment.