File tree Expand file tree Collapse file tree 3 files changed +30
-40
lines changed
Expand file tree Collapse file tree 3 files changed +30
-40
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ <#
2+ . SYNOPSIS
3+ Gets a Turtle's Locale
4+ . DESCRIPTION
5+ Gets the locale associated with a Turtle.
6+
7+ This is usually nothing, as a picture speaks a thousand words in any language.
8+
9+ If it is set, it can be used to render content invisible unless the systemLanguage attribute matches the current language preference.
10+ #>
11+ return $this.Attributes [' systemLanguage' ]
Original file line number Diff line number Diff line change 1+ <#
2+ . SYNOPSIS
3+ Gets a Turtle's Locale
4+ . DESCRIPTION
5+ Gets the locale associated with a Turtle.
6+
7+ This is usually nothing, as a picture speaks a thousand words in any language.
8+
9+ If it is set, it can be used to render content invisible unless the systemLanguage attribute matches the current language preference.
10+ #>
11+ $unrolledArgs = $args | . { process { $_ } }
12+ $joinedArgs = $unrolledArgs -join ' ,'
13+ if (-not $joinedArgs ) {
14+ $this.Attribute.Remove (' systemLanguage' )
15+ $this.SVGAttribute.Remove (' systemLanguage' )
16+ } else {
17+ $this.Attribute [' systemLanguage' ] = $joinedArgs
18+ $this.SVGAttribute [' systemLanguage' ] = $joinedArgs
19+ }
You can’t perform that action at this time.
0 commit comments